File manager - Edit - /home/verseaumee/ptitsanes/administrator/components/com_solidres/views/origin/view.html.php
Back
<?php /** ------------------------------------------------------------------------ SOLIDRES - Accommodation booking extension for Joomla ------------------------------------------------------------------------ * @author Solidres Team <contact@solidres.com> * @website https://www.solidres.com * @copyright Copyright (C) 2013 - 2019 Solidres. All Rights Reserved. * @license GNU General Public License version 3, or later ------------------------------------------------------------------------ */ defined('_JEXEC') or die; use Joomla\CMS\MVC\View\HtmlView; use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Language\Text; use Joomla\CMS\Toolbar\ToolbarHelper; use Joomla\CMS\Factory as CMSFactory; class SolidresViewOrigin extends HtmlView { protected $state; protected $form; public function display($tpl = null) { $this->state = $this->get('State'); $this->form = $this->get('Form'); if ($errors = $this->get('Errors')) { throw new Exception(implode(PHP_EOL, $errors), 500); } HTMLHelper::_('stylesheet', 'com_solidres/assets/main.min.css', ['relative' => true, 'version' => SRVersion::getHashVersion()]); $this->addToolbar(); parent::display($tpl); } protected function addToolbar() { CMSFactory::getApplication()->input->set('hidemainmenu', true); $id = $this->form->getValue('id'); $scope = $this->form->getValue('scope'); $isNew = ($id == 0); $user = CMSFactory::getUser(); if ($isNew) { ToolbarHelper::title(Text::_('SR_ADD_NEW_ORIGIN_FOR_' . ($scope ? 'EXPERIENCE' : 'PROPERTY'))); } else { ToolbarHelper::title(Text::sprintf('SR_EDIT_ORIGIN_FOR_' . ($scope ? 'EXPERIENCE' : 'PROPERTY'), $this->form->getValue('name'))); } if ($user->authorise('core.edit', 'com_solidres')) { ToolbarHelper::apply('origin.apply'); ToolbarHelper::save('origin.save'); ToolbarHelper::save2new('origin.save2new'); } ToolbarHelper::cancel('origin.cancel'); } }
| ver. 1.4 |
Github
|
.
| PHP 8.5.7 | Generation time: 0 |
proxy
|
phpinfo
|
Settings