mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 20:58:30 +01:00
Issue# 1471 Options for news category without link. Use {NEWS_CATEGORY_NAME} or {NEWS_CATEGORY_NAME: link=1}
This commit is contained in:
parent
4e16efab59
commit
1281c70714
@ -229,6 +229,11 @@ class news_shortcodes extends e_shortcode
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user