From cb75ba4aabedb8ae782ba928a750c424d0a2be8b Mon Sep 17 00:00:00 2001 From: Cameron Date: Fri, 24 Jan 2014 03:14:43 -0800 Subject: [PATCH] News-Meta-Description shortcode added. --- e107_core/shortcodes/batch/news_shortcodes.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/e107_core/shortcodes/batch/news_shortcodes.php b/e107_core/shortcodes/batch/news_shortcodes.php index dd0659bc0..0da240016 100644 --- a/e107_core/shortcodes/batch/news_shortcodes.php +++ b/e107_core/shortcodes/batch/news_shortcodes.php @@ -577,6 +577,11 @@ 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); + } } ?>