|
Server : Apache System : Linux vps.urbanovitalino.adv.br 3.10.0-1062.12.1.el7.x86_64 #1 SMP Tue Feb 4 23:02:59 UTC 2020 x86_64 User : urbanovitalinoad ( 1001) PHP Version : 7.3.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/urbanovitalinoad/public_html/enel/components/com_jevents/views/flat/icalevent/ |
Upload File : |
<?php
/**
* JEvents Component for Joomla! 3.x
*
* @version $Id: view.html.php 3155 2012-01-05 12:01:16Z geraintedwards $
* @package JEvents
* @copyright Copyright (C) 2008-2019 GWE Systems Ltd
* @license GNU/GPLv2, see http://www.gnu.org/licenses/gpl-2.0.html
* @link http://www.jevents.net
*/
// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die();
/**
* HTML View class for the component frontend
*
* @static
*/
class flatViewICalevent extends JEventsflatView
{
function detail($tpl = null)
{
JEVHelper::componentStylesheet($this);
$document = JFactory::getDocument();
// TODO do this properly
//$document->setTitle(JText::_( 'BROWSER_TITLE' ));
$jinput = JFactory::getApplication()->input;
$params = JComponentHelper::getParams(JEV_COM_COMPONENT);
//$this->assign("introduction", $params->get("intro",""));
$this->data = $this->datamodel->getEventData( $this->evid, $this->jevtype, $this->year, $this->month, $this->day, $this->uid );
// Dynamic pathway
if (isset($this->data['row'])){
$pathway = JFactory::getApplication()->getPathway();
$pathway->addItem($this->data['row']->title() ,"");
// Set date in view for use in navigation icons
$this->year = $this->data['row']->yup();
$this->month = $this->data['row']->mup();
$this->day = $this->data['row']->dup();
// seth month and year to be used by mini-calendar if needed
if (!$jinput->getInt("month", 0)) $jinput->set("month", $this->month);
if (!$jinput->getInt("year", 0)) $jinput->set("year", $this->year);
}
}
}