Ejemplo n.º 1
0
        $textdiv .= '<div class="jlplplaneleaguename">';
        $textdiv .= $match->project_name;
        $textdiv .= '</div>';
    }
    if ($params->get('show_league_name', 0)) {
        $textdiv .= '<div class="jlplplaneleaguename">';
        $textdiv .= $match->league_name;
        $textdiv .= '</div>';
    }
    $textdiv .= '<div>';
    $textdiv .= '<div class="jlplplanetname">';
    if ($params->get('show_club_logo')) {
        $team1logo = modJLGPlaygroundplanHelper::getTeamLogo($match->team1);
        $textdiv .= '<p>' . JHtml::image($team1logo, "") . '</p>';
    }
    $textdiv .= '<p>' . modJLGPlaygroundplanHelper::getTeams($match->team1, $teamformat) . '</p>';
    $textdiv .= '</div>';
    $textdiv .= '<div class="jlplplanetnamesep"> - </div>';
    $textdiv .= '<div class="jlplplanetname">';
    if ($params->get('show_club_logo')) {
        $team2logo = modJLGPlaygroundplanHelper::getTeamLogo($match->team2);
        $textdiv .= '<p>' . JHtml::image($team2logo, "") . '</p>';
    }
    $textdiv .= '<p>' . modJLGPlaygroundplanHelper::getTeams($match->team2, $teamformat) . '</p>';
    $textdiv .= '</div>';
    $textdiv .= '</div>';
    $textdiv .= '<div style="clear:both"></div>';
    $textdiv .= '</div>';
}
echo $textdiv;
echo '</div>';
<?php

/**
 * Joomleague
 * @subpackage	Module-Playgroundplan
 *
 * @copyright	Copyright (C) 2006-2015 joomleague.at. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 * @link		http://www.joomleague.at
 */
defined('_JEXEC') or die;
require_once dirname(__FILE__) . '/helper.php';
require_once JPATH_SITE . '/components/com_joomleague/joomleague.core.php';
$list = modJLGPlaygroundplanHelper::getData($params);
if (empty($list)) {
    return;
}
$document = JFactory::getDocument();
$document->addStyleSheet(JUri::base() . 'modules/mod_joomleague_playgroundplan/css/mod_joomleague_playgroundplan.css');
$mode = $params->def("mode");
switch ($mode) {
    case 0:
        $document->addScript(JUri::base() . 'modules/mod_joomleague_playgroundplan/js/qscroller.js');
        require_once dirname(__FILE__) . '/js/ticker.js';
        break;
    case 1:
        break;
}
require JModuleHelper::getLayoutPath('mod_joomleague_playgroundplan');