mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 13:47:31 +02:00
Added {CPAGEKEYWORDS} shortcode.
This commit is contained in:
@@ -759,6 +759,17 @@ class cpage_shortcodes extends e_shortcode
|
|||||||
|
|
||||||
return e107::getForm()->renderRelated($array, $this->var['page_metakeys'], array('page'=>$this->var['page_id']), $template['related']);
|
return e107::getForm()->renderRelated($array, $this->var['page_metakeys'], array('page'=>$this->var['page_id']), $template['related']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function sc_cpagekeywords($parm=null)
|
||||||
|
{
|
||||||
|
if(empty($this->var['page_metakeys']))
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
$text = e107::getParser()->toHTML($this->var['page_metakeys'], false, 'SUMMARY');
|
||||||
|
return str_replace(',', ', ', $text);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
function sc_cpageedit($parm=array())
|
function sc_cpageedit($parm=array())
|
||||||
|
Reference in New Issue
Block a user