mirror of
https://github.com/e107inc/e107.git
synced 2025-07-28 18:30:53 +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)
|
function sc_newscategory($parm=null)
|
||||||
{
|
{
|
||||||
$category_name = e107::getParser()->toHTML($this->news_item['category_name'], FALSE ,'defs');
|
$category_name = e107::getParser()->toHTML($this->news_item['category_name'], FALSE ,'defs');
|
||||||
@@ -829,6 +851,7 @@ class news_shortcodes extends e_shortcode
|
|||||||
return e107::getForm()->renderRelated($array, $this->news_item['news_meta_keywords'], array('news'=>$this->news_item['news_id']));
|
return e107::getForm()->renderRelated($array, $this->news_item['news_meta_keywords'], array('news'=>$this->news_item['news_id']));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function sc_newsmetadiz()
|
function sc_newsmetadiz()
|
||||||
{
|
{
|
||||||
return e107::getParser()->toHtml($this->news_item['news_meta_description'],true);
|
return e107::getParser()->toHtml($this->news_item['news_meta_description'],true);
|
||||||
|
Reference in New Issue
Block a user