1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-18 04:12:00 +02:00

Fixed: Latest News Menu was not using {SETIMAGE} value.

This commit is contained in:
Cameron
2016-02-06 18:33:35 -08:00
parent 5daaaedf99
commit 0e2c7ad2e7
2 changed files with 23 additions and 5 deletions

View File

@@ -51,9 +51,16 @@ class news_shortcodes extends e_shortcode
}
}
function sc_newstitle()
function sc_newstitle($parm)
{
return e107::getParser()->toHTML($this->news_item['news_title'], TRUE, 'TITLE');
$text = e107::getParser()->toHTML($this->news_item['news_title'], TRUE, 'TITLE');
if(!empty($parm['attribute']))
{
$text = e107::getParser()->toAttribute($text);
}
return $text;
}
function sc_newsurltitle()