Replace slider with new slider
This commit is contained in:
parent
59c27258cd
commit
a5c6db66f8
@ -56,38 +56,10 @@ $(document).ready(function() {
|
|||||||
<h3 class="sale-title-type col-xs-12 smobile"><span>{l s='Nos ventes en cours' mod='privatesales'}</span></h3>
|
<h3 class="sale-title-type col-xs-12 smobile"><span>{l s='Nos ventes en cours' mod='privatesales'}</span></h3>
|
||||||
{if $currentsales|count > 0}
|
{if $currentsales|count > 0}
|
||||||
<div class="privatesales-slider">
|
<div class="privatesales-slider">
|
||||||
{*hook h='displaySlider' mod='advslider'*}
|
{hook h='displaySlider' mod='advslider'}
|
||||||
</div>
|
</div>
|
||||||
{assign var=i value=0}
|
{assign var=i value=0}
|
||||||
{foreach $currentsales as $sale}
|
{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}
|
{capture name=img_sale}{$base_dir}{$link_img}{$sale->id}/current/{$sale->id}_{$cookie->id_lang}.jpg{/capture}
|
||||||
{if !$sale->news}
|
{if !$sale->news}
|
||||||
{if strtotime($sale->date_end) < (strtotime(date('Y-m-d H:i:s')) + (3600 * 24 * 2))}
|
{if strtotime($sale->date_end) < (strtotime(date('Y-m-d H:i:s')) + (3600 * 24 * 2))}
|
||||||
|
Loading…
Reference in New Issue
Block a user