1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-06 06:38:00 +02:00

Experimental schema template

This commit is contained in:
Cameron
2022-02-04 12:04:21 -08:00
parent c3d65075d0
commit c17b985441
5 changed files with 114 additions and 5 deletions

View File

@@ -107,6 +107,7 @@ class e_parse_shortcode
protected $editableCodes = array(); // Array of editable shortcode data.
protected $editableActive = false;
protected $nowrap = false;
private $mode = 'default';
function __construct()
{
@@ -1446,13 +1447,21 @@ class e_parse_shortcode
}
if($this->mode === 'schema' && !empty($ret))
{
$ret = e107::getParser()->stripAttributes($ret, ['href']);
$ret = str_replace('"','',$ret);
}
return isset($ret) ? $ret: '';
}
public function setMode($mode)
{
$this->mode = (string) $mode;
}
/**
* Add Wrapper to Shortcode (when detected)