mirror of
https://github.com/e107inc/e107.git
synced 2025-07-25 17:01:43 +02:00
Added some missing news-category shortcodes and shortcode aliases.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user