diff --git a/e107_core/shortcodes/batch/news_shortcodes.php b/e107_core/shortcodes/batch/news_shortcodes.php index 2df4cedd9..d2ba157d0 100644 --- a/e107_core/shortcodes/batch/news_shortcodes.php +++ b/e107_core/shortcodes/batch/news_shortcodes.php @@ -214,6 +214,28 @@ class news_shortcodes extends e_shortcode } + function sc_news_category_icon($parm=null) + { + return $this->sc_newscaticon($parm); + } + + + function sc_news_category_name($parm=null) + { + return $this->sc_newscategory($parm); + } + + + function sc_news_category_description($parm=null) + { + if(!empty($this->news_item['category_meta_description'])) + { + return e107::getParser()->toHTML($this->news_item['category_meta_description'], false ,'BODY'); + } + } + + + function sc_newscategory($parm=null) { $category_name = e107::getParser()->toHTML($this->news_item['category_name'], FALSE ,'defs'); @@ -828,7 +850,8 @@ class news_shortcodes extends e_shortcode return e107::getForm()->renderRelated($array, $this->news_item['news_meta_keywords'], array('news'=>$this->news_item['news_id'])); } - + + function sc_newsmetadiz() { return e107::getParser()->toHtml($this->news_item['news_meta_description'],true);