BP: Fixed truncation of extended entry link; now it truncates the article title first, then adds the lang constant for continue reading.

This commit is contained in:
Matthias Mees 2008-08-26 13:40:46 +00:00
parent e1ba40d414
commit 095da62c0e

View File

@ -131,7 +131,8 @@
<div class="entry-content serendipity_entry_body">
{$entry.body}
{if $entry.has_extended and not $is_single_entry and not $entry.is_extended}
<span class="continue_reading"><a href="{$entry.link}#extended" title='{$CONST.VIEW_EXTENDED_ENTRY|@sprintf:$entry.title|truncate:50:" ..."}'>{$CONST.VIEW_EXTENDED_ENTRY|@sprintf:$entry.title|truncate:50:" ..."} &raquo;</a></span>
{assign var="shorttitle" value=$entry.title|@truncate:50:'...'}
<span class="continue_reading"><a href="{$entry.link}#extended" title='{$CONST.VIEW_EXTENDED_ENTRY|@sprintf:$shorttitle}'>{$CONST.VIEW_EXTENDED_ENTRY|@sprintf:$shorttitle} &raquo;</a></span>
{/if}
</div>