false,'fallback_cb'=>'albizia_menu_','depth'=>$depth);
wp_nav_menu(wp_parse_args($passed_args,$args));
return;
} else albizia_menu_($args);
}
function albizia_primary_home($args){
return '
'.itx_get_option('menu','home').''.$args;
}
function albizia_top_home($args){
return ''.itx_get_option('menu','top_home').''.$args;
}
/**
* Function to display navigation menu in Albizia if user choose to use albiza Menu or for older than WordPress 3.0 users
*
* @since 1.0
*
*/
function albizia_menu_($args){
extract(itx_get_option('menu'));
extract(wp_parse_args($args));
if($theme_location=='top'){
$home=$top_home;
$depth=$top_depth;
$show=$top_show;
$class=' top-menu';
} else{
$class=' ui-widget-header ui-corner-all';
}
if ($show){
echo '';
}
}
function albizia_menu_styles(){
$menu=itx_get_option('menu');
echo "
ul.top-menu{margin:0 {$menu['top_margin']}px;float:{$menu['top_align']};";
}
if ( function_exists('wp_nav_menu')&&itx_get_option('menu','wp_menu')){
register_nav_menu( 'top' , 'Top Navigation' );
register_nav_menu( 'primary' , 'Primary Navigation');
}
?>