t = PhocaDownloadUtils::setVars('cp'); $this->r = new PhocaDownloadRenderAdminview(); $i = ' icon-'; $d = 'duotone '; $this->views= array( 'files' => array($this->t['l'] . '_FILES', $d.$i.'archive', '#c1a46d'), 'cats' => array($this->t['l'] . '_CATEGORIES', $d.$i.'folder-open', '#da7400'), 'lics' => array($this->t['l'] . '_LICENSES', $d.$i.'file-check', '#fb1000'), 'stat' => array($this->t['l'] . '_STATISTICS', $d.$i.'chart', '#8c0069'), 'downloads' => array($this->t['l'] . '_DOWNLOADS', $i.'box-remove', '#33af49'), 'uploads' => array($this->t['l'] . '_UPLOADS', $i.'box-add', '#ff9326'), 'rafile' => array($this->t['l'] . '_FILE_RATING', $i.'featured', '#FFC93C'), 'tags' => array($this->t['l'] . '_TAGS', $d.$i.'tag-double', '#CC0033'), //'layouts' => array($this->t['l'] . '_LAYOUT', $d.$i.'modules', '#cd76cc'), 'styles' => array($this->t['l'] . '_STYLES', $i.'styles', '#9900CC'), 'logs' => array($this->t['l'] . '_LOGGING', $d.$i.'logs', '#c0c0c0'), 'info' => array($this->t['l'] . '_INFO', $d.$i.'info-circle', '#3378cc') ); $this->t['version'] = PhocaDownloadUtils::getExtensionVersion(); $this->addToolbar(); parent::display($tpl); } protected function addToolbar() { require_once JPATH_COMPONENT.'/helpers/phocadownloadcp.php'; $canDo = PhocaDownloadCpHelper::getActions($this->t['c']); ToolbarHelper::title( Text::_( $this->t['l'].'_PD_CONTROL_PANEL' ), 'home-2 cpanel' ); // This button is unnecessary but it is displayed because Joomla! design bug $bar = Toolbar::getInstance( 'toolbar' ); $dhtml = ' '.Text::_($this->t['l'].'_CONTROL_PANEL').''; $bar->appendButton('Custom', $dhtml); if ($canDo->get('core.admin')) { ToolbarHelper::preferences('com_phocadownload'); ToolbarHelper::divider(); } ToolbarHelper::help( 'screen.phocadownload', true ); } } ?>