/** Datei: plugins/templater/library/ARUNOX/Compiler/Templater/Token/Variable.php **/ $name, "alternate" => $alternate ]); } /* ### PRIVATE STATIC FUNCTIONS ################################# # */ /* ### MAGIC FUNCTIONS ########################################## # */ } /** Datei: plugins/templater/library/ARUNOX/Compiler/Templater/Token/Text.php **/ $text, ]); } /* ### PRIVATE STATIC FUNCTIONS ################################# # */ /* ### MAGIC FUNCTIONS ########################################## # */ } /** Datei: plugins/templater/library/ARUNOX/Compiler/Templater/Token/Shortcode.php **/ strtolower( $matches[2] ), "attrs" => Templater::parseAttributes( $matches[3] ), "raw" => $matches[0], "closing" => $matches[1] === "/", "selfclosing" => Templater::isSelfClosingTag( $matches[2] ), ]); } /* ### PRIVATE STATIC FUNCTIONS ################################# # */ /* ### MAGIC FUNCTIONS ########################################## # */ } /** Datei: plugins/templater/library/ARUNOX/Compiler/Templater/Token/HTML.php **/ ]*)>/iA'; protected static array $SELFCLOSING = [ 'area','base','br','col','embed','hr','img','input','link','meta','param','source','track','wbr' ]; protected static array $HTMLTAGS = [ 'a','abbr','address','area','article','aside','audio','b','base','bdi','bdo','blockquote','body','br','button','canvas', 'caption','cite','code','col','colgroup','data','datalist','dd','del','details','dfn','dialog','div','dl','dt','em', 'embed','fieldset','figcaption','figure','footer','form','h1','h2','h3','h4','h5','h6','head','header','hr','html', 'i','iframe','img','input','ins','kbd','label','legend','li','link','main','map','mark','meta','meter','nav','noscript', 'object','ol','optgroup','option','output','p','param','picture','pre','progress','q','rp','rt','ruby','s','samp','script', 'section','select','small','source','span','strong','style','sub','summary','sup','table','tbody','td','template','textarea', 'tfoot','th','thead','time','title','tr','track','u','ul','var','video','wbr' ]; protected static ?string $TYPE = self::TYPE_HTML; protected ?string $name = NULL; protected array $attrs = []; protected array $children = []; protected bool $closing = FALSE; protected bool $selfclosing = FALSE; /* ### PUBLIC STATIC FUNCTIONS ################################## # */ public static function create( array $matches ) : false|Token { if( !in_array( $matches[2], static::$HTMLTAGS ) ) return FALSE; return new self([ "name" => strtolower( $matches[2] ), "attrs" => Templater::parseAttributes( $matches[3] ), "closing" => $matches[1] === "/", "selfclosing" => in_array( strtolower( $matches[2] ), static::$SELFCLOSING ), ]); } /* ### PRIVATE STATIC FUNCTIONS ################################# # */ /* ### MAGIC FUNCTIONS ########################################## # */ }