* source software licenses. See COPYRIGHT.php for copyright notices and * details. */ 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'; $document = JFactory::getDocument(); //add css file $document->addStyleSheet(JURI::base() . 'modules/mod_joomleague_ticker/css/mod_joomleague_ticker.css'); $mode = $params->def("mode"); $resultsmatch = $params->get('results'); $round = $params->get('round'); $ordering = $params->get('ordering'); $matchstatus = $params->get('matchstatus'); $selectiondate = modJoomleagueTickerHelper::getSelectionDate($params->get('daysback'), $params->get('timezone', 'Europe/Amsterdam')); $bUseFav = $params->get('usefavteams'); $matches = modJoomleagueTickerHelper::getMatches($resultsmatch, $params->get('p'), $params->get('teamid'), $selectiondate, $ordering, $round, $matchstatus, $bUseFav); if (empty($matches) || count($matches) == 0) { echo JText::_("No matches"); return; } else { $timezone = new DateTimeZone($params->get('timezone', 'Europe/Amsterdam')); $utc = new DateTime(); $offset = $timezone->getOffset($utc); $date = modJoomleagueTickerHelper::getCorrectDateFormat($params->get('dateformat'), $matches, $offset); if (count($matches) < $resultsmatch) { $resultsmatch = count($matches); } $tickerpause = $params->def("tickerpause"); $scrollspeed = $params->def("scrollspeed");