- md5
- 42bc9aa6025ce5f3c97b8e67b54d6ba6
- sha1
- 53c39b3500b2f50a5428a030f7bac21a319ad4c1
- sha256
- dc8638c3b0e191a37f6929060a2de95cc47438b0fed5241bfb68f11b0bf4181b
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
<?php
/**
* @package Joomla.Administrator
* @subpackage com_installer
*
* @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
namespace Joomla\Component\Installer\Administrator\View\Installer;
defined('_JEXEC') or die;
use Joomla\CMS\Helper\ContentHelper;
use Joomla\CMS\Toolbar\ToolbarHelper;
use Joomla\CMS\MVC\View\HtmlView as BaseHtmlView;
/**
* Extension Manager Default View
*
* @since 1.5
*/
class HtmlView extends BaseHtmlView
{
/**
* The model state
*
* @var \JObject
* @since __DEPLOY_VERSION__
*/
public $state;
/**
* True if there are extension messages to be displayed
*
* @var boolean
* @since __DEPLOY_VERSION__
*/
public $showMessage;
/**
* The HTML markup for the sidebar
*
* @var string
* @since __DEPLOY_VERSION__
*/
protected $sidebar;
/**
* Constructor.
*
* @param array $config Configuration array
*
* @since 1.5
*/
public function __construct($config = null)
{
parent::__construct($config);
$this->_addPath('template', $this->_basePath . '/tmpl/installer');
$this->_addPath('template', JPATH_THEMES . '/' . \JFactory::getApplication()->getTemplate() . '/html/com_installer/installer');
}
/**
* Display the view.
*
* @param string $tpl Template
*
* @return void
*
* @since 1.5
*/
public function display($tpl = null)
{
// Get data from the model.
$state = $this->get('State');
// Are there messages to display?
$showMessage = false;
if (is_object($state))
{
$message1 = $state->get('message');
$message2 = $state->get('extension_message');
$showMessage = ($message1 || $message2);
}
$this->showMessage = $showMessage;
$this->state = &$state;
$this->addToolbar();
parent::display($tpl);
}
/**
* Add the page title and toolbar.
*
* @return void
*
* @since 1.6
*/
protected function addToolbar()
{
$canDo = ContentHelper::getActions('com_installer');
ToolbarHelper::title(\JText::_('COM_INSTALLER_HEADER_' . strtoupper($this->getName())), 'puzzle install');
if ($canDo->get('core.admin') || $canDo->get('core.options'))
{
ToolbarHelper::preferences('com_installer');
ToolbarHelper::divider();
}
// Render side bar.
$this->sidebar = \JHtmlSidebar::render();
}
}
No other release has this exact content. See every version of this file.