[-] FO: Fix retrocompatibility for modules and old themes
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
height:240px
|
||||
}
|
||||
#featured-products_block_center li.last_item_of_line {margin-right:0;}
|
||||
#featured-products_block_center .s_title_block {
|
||||
#featured-products_block_center .s_title_block, #featured-products_block_center h5 {
|
||||
padding-top:5px;
|
||||
height:30px;
|
||||
font-size:12px;
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
<!-- MODULE Home Featured Products -->
|
||||
<div id="featured-products_block_center" class="block products_block clearfix">
|
||||
<p class="title_block">{l s='Featured products' mod='homefeatured'}</p>
|
||||
<h4 class="title_block">{l s='Featured products' mod='homefeatured'}</h4>
|
||||
{if isset($products) AND $products}
|
||||
<div class="block_content">
|
||||
{assign var='liHeight' value=250}
|
||||
@@ -39,7 +39,7 @@
|
||||
{if $totModulo == 0}{assign var='totModulo' value=$nbItemsPerLine}{/if}
|
||||
<li class="ajax_block_product {if $smarty.foreach.homeFeaturedProducts.first}first_item{elseif $smarty.foreach.homeFeaturedProducts.last}last_item{else}item{/if} {if $smarty.foreach.homeFeaturedProducts.iteration%$nbItemsPerLine == 0}last_item_of_line{elseif $smarty.foreach.homeFeaturedProducts.iteration%$nbItemsPerLine == 1} {/if} {if $smarty.foreach.homeFeaturedProducts.iteration > ($smarty.foreach.homeFeaturedProducts.total - $totModulo)}last_line{/if}">
|
||||
<a href="{$product.link}" title="{$product.name|escape:html:'UTF-8'}" class="product_image"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')}" height="{$homeSize.height}" width="{$homeSize.width}" alt="{$product.name|escape:html:'UTF-8'}" />{if isset($product.new) && $product.new == 1}<span class="new">{l s='New' mod='homefeatured'}</span>{/if}</a>
|
||||
<p class="s_title_block"><a href="{$product.link}" title="{$product.name|truncate:50:'...'|escape:'htmlall':'UTF-8'}">{$product.name|truncate:35:'...'|escape:'htmlall':'UTF-8'}</a></p>
|
||||
<h5 class="s_title_block"><a href="{$product.link}" title="{$product.name|truncate:50:'...'|escape:'htmlall':'UTF-8'}">{$product.name|truncate:35:'...'|escape:'htmlall':'UTF-8'}</a></h5>
|
||||
<div class="product_desc"><a href="{$product.link}" title="{l s='More' mod='homefeatured'}">{$product.description_short|strip_tags|truncate:65:'...'}</a></div>
|
||||
<div>
|
||||
<a class="lnk_more" href="{$product.link}" title="{l s='View' mod='homefeatured'}">{l s='View' mod='homefeatured'}</a>
|
||||
|
||||
Reference in New Issue
Block a user