Ejemplo n.º 1
0
 public function display($tpl = null)
 {
     JHTML::stylesheet('joomfish.css', 'administrator/components/com_joomfish/assets/css/');
     $document = JFactory::getDocument();
     $document->setTitle(JText::_('JOOMFISH_TITLE') . ' :: ' . JText::_('TITLE_Statistics'));
     // Set toolbar items for the page
     JToolBarHelper::title(JText::_('TITLE_Statistics'), 'statistics');
     JToolBarHelper::custom('cpanel.show', 'joomfish', 'joomfish', 'CONTROL PANEL', false);
     JToolBarHelper::help('screen.statistics', 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', true);
     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', false);
     JSubMenuHelper::addEntry(JText::_('HELP AND HOWTO'), 'index2.php?option=com_joomfish&task=help.show', false);
     $this->panelStates = $this->get('PanelStates');
     $this->contentInfo = $this->get('ContentInfo');
     $this->publishedTabs = $this->get('PublishedTabs');
     $this->assignRef('panelStates', $this->panelStates);
     $this->assignRef('contentInfo', $this->contentInfo);
     $this->assignRef('publishedTabs', $this->publishedTabs);
     JHTML::_('behavior.tooltip');
     parent::display($tpl);
 }
Ejemplo n.º 2
0
 /**
  * Control Panel display function
  *
  * @param template $tpl
  */
 public function display($tpl = null)
 {
     $document = JFactory::getDocument();
     $document->setTitle(JText::_('JOOMFISH_TITLE') . ' :: ' . JText::_('HELP_AND_HOWTO'));
     JHTML::stylesheet('jfhelp.css', 'administrator/components/com_joomfish/assets/css/');
     // Set toolbar items for the page
     JToolBarHelper::title(JText::_('HELP_AND_HOWTO'), 'help');
     JToolBarHelper::custom('cpanel.show', 'joomfish', 'joomfish', 'COM_JOOMFISH_CONTROL_PANEL', false);
     JSubMenuHelper::addEntry(JText::_('COM_JOOMFISH_CONTROL_PANEL'), 'index.php?option=com_joomfish');
     JSubMenuHelper::addEntry(JText::_('TRANSLATION'), 'index.php?option=com_joomfish&task=translate.overview');
     if (JOOMFISH_DEVMODE == true) {
         JSubMenuHelper::addEntry(JText::_('ORPHANS'), 'index.php?option=com_joomfish&task=translate.orphans');
     }
     if (JOOMFISH_DEVMODE == true) {
         JSubMenuHelper::addEntry(JText::_('MANAGE_TRANSLATIONS'), 'index.php?option=com_joomfish&task=manage.overview');
     }
     if (JOOMFISH_DEVMODE == true) {
         JSubMenuHelper::addEntry(JText::_('STATISTICS'), 'index.php?option=com_joomfish&task=statistics.overview');
     }
     JSubMenuHelper::addEntry(JText::_('LANGUAGE_CONFIGURATION'), 'index.php?option=com_joomfish&task=languages.show');
     JSubMenuHelper::addEntry(JText::_('CONTENT_ELEMENTS'), 'index.php?option=com_joomfish&task=elements.show');
     JSubMenuHelper::addEntry(JText::_('HELP_AND_HOWTO'), 'index.php?option=com_joomfish&task=help.show', true);
     $layout = $this->getLayout();
     if (method_exists($this, $layout)) {
         $this->{$layout}($tpl);
     }
     $helpov = $this->getHelpPathL('help.overview');
     $this->assignRef('helppath', $helpov);
     parent::display($tpl);
 }
Ejemplo n.º 3
0
 public function display($tpl = null)
 {
     JHTML::stylesheet('joomfish.css', 'administrator/components/com_joomfish/assets/css/');
     $document = JFactory::getDocument();
     $document->setTitle(JText::_('JOOMFISH_TITLE') . ' :: ' . JText::_('TITLE_Statistics'));
     // Set toolbar items for the page
     JToolBarHelper::title(JText::_('TITLE_Statistics'), 'statistics');
     JToolBarHelper::custom('cpanel.show', 'joomfish', 'joomfish', 'COM_JOOMFISH_CONTROL_PANEL', false);
     JToolBarHelper::divider();
     JToolBarHelper::help('screen.statistics', true);
     JSubMenuHelper::addEntry(JText::_('COM_JOOMFISH_CONTROL_PANEL'), 'index.php?option=com_joomfish');
     JSubMenuHelper::addEntry(JText::_('TRANSLATION'), 'index.php?option=com_joomfish&task=translate.overview');
     if (JOOMFISH_DEVMODE == true) {
         JSubMenuHelper::addEntry(JText::_('ORPHANS'), 'index.php?option=com_joomfish&task=translate.orphans');
     }
     if (JOOMFISH_DEVMODE == true) {
         JSubMenuHelper::addEntry(JText::_('MANAGE_TRANSLATIONS'), 'index.php?option=com_joomfish&task=manage.overview', false);
     }
     if (JOOMFISH_DEVMODE == true) {
         JSubMenuHelper::addEntry(JText::_('STATISTICS'), 'index.php?option=com_joomfish&task=statistics.overview', true);
     }
     JSubMenuHelper::addEntry(JText::_('LANGUAGE_CONFIGURATION'), 'index.php?option=com_joomfish&task=languages.show');
     JSubMenuHelper::addEntry(JText::_('CONTENT_ELEMENTS'), 'index.php?option=com_joomfish&task=elements.show');
     JSubMenuHelper::addEntry(JText::_('HELP_AND_HOWTO'), 'index.php?option=com_joomfish&task=help.show');
     $this->panelStates = $this->get('PanelStates');
     $this->contentInfo = $this->get('ContentInfo');
     $this->publishedTabs = $this->get('PublishedTabs');
     $this->assignRef('panelStates', $this->panelStates);
     $this->assignRef('contentInfo', $this->contentInfo);
     $this->assignRef('publishedTabs', $this->publishedTabs);
     JHTML::_('behavior.tooltip');
     parent::display($tpl);
 }
Ejemplo n.º 4
0
 function display($tpl = null)
 {
     $document =& JFactory::getDocument();
     // browser title
     $document->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);
 }
Ejemplo n.º 5
0
 /**
  * Control Panel display function
  *
  * @param template $tpl
  */
 function display($tpl = null)
 {
     $document =& JFactory::getDocument();
     $document->setTitle(JText::_('JOOMFISH_TITLE') . ' :: ' . JText::_('HELP AND HOWTO'));
     // Set toolbar items for the page
     JToolBarHelper::title(JText::_('HELP AND HOWTO'), 'help');
     JToolBarHelper::custom('cpanel.show', 'joomfish', 'joomfish', 'CONTROL PANEL', false);
     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', false);
     //JSubMenuHelper::addEntry(JText::_('HELP AND HOWTO'), 'index2.php?option=com_joomfish&task=help.show', true);
     $layout = $this->getLayout();
     if (method_exists($this, $layout)) {
         $this->{$layout}($tpl);
     }
     parent::display($tpl);
 }
Ejemplo n.º 6
0
 /**
  * Method to initialize the language depended image (flag) browser
  * The browser is initialized with the default root path based on the Joomfish configuration
  * @param $tpl
  */
 public function filebrowser($tpl = null)
 {
     $document = JFactory::getDocument();
     $livesite = JURI::base();
     $document->addStyleSheet($livesite . 'components/com_joomfish/assets/css/joomfish.css');
     $document->addStyleSheet(JURI::root(true) . '/media/media/css/popup-imagelist.css');
     JHtml::_('behavior.modal');
     JHTML::script('com_joomfish/joomfish.mootools.js', true, true);
     $jfManager = JoomFishManager::getInstance();
     $root = $jfManager->getCfg('directory_flags');
     $current = JRequest::getVar('current', '');
     if ($current != '') {
         $root = dirname($current);
     }
     // remove leading / in case it exists
     $root = preg_replace('/^\\/(.*)/', "\$1", $root);
     $flagField = JRequest::getVar('flagField', '');
     $folder = JRequest::getVar('folder', $root, 'default', 'path');
     $type = JRequest::getCmd('type', 'image');
     if (JString::trim($folder) == "") {
         $path = JPATH_SITE . DS . JPath::clean('/');
     } else {
         $path = JPATH_SITE . DS . JPath::clean($folder);
     }
     JPath::check($path);
     $title = JText::_('BROWSE_LANGUAGE_FLAGS');
     $filter = '.jpg|png|gif|xcf|odg|bmp|jpeg';
     if (JFolder::exists($path)) {
         $folderList = JFolder::folders($path);
         $filesList = JFolder::files($path, $filter);
     }
     if (!empty($folder)) {
         $parent = substr($folder, 0, strrpos($folder, '/'));
     } else {
         $parent = '';
     }
     $this->assignRef('folders', $folderList);
     $this->assignRef('files', $filesList);
     $this->assignRef('parent', $parent);
     $this->assignRef('path', $folder);
     $this->assignRef('type', $type);
     $this->assignRef('title', $title);
     $this->assignRef('flagField', $flagField);
     parent::display($tpl);
 }
Ejemplo n.º 7
0
 /**
  * Method displaying the config traslation layout
  */
 function translateConfig($tpl = null)
 {
     $document = JFactory::getDocument();
     // this already includes administrator
     $livesite = JURI::base();
     $document->addStyleSheet($livesite . 'components/com_joomfish/assets/css/joomfish.css');
     $document->setTitle(JText::_('JOOMFISH_TITLE') . ' :: ' . JText::_('Language Title'));
     // hide the sub menu
     JRequest::setVar('hidemainmenu', 1);
     // Set toolbar items for the page
     JToolBarHelper::title(JText::_('Language Title') . ' - ' . JText::_('Translate Configuration'), 'language');
     JToolBarHelper::save('languages.saveTranslateConfig');
     JToolBarHelper::cancel('languages.show');
     JToolBarHelper::help('screen.languages', true);
     parent::display($tpl);
 }
Ejemplo n.º 8
0
 function preview($tpl = null)
 {
     // hide the sub menu
     $this->_hideSubmenu();
     parent::display($tpl);
 }