2011-06-07, 20:16:35
19th Wrote:How i can add link on full text in [...]?
Change line 105 in plugins/news_manager/inc/site.php:
Code:
if ($excerpt) $content = nm_create_excerpt($content);
to
Code:
if ($excerpt) $content = nm_create_excerpt($content, $url);
and replace the function nm_create_excerpt in plugins/news_manager/inc/functions.php with:
Code:
function nm_create_excerpt($content, $url) {
global $NMEXCERPTLENGTH;
$len = intval($NMEXCERPTLENGTH);
$content = strip_tags($content);
$link = "<a href=\"$url\">[...]</a>";
if (strlen($content) > $len) {
if (function_exists('mb_substr'))
$content = trim(mb_substr($content, 0, $len, 'UTF-8')) . " $link";
else
$content = trim(substr($content, 0, $len)) . " $link";
}
return "<p>$content</p>";
}