%2$s';
if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) {
$time_string = '';
}
$time_string = sprintf( $time_string,
esc_attr( get_the_date( 'c' ) ),
esc_html( get_the_date() ),
esc_attr( get_the_modified_date( 'c' ) ),
esc_html( get_the_modified_date() )
);
$posted_on = sprintf(
/* translators: %s: post date. */
' %s',
'' . $time_string . ''
);
$byline = sprintf(
/* translators: %s: post author. */
' %s',
'' . esc_html( get_the_author() ) . ''
);
$enable_posted_date = blog_era_get_option('enable_posted_date');
$enable_author = blog_era_get_option('enable_author');
if ( true == $enable_posted_date):
echo '' . $posted_on . ''; // WPCS: XSS OK.
endif;
if ( true == $enable_author):
echo ' ' . $byline . ''; // WPCS: XSS OK.
endif;
}
endif;
if ( ! function_exists( 'blog_era_entry_footer' ) ) :
/**
* Prints HTML with meta information for the categories, tags and comments.
*/
function blog_era_entry_footer() {
// Hide category and tag text for pages.
if ( 'post' === get_post_type() ) {
$enable_categories = blog_era_get_option('enable_categories');
$enable_tags = blog_era_get_option('enable_tags');
if ( true == $enable_categories) :
/* translators: used between list items, there is a space after the comma */
$categories_list = get_the_category_list( ' ' );
if ( $categories_list ) {
printf( '%1$s', $categories_list ); // WPCS: XSS OK.
}
/* translators: used between list items, there is a space after the comma */
$tags_list = get_the_tag_list( '', ' ' );
if ( $tags_list ) {
printf( '%1$s', $tags_list ); // WPCS: XSS OK.
}
endif;
if ( true == $enable_tags) :
if ( ! is_single() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) {
echo '';
}
endif;
}
edit_post_link( esc_html__( 'Edit', 'blog-era' ), '', '' );
}
endif;