1
0
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:
Cameron
2021-01-23 14:20:51 -08:00
parent 85ae08e8ff
commit 17a9aa2822
6 changed files with 138 additions and 4 deletions

View File

@@ -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') : '';
}