Files
productcountdown/views/templates/hook/countdown.tpl
2025-09-07 12:50:02 +03:00

24 lines
1.4 KiB
Smarty

<div class="product-countdown-container" id="product-countdown-{$product.id}" data-timestamp="{$countdown_timestamp}"
data-on-expire="{$countdown_on_expire_action}"
data-expired-text="{l s=$countdown_expired_text d='Modules.Productcountdown.Shop'}">
{if !empty($countdown_discount_name)}
<p class="countdown-name">{$countdown_discount_name|escape:'htmlall':'UTF-8'}</p>
{/if}
<div class="countdown-wrapper h5">
{* MODIFIED: Added style attribute and changed class *}
<span class="badge countdown-badge"
style="background-color: {$countdown_bg_color|escape:'html':'UTF-8'}; color: {$countdown_text_color|escape:'html':'UTF-8'}; border-color: {$countdown_bg_color|escape:'html':'UTF-8'};">
{l s=$countdown_prefix d='Modules.Productcountdown.Shop'}
<span class="countdown-timer"></span>
</span>
</div>
{* These hidden spans provide translated units for the javascript, no changes here *}
<span class="d-none" data-unit="day">{l s='day' d='Modules.Productcountdown.Shop'}</span>
<span class="d-none" data-unit="days">{l s='days' d='Modules.Productcountdown.Shop'}</span>
<span class="d-none" data-unit="hr">{l s='hr' d='Modules.Productcountdown.Shop'}</span>
<span class="d-none" data-unit="min">{l s='min' d='Modules.Productcountdown.Shop'}</span>
<span class="d-none" data-unit="sec">{l s='sec' d='Modules.Productcountdown.Shop'}</span>
</div>