bebeboutik/modules/privatesales/footer.tpl
Srv Bebeboutik 6c0978166c add modules
2016-01-04 12:49:26 +01:00

70 lines
2.9 KiB
Smarty
Executable File

{if $cookie->isLogged() OR $showtoguests}
<div id="privatesales_block_footer">
<div id="block_sales_footer">
<h2>{l s='Current sales' mod='privatesales'}</h2>
<div class="content">
{if count($sales) > 0}
<ul>
{foreach $sales as $sale name=sales}
{if count(array_intersect($customer_groups, $sale->groups))>0}
<li onclick="window.location.href='{$link->getCategoryLink($sale->id_category, $sale->alias[$cookie->id_lang])|escape:'htmlall':'UTF-8'}';">
<a href="{$link->getCategoryLink($sale->id_category, $sale->alias[$cookie->id_lang])|escape:'htmlall':'UTF-8'}"><img class="background" alt="{$sale->title[$cookie->id_lang]}" src="{$path}img/{$sale->id}/liston_{$cookie->id_lang}.jpg" /></a>
<div class="content">
<div class="date">
{l s='From' mod='privatesales'} {$sale->date_start|date_format:'%A %e %B %H:%M'}<br />{l s='To' mod='privatesales'} {$sale->date_end|date_format:'%A %e %B %H:%M'}
</div>
<div class="short_desc">
{$sale->description[$cookie->id_lang]|escape:'htmlall':'UTF-8'}
</div>
</div>
<a class="enter" href="{$link->getCategoryLink($sale->id_category, $sale->alias[$cookie->id_lang])|escape:'htmlall':'UTF-8'}">{l s='View the sale' mod='privatesales'}</a>
<div class="actions">
<a class="button_small" href="{$base_dir_ssl}modules/privatesales/trailer.php?id_sale={$sale->id}">{l s='Trailer' mod='privatesales'}</a>
</div>
</li>
{/if}
{/foreach}
</ul>
{else}
<div class="nosale">
{l s='No active sale at the moment' mod='privatesales'}
</div>
{/if}
</div>
</div>
<div id="block_sales_footer_future">
<h2>{l s='Future sales' mod='privatesales'}</h2>
<div class="content">
{if count($futuresales) > 0}
<ul>
{foreach $futuresales as $sale name=futuresales}
{if count(array_intersect($customer_groups, $sale->groups))>0}
<li>
<img class="background" alt="{$sale->title[$cookie->id_lang]}" src="{$path}img/{$sale->id}/listoff_{$cookie->id_lang}.jpg" />
<div class="content">
<div class="date">
{l s='From' mod='privatesales'} {$sale->date_start|date_format:'%A %e %B %H:%M'}<br />{l s='To' mod='privatesales'} {$sale->date_end|date_format:'%A %e %B %H:%M'}
</div>
<div class="short_desc">
{$sale->description[$cookie->id_lang]|escape:'htmlall':'UTF-8'}
</div>
</div>
<a class="disabled">{l s='Available soon' mod='privatesales'}</a>
<div class="actions">
<a class="button_small" href="{$base_dir_ssl}modules/privatesales/trailer.php?id_sale={$sale->id}">{l s='Trailer' mod='privatesales'}</a>
</div>
</li>
{/if}
{/foreach}
</ul>
{else}
<div class="nosale">
{l s='No future sale at the moment' mod='privatesales'}
</div>
{/if}
</div>
</div>
{$HOOK_PRIVATESALES_LISTING}
</div>
{/if}