| Current Path : /home/wuectly/www/administrator/components/com_icagenda/views/info/ |
| Current File : /home/wuectly/www/administrator/components/com_icagenda/views/info/view.html.php |
<?php
/**
*------------------------------------------------------------------------------
* iCagenda v3 by Jooml!C - Events Management Extension for Joomla! 2.5 / 3.x
*------------------------------------------------------------------------------
* @package com_icagenda
* @copyright Copyright (c)2012-2015 Cyril Rezé, Jooml!C - All rights reserved
*
* @license GNU General Public License version 3 or later; see LICENSE.txt
* @author Cyril Rezé (Lyr!C)
* @link http://www.joomlic.com
*
* @version 3.5.6 2015-06-23
* @since 1.2.6
*------------------------------------------------------------------------------
*/
// No direct access to this file
defined('_JEXEC') or die();
// Access check.
if (JFactory::getUser()->authorise('core.admin', 'com_icagenda'))
{
JToolBarHelper::preferences('com_icagenda');
}
/**
* View class for a list of iCagenda.
*/
class iCagendaViewinfo extends JViewLegacy
{
/**
* Display the view
*/
public function display($tpl = null)
{
// Joomla 2.5
if (version_compare(JVERSION, '3.0', 'lt'))
{
JHtml::stylesheet('com_icagenda/template.j25.css', false, true);
JHtml::_('behavior.tooltip');
jimport( 'joomla.filesystem.path' );
}
JHtml::_('behavior.modal');
// Check for errors.
if (count($errors = $this->get('Errors')))
{
JError::raiseError(500, implode("\n", $errors));
return false;
}
// We don't need toolbar in the modal window.
if ($this->getLayout() !== 'modal')
{
$this->addToolbar();
if (version_compare(JVERSION, '3.0', 'ge'))
{
$this->sidebar = JHtmlSidebar::render();
}
}
parent::display($tpl);
}
/**
* Add the page title and toolbar.
*
* @since 1.6
*/
protected function addToolbar()
{
require_once JPATH_COMPONENT . '/helpers/icagenda.php';
$state = $this->get('State');
// Set Title
if (version_compare(JVERSION, '3.0', 'lt'))
{
JToolBarHelper::title(JText::_('COM_ICAGENDA_TITLE_ICAGENDA_IMAGE'));
}
else
{
JToolBarHelper::title('iCagenda <span style="font-size:14px;">- ' . JText::_('COM_ICAGENDA_INFO') . '</span>', 'info-2');
}
$icTitle = JText::_('COM_ICAGENDA_INFO');
$document = JFactory::getDocument();
$app = JFactory::getApplication();
$sitename = $app->getCfg('sitename');
$title = $app->getCfg('sitename') . ' - ' . JText::_('JADMINISTRATION') . ' - iCagenda: ' . $icTitle;
$document->setTitle($title);
}
}