| Current Path : /home/megadansyp/www/components/com_phocadownload/views/phocadownloadlinks/ |
| Current File : /home/megadansyp/www/components/com_phocadownload/views/phocadownloadlinks/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' );
phocadownloadimport('phocadownload.render.renderadminviews');
class phocaDownloadViewphocaDownloadLinks extends JViewLegacy
{
protected $t;
function display($tpl = null) {
$app = JFactory::getApplication();
//Frontend Changes
$tUri = '';
if (!$app->isClient('administrator')) {
$tUri = JURI::base();
}
$this->r = new PhocaDownloadRenderAdminViews();
$this->t = PhocaDownloadUtils::setVars('links');
$document = JFactory::getDocument();
$uri = \Joomla\CMS\Uri\Uri::getInstance();
JHTML::stylesheet( 'media/com_phocadownload/css/administrator/phocadownload.css' );
$eName = $app->input->get('e_name');
$eName = preg_replace( '#[^A-Z0-9\-\_\[\]]#i', '', $eName );
$this->t['linkcategories'] = $tUri.'index.php?option=com_phocadownload&view=phocadownloadlinkcats&tmpl=component&e_name='.$eName;
$this->t['linkcategory'] = $tUri.'index.php?option=com_phocadownload&view=phocadownloadlinkcat&tmpl=component&e_name='.$eName;
$this->t['linkfile'] = $tUri.'index.php?option=com_phocadownload&view=phocadownloadlinkfile&tmpl=component&e_name='.$eName;
$this->t['linkytb'] = $tUri.'index.php?option=com_phocadownload&view=phocadownloadlinkytb&tmpl=component&e_name='.$eName;
parent::display($tpl);
}
}
?>