Пример #1
0
<div class="modjlglogo"><?php 
if ($params->get('show_project_name', 0)) {
    ?>
<p class="projectname"><?php 
    echo $list['project']->name;
    ?>
</p>
<?php 
}
?>

<ul id="modjlglogo">
<?php 
foreach (array_slice($list['teams'], 0, $params->get('limit', 12)) as $item) {
    ?>
	<li class="logo<?php 
    echo $typel;
    ?>
">
	<?php 
    $link = JHtml::link(modJLGLogoHelper::getTeamLink($item, $params, $list['project']), isset($item->team->{$nametype}));
    $link1 = explode(">", $link);
    echo $link1[0] . '>';
    echo modJLGLogoHelper::getLogo($item, $typel) . "</a></li>";
    ?>
	<?php 
}
?>
</ul>
</div>
<?php

/**
 * @version	 $Id$
 * @package	 Joomla
 * @subpackage  Joomleague logo module
 * @copyright   Copyright (C) 2008 Open Source Matters. 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';
$p = $params->get('p');
$list = modJLGLogoHelper::getData($params);
$document = JFactory::getDocument();
//add css file
$document->addStyleSheet(JURI::base() . 'modules/mod_joomleague_logo/css/mod_joomleague_logo.css');
require JModuleHelper::getLayoutPath('mod_joomleague_logo');