setTitle(JText::_('JOOMFISH_TITLE') . ' :: ' .JText::_('Content elements')); // set page title JToolBarHelper::title( JText::_( 'Content elements' ), 'extension' ); $layout = $this->getLayout(); if (method_exists($this,$layout)){ $this->$layout($tpl); } else { $this->overview($tpl); } parent::display($tpl); } function overview($tpl = null) { // Set toolbar items for the page JToolBarHelper::custom("elements.installer","archive","archive", JText::_( 'INSTALL' ),false); JToolBarHelper::custom("elements.detail","preview","preivew", JText::_( 'DETAIL' ),true); JToolBarHelper::deleteList(JText::_("ARE YOU SURE YOU WANT TO DELETE THIS CE FILE"), "elements.remove"); JToolBarHelper::custom( 'cpanel.show', 'joomfish', 'joomfish', 'CONTROL PANEL' , false ); JToolBarHelper::help( 'screen.elements', true); JSubMenuHelper::addEntry(JText::_('Control Panel'), 'index2.php?option=com_joomfish'); JSubMenuHelper::addEntry(JText::_('Translation'), 'index2.php?option=com_joomfish&task=translate.overview'); JSubMenuHelper::addEntry(JText::_('Orphans'), 'index2.php?option=com_joomfish&task=translate.orphans'); JSubMenuHelper::addEntry(JText::_('Manage Translations'), 'index2.php?option=com_joomfish&task=manage.overview', false); JSubMenuHelper::addEntry(JText::_('Statistics'), 'index2.php?option=com_joomfish&task=statistics.overview', false); JSubMenuHelper::addEntry(JText::_('Language Configuration'), 'index2.php?option=com_joomfish&task=languages.show', false); JSubMenuHelper::addEntry(JText::_('Content elements'), 'index2.php?option=com_joomfish&task=elements.show', true); JSubMenuHelper::addEntry(JText::_('HELP AND HOWTO'), 'index2.php?option=com_joomfish&task=help.show', false); } function edit($tpl = null) { // Set toolbar items for the page JToolBarHelper::back(); JToolBarHelper::custom( 'cpanel.show', 'joomfish', 'joomfish', 'CONTROL PANEL' , false ); JToolBarHelper::help( 'screen.elements', true); // hide the sub menu $this->_hideSubmenu(); } function installer($tpl = null) { // browser title $document =& JFactory::getDocument(); $document->setTitle(JText::_('JOOMFISH_TITLE') . ' :: ' .JText::_('CONTENT ELEMENT INSTALLER')); // set page title JToolBarHelper::title( JText::_('JOOMFISH_TITLE') .' :: '. JText::_( 'CONTENT ELEMENT INSTALLER' ), 'fish' ); // Set toolbar items for the page JToolBarHelper::custom( 'elements.show', 'back', 'back', JText::_( 'Back' ), false ); JToolBarHelper::deleteList(JText::_("ARE YOU SURE YOU WANT TO DELETE THIS CE FILE"), "elements.remove_install"); JToolBarHelper::custom( 'cpanel.show', 'joomfish', 'joomfish', 'CONTROL PANEL' , false ); JToolBarHelper::help( 'screen.elements', true); // hide the sub menu $this->_hideSubmenu(); } }