Willkommen bei WordPress. Dies ist dein erster Beitrag. Bearbeite oder lösche ihn und beginne mit dem Schreiben!
Hallo Welt!
von raredesign | Dez 3, 2019 | Allgemein | 0 Kommentare
Cokiee Shell
Current Path : /var/www/web236/html/components/com_xmovie/views/single/ |
Current File : //var/www/web236/html/components/com_xmovie/views/single/view.html.php |
<?php /* * @package Joomla 3.0 * @copyright Copyright (C) 2005 Open Source Matters. All rights reserved. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php * * @component XMovie Component * @copyright Copyright (C) Dana Harris optikool.com * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL */ defined('_JEXEC') or die('Restricted access'); jimport('joomla.application.component.view'); if (!class_exists('JViewLegacy')) { class_alias('JView', 'JViewLegacy'); } class XMovieViewSingle extends JViewLegacy { protected $item; protected $cparams; protected $subCat; protected $category; public function display($tpl = null) { $document = JFactory::getDocument(); $app = JFactory::getApplication(); $this->item = $this->get('Item'); $this->cparams = $this->get('ConfigParams'); $this->params = $app->getParams(); $this->subCat = $this->get('subCategories'); $this->category = $this->get('Category'); // Check for errors. if (count($errors = $this->get('Errors'))) { JError::raiseWarning(500, implode("\n", $errors)); return false; } $levels = JFactory::getUser()->getAuthorisedViewLevels(); if (!$this->item || !$this->item->published) { throw new Exception(JText::_('COM_XMOVIE_SINGLE_404'), 404); } if (!$this->category || $this->category->access && !in_Array($this->category->access, $levels)) { throw new Exception(JText::_('COM_XMOVIE_ACCESS_DENIED'), 403); } if ($this->item->access && !in_Array($this->item->access, $levels)) { throw new Exception(JText::_('COM_XMOVIE_MOVIE_ACCESS_DENIED'), 403); } if ($this->cparams->get('load_css')) { $document->addStyleSheet(JURI::base().'/components/com_xmovie/css/'.$this->cparams->get('display_layout').'-style.css'); } if ($this->cparams->get('load_jquery')) { $document->addScript(JURI::base().'/components/com_xmovie/js/jquery.js'); } if ($this->cparams->get('load_flowplayer') && ($this->item->type == '13' || $this->item->type == '14' || $this->item->type == '16' || $this->item->type == '23' || $this->item->type == '24' || $this->item->type == '26')) { $document->addStyleSheet(JURI::base(true).'/components/com_xmovie/js/fp/skin/functional.css'); } parent::display($tpl); } }
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare