mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 20:00:37 +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:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user