)\s*?(\(.*?\))#', 'blockchain_lite_replace_category_widget_post_counts_in_span', $output );
return $output;
}
endif;
if ( ! function_exists( 'blockchain_lite_replace_category_widget_post_counts_in_span' ) ) :
function blockchain_lite_replace_category_widget_post_counts_in_span( $matches ) {
return sprintf( '%s %s',
$matches[1],
$matches[2]
);
}
endif;
function blockchain_lite_header_is_overlaid() {
$is_overlaid = false;
if ( is_singular() ) {
$overlaid = get_post_meta( get_queried_object_id(), 'blockchain_lite_header_overlaid', true );
if ( $overlaid ) {
$is_overlaid = true;
}
}
return apply_filters( 'blockchain_lite_header_is_overlaid', $is_overlaid );
}
add_filter( 'blockchain_lite_header_classes', 'blockchain_lite_add_header_classes' );
function blockchain_lite_add_header_classes( $classes ) {
if ( blockchain_lite_header_is_overlaid() ) {
$classes[] = 'header-overlaid';
}
return $classes;
}
add_filter( 'blockchain_lite_head_mast_classes', 'blockchain_lite_add_head_mast_classes' );
function blockchain_lite_add_head_mast_classes( $classes ) {
if ( blockchain_lite_header_is_overlaid() ) {
$classes[] = 'over-background';
}
return $classes;
}
/**
* Include a skip to content link at the top of the page so that users can bypass the menu.
*/
add_action( 'wp_body_open', 'blockchain_lite_skip_link', 5 );
function blockchain_lite_skip_link() {
?>' . $cache . '';
}
return $cache;
}
add_filter( 'wp_page_menu', 'blockchain_lite_wp_page_menu', 10, 2 );
function blockchain_lite_wp_page_menu( $menu, $args ) {
$menu = preg_replace( '#^#', '', $menu, 1 );
$menu = preg_replace( '#
$#', '', $menu, 1 );
$menu = preg_replace( '#^