first commit
This commit is contained in:
24
views/templates/hook/countdown.tpl
Normal file
24
views/templates/hook/countdown.tpl
Normal file
@@ -0,0 +1,24 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user