<?php /** * @package Sven.Bluege * @subpackage com_eventgallery * * @copyright Copyright (C) 2005 - 2019 Sven Bluege All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; jimport( 'joomla.application.component.view'); jimport( 'joomla.html.pagination'); jimport( 'joomla.html.html'); /** @noinspection PhpUndefinedClassInspection */ class EventgalleryViewUpload extends EventgalleryLibraryCommonView { /** * @var EventgalleryLibraryFolder */ protected $folder; function display($tpl = null) { $this->folder = $this->get('Item'); $this->addToolbar(); parent::display($tpl); } protected function addToolbar() { JFactory::getApplication()->input->set('hidemainmenu', true); JToolbarHelper::title( JText::_( 'Event' ).': <small><small>[ upload ]</small></small>' ); JToolbarHelper::cancel( 'upload.cancel', 'Close' ); $bar = JToolbar::getInstance('toolbar'); JToolbarHelper::spacer(100); $bar->appendButton('Link', 'folder', 'COM_EVENTGALLERY_BUTTON_FILES_DESC', JRoute::_('index.php?option=com_eventgallery&view=files&folderid='.$this->folder->getId()), false); $bar->appendButton('Link', 'edit', 'COM_EVENTGALLERY_BUTTON_EDIT_DESC', JRoute::_('index.php?option=com_eventgallery&task=event.edit&id='.$this->folder->getId()), false); } }