From afd74824b3f13bb5d67101de328fa36cff616603 Mon Sep 17 00:00:00 2001 From: Cameron Date: Mon, 13 Mar 2017 11:57:44 -0700 Subject: [PATCH] {NEWS_CATEGORY_ID} shortcode added. --- e107_core/shortcodes/batch/news_shortcodes.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/e107_core/shortcodes/batch/news_shortcodes.php b/e107_core/shortcodes/batch/news_shortcodes.php index aaebd4dab..df9e0fa6b 100644 --- a/e107_core/shortcodes/batch/news_shortcodes.php +++ b/e107_core/shortcodes/batch/news_shortcodes.php @@ -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)