/** * Retrieves the HTML string. * * @return string */ public function toHtml() { if (empty($this->top->right)) { $style = 'style="cursor:pointer;"'; $onclick = sprintf('onclick="neat.toggle(\'%s\', \'%s\');"', $this->id, $this->overlay->id); $this->top->right = sprintf('<strong %s %s>X</strong>', $style, $onclick); } return $this->overlay . parent::toHtml(); }