function theme_vmenu_widget($args) { // for wp < 3.0 extract($args); $source = theme_get_option('theme_vmenu_source'); echo $before_widget; echo $before_title . __($source, THEME_NS) . $after_title; echo theme_get_menu(array('source' => $source, 'depth' => theme_get_option('theme_vmenu_depth'), 'class' => 'art-vmenu')); echo $after_widget; }
</h2> <?php } ?> </div> <div class="art-nav"> <div class="art-nav-outer"> <?php echo theme_get_menu(array('source' => theme_get_option('theme_menu_source'), 'depth' => theme_get_option('theme_menu_depth'), 'menu' => 'primary-menu', 'class' => 'art-hmenu')); ?> </div> </div> <div class="cleared reset-box"></div> <?php if (is_home()) { } ?>
function widget($args, $instance) { extract($args); $title = apply_filters('widget_title', $instance['title'], $instance, $this->id_base); echo $before_widget; echo $before_title . $title . $after_title; echo theme_get_menu(array('source' => $instance['source'], 'depth' => theme_get_option('theme_vmenu_depth'), 'menu' => wp_get_nav_menu_object($instance['nav_menu']), 'class' => 'art-vmenu')); echo $after_widget; }
<?php ob_start(); ?> <?php get_search_form(); ?> <?php theme_wrapper($style, array('title' => __('Search', THEME_NS), 'heading' => $heading, 'content' => ob_get_clean())); ?> <?php ob_start(); ?> <ul> <?php wp_list_categories('show_count=1&title_li='); ?> </ul> <?php theme_wrapper($style, array('title' => __('Categories', THEME_NS), 'heading' => $heading, 'content' => ob_get_clean())); ?> <?php ob_start(); echo theme_get_menu(array('source' => theme_get_option('theme_vmenu_source'), 'depth' => theme_get_option('theme_vmenu_depth'), 'class' => 'art-vmenu')); theme_wrapper('vmenu', array('title' => '', 'heading' => $heading, 'content' => ob_get_clean())); ?> <?php }