/** * (non-PHPdoc) * @see AbstractBbcodeNode::toHtml() */ public function toHtml() { if ($this->isEmpty()) { return ''; } return '<div style="text-align:left;">' . parent::childrenHtml() . '</div>'; }
/** * (non-PHPdoc) * @see AbstractBbcodeNode::toHtml() */ public function toHtml() { if ($this->isEmpty()) { return ''; } return '<strong>' . parent::childrenHtml() . '</strong>'; }
/** * (non-PHPdoc) * @see AbstractBbcodeNode::toHtml() */ public function toHtml() { if ($this->isEmpty()) { return ''; } if ($this->_author === null) { return '<blockquote>' . parent::childrenHtml() . '</blockquote>'; } return '<blockquote><cite>' . $this->e($this->_author) . '</cite>' . parent::childrenHtml() . '</blockquote>'; }
/** * (non-PHPdoc) * @see AbstractBbcodeNode::toHtml() */ public function toHtml() { if ($this->isEmpty()) { return ''; } if ($this->_color === null) { return parent::childrenHtml(); } return '<span style="color:' . $this->e($this->_color) . ';">' . parent::childrenHtml() . '</span>'; }
/** * Gets HTML5 compliant string from this subtree. * * @return string */ public function toHtml() { if ($this->isEmpty()) { return ""; } if (count(parent::getChildren()) === 0) { return '<a href="' . $this->e($this->_target_url) . '">' . $this->e($this->_target_url) . '</a>'; } else { return '<a href="' . $this->e($this->_target_url) . '">' . parent::childrenHtml() . '</a>'; } }
/** * (non-PHPdoc) * @see AbstractBbcodeNode::toHtml() */ public function toHtml() { if ($this->isEmpty()) { return ''; } $str = '<div class="spoiler"><div onclick="var s = document.getElementById(\'' . $this->getRandomHash() . '\').style; if(s.display == \'none\') { s.display = \'block\'; } else { s.display = \'none\'; }">'; if ($this->_title === null) { $str .= 'Spoiler:'; } else { $str .= $this->e($this->_title); } $str .= '</div><div hidden id="' . $this->getRandomHash() . '">' . parent::childrenHtml() . '</div></div>'; return $str; }