Jump to content

element themes - how to change a text to a buttom?


Recommended Posts

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

×
×
  • Create New...