post_parent ) && $image->post_parent != $id )
$url .= '#main';
return $url;
}
add_filter( 'attachment_link', 'bizpress_enhanced_image_navigation', 10, 2 );
/**
* Filters wp_title to print a neat
tag based on what is being viewed.
*/
function bizpress_wp_title( $title, $sep ) {
global $page, $paged;
if ( is_feed() )
return $title;
// Add the blog name
$title .= get_bloginfo( 'name' );
// Add the blog description for the home/front page.
$site_description = get_bloginfo( 'description', 'display' );
if ( $site_description && ( is_home() || is_front_page() ) )
$title .= " $sep $site_description";
// Add a page number if necessary:
if ( $paged >= 2 || $page >= 2 )
$title .= " $sep " . sprintf( __( 'Page %s', 'bizpress' ), max( $paged, $page ) );
return $title;
}
add_filter( 'wp_title', 'bizpress_wp_title', 10, 2 );
/* Display icon for blog post using
* Post Format - get_post_format() function
*
* @since BizPress Lite 1.0
*/
function bizpress_post_format_icon() {
if(!is_single()) {
?>
%5$s ',
$post_icon,
esc_url( get_permalink() ),
sprintf( esc_html__( '%1$s @ %2$s', 'bizpress' ), esc_html( get_the_date() ), esc_attr( get_the_time() ) ),
esc_attr( get_the_date( 'c' ) ),
esc_html( get_the_date() )
);
// Translators: 1: Date link 2: Author link 3: Categories 4: No. of Comments
$author = sprintf( ' %3$s ',
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
esc_attr( sprintf( esc_html__( 'View all posts by %s', 'bizpress' ), get_the_author() ) ),
get_the_author()
);
// Return the Categories as a list
$categories_list = ' '.get_the_category_list( esc_html__( ', ', 'bizpress' ) );
// Translators: 1: Permalink 2: Title 3: No. of Comments
$comments = sprintf( '',
esc_url( get_comments_link() ),
esc_attr( esc_html__( 'Comment on ' . the_title_attribute( 'echo=0' ) ) ),
( get_comments_number() > 0 ? sprintf( _n( '%1$s Comment', '%1$s Comments', get_comments_number() ), get_comments_number() ) : esc_html__( 'No Comments', 'bizpress' ) )
);
// Translators: 1: Date 2: Author 3: Categories 4: Comments
printf( wp_kses( __( '', 'bizpress' ), array(
'div' => array (
'class' => array() ),
'span' => array(
'class' => array() ) ) ),
$author,
$date,
$categories_list,
( is_search() ? '' : $comments )
);
}
}
function bizpress_admin_notice(){
global $pagenow;
if ( $pagenow == 'themes.php' ) { ?>
This theme comes with Live Theme Customizer to configure settings and setup home page content. You can upgrade to Pro version for more features like multiple slider images, testimonials, color schemes, support and upgrades.