/** * Add the page title and toolbar. */ protected function addToolbar() { AKToolBarHelper::title(JText::_('COM_REMOTEIMAGE_TITLE_MANAGER'), 'article-add.png'); $canDo = RMHelper::getActions($this->option); //parent::addToolbar(); if ($canDo->get('core.admin')) { AKToolBarHelper::preferences($this->option); } }
} else { if ($this->modal) { $doc->addStyleSheet('components/com_remoteimage/includes/bootstrap/css/bootstrap.min.css'); } // jQuery $doc->addScript('components/com_remoteimage/includes/js/jquery/jquery.js'); $doc->addScriptDeclaration('jQuery.noConflict();'); } // elFinder includes $doc->addStylesheet('components/com_remoteimage/includes/js/jquery-ui/css/smoothness/jquery-ui-1.8.24.custom.css'); $doc->addStylesheet('components/com_remoteimage/includes/js/elfinder/css/elfinder.min.css'); $doc->addStylesheet('components/com_remoteimage/includes/js/elfinder/css/theme.css'); $doc->addscript('components/com_remoteimage/includes/js/jquery-ui/js/jquery-ui-1.8.24.custom.min.js'); $doc->addscript('components/com_remoteimage/includes/js/elfinder/js/elfinder.min.js'); JHtml::script(JURI::base() . 'components/com_remoteimage/includes/js/elfinder/js/i18n/elfinder.' . $lang_code . '.js'); RMHelper::_('include.core'); // For Site // ================================================================================ if ($app->isSite()) { RemoteimageHelper::_('include.isis'); } // PARAMS $params = JComponentHelper::getParams('com_remoteimage'); $safemode = $params->get('Safemode', true); $onlyimage = $params->get('Onlyimage', false); $tabs = $this->modal ? true : false; $height = $this->modal ? JRequest::getVar('height', 380) : 520; // System Info $upload_max = ini_get('upload_max_filesize'); $upload_num = ini_get('max_file_uploads'); $sysinfo = JText::_('COM_REMOTEIMAGE_UPLOAD_MAX') . ' ' . $upload_max;