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:
@@ -131,7 +131,8 @@
|
|||||||
<div class="entry-content serendipity_entry_body">
|
<div class="entry-content serendipity_entry_body">
|
||||||
{$entry.body}
|
{$entry.body}
|
||||||
{if $entry.has_extended and not $is_single_entry and not $entry.is_extended}
|
{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}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user