__( 'Primary Navigation', 'blueandwhite' ), ) ); } endif; function blueandwhite_page_menu_args( $args ) { $args['show_home'] = true; return $args; } add_filter( 'wp_page_menu_args', 'blueandwhite_page_menu_args' ); function blueandwhite_excerpt_length( $length ) { return 40; } add_filter( 'excerpt_length', 'blueandwhite_excerpt_length' ); function blueandwhite_continue_reading_link() { return ' ' . __( 'Continue reading ', 'blueandwhite' ) . ''; } function blueandwhite_auto_excerpt_more( $more ) { return ' …' . blueandwhite_continue_reading_link(); } add_filter( 'excerpt_more', 'blueandwhite_auto_excerpt_more' ); function blueandwhite_custom_excerpt_more( $output ) { if ( has_excerpt() && ! is_attachment() ) { $output .= blueandwhite_continue_reading_link(); } return $output; } add_filter( 'get_the_excerpt', 'blueandwhite_custom_excerpt_more' ); function blueandwhite_remove_gallery_css( $css ) { return preg_replace( "##s", '', $css ); } add_filter( 'gallery_style', 'blueandwhite_remove_gallery_css' ); if ( ! function_exists( 'blueandwhite_comment' ) ) : function blueandwhite_comment( $comment, $args, $depth ) { $GLOBALS['comment'] = $comment; switch ( $comment->comment_type ) : case '' : ?>
  • id="li-comment-">
    says:', 'blueandwhite' ), sprintf( '%s', get_comment_author_link() ) ); ?>
    comment_approved == '0' ) : ?>
    $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
  • __( 'Primary Widget Area', 'blueandwhite' ), 'id' => 'primary-widget-area', 'description' => __( 'The primary widget area', 'blueandwhite' ), 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ', ) ); register_sidebar( array( 'name' => __( 'Secondary Widget Area', 'blueandwhite' ), 'id' => 'secondary-widget-area', 'description' => __( 'The secondary widget area', 'blueandwhite' ), 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ', ) ); register_sidebar( array( 'name' => __( 'First Footer Widget Area', 'blueandwhite' ), 'id' => 'first-footer-widget-area', 'description' => __( 'The first footer widget area', 'blueandwhite' ), 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ', ) ); register_sidebar( array( 'name' => __( 'Second Footer Widget Area', 'blueandwhite' ), 'id' => 'second-footer-widget-area', 'description' => __( 'The second footer widget area', 'blueandwhite' ), 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ', ) ); register_sidebar( array( 'name' => __( 'Third Footer Widget Area', 'blueandwhite' ), 'id' => 'third-footer-widget-area', 'description' => __( 'The third footer widget area', 'blueandwhite' ), 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ', ) ); register_sidebar( array( 'name' => __( 'Fourth Footer Widget Area', 'blueandwhite' ), 'id' => 'fourth-footer-widget-area', 'description' => __( 'The fourth footer widget area', 'blueandwhite' ), 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ', ) ); } add_action( 'widgets_init', 'blueandwhite_widgets_init' ); function blueandwhite_remove_recent_comments_style() { global $wp_widget_factory; remove_action( 'wp_head', array( $wp_widget_factory->widgets['WP_Widget_Recent_Comments'], 'recent_comments_style' ) ); } add_action( 'widgets_init', 'blueandwhite_remove_recent_comments_style' ); if ( ! function_exists( 'blueandwhite_posted_on' ) ) : function blueandwhite_posted_on() { printf( __( '%2$s', 'blueandwhite' ), 'meta-prep meta-prep-author', sprintf( '
    %3$s
    ', get_permalink(), esc_attr( get_the_time() ), get_the_date('

    M

    d') ), sprintf( '%3$s', get_author_posts_url( get_the_author_meta( 'ID' ) ), sprintf( esc_attr__( 'View all posts by %s', 'blueandwhite' ), get_the_author() ), get_the_author() ) ); } endif; if ( ! function_exists( 'blueandwhite_posted_in' ) ) : function blueandwhite_posted_in() { $tag_list = get_the_tag_list( '', ', ' ); if ( $tag_list ) { $posted_in = __( 'This entry was posted in %1$s and tagged %2$s. Bookmark the permalink.', 'blueandwhite' ); } elseif ( is_object_in_taxonomy( get_post_type(), 'category' ) ) { $posted_in = __( 'This entry was posted in %1$s. Bookmark the permalink.', 'blueandwhite' ); } else { $posted_in = __( 'Bookmark the permalink.', 'blueandwhite' ); } printf( $posted_in, get_the_category_list( ', ' ), $tag_list, get_permalink(), the_title_attribute( 'echo=0' ) ); } endif;