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

{NEWS_CATEGORY_ID} shortcode added.

This commit is contained in:
Cameron
2017-03-13 11:57:44 -07:00
parent 4ba577e37d
commit afd74824b3

View File

@@ -239,6 +239,13 @@ class news_shortcodes extends e_shortcode
}
function sc_news_category_id($parm=null)
{
return (int) $this->news_item['category_id'];
}
function sc_news_category_icon($parm=null)
{
return $this->sc_newscaticon($parm);
@@ -274,6 +281,8 @@ class news_shortcodes extends e_shortcode
}
//New v2.x Aliases
public function sc_news_id($parm=null)