Slider front image

This commit is contained in:
Michael RICOIS 2017-08-28 11:25:04 +02:00
parent ad77e3ce49
commit b53ac563ad

View File

@ -4,7 +4,7 @@
<div id="slider_home" class="clearfix snotmobile">
<div class="clearfix owl">
{foreach from=$slides item=slide key=key name=slider}
<div class="col-sm-12 slide-home item" style="height:300px;background: url('{$img_ps_dir}slider/advslider_{$slide.id_slide}.jpg') no-repeat left top; background-size: 100% auto;">
<div class="col-sm-12 slide-home item" style="height:300px;background: url('{$img_ps_dir}tmp/advslider_{$slide.id_slide}.jpg') no-repeat left top; background-size: 100% auto;">
{if isset($slide.url) && $slide.url}
<a href="{$slide.url}" style="width:100%;height: 100%;display: block;" {if isset($slide.title) && $slide.title}title="{$slide.title}"{/if}></a>
{/if}
@ -16,7 +16,7 @@
<div id="slider_home_mobile" class="clearfix smobile">
<div class="clearfix owl">
{foreach from=$slides item=slide key=key name=slider}
<div class="col-sm-12 slide-home item" style="height:200px;background: url('{$img_ps_dir}slider/advslider_mini_{$slide.id_slide}_1.jpg') no-repeat center top; background-size: contain;">
<div class="col-sm-12 slide-home item" style="height:200px;background: url('{$img_ps_dir}tmp/advslider_mini_{$slide.id_slide}_1.jpg') no-repeat center top; background-size: contain;">
{if isset($slide.url) && $slide.url}
<a {if !$cookie->logged}onclick="window.location.href='{$link->getPageLink('authentication', true)|escape:'html':'UTF-8'}';"{else}href="{$slide.url}"{/if} style="width:100%;height: 100%;display: block;" {if isset($slide.title) && $slide.title}title="{$slide.title}"{/if}></a>
{/if}