Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
srv
/
data
/
trash
/
vhost_www.arlenshop.fr_1556185825
/
htdocs
/
modules
/
cshometab1
/
/srv/data/trash/vhost_www.arlenshop.fr_1556185825/htdocs/modules/cshometab1/cshometab1.tpl
<!-- CS Home Tab module --> {if count($tabs) > 0} <div class="clear"></div> <div class="home_top_tab"> <div id="tabs"> <ul id="ul_cs_tab"> {$i=0} {foreach from=$tabs item=tab name=tabs} {$i=$i+1} <li class="{if ($i>1 && $i<=count($tabs))}mid{/if} refreshCarousel"> <h4 class="title_block"> {*<span><a class="g_bm1_t" href="#tabs-{$smarty.foreach.tabs.iteration}">{$tab->title[(int)$cookie->id_lang]}</a></span>*} <span><a class="g_bm1_t" href="#tabs-{$smarty.foreach.tabs.iteration}">{if ($i==1)}Nouveautés{else}Meilleures ventes{/if}</a></span> </h4> </li> {/foreach} </ul> {foreach from=$tabs item=tab name=tabs} <div class="title_tab_hide_show" style="display:none"> <span>{$tab->title[(int)$cookie->id_lang]}</span> </div> <div class="tabs-carousel" id="tabs-{$smarty.foreach.tabs.iteration}"> <div class="cycleElementsContainer" id="cycle-{$smarty.foreach.tabs.iteration}"> <div id="elements-{$smarty.foreach.tabs.iteration}"> {if $tab->product_list && count($tab->product_list)>0} <div class="list_carousel responsive"> <ul id="carousel{$smarty.foreach.tabs.iteration}" class="product-list"> {$i=0} {foreach from=$tab->product_list item=product name=product_list} {$i=$i+1} <li class="ajax_block_product {if $smarty.foreach.product_list.first}first_item{/if}{if ($i+1)==count($tab->product_list)}last_item{/if}{if ($i+1)%($option->show*2)==0} last_item_of_line{/if} item" style="{if $option->scrollPanel !='true'}width:220px{/if}"> <div class="cs_product_content"> <a href="{$product.link}" title="" class="product_image outside"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'prod_slider')}" alt="{$product.name|escape:html:'UTF-8'}" /> {if $product.specific_prices} {*if $product.specific_prices.reduction>0*} {if isset($product.on_sale) && $product.on_sale && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE} <span class="on_sale">{l s='on sale'}</span> {else} {if $product.new==1} <span class="is_new">{l s='new arrival'}</span> {/if} {/if} {else} {if $product.new==1} <span class="is_new">{l s='new arrival'}</span> {/if} {/if} </a> <div class="name_product"> <h3><a href="{$product.link}" title="">{$product.name|escape:'htmlall':'UTF-8'|truncate:35:'...'}</a></h3> </div> {if $product.ratting>0} <div class="star_content clearfix"> {section name="i" start=0 loop=5 step=1} {if $product.ratting le $smarty.section.i.index} <div class="star"></div> {else} <div class="star star_on"></div> {/if} {/section} </div> {/if} <div class="products_list_price"> {if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)} {if $product.reduction} {if $product.specific_prices} <span class="price-discount" style="text-decoration:none;"> Prix conseillé : {convertPrice price=$product.price_without_reduction}<br> </span> {/if} {/if} <span class="price">{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}</span> {/if} </div> </div> </li> {/foreach} </ul> <div class="cclearfix"></div> <a id="prev{$smarty.foreach.tabs.iteration}" class="bt prev" href="#"><</a> <a id="next{$smarty.foreach.tabs.iteration}" class="bt next" href="#">></a> </div> {/if} </div> </div> </div> {/foreach} </div> <script type="text/javascript"> $(window).load(function() { initCarousel(); cs_resize(); }); $(window).resize(function() { if(!isMobile()) { cs_resize(); } }); function cs_resize(){ if(getWidthBrowser() < 767){ $('#tabs').tabs('destroy'); $('#ul_cs_tab').hide(); $('#tabs div.title_tab_hide_show').show(); } else { $('#tabs').tabs(); $('.tabs-carousel').show(); $('#ul_cs_tab').show(); $('#tabs div.title_tab_hide_show').hide(); } } function initCarousel() { {foreach from=$tabs item=tab name=tabs} $('#carousel{$smarty.foreach.tabs.iteration}').carouFredSel({ responsive: true, width: '100%', height: 'variable', onWindowResize: 'debounce', prev: '#prev{$smarty.foreach.tabs.iteration}', next: '#next{$smarty.foreach.tabs.iteration}', auto: false, swipe: { onTouch : true }, items: { width:172, height: 'auto', visible: { min: 2, max: 6 } }, scroll: { items:3, direction : 'left', // The direction of the transition. duration : 700 // The duration of the transition. } }); {/foreach} } function isMobile() { if(navigator.userAgent.match(/(iPhone)|(iPod)/i)){ return true; } else { return false; } } function isIpad() { if(navigator.userAgent.match(/iPad/i)){ return true; } else { return false; } } </script> </div> {/if} <!-- /CS Home Tab module -->