/com_joomleague/components/com_joomleague/modules/mod_joomleague_eventsranking/mod_joomleague_eventsranking.php
https://gitlab.com/volleyuisp/joomleague · PHP · 33 lines · 10 code · 7 blank · 16 comment · 0 complexity · 0d507ba88ca18a5d5e32d814c425d192 MD5 · raw file
- <?php
- /**
- * @version $Id: mod_joomleague_eventsranking.php 4905 2010-01-30 08:51:33Z and_one $
- * @package Joomla
- * @subpackage Joomleague eventsranking module
- * @copyright Copyright (C) 2005-2014 joomleague.at. All rights reserved.
- * @license GNU/GPL, see LICENSE.php
- * Joomla! is free software. This version may have been modified pursuant to the
- * GNU General Public License, and as distributed it includes or is derivative
- * of works licensed under the GNU General Public License or other free or open
- * source software licenses. See COPYRIGHT.php for copyright notices and
- * details.
- */
- // no direct access
- defined('_JEXEC') or die('Restricted access');
- // get helper
- require_once (dirname(__FILE__).DS.'helper.php');
- require_once(JPATH_SITE.DS.'components'.DS.'com_joomleague'.DS.'joomleague.core.php');
- // Load the standard events from the component language file
- $language = JFactory::getLanguage();
- $language->load('com_joomleague', JPATH_SITE);
- $list = modJLGEventsrankingHelper::getData($params);
- $document = JFactory::getDocument();
- //add css file
- $document->addStyleSheet(JUri::base().'modules/mod_joomleague_eventsranking/css/mod_joomleague_eventsranking.css');
- require(JModuleHelper::getLayoutPath('mod_joomleague_eventsranking'));