File manager - Edit - /home/verseaumee/ptitsanes/administrator/components/com_solidres/views/status/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; class SolidresViewStatus extends JViewLegacy { protected $state; protected $form; public function display($tpl = null) { $this->state = $this->get('State'); $this->form = $this->get('Form'); if (count($errors = $this->get('Errors'))) { throw new Exception(implode("\n", $errors), 500); } JHtml::_('stylesheet', 'com_solidres/assets/main.min.css', false, true); $this->addToolbar(); parent::display($tpl); } protected function addToolbar() { JFactory::getApplication()->input->set('hidemainmenu', true); $id = $this->form->getValue('id'); $scope = $this->form->getValue('scope'); $isNew = ($id == 0); $canDo = SolidresHelper::getActions(); if ($isNew) { JToolBarHelper::title(JText::_('SR_ADD_NEW_STATUS_FOR_' . ($scope ? 'EXPERIENCE' : 'ASSET'))); } else { JToolBarHelper::title(JText::_('SR_EDIT_STATUS_FOR_' . ($scope ? 'EXPERIENCE' : 'ASSET'))); } if ($canDo->get('core.edit')) { JToolBarHelper::apply('status.apply'); JToolBarHelper::save('status.save'); JToolBarHelper::save2new('status.save2new'); } JToolBarHelper::cancel('status.cancel'); } }
| ver. 1.4 |
Github
|
.
| PHP 8.5.7 | Generation time: 0 |
proxy
|
phpinfo
|
Settings