mirror of
https://github.com/e107inc/e107.git
synced 2025-07-30 19:30:25 +02:00
New e107::isCompatible() method added for checking plugins/themes are compatible with the current version of e107.
New parser method stripBlockTags($html) to remove p, div etc. {CPAGEBODY: strip=blocks} shortcode option added (uses the method above)
This commit is contained in:
@@ -103,9 +103,17 @@ class cpage_shortcodes extends e_shortcode
|
||||
}
|
||||
|
||||
|
||||
function sc_cpagebody($parm='')
|
||||
function sc_cpagebody($parm=null)
|
||||
{
|
||||
$text = $this->var['page_text'];
|
||||
|
||||
|
||||
if(varset($parm['strip']) === 'blocks')
|
||||
{
|
||||
$text = e107::getParser()->stripBlockTags($text);
|
||||
}
|
||||
|
||||
|
||||
return $text ? e107::getParser()->toHTML($text, true, 'BODY') : '';
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user