// Add truncate category description preserving html tags

This commit is contained in:
Jerome Nadaud
2013-11-15 11:03:06 +01:00
parent 97be96ede8
commit 50eee795ed
3 changed files with 137 additions and 1 deletions
+1 -1
View File
@@ -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}