コード例 #1
0
ファイル: view.html.php プロジェクト: javigomez/neno
 /**
  * Display the view
  *
  * @param   string $tpl Template name
  *
  * @return void
  *
  * @throws Exception
  */
 public function display($tpl = null)
 {
     $this->langs = NenoHelper::getTargetLanguages(false);
     NenoHelperBackend::addSubmenu('');
     $this->sidebar = JHtmlSidebar::render();
     parent::display($tpl);
 }
コード例 #2
0
ファイル: view.html.php プロジェクト: javigomez/neno
 /**
  * Display the view
  *
  * @param   string $tpl Template
  *
  * @return void
  *
  * @throws Exception This will happen if there are errors during the process to load the data
  *
  * @since 1.0
  */
 public function display($tpl = null)
 {
     $this->state = $this->get('State');
     $this->items = NenoHelper::convertNenoObjectListToJObjectList($this->get('Items'));
     // Check for errors.
     if (count($errors = $this->get('Errors'))) {
         throw new Exception(implode("\n", $errors));
     }
     NenoHelperBackend::addSubmenu('groupselements');
     $this->addToolbar();
     $this->sidebar = JHtmlSidebar::render();
     parent::display($tpl);
 }
コード例 #3
0
ファイル: view.html.php プロジェクト: andresmaeso/neno
 /**
  * Display the view
  *
  * @param   string $tpl Template
  *
  * @return void
  *
  * @throws Exception This will happen if there are errors during the process to load the data
  *
  * @since 1.0
  */
 public function display($tpl = null)
 {
     $this->state = $this->get('State');
     $this->items = $this->get('Items');
     $this->pagination = $this->get('Pagination');
     // Check for errors.
     if (count($errors = $this->get('Errors'))) {
         throw new Exception(implode("\n", $errors));
     }
     NenoHelperBackend::addSubmenu('externaltranslations');
     $this->addToolbar();
     $this->sidebar = JHtmlSidebar::render();
     parent::display($tpl);
 }
コード例 #4
0
ファイル: view.html.php プロジェクト: andresmaeso/neno
 /**
  * Display the view
  *
  * @param   string $tpl Template
  *
  * @return void
  *
  * @throws Exception This will happen if there are errors during the process to load the data
  *
  * @since 1.0
  */
 public function display($tpl = null)
 {
     $this->state = $this->get('State');
     $this->items = $this->get('Items');
     $this->tcNeeded = $this->get('TCNeeded');
     $this->comment = $this->get('Comment');
     $this->needsTc = NenoHelperApi::getTCAvailable() < $this->tcNeeded;
     // Check for errors.
     if (count($errors = $this->get('Errors'))) {
         throw new Exception(implode("\n", $errors));
     }
     NenoHelperBackend::addSubmenu('externaltranslations');
     $this->addToolbar();
     $this->sidebar = JHtmlSidebar::render();
     parent::display($tpl);
 }
コード例 #5
0
ファイル: installation.php プロジェクト: andresmaeso/neno
 /**
  * Load installation step
  *
  * @return void
  */
 public function loadInstallationStep()
 {
     $step = NenoSettings::get('installation_status', 0);
     if (empty($step)) {
         $layout = JLayoutHelper::render('installationgetstarted', null, JPATH_NENO_LAYOUTS);
     } else {
         $layout = JLayoutHelper::render('installationstep' . $step, $this->getDataForStep($step), JPATH_NENO_LAYOUTS);
     }
     $sidebar = '';
     if ($step == 6) {
         NenoHelperBackend::addSubmenu();
         $sidebar = JHtmlSidebar::render();
     }
     echo json_encode(array('installation_step' => $layout, 'jsidebar' => $sidebar, 'step' => $step));
     JFactory::getApplication()->close();
 }
コード例 #6
0
ファイル: view.html.php プロジェクト: andresmaeso/neno
 /**
  * Display the view
  *
  * @param   string $tpl Template
  *
  * @return void
  *
  * @throws Exception This will happen if there are errors during the process to load the data
  *
  * @since 1.0
  */
 public function display($tpl = null)
 {
     $this->state = $this->get('State');
     $this->items = $this->get('Items');
     $this->isLanguageSwitcherPublished = $this->get('IsSwitcherPublished');
     if (!$this->isLanguageSwitcherPublished) {
         $this->positionField = $this->get('PositionField');
     }
     // Check for errors.
     if (count($errors = $this->get('Errors'))) {
         throw new Exception(implode("\n", $errors));
     }
     NenoHelperBackend::addSubmenu('dashboard');
     $toolbar = JToolbar::getInstance();
     $toolbar->addButtonPath(JPATH_NENO . '/button');
     $toolbar->appendButton('TC', NenoHelperApi::getTCAvailable());
     JToolbarHelper::custom('fixMenus', 'refresh', 'refresh', JText::_('COM_NENO_DASHBOARD_FIX_MENU_BUTTON'), false);
     JToolBarHelper::title(JText::_('COM_NENO_DASHBOARD_TITLE'), 'screen');
     $this->sidebar = JHtmlSidebar::render();
     $this->extraSidebar = NenoHelperBackend::getSidebarInfobox('dashboard');
     parent::display($tpl);
 }
コード例 #7
0
ファイル: view.html.php プロジェクト: javigomez/neno
 /**
  * Render view
  *
  * @param   null|string $tpl Template name
  *
  * @return mixed
  */
 public function display($tpl = null)
 {
     NenoHelperBackend::addSubmenu('');
     $this->sidebar = JHtmlSidebar::render();
     return parent::display($tpl);
 }
コード例 #8
0
ファイル: view.html.php プロジェクト: andresmaeso/neno
 /**
  * Display the view
  *
  * @param   string $tpl Template
  *
  * @return void
  *
  * @throws Exception This will happen if there are errors during the process to load the data
  *
  * @since 1.0
  */
 public function display($tpl = null)
 {
     $this->state = $this->get('State');
     $this->items = $this->get('Items');
     $this->filterForm = $this->get('FilterForm');
     $this->activeFilters = $this->get('ActiveFilters');
     $this->defaultAction = self::getDefaultTranslateAction();
     $this->getGroupData();
     $this->getStatuses();
     $this->getTranslationMethods();
     // Check for errors.
     if (count($errors = $this->get('Errors'))) {
         throw new Exception(implode("\n", $errors));
     }
     NenoHelperBackend::addSubmenu('editor');
     $this->addToolbar();
     $this->sidebar = JHtmlSidebar::render();
     parent::display($tpl);
 }