protected function postFilter() { parent::postFilter(); if ($this->text !== null) { if (\ManiaLib\Gui\Manialink::$linksEnabled) { $this->xml->setAttribute('text', $this->text); } else { $this->xml->setAttribute('text', \ManiaLib\Utils\Formatting::stripLinks($this->text)); } } if ($this->textid !== null) { if (\ManiaLib\Gui\Manialink::$linksEnabled) { $this->xml->setAttribute('textid', $this->textid); } else { $this->xml->setAttribute('textid', \ManiaLib\Utils\Formatting::stripLinks($this->textid)); } } if ($this->autonewline !== null) { $this->xml->setAttribute('autonewline', $this->autonewline); } if ($this->maxline !== null) { $this->xml->setAttribute('maxline', $this->maxline); } if ($this->focusAreaColor1 !== null) { $this->xml->setAttribute('focusareacolor1', $this->focusAreaColor1); } if ($this->focusAreaColor2 !== null) { $this->xml->setAttribute('focusareacolor2', $this->focusAreaColor2); } }
$r->set('port', $server->rpcPort); ?> <li> <a href="<?php echo htmlentities($r->createLinkArgList('/server', 'host', 'port'), ENT_QUOTES, 'UTF-8'); ?> " data-ajax="false" data-host="<?php echo $server->rpcHost; ?> " data-port="<?php echo $server->rpcPort; ?> " class="server"> <?php echo ManiaLib\Utils\StyleParser::toHtml(\ManiaLib\Utils\Formatting::stripLinks($server->name)) ?: ' '; ?> </a> <?php if ($isAdmin) { ?> <a href="<?php echo htmlentities($r->createLinkArgList('../remove', 'host', 'port'), ENT_QUOTES, 'UTF-8'); ?> " data-icon="minus" data-theme="c" data-ajax="false"></a> <?php } ?> </li> <?php }