setName('inscenter'); $this->setValue(PLUGIN_EVENT_TYPESETBUTTONS_CENTER_BUTTON); } /** * @return string */ public function render() { if ($this->isLegacyMode()) { $this->addClass('serendipityPrettyButton'); $this->addClass('input_button'); if ($this->isXhtml11()) { $this->setOnClickEvent("wrapSelection(document.forms['serendipityEntry']['" . $this->getTextarea() . "'],'
','
')"); } else { $this->setOnClickEvent("wrapSelection(document.forms['serendipityEntry']['" . $this->getTextarea() . "'],'
','
')"); } } else { $this->addClass('wrap_selection'); $this->addClass('lang-html'); $this->setOpenTag('p style=\'text-align: center;\''); $this->setCloseTag('p'); } return parent::render(); } }