1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-02 12:48:26 +02:00

{NEWS_CHAPTER_SEF} added to shortcodes. May be used to set category-specific CSS identifier in template.

This commit is contained in:
Cameron
2015-10-02 16:23:01 -07:00
parent e86f4c305a
commit 04f61dae08

View File

@@ -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) function sc_news_category_description($parm=null)
{ {
if(!empty($this->news_item['category_meta_description'])) if(!empty($this->news_item['category_meta_description']))