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:
parent
e1ba40d414
commit
095da62c0e
@ -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:" ..."} »</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} »</a></span>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user