Delete old slider
This commit is contained in:
parent
ea75b02efa
commit
349b7e7cb7
@ -61,35 +61,6 @@ $(document).ready(function() {
|
||||
{if $currentsales|count > 0}
|
||||
{assign var=i value=0}
|
||||
{foreach $currentsales as $sale}
|
||||
{if isset($slider_active) && $slider_active && ($currentsales|count == 1 || $i == 0)}
|
||||
<div class="row slider-ctn">
|
||||
{*desktop*}
|
||||
<div id="slider_home" class="clearfix snotmobile">
|
||||
<div class="clearfix owl">
|
||||
{foreach from=$slider item=slide key=key name=slider}
|
||||
<div class="col-sm-12 slide-home item " {if isset($slide.img) && $slide.img!='slider/slider_{$key}_.png'}style="height:300px;background: url('{$img_dir}{$slide.img}') no-repeat left top; background-size: 100% auto;"{/if}>
|
||||
{if isset($slide.link) && $slide.link}
|
||||
<a class="" href="{$slide.link}" style="width:100%;height: 100%;display: block;" {if isset($slide.title) && $slide.title}title="{$slide.title}"{/if}></a>
|
||||
{/if}
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
{*mobile*}
|
||||
<div id="slider_home_mobile" class="clearfix smobile">
|
||||
<div class="clearfix owl">
|
||||
{foreach from=$slider item=slide key=key name=slider}
|
||||
<div class="col-sm-12 slide-home item" {if isset($slide.img_mobile) && $slide.img_mobile!='slider/slider_{$key}_.png'}style="height:200px;background: url('{$img_dir}{$slide.img_mobile}') no-repeat center top; background-size: contain;"{/if}>
|
||||
{if isset($slide.link) && $slide.link}
|
||||
<a class="" {if !$cookie->logged}onclick="window.location.href='{$link->getPageLink('authentication', true)|escape:'html':'UTF-8'}';"{else}href="{$slide.link}"{/if} style="width:100%;height: 100%;display: block;" {if isset($slide.title) && $slide.title}title="{$slide.title}"{/if}></a>
|
||||
{/if}
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{capture name=img_sale}{$base_dir}{$link_img}{$sale->id}/current/{$sale->id}_{$cookie->id_lang}.jpg{/capture}
|
||||
{if !$sale->news}
|
||||
{if strtotime($sale->date_end) < (strtotime(date('Y-m-d H:i:s')) + (3600 * 24 * 2))}
|
||||
|
Loading…
Reference in New Issue
Block a user