/** * Displays the category navigation menu. * * @deprecated 0.6 Child themes should manually add a category menu using wp_list_categories(). * @internal This function needs to stay for the long haul (post-1.0). * * @since 0.1 */ function hybrid_cat_nav() { _deprecated_function( __FUNCTION__, '0.6', 'wp_nav_menu()' ); echo "<div id='cat-navigation'>"; do_action( 'hybrid_before_cat_nav' ); echo apply_filters( 'hybrid_cat_nav', hybrid_category_menu( 'echo=0' ) ); do_action( 'hybrid_after_cat_nav' ); echo '</div>'; }
/** * Filterable category navigation block * Users should filter hybrid_category_menu() if only wanting to filter links * This should only be filtered if directly adding something outside of the nav list * Also, added hooks for before and after * This will allow for custom content to be added in the same div * * @since 0.1 * @filter */ function hybrid_cat_nav() { echo "\n\t<div id='cat-navigation'>\n\t\t"; hybrid_before_cat_nav(); // Before category navigation $nav = hybrid_category_menu('menu_class=cat-nav&echo=0'); echo apply_filters('hybrid_cat_nav', $nav); hybrid_after_cat_nav(); // After category navigation hook echo "\n\t</div>\n"; }