| Server IP : 54.36.91.62 / Your IP : 216.73.217.112 Web Server : Apache System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : coopiak ( 151928) PHP Version : 8.3.23 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/c/o/o/coopiak/www/cj79373/administrator/components/com_kunena/views/config/ |
Upload File : |
<?php
/**
* Kunena Component
*
* @package Kunena.Administrator
* @subpackage Views
*
* @copyright Copyright (C) 2008 - 2022 Kunena Team. All rights reserved.
* @license https://www.gnu.org/copyleft/gpl.html GNU/GPL
* @link https://www.kunena.org
**/
defined('_JEXEC') or die();
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;
/**
* About view for Kunena config backend
*
* @since K1.X
*/
class KunenaAdminViewConfig extends KunenaView
{
/**
* @since Kunena
*/
public function displayDefault()
{
$this->lists = $this->get('Configlists');
// Only set the toolbar if not modal
if ($this->getLayout() !== 'modal')
{
$this->setToolBarDefault();
}
$this->display();
}
/**
* @since Kunena
*/
protected function setToolBarDefault()
{
$bar = \Joomla\CMS\Toolbar\Toolbar::getInstance('toolbar');
JToolbarHelper::spacer();
JToolbarHelper::apply();
JToolbarHelper::save('save');
JToolbarHelper::divider();
JToolbarHelper::title(Text::_('COM_KUNENA') . ': ' . Text::_('COM_KUNENA_CONFIGURATION'), 'wrench');
if (version_compare(JVERSION, '4.0', '>'))
{
HTMLHelper::_('bootstrap.renderModal', 'settingModal');
}
else
{
HTMLHelper::_('bootstrap.modal', 'settingModal');
}
$title = Text::_('COM_KUNENA_RESET_CONFIG');
$dhtml = "<button data-toggle=\"modal\" data-target=\"#settingModal\" class=\"btn btn-small\">
<i class=\"icon-checkbox-partial\" title=\"$title\"></i>
$title</button>";
$bar->appendButton('Custom', $dhtml, 'restore');
JToolbarHelper::back('JTOOLBAR_CANCEL', 'index.php?option=com_kunena');
JToolbarHelper::spacer();
$help_url = 'https://docs.kunena.org/en/manual/backend/configuration';
JToolbarHelper::help('COM_KUNENA', false, $help_url);
}
}