public function render() { $this->attribs->set(array('class' => 'toolbar modal', 'href' => JRoute::_($this->_options['link']), 'rel' => '{handler:\'' . $this->_options['handler'] . '\', size: {x: ' . $this->_options['x'] . ', y: ' . $this->_options['y'] . '},ajaxOptions:' . $this->_options['ajaxOptions'] . '}')); if (isset($this->_options['title'])) { $this->attribs->title = $this->_options['title']; } return parent::render(); }
public function render() { $option = KRequest::get('get.option', 'cmd'); $view = KInflector::singularize(KRequest::get('get.view', 'cmd')); $link = 'index.php?option=' . $option . '&view=' . $view; $this->attribs->set(array('class' => 'toolbar', 'href' => $this->_parent->createRoute($link))); return parent::render(); }