No to wiemy gdzie tkwi problem, teraz tylko małe pytanie, gdzie zmienić czcionkę?? W katalogu template oprocz pliku index.php mam plik sr_splitmeny.php oto jego treść, jeżeli w nim to gdzie należy zmienić czcionke??:
Kod PHP:
<?php
/**
* @version $Id: md_submenu.php,v 1.2 2005/04/28 04:56:49 rhuk Exp $
* @package Mambo
* @copyright (C) 2000 - 2005 Miro International Pty Ltd
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
* Mambo is Free Software
*/
/** ensure this file is being included by a parent file */
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
if (!defined( '_MOS_SUBMENU_MODULE' )) {
/** ensure that functions are declared only once */
define( '_MOS_SUBMENU_MODULE', 1 );
$hilightid = -1;
$menuname = null;
$tab_colors = array();
$tab_color = 'white';
$tab_index = 0;
/**
* Utility function for writing a menu link
*/
function rtGetTabColor() {
global $tab_color;
return $tab_color;
}
function rtGetHilightid() {
global $hilightid;
return $hilightid;
}
function rtGetSubMenuLink( $mitem, $level, $hilight=false , $color_index=false) {
global $Itemid, $mosConfig_live_site, $mainframe, $hilightid, $menuname, $tab_colors, $tab_color, $tab_index, $forcehilite;
$txt = '';
$id = '';
switch ($mitem->type) {
case 'separator':
case 'component_item_link':
break;
case 'content_item_link':
$temp = split("&task=view&id=", $mitem->link);
$mitem->link .= '&Itemid='. $mainframe->getItemid($temp[1]);
break;
case 'url':
if ( eregi( 'index.php\?', $mitem->link ) ) {
if ( !eregi( 'Itemid=', $mitem->link ) ) {
$mitem->link .= '&Itemid='. $mitem->id;
}
}
break;
case 'content_typed':
default:
$mitem->link .= '&Itemid='. $mitem->id;
break;
}
error_reporting(0);
if ($color_index) {
$id .= $tab_colors[($tab_index)%count($tab_colors)];
$tab_index++;
}
// Active Menu highlighting
$current_itemid = trim( mosGetParam( $_REQUEST, 'Itemid', 0 ) );
if ( !$current_itemid && !$hilight ) {
//$id = '';
} else if (($forcehilite && $hilight) || (($current_itemid == $mitem->id || $hilight) && !$forcehilite)) {
if ($level == 0) {
$tab_color = $id;
$menuname = $mitem->name;
$hilightid = $mitem->id;
}
$id .= 'active_menu';
}
$id = ' class="' . $id . '"';
$mitem->link = ampReplace( $mitem->link );
if ( strcasecmp( substr( $mitem->link,0,4 ), 'http' ) ) {
$mitem->link = sefRelToAbs( $mitem->link );
}
switch ($mitem->browserNav) {
// cases are slightly different
case 1:
// open in a new window
$txt = '<li'. $id . '><a href="'. $mitem->link .'" target="_blank">'. $mitem->name ."</a></li>\n";
break;
case 2:
// open in a popup window
$txt = "<li". $id . "><a href=\"#\" onclick=\"javascript: window.open('". $mitem->link ."', '', 'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=780,height=550'); return false\">". $mitem->name ."</a></li>\n";
break;
case 3:
// don't link it
$txt = '<li'. $id . '><span class="seperator">'. $mitem->name ."</span></li>\n";
break;
default: // formerly case 2
// open in parent window
$txt = '<li'. $id . '><a href="'. $mitem->link .'">'. $mitem->name ."</a></li>\n";
break;
}
return $txt;
}
function rtShowHorizMenu( $menutype) {
global $database, $my, $cur_template, $Itemid, $hilightid, $forcehilite;
global $mosConfig_absolute_path, $mosConfig_shownoauth;
$topnav = '';
if ($mosConfig_shownoauth) {
$sql = "SELECT m.* FROM #__menu AS m"
. "\nWHERE menutype='". $menutype ."' AND published='1' AND parent=0"
. "\nORDER BY ordering";
} else {
$sql = "SELECT m.* FROM #__menu AS m"
. "\nWHERE menutype='". $menutype ."' AND published='1' AND access <= '$my->gid' AND parent=0"
. "\nORDER BY ordering";
}
$database->setQuery( $sql );
$topmenu = $database->loadObjectList( 'id' );
//work out if this should be highlighted
$sql = "SELECT m.* FROM #__menu AS m"
. "\nWHERE menutype='". $menutype ."' AND published='1'";
$database->setQuery( $sql );
$subrows = $database->loadObjectList( 'id' );
$maxrecurse = 5;
$parentid = $Itemid;
//this makes sure toplevel stays hilighted when submenu active
while ($maxrecurse-- > 0) {
$parentid = getParentRow($subrows, $parentid);
if (isset($parentid) && $parentid >= 0 && $subrows[$parentid]) {
$hilightid = $parentid;
} else {
break;
}
}