vince270 Posted November 6, 2011 Share Posted November 6, 2011 Hi all, I want to change a text "view it" in homefeatured modules to a buttom. Please help, Thanks everyone! /homefeatured.tpl </script> {/literal} <div id="main" class="container"> <div class="image_thumb"> <ul> {foreach from=$products item=product name=homeFeaturedProducts} {assign var='productLink' value=$link->getProductLink($product.id_product, $product.link_rewrite, $product.category)} <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}first_item_of_line{/if} {if $smarty.foreach.homeFeaturedProducts.iteration > ($smarty.foreach.homeFeaturedProducts.total - ($smarty.foreach.homeFeaturedProducts.total % $nbItemsPerLine))}last_line{/if}"> <a href="{$img_prod_dir}{$product.id_image}-large.jpg"><img src="{$img_prod_dir}{$product.id_image}-small.jpg" alt="{$product.legend|escape:htmlall:'UTF-8'}"/></a> <div class="desc"> <div class="bloc"> <h5><a href="{$productLink}" title="{$product.name|escape:htmlall:'UTF-8'|truncate:20}">{$product.name|escape:htmlall:'UTF-8'|truncate:100}</a></h5> <a href="{$product.link}" title="{$product.name|escape:htmlall:'UTF-8'|truncate:20}">{$product.description_short|strip_tags|truncate:60:'...'}</a> <small>{displayWtPrice p=$product.price}</small> <p><a href="{$product.link}" title="{$product.name|escape:htmlall:'UTF-8'|truncate:20}">{l s='view it' mod='homefeatured'}</a></p> </div> </div> </li> {/foreach} </ul> </div> <div class="main_image"> {foreach from=$products item=product name=homeFeaturedProducts} {assign var='productLink' value=$link->getProductLink($product.id_product, $product.link_rewrite, $product.category)} <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}first_item_of_line{/if} {if $smarty.foreach.homeFeaturedProducts.iteration > ($smarty.foreach.homeFeaturedProducts.total - ($smarty.foreach.homeFeaturedProducts.total % $nbItemsPerLine))}last_line{/if}"> <img src="{$img_prod_dir}{$product.id_image}-large.jpg" width="300" height="300" alt="{$product.legend|escape:htmlall:'UTF-8'}"/> <div class="desc"> <div class="bloc"> <h5><a href="{$productLink}" title="{$product.name|escape:htmlall:'UTF-8'|truncate:20}">{$product.name|escape:htmlall:'UTF-8'|truncate:100}</a></h5> <a href="{$product.link}" title="{$product.name|escape:htmlall:'UTF-8'|truncate:20}">{$product.description_short|strip_tags|truncate:60:'...'}</a><small>{displayWtPrice p=$product.price}</small> <p><a href="{$product.link}" title="{$product.name|escape:htmlall:'UTF-8'|truncate:20}">{l s='view it' mod='homefeatured'}</a></p> </div> </div> </li> {/foreach} </div> </div> Link to comment Share on other sites More sharing options...
rakepl Posted November 6, 2011 Share Posted November 6, 2011 Hi, I think you can change it in Tools/Translation in BO ! Link to comment Share on other sites More sharing options...
vince270 Posted November 8, 2011 Author Share Posted November 8, 2011 Hi rakepl, It wasnot working. Thanks. You have a very nice website. What template are you using? Is it free? Thank You! Link to comment Share on other sites More sharing options...
vince270 Posted November 8, 2011 Author Share Posted November 8, 2011 Link to comment Share on other sites More sharing options...
vince270 Posted November 8, 2011 Author Share Posted November 8, 2011 http://grainmagique.free.fr/element/index.php?id_lang=1 check that demo link of element theme Link to comment Share on other sites More sharing options...
Recommended Posts