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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user