__( 'Primary Navigation', 'bluebok' ),
) );
add_custom_background();
set_post_thumbnail_size( HEADER_IMAGE_WIDTH, HEADER_IMAGE_HEIGHT, true );
define( 'NO_HEADER_TEXT', true );
}
endif;
function bluebok_page_menu_args( $args ) {
$args['show_home'] = true;
return $args;
}
add_filter( 'wp_page_menu_args', 'bluebok_page_menu_args' );
function bluebok_excerpt_length( $length ) {
return 40;
}
add_filter( 'excerpt_length', 'bluebok_excerpt_length' );
function bluebok_continue_reading_link() {
return ' ' . __( 'Continue reading →', 'bluebok' ) . '';
}
function bluebok_auto_excerpt_more( $more ) {
return ' …' . bluebok_continue_reading_link();
}
add_filter( 'excerpt_more', 'bluebok_auto_excerpt_more' );
function bluebok_custom_excerpt_more( $output ) {
if ( has_excerpt() && ! is_attachment() ) {
$output .= bluebok_continue_reading_link();
}
return $output;
}
add_filter( 'get_the_excerpt', 'bluebok_custom_excerpt_more' );
function bluebok_remove_gallery_css( $css ) {
return preg_replace( "##s", '', $css );
}
add_filter( 'gallery_style', 'bluebok_remove_gallery_css' );
if ( ! function_exists( 'bluebok_comment' ) ) :
function bluebok_comment( $comment, $args, $depth ) {
$GLOBALS['comment'] = $comment;
switch ( $comment->comment_type ) :
case '' :
?>
id="li-comment-">
__( 'Primary Widget Area', 'bluebok' ),
'id' => 'primary-widget-area',
'description' => __( 'The primary widget area', 'bluebok' ),
'before_widget' => '',
'after_widget' => '',
'before_title' => '',
) );
register_sidebar( array(
'name' => __( 'Secondary Widget Area', 'bluebok' ),
'id' => 'secondary-widget-area',
'description' => __( 'The secondary widget area', 'bluebok' ),
'before_widget' => '',
'after_widget' => '',
'before_title' => '',
) );
}
add_action( 'widgets_init', 'bluebok_widgets_init' );
function bluebok_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', 'bluebok_remove_recent_comments_style' );
if ( ! function_exists( 'bluebok_posted_on' ) ) :
function bluebok_posted_on() {
printf( __( 'Posted on %2$s by %3$s', 'bluebok' ),
'meta-prep meta-prep-author',
sprintf( '%3$s',
get_permalink(),
esc_attr( get_the_time() ),
get_the_date()
),
sprintf( '%3$s',
get_author_posts_url( get_the_author_meta( 'ID' ) ),
sprintf( esc_attr__( 'View all posts by %s', 'bluebok' ), get_the_author() ),
get_the_author()
)
);
}
endif;
if ( ! function_exists( 'bluebok_posted_in' ) ) :
function bluebok_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.', 'bluebok' );
} elseif ( is_object_in_taxonomy( get_post_type(), 'category' ) ) {
$posted_in = __( 'This entry was posted in %1$s. Bookmark the permalink.', 'bluebok' );
} else {
$posted_in = __( 'Bookmark the permalink.', 'bluebok' );
}
printf(
$posted_in,
get_the_category_list( ', ' ),
$tag_list,
get_permalink(),
the_title_attribute( 'echo=0' )
);
}
endif;