/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. // no direct access
  15. defined('_JEXEC') or die('Restricted access');
  16. // get helper
  17. require_once (dirname(__FILE__).DS.'helper.php');
  18. require_once(JPATH_SITE.DS.'components'.DS.'com_joomleague'.DS.'joomleague.core.php');
  19. // Load the standard events from the component language file
  20. $language = JFactory::getLanguage();
  21. $language->load('com_joomleague', JPATH_SITE);
  22. $list = modJLGEventsrankingHelper::getData($params);
  23. $document = JFactory::getDocument();
  24. //add css file
  25. $document->addStyleSheet(JUri::base().'modules/mod_joomleague_eventsranking/css/mod_joomleague_eventsranking.css');
  26. require(JModuleHelper::getLayoutPath('mod_joomleague_eventsranking'));