| Server IP : 85.158.181.41 / Your IP : 216.73.217.12 Web Server : Apache System : Linux cloud9-vm129 6.1.178+1-ph #ph SMP PREEMPT_DYNAMIC Wed Jul 29 09:00:54 UTC 2026 x86_64 User : moncbefd ( 1024) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/moncbefd/www.moneta.at/callback/sofort/library/helper/elements/ |
Upload File : |
<?php
class SofortHtmlTag extends SofortTag {
private static $selfClosingTags = array('base', 'meta', 'link', 'hr', 'br', 'param', 'img', 'area', 'input', 'col');
public function __construct($tagname, array $attributes = array(), $children = array()) {
$tagname = strtolower($tagname);
$loweredAttributes = array();
foreach ($attributes as $key => $value) {
$loweredAttributes[strtolower($key)] = $value;
}
parent::__construct($tagname, $loweredAttributes, $children);
}
protected function _render($output, $attributes) {
return in_array($this->tagname, self::$selfClosingTags) ? "<{$this->tagname}{$attributes} />" : "<{$this->tagname}{$attributes}>{$output}</{$this->tagname}>";
}
}
?>