16 lines
908 B
Smarty
16 lines
908 B
Smarty
{if $privatesale}
|
|
{literal}
|
|
<script type="text/javascript">
|
|
var endstring = "{/literal}{$privatesale->date_end}{literal}";
|
|
var enddate = endstring.split(' ')[0].split('-');
|
|
var endtime = endstring.split(' ')[1].split(':');
|
|
var endofsale = new Date(enddate[0], enddate[1]-1, enddate[2], endtime[0], endtime[1], endtime[2]);
|
|
$('#countdown').countdown({serverSync:function(){var d = new Date({/literal}{$smarty.now|date_format:'%Y, '}{$smarty.now|date_format:'%-m'} - 1{$smarty.now|date_format:', %-d, %-H, %-M, %-S'}{literal}); return d;}, until: endofsale, layout: '{d<}{dn} {dl} {d>} {hn} {hl} {mn} {ml}'});
|
|
</script>
|
|
{/literal}
|
|
<div id="block_category_privatesales" class="block">
|
|
{l s='End of sale in' mod='privatesales'} <span id="countdown"></span>
|
|
<div class="clearfix"></div>
|
|
</div>
|
|
|
|
{/if} |