getModel(); $this->eid = (int) $model->getState('eid', '700', 'int'); if (empty($this->eid)) { $this->eid = 700; } $this->token = JFactory::getSession()->getFormToken(); $this->extension_options = $model->getComponentOptions(); JToolBarHelper::title(JText::sprintf('COM_POSTINSTALL_MESSAGES_TITLE', $model->getExtensionName($this->eid))); return parent::onBrowse($tpl); } /** * Executes on display of the page * * @param string $tpl Subtemplate to use * * @return boolean Return true to allow rendering of the page * * @since 3.8.7 */ protected function onDisplay($tpl = null) { $return = parent::onDisplay($tpl); if (!empty($this->items)) { JToolbarHelper::custom('hideAll', 'unpublish.png', 'unpublish_f2.png', 'COM_POSTINSTALL_HIDE_ALL_MESSAGES', false); } return $return; } }