mod_topmatch
PHP-Code:
<?php
/**
* Joomlaschmiede Topmatch Joomla! Module
*
* @author joomlaschmiede.de
* @copyright Copyright (C) 2009 Joomlaschmiede All rights reserved.
* @license GNU/GPL
*/
// no direct access
defined('_JEXEC') or die('Restricted access');
// Include the syndicate functions only once
require(JModuleHelper::getLayoutPath('mod_topmatch'));
// Loading the stylesheet file on the head
$filename = 'default.css';
$path = 'modules/mod_topmatch/css/';
echo JHtml::_('stylesheet', $filename, $path);
?>
default.php
PHP-Code:
<?php
/**
* Joomlaschmiede Topmatch Joomla! Module
*
* @author joomlaschmiede.de
* @copyright Copyright (C) 2009 Joomlaschmiede All rights reserved.
* @license GNU/GPL
*/
// no direct access
defined('_JEXEC') or die('Restricted access');
$fullpath = 'images/stories/topmatch/';
// init vars team 1
$width1 = $params->get('width-1');
$height1 = $params->get('height-1');
$logo1 = $params->get('logo-1');
$url1 = $params->get('url-1');
$team1 = $params->get('teamname-1');
// init vars team 2
$width2 = $params->get('width-2');
$height2 = $params->get('height-2');
$logo2 = $params->get('logo-2');
$url2 = $params->get('url-2');
$team2 = $params->get('teamname-2');
?>
<div id="js_topmatch">
<div id="js_team1">
<a href="<?php echo $url1 ?>" title="><?php echo $team1 ?>"><img src="<?php echo $fullpath . $logo1 ?>" width="<?php echo $width1 ?>" height="<?php echo $height1 ?>" alt="<?php echo $team1 ?>" /></a>
<p><a href="<?php echo $url1 ?>"><?php echo $team1 ?></a><br />
<?php echo JText::_('HOME_TEAM'); ?></p>
</div>
<div id="js_team2">
<a href="<?php echo $url2 ?>" title="><?php echo $team2 ?>"><img src="<?php echo $fullpath . $logo2 ?>" width="<?php echo $width2 ?>" height="<?php echo $height2 ?>" alt="<?php echo $team2 ?>" /></a>
<p><a href="<?php echo $url2 ?>"><?php echo $team2 ?></a><br />
<?php echo JText::_('OPPONENT_TEAM'); ?></p>
</div>
</div>
und die ganzen definierten variablen möchte ich gerne wie andere module auch in der mod_topmatch.php haben und nicht in dem default template.
Lesezeichen