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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user