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:
@@ -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']))
|
||||||
|
Reference in New Issue
Block a user