primo commit
This commit is contained in:
		| @ -0,0 +1,55 @@ | ||||
| <?php | ||||
| /** | ||||
|  * @package    JEM | ||||
|  * @copyright  (C) 2013-2024 joomlaeventmanager.net | ||||
|  * @copyright  (C) 2005-2009 Christoph Lukes | ||||
|  * @license    https://www.gnu.org/licenses/gpl-3.0 GNU/GPL | ||||
|  */ | ||||
|  | ||||
| defined('_JEXEC') or die; | ||||
|  | ||||
| use Joomla\CMS\HTML\HTMLHelper; | ||||
| use Joomla\CMS\Language\Text; | ||||
| use Joomla\CMS\Toolbar\ToolbarHelper; | ||||
| use Joomla\CMS\Factory; | ||||
|  | ||||
| /** | ||||
|  * View class for the JEM Updatecheck screen | ||||
|  * | ||||
|  * @package JEM | ||||
|  * | ||||
|  */ | ||||
| class JemViewUpdatecheck extends JemAdminView | ||||
| { | ||||
|  | ||||
| 	public function display($tpl = null) | ||||
| 	{ | ||||
| 		//Get data from the model | ||||
| 		$updatedata      	= $this->get('Updatedata'); | ||||
|  | ||||
| 		// Load css | ||||
| 		$wa = Factory::getApplication()->getDocument()->getWebAssetManager();	 | ||||
| 		$wa->registerStyle('jem.backend', 'com_jem/backend.css')->useStyle('jem.backend'); | ||||
|  | ||||
| 		//assign data to template | ||||
| 		$this->updatedata	= $updatedata; | ||||
|  | ||||
| 		// add toolbar | ||||
| 		$this->addToolbar(); | ||||
|  | ||||
| 		parent::display($tpl); | ||||
| 	} | ||||
|  | ||||
|  | ||||
| 	/** | ||||
| 	 * Add Toolbar | ||||
| 	 */ | ||||
| 	protected function addToolbar() | ||||
| 	{ | ||||
| 		ToolbarHelper::title(Text::_('COM_JEM_UPDATECHECK_TITLE'), 'settings'); | ||||
|  | ||||
| 		ToolbarHelper::back(); | ||||
| 		ToolbarHelper::divider(); | ||||
|         ToolBarHelper::help('update', true, 'https://www.joomlaeventmanager.net/documentation/manual/backend/control-panel/check-update'); | ||||
| 	} | ||||
| } | ||||
		Reference in New Issue
	
	Block a user