sidebar = Sidebar::render(); $this->t = PhocaGalleryUtils::setVars('in'); $this->r = new PhocaGalleryRenderAdminview(); $this->t['component_head'] = $this->t['l'].'_PHOCA_Gallery'; $this->t['component_links'] = PhocaGalleryRenderAdmin::getLinks(1); $this->t['version'] = PhocaGalleryRenderInfo::getPhocaVersion(); $this->t['enablethumbcreation'] = $params->get('enable_thumb_creation', 1 ); $this->t['paginationthumbnailcreation']= $params->get('pagination_thumbnail_creation', 0 ); $this->t['cleanthumbnails'] = $params->get('clean_thumbnails', 0 ); $this->t['enablethumbcreationstatus'] = PhocaGalleryRenderAdmin::renderThumbnailCreationStatus((int)$this->t['enablethumbcreation'], 1); //Main Function support // echo '
| '.Text::_('COM_PHOCAGALLERY_FUNCTION') .' '. $value.' | '; //$this->foutput .= ''.JHtml::_('image','media/com_phocagallery/images/administrator/icon-16-true.png', JText::_('COM_PHOCAGALLERY_ENABLED') ).' | '; //$this->foutput .= ''. JHtml::_('image','media/com_phocagallery/images/administrator/icon-16-'.$icon.'.png', JText::_($iconText)).' | '; $this->foutput .= ' | '; } // PICASA $this->foutput .= ' |
| '. Text::_('COM_PHOCAGALLERY_EXTERNAL_IMAGES_SUPPORT').' | ||
| '.Text::_('COM_PHOCAGALLERY_PHP_SETTINGS_PARAM') .' allow_url_fopen ('.Text::_('COM_PHOCAGALLERY_ENABLED_IF_CURL_DISABLED') .') | '; //$this->foutput .= ''.JHtml::_('image','media/com_phocagallery/images/administrator/icon-16-true.png', JText::_('COM_PHOCAGALLERY_ENABLED') ).' | '; //$this->foutput .= ''. JHtml::_('image','media/com_phocagallery/images/administrator/icon-16-'.$icon.'.png', JText::_($iconText)).' | '; $this->foutput .= ' | '; if(function_exists("curl_init")){ $bgStyle = 'class="alert alert-success"'; $icon = 'success'; $iconText = Text::_('COM_PHOCAGALLERY_ENABLED'); } else { $bgStyle = 'class="alert alert-error alert-danger"'; $icon = 'minus-circle'; $iconText = Text::_('COM_PHOCAGALLERY_DISABLED'); } if(function_exists("json_decode")){ $bgStylej = 'class="alert alert-success"'; $iconj = 'success'; $iconTextj = Text::_('COM_PHOCAGALLERY_ENABLED'); } else { $bgStylej = 'class="alert alert-error alert-danger"'; $iconj = 'minus-circle'; $iconTextj = Text::_('COM_PHOCAGALLERY_DISABLED'); } $this->foutput .= ' |
| '.Text::_('COM_PHOCAGALLERY_FUNCTION') .' cURL ('.Text::_('COM_PHOCAGALLERY_ENABLED_IF_FOPEN_DISABLED') .') | '; //$this->foutput .= ''.JHtml::_('image','media/com_phocagallery/images/administrator/icon-16-true.png', JText::_('COM_PHOCAGALLERY_ENABLED') ).' | '; //$this->foutput .= ''. JHtml::_('image','media/com_phocagallery/images/administrator/icon-16-'.$icon.'.png', JText::_($iconText)).' | '; $this->foutput .= ' | '; $this->foutput .= ' |
| '.Text::_('COM_PHOCAGALLERY_FUNCTION') .' json_decode | '; //$this->foutput .= ''.JHtml::_('image','media/com_phocagallery/images/administrator/icon-16-true.png', JText::_('COM_PHOCAGALLERY_ENABLED') ).' | '; //$this->foutput .= ''. JHtml::_('image','media/com_phocagallery/images/administrator/icon-16-'.$iconj.'.png', JText::_($iconTextj)).' | '; $this->foutput .= ' | '; $this->addToolbar(); parent::display($tpl); } protected function addToolBar(){ require_once JPATH_COMPONENT.'/helpers/phocagallerycp.php'; $canDo = PhocaGalleryCpHelper::getActions(NULL); ToolbarHelper::title(Text::_('COM_PHOCAGALLERY_PG_INFO'), 'info'); // This button is unnecessary but it is displayed because Joomla! design bug $bar = Toolbar::getInstance( 'toolbar' ); $dhtml = ' '.Text::_('COM_PHOCAGALLERY_CONTROL_PANEL').''; $bar->appendButton('Custom', $dhtml); if ($canDo->get('core.admin')) { ToolbarHelper::preferences('com_phocagallery'); } ToolbarHelper::help( 'screen.phocagallery', true ); } } ?> |