'This is the Primary Navigation below the header.', 'footer' => 'Footer menu', 'header' => 'Header menu (above the search bar)' )); } billions_register_sidebar( array( 'name' =>'Primary Sidebar', 'description' => __('This is the primary sidebar', 'billions'), 'id' => 'sidebar', )); billions_register_sidebar( array( 'name' =>'Footer Left', 'description' => __('This is the primary sidebar', 'billions'), 'id' => 'sidebar-fl', )); billions_register_sidebar( array( 'name' =>'Footer Middle Left', 'description' => __('This is the primary sidebar', 'billions'), 'id' => 'sidebar-fml', )); billions_register_sidebar( array( 'name' =>'Footer Middle Right', 'description' => __('This is the primary sidebar', 'billions'), 'id' => 'sidebar-fmr', )); billions_register_sidebar( array( 'name' =>'Footer Right', 'description' => __('This is the primary sidebar', 'billions'), 'id' => 'sidebar-fr', )); billions_register_sidebar( array( 'name' =>'Home Bottom Right', 'description' => __('This is the area to the right of "More News" on the hompage.- Great place for an 300x250 ad.', 'billions'), 'id' => 'sidebar-hbr', )); billions_register_sidebar( array( 'name' =>'Top Sidebar', 'description' => __('This is the area is right above the primary sidebar. - Great place for an 300x250 ad.', 'billions'), 'id' => 'sidebar-ts', )); add_filter( 'get_search_form', 'my_search_form' ); function my_search_form( $form ) { $form = '
'; return $form; } function billions_cat_name( $link = true ) { foreach( ( get_the_category() ) as $category ) { $catID = $category->cat_ID; $cat_name = $category->cat_name; $cat_slug = $category->category_nicename; $cat_desc = $category->category_description; $cat_parent = $category->category_parent; $cat_count = $category->category_count; if ( $link = true ) : return '' . $cat_name . ''; else : return $cat_name; endif; } } function billions_cat_feed_link() { $cat_name = single_cat_title( '', false ); $category_id = get_cat_ID( $cat_name ); // Get the URL of this category $category_link = get_category_link( $category_id ); $category_link .= "/?feed=rss"; return $category_link; } function billions_byline( $authlink = true ) { ?> $'; $replacement = 'read more'; $content = str_replace( $pattern, $replacement, $string ); } return $content; } add_filter( 'wp_nav_menu_items', 'billions_date_menu_item', 10, 2 ); function billions_date_menu_item( $items, $args ) { if( $args->theme_location == 'primary' ) { $homelink = '