If you wish to have your own menu style, create a file "functions.php" in your template directory.
add this code inside (from theme_functions.php in admin/inc) :
Don't forget to add this line at the beginning of this file :
and finish file with :
rename the function like : get_my_navigation
edit it as you want.
in your theme you have to call this new function instead of get-navigation.
add this code inside (from theme_functions.php in admin/inc) :
Code:
function get_navigation($currentpage) {
$menu = '';
global $pagesArray;
$pagesSorted = subval_sort($pagesArray,'menuOrder');
if (count($pagesSorted) != 0) {
foreach ($pagesSorted as $page) {
$sel = ''; $classes = '';
$url_nav = $page['url'];
if ($page['menuStatus'] == 'Y') {
if ("$currentpage" == "$url_nav") { $classes = "current ". $page['parent'] ." ". $url_nav; } else { $classes = trim($page['parent'] ." ". $url_nav); }
if ($page['menu'] == '') { $page['menu'] = $page['title']; }
if ($page['title'] == '') { $page['title'] = $page['menu']; }
$menu .= '<li class="'. $classes .'"><a href="'. find_url($page['url'],$page['parent']) . '" title="'. encode_quotes(cl($page['title'])) .'">'.strip_decode($page['menu']).'</a></li>'."\n";
}
}
}
echo exec_filter('menuitems',$menu);
}
Code:
<?php if(!defined('IN_GS')){ die('you cannot load this page directly.'); }
Code:
?>
edit it as you want.
in your theme you have to call this new function instead of get-navigation.