false,'fallback_cb'=>'itx_menu_','depth'=>$depth);
wp_nav_menu(wp_parse_args($passed_args,$args));
return;
} else itx_menu_($args);
}
function itx_primary_home($args){
return '
'.itx_get_option('menu','home').''.$args;
}
function itx_top_home($args){
return ''.itx_get_option('menu','top_home').''.$args;
}
/**
* Function to display navigation menu in if user choose to use itx Menu or for older than WordPress 3.0 users
*
*/
function itx_menu_($args){
$cat_inc=$page_inc=0;
$menu_class='';
extract(itx_get_option('menu'));
extract(wp_parse_args($args));
if($theme_location=='top'){
$home=$top_home;
$depth=$top_depth;
$show=$top_show;
}
if ($show){
echo '';
}
}
function itx_menu_styles(){
extract(itx_get_option('menu'));
$bgcolor=(!empty($top_bg_color))?$top_bg_color:'transparent';
echo "
ul.top-menu{margin:0 {$top_margin}px;float:{$top_align};background-color:$bgcolor;}";
}
if ( function_exists('wp_nav_menu')&&itx_get_option('menu','wp_menu')){
register_nav_menu( 'top' , 'Top Navigation' );
register_nav_menu( 'primary' , 'Primary Navigation');
}
?>