'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 ) { ?>
By on
$'; $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 = ''; $items = $items . $homelink; } return $items; } add_shortcode( 'share', 'billions_sharin_shortcode' ); function billions_sharin_shortcode( $args ) { extract( shortcode_atts( array( ), $args ) ); return ' Share This Digg Button Digg Stumbleupon Facebook Reddit Buzz '; } function billions_pagination( $pages = '', $range = 4) { $showitems = ( $range * 2 )+1; global $paged; if( empty( $paged ) ) $paged = 1; if( $pages == '' ) { global $wp_query; $pages = $wp_query->max_num_pages; if( !$pages ) { $pages = 1; } } if( 1 != $pages ) { echo ''; } } add_filter( 'get_comments_number', 'separate_comment_count', 0 ); function separate_comment_count( $id, $type = "comment" ) { global $id; $comments_by_type = &separate_comments( get_comments( 'post_id=' . $id ) ); return count( $comments_by_type[$type] ); } ?>