' . $postmeta . '';
}
endif;
if ( ! function_exists( 'benpress_meta_date' ) ) :
/**
* Displays the post date
*/
function benpress_meta_date() {
$time_string = sprintf( '',
esc_url( get_permalink() ),
esc_attr( get_the_time() ),
esc_attr( get_the_date( 'c' ) ),
esc_html( get_the_date() )
);
$posted_on = sprintf( esc_html_x( 'On %s', 'post date', 'benpress' ), $time_string );
return '' . $posted_on . '';
}
endif;
if ( ! function_exists( 'benpress_meta_author' ) ) :
/**
* Displays the post author
*/
function benpress_meta_author() {
$author_string = sprintf( '%3$s',
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
esc_attr( sprintf( esc_html__( 'View all posts by %s', 'benpress' ), get_the_author() ) ),
esc_html( get_the_author() )
);
$posted_by = sprintf( esc_html_x( 'By %s', 'post author', 'benpress' ), $author_string );
return ' ' . $posted_by . '';
}
endif;
if ( ! function_exists( 'benpress_meta_category' ) ) :
/**
* Displays the post category
*/
function benpress_meta_category() {
// Return early if post has no category.
if ( ! has_category() ) {
return;
}
$posted_in = sprintf( esc_html_x( 'In %s', 'post category', 'benpress' ), get_the_category_list( ', ' ) );
return ' ' . $posted_in . '';
}
endif;
if ( ! function_exists( 'benpress_entry_tags' ) ) :
/**
* Displays the post tags on single post view
*/
function benpress_entry_tags() {
// Get tags.
$tag_list = get_the_tag_list( esc_html__( 'Tagged with ', 'benpress' ), ', ' );
// Display tags.
if ( $tag_list ) : ?>
'' . esc_html_x( 'Previous Post', 'post navigation', 'benpress' ) . '%title
',
'next_text' => '' . esc_html_x( 'Next Post', 'post navigation', 'benpress' ) . '%title
',
) );
}
}
endif;
if ( ! function_exists( 'benpress_breadcrumbs' ) ) :
/**
* Displays ThemeZee Breadcrumbs plugin
*/
function benpress_breadcrumbs() {
if ( function_exists( 'themezee_breadcrumbs' ) ) {
themezee_breadcrumbs( array(
'before' => '',
'after' => '
',
) );
}
}
endif;
if ( ! function_exists( 'benpress_related_posts' ) ) :
/**
* Displays ThemeZee Related Posts plugin
*/
function benpress_related_posts() {
if ( function_exists( 'themezee_related_posts' ) ) {
themezee_related_posts( array(
'class' => 'related-posts type-page clearfix',
'before_title' => '',
'after_title' => '
',
) );
}
}
endif;
if ( ! function_exists( 'benpress_pagination' ) ) :
/**
* Displays pagination on archive pages
*/
function benpress_pagination() {
the_posts_pagination( array(
'mid_size' => 2,
'prev_text' => '«' . esc_html_x( 'Previous Posts', 'pagination', 'benpress' ) . '',
'next_text' => '' . esc_html_x( 'Next Posts', 'pagination', 'benpress' ) . '»',
) );
}
endif;
/**
* Displays credit link on footer line
*/
function benpress_credit_link() {
if ( true === benpress_get_option( 'credit_link' ) || is_customize_preview() ) :
?>
ThemeZee'
);
?>