1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 20:30:39 +02:00

Issue# 1471 Options for news category without link. Use {NEWS_CATEGORY_NAME} or {NEWS_CATEGORY_NAME: link=1}

This commit is contained in:
Cameron
2016-03-29 08:21:28 -07:00
parent 4e16efab59
commit 1281c70714

View File

@@ -229,6 +229,11 @@ class news_shortcodes extends e_shortcode
function sc_news_category_name($parm=null) function sc_news_category_name($parm=null)
{ {
if(empty($parm['link']))
{
return e107::getParser()->toHTML($this->news_item['category_name'], 'TITLE');
}
return $this->sc_newscategory($parm); return $this->sc_newscategory($parm);
} }