| 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/coopiak/amisdesseniors-fr/nimes/components/com_rsfeedback/views/categories/ |
Upload File : |
<?php
/**
* @package RSFeedback!
* @copyright (C) 2010-2018 www.rsjoomla.com
* @license GPL, http://www.gnu.org/licenses/gpl.html
*/
defined( '_JEXEC' ) or die( 'Restricted access' );
use Joomla\CMS\MVC\View\HtmlView;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Uri\Uri;
use Joomla\CMS\Factory;
class RSFeedbackViewCategories extends HtmlView
{
public function display($tpl = null) {
$this->items = $this->get('Items');
$this->state = $this->get('State');
$this->params = $this->state->get('params');
$this->pagination = $this->get('Pagination');
$this->permissions = RSFeedbackHelper::getPermissions();
$this->return_page = base64_encode(Uri::getInstance());
$this->tmpl = Factory::getApplication()->input->get('tmpl', '', 'cmd');
$this->prepareDocument();
parent::display($tpl);
}
protected function prepareDocument() {
$app = Factory::getApplication();
$menus = $app->getMenu();
$title = null;
$cfg = Factory::getConfig();
// Because the application sets a default page title,
// we need to get it from the menu item itself
$menu = $menus->getActive();
if ($menu) {
$this->params->def('page_heading', $this->params->get('page_title', $menu->title));
} else {
$this->params->def('page_heading', Text::_('COM_RSFEEDBACK_CATEGORIES'));
}
$title = $this->params->get('page_title', '');
if (empty($title)) {
$title = $cfg->get('sitename');
} elseif ($cfg->get('sitename_pagetitles', 0) == 1) {
$title = Text::sprintf('JPAGETITLE', $cfg->get('sitename'), $title);
} elseif ($cfg->get('sitename_pagetitles', 0) == 2) {
$title = Text::sprintf('JPAGETITLE', $title, $cfg->get('sitename'));
}
$this->document->setTitle($title);
// Description
if ($this->params->get('menu-meta_description')) {
$this->document->setDescription($this->params->get('menu-meta_description'));
}
// Keywords
if ($this->params->get('menu-meta_keywords')) {
$this->document->setMetadata('keywords', $this->params->get('menu-meta_keywords'));
}
// Robots
if ($this->params->get('robots')) {
$this->document->setMetadata('robots', $this->params->get('robots'));
}
$this->pageclass_sfx = htmlspecialchars($this->params->get('pageclass_sfx',''));
}
}