__( '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 '' : ?>
__( 'Primary Widget Area', 'blueandwhite' ), 'id' => 'primary-widget-area', 'description' => __( 'The primary widget area', 'blueandwhite' ), 'before_widget' => '
M
d') ), sprintf( '', 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;