| Current Path : /home/megadansyp/www/administrator/components/com_videogallerylite/views/lightbox/ |
| Current File : /home/megadansyp/www/administrator/components/com_videogallerylite/views/lightbox/view.html.php |
<?php
/**
* @package Video Gallery Lite
* @author Huge-IT
* @copyright (C) 2014 Huge IT. All rights reserved.
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
* @website http://www.huge-it.com/
**/
defined('_JEXEC') or die('Restircted access');
jimport('joomla.application.component.view');
jimport('joomla.application.component.helper');
class VideogalleryliteViewLightbox extends JViewLegacy
{
protected $item;
protected $form;
protected $script;
public function display($tpl = null)
{
try
{
$this->form = $this->get('Form');
$this->item = $this->get('Item');
JHtml::stylesheet(Juri::root() . 'media/com_videogallerylite/style/gallery.style.css');
$this->addToolBar();
parent::display($tpl);
}
catch (Exception $e)
{
throw new Exception($e->getMessage());
}
}
protected function addToolBar()
{
JFactory::getApplication()->input->set('hidemainmenu', true);
$isNew = ($this->item->id == 0);
JToolBarHelper::title(JText::_('COM_VIDEOGALLERYLITE_MANAGER_LIIGHTBOX'), JText::_('COM_VIDEOGALLERYLITE_MANAGER_LIIGHTBOX'));
JToolBarHelper::save('lightbox.save');
JToolBarHelper::apply('lightbox.apply1');
JToolBarHelper::cancel('lightbox.cancel');
}
}