techaspects Posted June 30, 2014 Share Posted June 30, 2014 For some reason, the Manufacturers - list.tpl is showing the HTML Tags - any idea on how to remove them? Link to comment Share on other sites More sharing options...
vekia Posted June 30, 2014 Share Posted June 30, 2014 hello please show contents of tpl file that displays contents of this variable. Link to comment Share on other sites More sharing options...
techaspects Posted July 1, 2014 Author Share Posted July 1, 2014 {* * 2007-2013 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2013 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} {capture name=path}{l s='Manufacturers:'}{/capture} {include file="$tpl_dir./breadcrumb.tpl"} <h1><span>{l s='Manufacturers'}</span></h1> {if isset($errors) AND $errors} {include file="$tpl_dir./errors.tpl"} {else} <p class="clearfix title_manuf">{strip} <span class="title_shop"> {if $nbManufacturers == 0}{l s='There are no manufacturers.'} {else} {if $nbManufacturers == 1} {l s='There is %d manufacturer.' sprintf=$nbManufacturers} {else} {l s='There are %d manufacturers.' sprintf=$nbManufacturers} {/if} {/if} </span>{/strip} </p> {if $nbManufacturers > 0} <ul id="manufacturers_list" class="mnf_sup_list clearfix"> {foreach from=$manufacturers item=manufacturer name=manufacturers} <li class="shop_box clearfix {if $smarty.foreach.manufacturers.first}first_item{elseif $smarty.foreach.manufacturers.last}last_item{else}item{/if}"> <!-- logo --> <div class="logo"> {if $manufacturer.nb_products > 0}<a href="{$link->getmanufacturerLink($manufacturer.id_manufacturer, $manufacturer.link_rewrite)|escape:'htmlall':'UTF-8'}" title="{$manufacturer.name|escape:'htmlall':'UTF-8'}" class="lnk_img">{/if} <img src="{$img_manu_dir}{$manufacturer.image|escape:'htmlall':'UTF-8'}.jpg" alt="" /> {if $manufacturer.nb_products > 0}</a>{/if} </div> <!-- name --> <div class="left_side"> <h3> {if $manufacturer.nb_products > 0}<a class="product_link" href="{$link->getmanufacturerLink($manufacturer.id_manufacturer, $manufacturer.link_rewrite)|escape:'htmlall':'UTF-8'}">{/if} {$manufacturer.name|truncate:60:'...'|escape:'htmlall':'UTF-8'} {if $manufacturer.nb_products > 0}</a>{/if} </h3> <div> {if $manufacturer.nb_products > 0}<p class="product_desc">{/if} <span>{$manufacturer.description|truncate:150:'...'|escape:'htmlall':'UTF-8'}</span> <em class="des-small"> {$manufacturer.description|truncate:80:'...'|escape:'htmlall':'UTF-8'}</em> {if $manufacturer.nb_products > 0}</p>{/if} </div> </div> <div class="right_side"> <p> {if $manufacturer.nb_products > 0}<a class="title_shop" href="{$link->getmanufacturerLink($manufacturer.id_manufacturer, $manufacturer.link_rewrite)|escape:'htmlall':'UTF-8'}">{/if} <span>{if $manufacturer.nb_products == 1}{l s='%d product' sprintf=$manufacturer.nb_products|intval}{else}{l s='%d products' sprintf=$manufacturer.nb_products|intval}{/if}</span> {if $manufacturer.nb_products > 0}</a>{/if} </p> {if $manufacturer.nb_products > 0} <a class="button" href="{$link->getmanufacturerLink($manufacturer.id_manufacturer, $manufacturer.link_rewrite)|escape:'htmlall':'UTF-8'}">{l s='view products'}</a> {/if} </div> </li> {/foreach} </ul> {include file="$tpl_dir./pagination.tpl"} {/if} {/if} Link to comment Share on other sites More sharing options...
vekia Posted July 1, 2014 Share Posted July 1, 2014 it's probably because truncate and escape function add there strip tags too {$manufacturer.description|strip_tags|truncate:80:'...'|escape:'htmlall':'UTF-8'} Link to comment Share on other sites More sharing options...
techaspects Posted July 1, 2014 Author Share Posted July 1, 2014 That worked well and thank you. Ask you one more question please. My page numbers are greyed out as well, Any ideas?? Link to comment Share on other sites More sharing options...
Recommended Posts