111 lines
6.1 KiB
Smarty
111 lines
6.1 KiB
Smarty
{if $menu_sales}
|
|
<div id="sales_menu">
|
|
<ul>
|
|
<li{if $page_name == 'index' && !isset($smarty.get['ventes-bebe']) && !isset($smarty.get['ventes-enfant']) && !isset($smarty.get['ventes-maman'])} class="selected"{/if}>
|
|
{if isset($smarty.get.sponsor) && isset($smarty.get.create_account)}
|
|
<a><span>{l s='All our sales' mod='privatesales_salemenu'}</span></a>
|
|
{else}
|
|
<a href="{$base_dir_ssl}"><span>{l s='All our sales' mod='privatesales_salemenu'}</span></a>
|
|
{/if}
|
|
</li>
|
|
<li{if isset($smarty.get['ventes-bebe']) || (isset($sale) && $sale->sale_type == 1)} class="selected"{/if}>
|
|
{if isset($smarty.get.sponsor) && isset($smarty.get.create_account)}
|
|
<a><span>{l s='SALETYPE1' mod='privatesales_salemenu'}</span></a>
|
|
{else}
|
|
<a href="{$base_dir_ssl}?ventes-bebe"><span>{l s='SALETYPE1' mod='privatesales_salemenu'}</span></a>
|
|
|
|
{if count($menu_sales_1) > 0}
|
|
<ul{if count($menu_sales_1) == 1} class="single"{elseif count($menu_sales_1) > 10} class="long"{/if}>
|
|
{foreach $menu_sales_1 as $menu_sale}
|
|
{if count(array_intersect($customer_groups, $menu_sale->groups))>0}
|
|
<li>
|
|
<a href="{$link->getCategoryLink($menu_sale->id_category, $menu_sale->alias[$cookie->id_lang])|escape:'htmlall':'UTF-8'}">
|
|
<img src="{$base_dir_ssl}modules/privatesales/img/{$menu_sale->id}/thumb_{$cookie->id_lang}.jpg" alt="{$menu_sale->title[$cookie->id_lang]|escape:'htmlall':'UTF-8'}"/>
|
|
<span class="desc_wrapper">
|
|
<strong>{$menu_sale->title[$cookie->id_lang]|escape:'htmlall':'UTF-8'}</strong>
|
|
<span>{if isset($extra_sale_fields[$menu_sale->id])}{$extra_sale_fields[$menu_sale->id]|escape:'htmlall':'UTF-8'}{/if}</span>
|
|
</span>
|
|
</a>
|
|
</li>
|
|
{/if}
|
|
{/foreach}
|
|
</ul>
|
|
{/if}
|
|
{/if}
|
|
</li>
|
|
<li{if isset($smarty.get['ventes-enfant']) || (isset($sale) && $sale->sale_type == 2)} class="selected"{/if}>
|
|
{if isset($smarty.get.sponsor) && isset($smarty.get.create_account)}
|
|
<a><span>{l s='SALETYPE2' mod='privatesales_salemenu'}</span></a>
|
|
{else}
|
|
<a href="{$base_dir_ssl}?ventes-enfant"><span>{l s='SALETYPE2' mod='privatesales_salemenu'}</span></a>
|
|
|
|
{if count($menu_sales_2) > 0}
|
|
<ul{if count($menu_sales_2) == 1} class="single"{elseif count($menu_sales_2) > 10} class="long"{/if}>
|
|
{foreach $menu_sales_2 as $menu_sale}
|
|
{if count(array_intersect($customer_groups, $menu_sale->groups))>0}
|
|
<li>
|
|
<a href="{$link->getCategoryLink($menu_sale->id_category, $menu_sale->alias[$cookie->id_lang])|escape:'htmlall':'UTF-8'}">
|
|
<span class="img_wrapper">
|
|
<img src="{$base_dir_ssl}modules/privatesales/img/{$menu_sale->id}/thumb_{$cookie->id_lang}.jpg" alt="{$menu_sale->title[$cookie->id_lang]|escape:'htmlall':'UTF-8'}"/>
|
|
</span>
|
|
<span class="desc_wrapper">
|
|
<strong>{$menu_sale->title[$cookie->id_lang]|escape:'htmlall':'UTF-8'}</strong>
|
|
<span>{if isset($extra_sale_fields[$menu_sale->id])}{$extra_sale_fields[$menu_sale->id]|escape:'htmlall':'UTF-8'}{/if}</span>
|
|
</span>
|
|
</a>
|
|
</li>
|
|
{/if}
|
|
{/foreach}
|
|
</ul>
|
|
{/if}
|
|
{/if}
|
|
</li>
|
|
<li{if isset($smarty.get['ventes-maman']) || (isset($sale) && $sale->sale_type == 3)} class="selected"{/if}>
|
|
{if isset($smarty.get.sponsor) && isset($smarty.get.create_account)}
|
|
<a><span>{l s='SALETYPE3' mod='privatesales_salemenu'}</span></a>
|
|
{else}
|
|
<a href="{$base_dir_ssl}?ventes-maman"><span>{l s='SALETYPE3' mod='privatesales_salemenu'}</span></a>
|
|
|
|
{if count($menu_sales_3) > 0}
|
|
<ul{if count($menu_sales_3) == 1} class="single"{elseif count($menu_sales_3) > 10} class="long"{/if}>
|
|
{foreach $menu_sales_3 as $menu_sale}
|
|
{if count(array_intersect($customer_groups, $menu_sale->groups))>0}
|
|
<li>
|
|
<a href="{$link->getCategoryLink($menu_sale->id_category, $menu_sale->alias[$cookie->id_lang])|escape:'htmlall':'UTF-8'}">
|
|
<span class="img_wrapper">
|
|
<img src="{$base_dir_ssl}modules/privatesales/img/{$menu_sale->id}/thumb_{$cookie->id_lang}.jpg" alt="{$menu_sale->title[$cookie->id_lang]|escape:'htmlall':'UTF-8'}"/>
|
|
</span>
|
|
<span class="desc_wrapper">
|
|
<strong>{$menu_sale->title[$cookie->id_lang]|escape:'htmlall':'UTF-8'}</strong>
|
|
<span>{if isset($extra_sale_fields[$menu_sale->id])}{$extra_sale_fields[$menu_sale->id]|escape:'htmlall':'UTF-8'}{/if}</span>
|
|
</span>
|
|
</a>
|
|
</li>
|
|
{/if}
|
|
{/foreach}
|
|
</ul>
|
|
{/if}
|
|
{/if}
|
|
|
|
</li>
|
|
<li{if $smarty.server.REQUEST_URI == '/modules/invite/invite-program.php'} class="selected"{/if}>
|
|
{if isset($smarty.get.sponsor) && isset($smarty.get.create_account)}
|
|
<a><span>{l s='Referral program' mod='privatesales_salemenu'}</span></a>
|
|
{else}
|
|
<a href="/modules/invite/invite-program.php"><span>{l s='Referral program' mod='privatesales_salemenu'}</span></a>
|
|
{/if}
|
|
</li>
|
|
|
|
{if !isset($smarty.get.sponsor) && !isset($smarty.get.create_account)}
|
|
<li id="shopping_cart_container">
|
|
<div id="shopping_cart" onclick="window.location=('{$link->getPageLink("$order_process.php", true)}');" >
|
|
<a href="{$link->getPageLink("$order_process.php", true)}" title="{l s='Your Shopping Cart' mod='privatesales_salemenu'}">{l s='Cart:' mod='privatesales_salemenu'}</a>
|
|
(<span class="ajax_cart_quantity{if $cart_qties == 0} hidden{/if}">{$cart_qties}</span><span class="ajax_cart_product_txt{if $cart_qties != 1} hidden{/if}">{l s='product' mod='privatesales_salemenu'}</span><span class="ajax_cart_product_txt_s{if $cart_qties < 2} hidden{/if}">{l s='products' mod='privatesales_salemenu'}</span>{if $cart_qties >= 0}<span class="ajax_cart_total{if $cart_qties == 0} hidden{/if}">{if $priceDisplay == 1}{assign var='blockuser_cart_flag' value='Cart::BOTH_WITHOUT_SHIPPING'|constant}{convertPrice price=$cart->getOrderTotal(false, $blockuser_cart_flag)}{else}{assign var='blockuser_cart_flag' value='Cart::BOTH_WITHOUT_SHIPPING'|constant}{convertPrice price=$cart->getOrderTotal(true, $blockuser_cart_flag)}{/if}</span>{/if}<span class="ajax_cart_no_product{if $cart_qties > 0} hidden{/if}">{l s='(empty)' mod='privatesales_salemenu'}</span>)
|
|
</div>
|
|
</li>
|
|
{/if}
|
|
|
|
</ul>
|
|
</div>
|
|
{/if}
|