27 lines
1.4 KiB
Smarty
27 lines
1.4 KiB
Smarty
{if $privatesale}
|
|
<script type="text/javascript">
|
|
<!--{literal}
|
|
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}'});
|
|
-->{/literal}
|
|
</script>
|
|
<div id="block_category_privatesales" class="block">
|
|
<div class="logo col-xs-12 col-sm-12 col-md-3">
|
|
{capture name=img_sale}
|
|
{$link_img}{$privatesale->id}/logo/{$privatesale->id}_{$cookie->id_lang}.jpg
|
|
{/capture}
|
|
{if $privatesale->imagelogo}
|
|
<img src="{$smarty.capture.img_sale}"/>
|
|
{/if}
|
|
</div>
|
|
<div class="description col-xs-12 col-sm-12 col-md-9">
|
|
<h1>{$privatesale->title}{if $privatesale->subtitle}, {$privatesale->subtitle}{/if}</h1>
|
|
<p class="sale-date">{l s='To' mod='privatesales'} {$privatesale->date_end|date_format:"%d/%m/%Y %H:%M:%S"}</p>
|
|
</div>
|
|
<div class="clearfix"></div>
|
|
</div>
|
|
|
|
{/if} |