// Add truncate category description preserving html tags
This commit is contained in:
@@ -58,7 +58,7 @@
|
||||
{if $category->description}
|
||||
<div class="cat_desc">
|
||||
{if strlen($category->description) > 120}
|
||||
<div id="category_description_short">{$category->description|truncate:120}</div>
|
||||
<div id="category_description_short">{$description_short}</div>
|
||||
<div id="category_description_full" style="display:none;">{$category->description}</div>
|
||||
<a href="#" onclick="$('#category_description_short').hide(); $('#category_description_full').show(); $(this).hide(); return false;" class="lnk_more">{l s='More'}</a>
|
||||
{else}
|
||||
|
||||
Reference in New Issue
Block a user