{*
* 2007-2021 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@buy-addons.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author    Buy-addons    <contact@buy-addons.com>
* @copyright 2007-2021 Buy-addons
* @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*}

<div class="wdcmscountdowntimer col-sm-6">

    	<div class="timer-pattern" style="background-color:#{$Settingcd['colorBackGround']|escape:'htmlall':'UTF-8'}">
        	<div class="timer-content">   
                <div class="timer-main">
                                
                <div class="text-content" style="color:#{$Settingcd['colormess']|escape:'htmlall':'UTF-8'}">
                    {foreach from=$arr_language key=k item=i}
                        {if $arr_language[$k]['id_lang'] == $getidLang['id_lang']}
                            {$textArea[$k] nofilter} {*no escape necessary*} 
                        {/if}
                    {/foreach}
                </div>
                <div class="date-btn">
                <div class="timer-date">
                    <div class="timer">
                        <div class="timer-days">
                            <div id="days" class="number"></div>
                            <div class="timer-text" style="color:#{$Settingcd['colormess']|escape:'htmlall':'UTF-8'}">
                                {foreach from=$arr_language key=k item=i}
                                    {if $arr_language[$k]['id_lang'] == $getidLang['id_lang']}
                                        {$days[$k]|escape:'htmlall':'UTF-8'}
                                    {/if}
                                {/foreach}
                            </div>
                        </div>
                    </div>
                    <div class="timer" >
                        <div class="timer-hours">
                            <div id="hours" class="number separator"></div>
                            <div class="timer-text" style="color:#{$Settingcd['colormess']|escape:'htmlall':'UTF-8'}">
                                {foreach from=$arr_language key=k item=i}
                                    {if $arr_language[$k]['id_lang'] == $getidLang['id_lang']}
                                        {$hrs[$k]|escape:'htmlall':'UTF-8'}
                                    {/if}
                                {/foreach}
                            </div>
                        </div>
                    </div>
                    <div class="timer">
                        <div class="timer-minute">
                            <div id="minute" class="number separator"></div>
                            <div class="timer-text" style="color:#{$Settingcd['colormess']|escape:'htmlall':'UTF-8'}">
                                {foreach from=$arr_language key=k item=i}
                                    {if $arr_language[$k]['id_lang'] == $getidLang['id_lang']}
                                        {$min[$k]|escape:'htmlall':'UTF-8'}
                                    {/if}
                                {/foreach}
                            </div>
                        </div>
                    </div>	
                    <div class="timer">
                        <div class="timer-second">
                            <div id="second" class="number separator"></div>
                            <div class="timer-text" style="color:#{$Settingcd['colormess']|escape:'htmlall':'UTF-8'}">
                                {foreach from=$arr_language key=k item=i}
                                    {if $arr_language[$k]['id_lang'] == $getidLang['id_lang']}
                                        {$second[$k]|escape:'htmlall':'UTF-8'}
                                    {/if}
                                {/foreach}
                            </div>
                        </div>
                    </div>                   
                </div>
<a href="{$txtURL[$getidLang['id_lang']]|escape:'htmlall':'UTF-8'}" target="_blank" class="btn btn-secondary">
                    <span class="timer-btn">
                        {foreach from=$arr_language key=k item=i}
                            {if $arr_language[$k]['id_lang'] == $getidLang['id_lang']}
                                {$txtStart[$k]|escape:'htmlall':'UTF-8'}
                            {/if}
                        {/foreach}
                    </span>
                </a>
                </div>

                </div>
            </div>
        </div>
</div>
