%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 49.231.201.246 / Your IP : 216.73.216.149 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/old/administrator/components/com_kunena/views/plugins/ |
Upload File : |
<?php /** * @package Joomla.Administrator * @subpackage com_plugins * * @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; /** * View class for a list of plugins. * * @package Joomla.Administrator * @subpackage com_plugins * @since 1.5 */ class KunenaAdminViewPlugins extends KunenaView { /** * Display the view */ function displayDefault($tpl = null) { $this->setToolbar(); $this->items = $this->get('Items'); $this->state = $this->get('state'); $this->pagination = $this->get('Pagination'); $this->sortFields = $this->getSortFields(); $this->sortDirectionFields = $this->getSortDirectionFields(); $this->filterSearch = $this->escape($this->state->get('filter.search')); $this->filterEnabled = $this->escape($this->state->get('filter.enabled')); $this->filterName = $this->escape($this->state->get('filter.name')); $this->filterElement = $this->escape($this->state->get('filter.element')); $this->filterAccess = $this->escape($this->state->get('filter.access')); $this->filterActive = $this->escape($this->state->get('filter.active')); $this->listOrdering = $this->escape($this->state->get('list.ordering')); $this->listDirection = $this->escape($this->state->get('list.direction')); return $this->display($tpl); } /** * Add the page title and toolbar. * * @since 1.6 */ protected function setToolbar() { JToolbarHelper::title(JText::_('COM_KUNENA').': '.JText::_('COM_KUNENA_PLUGIN_MANAGER'), 'pluginsmanager'); JToolbarHelper::spacer(); JToolbarHelper::editList('plugin.edit'); JToolbarHelper::divider(); JToolbarHelper::publish('publish', 'JTOOLBAR_ENABLE', true); JToolbarHelper::unpublish('unpublish', 'JTOOLBAR_DISABLE', true); JToolbarHelper::divider(); JToolbarHelper::checkin('checkin'); JToolbarHelper::spacer(); } /** * Returns an array of standard published state filter options. * * @return string The HTML code for the select tag */ public function publishedOptions() { // Build the active state filter options. $options = array(); $options[] = JHtml::_('select.option', '1', JText::_('COM_KUNENA_FIELD_LABEL_ON')); $options[] = JHtml::_('select.option', '0', JText::_('COM_KUNENA_FIELD_LABEL_OFF')); return $options; } /** * Returns an array of fields the table can be sorted by * * @return array Array containing the field name to sort by as the key and display text as value * * @since 3.0 */ protected function getSortFields() { $sortFields = array(); $sortFields[] = JHtml::_('select.option', 'enable', JText::_('JSTATUS')); $sortFields[] = JHtml::_('select.option', 'name', JText::_('COM_PLUGINS_NAME_HEADING')); $sortFields[] = JHtml::_('select.option', 'element', JText::_('COM_PLUGINS_ELEMENT_HEADING')); $sortFields[] = JHtml::_('select.option', 'access', JText::_('JGRID_HEADING_ACCESS')); $sortFields[] = JHtml::_('select.option', 'id', JText::_('JGRID_HEADING_ID')); return $sortFields; } protected function getSortDirectionFields() { $sortDirection = array(); // $sortDirection[] = JHtml::_('select.option', 'asc', JText::_('JGLOBAL_ORDER_ASCENDING')); // $sortDirection[] = JHtml::_('select.option', 'desc', JText::_('JGLOBAL_ORDER_DESCENDING')); // TODO: remove it when J2.5 support is dropped $sortDirection[] = JHtml::_('select.option', 'asc', JText::_('COM_KUNENA_FIELD_LABEL_ASCENDING')); $sortDirection[] = JHtml::_('select.option', 'desc', JText::_('COM_KUNENA_FIELD_LABEL_DESCENDING')); return $sortDirection; } }