Server : LiteSpeed System : Linux server 3.10.0-1160.90.1.el7.x86_64 #1 SMP Thu May 4 15:21:22 UTC 2023 x86_64 User : alsaif ( 1057) PHP Version : 7.4.33 Disable Function : show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname Directory : /home/alsaif/public_html/components/com_phocagallery/views/phocagallerylinks/ |
<?php
/* @package Joomla
* @copyright Copyright (C) Open Source Matters. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* @extension Phoca Extension
* @copyright Copyright (C) Jan Pavelka www.phoca.cz
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
*/
defined('_JEXEC') or die();
jimport( 'joomla.application.component.view' );
phocagalleryimport('phocagallery.render.renderadminviews');
class phocaGalleryViewphocaGalleryLinks extends JViewLegacy
{
protected $r;
protected $t;
function display($tpl = null) {
$this->r = new PhocaGalleryRenderAdminViews();
$this->t = PhocaGalleryUtils::setVars('link');
$app = JFactory::getApplication();
//Frontend Changes
$tUri = '';
if (!$app->isClient('administrator')) {
$tUri = JURI::base();
}
$document = JFactory::getDocument();
$uri = \Joomla\CMS\Uri\Uri::getInstance();
JHTML::stylesheet( 'media/com_phocagallery/css/administrator/phocagallery.css' );
$eName = $app->input->get('e_name', '', 'cmd');
$eName = preg_replace( '#[^A-Z0-9\-\_\[\]]#i', '', $eName );
$this->t['categories'] = $tUri.'index.php?option=com_phocagallery&view=phocagallerylinkcats&tmpl=component&e_name='.$eName;
//$this->t['COM_PHOCAGALLERY_CATEGORY'] = 'index.php?option=com_phocagallery&view=phocagallerylinkcat&tmpl=component&e_name='.$eName;
$this->t['images'] = $tUri.'index.php?option=com_phocagallery&view=phocagallerylinkimg&type=2&tmpl=component&e_name='.$eName;
$this->t['image'] = $tUri.'index.php?option=com_phocagallery&view=phocagallerylinkimg&type=1&tmpl=component&e_name='.$eName;
$this->t['switchimage'] = $tUri.'index.php?option=com_phocagallery&view=phocagallerylinkimg&type=3&tmpl=component&e_name='.$eName;
$this->t['slideshow'] = $tUri.'index.php?option=com_phocagallery&view=phocagallerylinkimg&type=4&tmpl=component&e_name='.$eName;
parent::display($tpl);
}
}
?>