PageRenderTime 23ms CodeModel.GetById 15ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 1<?php
 2/**
 3 * @version	 $Id: mod_joomleague_eventsranking.php 4905 2010-01-30 08:51:33Z and_one $
 4 * @package	 Joomla
 5 * @subpackage  Joomleague eventsranking module
 6 * @copyright	Copyright (C) 2005-2014 joomleague.at. All rights reserved.
 7 * @license	 GNU/GPL, see LICENSE.php
 8 * Joomla! is free software. This version may have been modified pursuant to the
 9 * GNU General Public License, and as distributed it includes or is derivative
10 * of works licensed under the GNU General Public License or other free or open
11 * source software licenses. See COPYRIGHT.php for copyright notices and
12 * details.
13 */
14
15// no direct access
16defined('_JEXEC') or die('Restricted access');
17
18// get helper
19require_once (dirname(__FILE__).DS.'helper.php');
20
21require_once(JPATH_SITE.DS.'components'.DS.'com_joomleague'.DS.'joomleague.core.php');
22
23// Load the standard events from the component language file
24$language = JFactory::getLanguage();
25$language->load('com_joomleague', JPATH_SITE);
26
27$list = modJLGEventsrankingHelper::getData($params);
28
29$document = JFactory::getDocument();
30//add css file
31$document->addStyleSheet(JUri::base().'modules/mod_joomleague_eventsranking/css/mod_joomleague_eventsranking.css');
32
33require(JModuleHelper::getLayoutPath('mod_joomleague_eventsranking'));