From 04f61dae08ed9080f1cb64da561efdabdab60b16 Mon Sep 17 00:00:00 2001 From: Cameron Date: Fri, 2 Oct 2015 16:23:01 -0700 Subject: [PATCH] {NEWS_CHAPTER_SEF} added to shortcodes. May be used to set category-specific CSS identifier in template. --- 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 d2ba157d0..8be8f88f8 100644 --- a/e107_core/shortcodes/batch/news_shortcodes.php +++ b/e107_core/shortcodes/batch/news_shortcodes.php @@ -226,6 +226,15 @@ class news_shortcodes extends e_shortcode } + function sc_news_category_sef($parm=null) + { + if(!empty($this->news_item['category_sef'])) + { + return strtolower(str_replace(" ","", $this->news_item['category_sef'])); + } + } + + function sc_news_category_description($parm=null) { if(!empty($this->news_item['category_meta_description']))