I jeszcze index.php:
Kod PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php defined( "_VALID_MOS" ) or die( "Direct Access to this location is not allowed." );?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php if ( $my->id ) { initEditor(); } ?>
<meta http-equiv="Content-Type" content="text/html;><?php echo _ISO; ?>" />
<?php mosShowHead(); ?>
<?php echo "<link rel=\"stylesheet\" href=\"$GLOBALS[mosConfig_live_site]/templates/$GLOBALS[cur_template]/css/template_css.css\" type=\"text/css\"/>" ; ?><?php echo "<link rel=\"shortcut icon\" href=\"$GLOBALS[mosConfig_live_site]/images/favicon.ico\" />" ; ?>
</head><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<body>
<?php
// This menu system has been highly modified to work with different images
// and using submenu items as well.
// Modifications by Doyle Lewis for www.mambo-hosting.com
// support@mambo-hosting.com
// Image Text Menu 1.0 module for Mambo 4.5 Open Source - The best CMS ever...
// This module is released under GNU/GPL License
// Author website: www.morales-rodriguez.net
// Author e-mail renier99@hotmail.com
// Author takes no responsability of possible damage in your website in using this module
// 25 Feb 2004
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); ?>
<?php
$orientation = @$params->orientation;
$top_offset = @$params->top_offset;
$left_offset = @$params->left_offset;
$right_offset = @$params->right_offset;
if (!$right_offset) $right_offset = "1px";
if (!$left_offset) $left_offset = "1px";
if (!$top_offset) $top_offset = "0px";
?>
<div id="gornybar"></div>
<div id="header"><img src="templates/halolamp2/images/logo.png" class="logo" /><span class="bannery"><?php mosLoadComponent( "banners" ); ?></span></div>
<div id="menugora"><?php
$database->setQuery("SELECT * FROM #__menu WHERE menutype = 'topmenu' AND published ='1' AND parent = '0' ORDER BY ordering");
$mymenu_rows = $database->loadObjectList();
$mymenu_content = "";
$count = 1;
foreach($mymenu_rows as $mymenu_row) {
$mymenulink = $mymenu_row->link;
if ($mymenu_row->type != "url") {
$mymenulink .= "&Itemid=$mymenu_row->id";
}
if ($mymenu_row->type != "separator") {
//IMAGE CONTENT
$mymenu_content .= "<td align=\"center\" height=\"27\"><span style=\"position:relative\"><a href=\"".sefRelToAbs($mymenulink)."\" ><img src=\"templates/halolamp2/images/normal.gif\"
border=\"0\" align=\"absmiddle\" height=\"27\" onmouseover=\"this.src='templates/halolamp2/images/hilite.gif'\"
onmouseout=\"this.src='templates/halolamp2/images/normal.gif'\" name=\"menu$count\"></a>";
//LINK CONTENT
$mymenu_content .= "<span style=\"position:absolute;top:$top_offset;right:$right_offset;left:$left_offset;\"><a href=\"".sefRelToAbs($mymenulink)."\" class=\"linkigora\"
onmouseover=\"document.images['menu$count'].src='templates/halolamp2/images/hilite.gif'\"
onmouseout=\"document.images['menu$count'].src='templates/halolamp2/images/normal.gif'\">$mymenu_row->name</a></span></span></td>";
}
++$count;
}
echo $mymenu_content; ?></div>
<div id="lewemenu"><?php mosLoadModules ( 'left' ,3); ?></div>
<div id="main"><?php mosMainBody(); ?></div>
<div id="prawemenu"><?php mosLoadModules ( 'right' ); ?></div>
<div id="stopka"><?php include_once('includes/footer.php'); ?></div>
<div id="dolnybar"></div>
</div>
</body>
</html>