| Current Path : /home/zieirix/www/administrator/components/com_phocagallery/views/phocagallerylinks/ |
| Current File : /home/zieirix/www/administrator/components/com_phocagallery/views/phocagallerylinks/view.html.php |
<?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' );
class phocaGalleryCpViewphocaGalleryLinks 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();
}
$eName = JFactory::getApplication()->input->get('e_name');
$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);
}
}
?>