_addPath('template', $this->_basePath.DS.'views'.DS.'default'.DS.'tmpl'); } function display($tpl=null) { $document =& JFactory::getDocument(); $livesite = JURI::base(); $document->addStyleSheet($livesite.'components/com_joomfish/assets/css/joomfish.css'); // Get data from the model $state = &$this->get('State'); // Are there messages to display ? $showMessage = false; $message = $this->get('message'); if ( is_object($state) ) { $message1 = $state->get('message') == null ? $message : $state->get('message'); $message2 = $state->get('extension.message'); $showMessage = ( $message1 || $message2 ); } $this->assign('showMessage', $showMessage); $this->assignRef('state', $state); JHTML::_('behavior.tooltip'); parent::display($tpl); } /** * Routine to hide submenu suing CSS since there are no paramaters for doing so without hiding the main menu * */ function _hideSubmenu(){ JHTML::stylesheet( 'hidesubmenu.css', 'administrator/components/com_joomfish/assets/css/' ); } /** * This method creates a standard cpanel button * * @param string $link * @param string $image * @param string $text * @param string $path * @param string $target * @param string $onclick * @access protected */ function _quickiconButton( $link, $image, $text, $path=null, $target='', $onclick='' ) { if( $target != '' ) { $target = 'target="' .$target. '"'; } if( $onclick != '' ) { $onclick = 'onclick="' .$onclick. '"'; } if( $path === null || $path === '' ) { $path = 'components/com_joomfish/assets/images/'; } ?>
>
'; } else { $output .= '>'; } $output .= JText::_( $label ).''; return $output; } } ?>