<{php}>
global $xoopsModule ;
$xoops_url = XOOPS_URL ;
$mainmenu_str = "
Home
News
Forum
Links
Downloads
Album 1
Album 2
" ;
$highlightString = "class='active'";
if( isset( $xoopsModule ) && is_object( $xoopsModule ) ) {
$dirname = $xoopsModule->getVar( 'dirname' ) ;
$mainmenu_str = str_replace( "/modules/$dirname/'" , "/modules/$dirname/' ".
$highlightString , $mainmenu_str ) ;
} else {
$mainmenu_str = str_replace( "class='main_link'>Home" , "' ".$highlightString.">Home" ,
$mainmenu_str ) ;
}
echo $mainmenu_str ;
<{/php}>