Файловый менеджер - Редактировать - /var/www/html/administrator/components/com_kunena/src/View/Smilies/HtmlView.php
Ðазад
<?php /** * Kunena Component * * @package Kunena.Administrator * @subpackage Views * * @copyright Copyright (C) 2008 - 2026 Kunena Team. All rights reserved. * @license https://www.gnu.org/copyleft/gpl.html GNU/GPL * @link https://www.kunena.org **/ namespace Kunena\Forum\Administrator\View\Smilies; \defined('_JEXEC') or die(); use Exception; use Joomla\CMS\Helper\ContentHelper; use Joomla\CMS\Language\Text; use Joomla\CMS\MVC\View\HtmlView as BaseHtmlView; use Joomla\CMS\Toolbar\Toolbar; use Joomla\CMS\Toolbar\ToolbarHelper; use Kunena\Forum\Libraries\Template\KunenaTemplate; /** * About view for Kunena smilies backend * * @since Kunena 1.X */ class HtmlView extends BaseHtmlView { /** * @var mixed * @since version */ protected $pagination; /** * @var mixed * @since version */ protected $state; /** * @param null $tpl tpl * * @return void * * @since Kunena 6.0 * * @throws Exception */ public function display($tpl = null) { $model = $this->getModel(); $this->items = $model->getItems(); $this->state = $model->getState(); $this->pagination = $model->getPagination(); $this->ktemplate = KunenaTemplate::getInstance(); $this->filterForm = $model->getFilterForm(); $this->activeFilters = $model->getActiveFilters(); $this->addToolbar(); return parent::display($tpl); } /** * @return array * * @since Kunena 6.0 */ // protected function getSortFields(): array // { // $sortFields = []; // $sortFields[] = HTMLHelper::_('select.option', 'code', Text::_('COM_KUNENA_EMOTICONS_CODE')); // $sortFields[] = HTMLHelper::_('select.option', 'location', Text::_('COM_KUNENA_EMOTICONS_URL')); // $sortFields[] = HTMLHelper::_('select.option', 'id', Text::_('COM_KUNENA_EMOTICONS_FIELD_LABEL_ID')); // return $sortFields; // } /** * Add the page title and toolbar. * * @return void * * @since Kunena 6.0 */ protected function addToolbar(): void { // Get the toolbar object instance $toolbar = $this->getDocument()->getToolbar(); // Set the title bar text ToolbarHelper::title(Text::_('COM_KUNENA') . ': ' . Text::_('COM_KUNENA_EMOTICON_MANAGER'), 'thumbs-up'); $toolbar->addNew('smilies.add', 'COM_KUNENA_NEW_SMILIE'); ToolbarHelper::editList('smilies.edit'); ToolbarHelper::deleteList('JGLOBAL_CONFIRM_DELETE', 'smilies.remove'); $canDo = ContentHelper::getActions('com_kunena'); if ($canDo->get('core.admin') || $canDo->get('core.options')) { ToolBarHelper::preferences('com_kunena'); } $helpUrl = 'https://docs.kunena.org/en/manual/backend/emoticons/new-emoticon'; ToolbarHelper::help('COM_KUNENA', false, $helpUrl); } }
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка