fix warnings in private sales home (in "Démarque en vrac")
This commit is contained in:
parent
22644d8798
commit
edc744f5d5
@ -56,7 +56,7 @@ $(document).ready(function() {
|
||||
{if $currentsales|count > 0}
|
||||
{assign var=i value=0}
|
||||
{foreach $currentsales as $sale}
|
||||
{if $slider_active && ($currentsales|count == 1 || $i == 0)}
|
||||
{if isset($slider_active) && $slider_active && ($currentsales|count == 1 || $i == 0)}
|
||||
<div class="row slider-ctn">
|
||||
{*desktop*}
|
||||
<div id="slider_home" class="clearfix snotmobile">
|
||||
@ -92,7 +92,7 @@ $(document).ready(function() {
|
||||
{else}
|
||||
<div class="sale {if $sale->univers}sale_univers{/if} {if $i == 0}first{/if}" id="sale_{$sale->id}" >
|
||||
{/if}
|
||||
<div class="sale_container clearfix" {if $sales_mobile && !$cookie->logged}onclick="window.location.href='{$link->getPageLink('authentication', true)|escape:'html':'UTF-8'}';"{/if}>
|
||||
<div class="sale_container clearfix" {if isset($sales_mobile) && $sales_mobile && !$cookie->logged}onclick="window.location.href='{$link->getPageLink('authentication', true)|escape:'html':'UTF-8'}';"{/if}>
|
||||
{if $sale->concours && strtotime($sale->date_start) >= {mktime(strftime('%H') - $sale->concours_delay)}}
|
||||
<div class="picto-concours">
|
||||
<a href="{$sale->link}"></a>
|
||||
@ -235,7 +235,7 @@ $(document).ready(function() {
|
||||
|
||||
{assign var=i value=$i+1}
|
||||
|
||||
{if $banner_link_top_active && ($currentsales|count == 1 || $i == 4)}
|
||||
{if isset($banner_link_top_active) && $banner_link_top_active && ($currentsales|count == 1 || $i == 4)}
|
||||
<div class="sale-banner-home-top">
|
||||
<div class="banner-home-top snotmobile" {if isset($banner_img_top) && $banner_img_top!='banner/bandeau_superieur_.png'}style="background: url('{$img_dir}{$banner_img_top}') no-repeat left top;"{/if}>
|
||||
|
||||
@ -251,7 +251,7 @@ $(document).ready(function() {
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $banner_link_second_active && ($currentsales|count == 1 || $i == 10)}
|
||||
{if isset($banner_link_second_active) && $banner_link_second_active && ($currentsales|count == 1 || $i == 10)}
|
||||
<div class="sale-banner-home-second">
|
||||
<div class="sale-banner-home-second">
|
||||
<div class="banner-home-second snotmobile" {if isset($banner_img_second) && $banner_img_second!='banner/bandeau_second_.png'}style="background: url('{$img_dir}{$banner_img_second}') no-repeat left top;"{/if}>
|
||||
@ -268,7 +268,7 @@ $(document).ready(function() {
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $banner_link_third_active && ($currentsales|count == 1 || $i == 30)}
|
||||
{if isset($banner_link_third_active) && $banner_link_third_active && ($currentsales|count == 1 || $i == 30)}
|
||||
<div class="sale-banner-home-third">
|
||||
<div class="sale-banner-home-third">
|
||||
<div class="banner-home-third snotmobile" {if isset($banner_img_third) && $banner_img_third!='banner/bandeau_third_.png'}style="background: url('{$img_dir}{$banner_img_third}') no-repeat left top;"{/if}>
|
||||
@ -285,7 +285,7 @@ $(document).ready(function() {
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $banner_concour_link_active && ($currentsales|count == 1 || $i == 8)}
|
||||
{if isset($banner_concour_link_active) && $banner_concour_link_active && ($currentsales|count == 1 || $i == 8)}
|
||||
<div class="sale-concours-banner">
|
||||
<div class="banner-home-concours">
|
||||
{if isset($banner_concour_link) && $banner_concour_link!=''}
|
||||
@ -709,7 +709,7 @@ $(document).ready(function() {
|
||||
{/literal}
|
||||
|
||||
{/if*}
|
||||
{if $cookie->logged && $sale_customer_uniqid}
|
||||
{if $cookie->logged && isset($sale_customer_uniqid) && $sale_customer_uniqid}
|
||||
{literal}
|
||||
<!-- Tag inscription Public Idees -->
|
||||
<script type="text/javascript">
|
||||
|
Loading…
Reference in New Issue
Block a user