';
}
return apply_filters( 'bstone_entry_meta_comments', '' );
}
}
if ( ! function_exists( 'bstone_entry_meta_category' ) ) {
function bstone_entry_meta_category( $meta_icons, $icon_typ, $icon_status ) {
$categories_list = get_the_category_list( esc_html__( ', ', 'bstone' ) );
if ( $categories_list ) {
/* translators: 1: list of categories. */
$meta_icons_html = '';
if( true == $meta_icons && true == $icon_status ) {
$meta_icons_html = '';
}
$output = '';
if( true == bstone_options('display-meta-text') ) {
$output = sprintf( '' . $meta_icons_html . esc_html__( 'Posted in %1$s', 'bstone' ) . '', $categories_list ); // WPCS: XSS OK.
} else {
$output = '' . $meta_icons_html . $categories_list . '';
}
return apply_filters( 'bstone_entry_meta_category', $output );
}
}
}
if ( ! function_exists( 'bstone_entry_meta_author' ) ) {
function bstone_entry_meta_author( $meta_icons, $icon_typ, $icon_status ) {
$meta_icons_html = '';
if( true == $meta_icons && true == $icon_status ) {
$meta_icons_html = '';
}
if( true == bstone_options('display-meta-text') ) {
$byline = ''.$meta_icons_html.sprintf(
/* translators: %s: post author. */
esc_html_x( 'by %s', 'post author', 'bstone' ),
'' . esc_html( get_the_author() ) . ''
).'';
} else {
$byline = ''.$meta_icons_html.sprintf(
/* translators: %s: post author. */
esc_html_x( '%s', 'post author', 'bstone' ),
'' . esc_html( get_the_author() ) . ''
).'';
}
return apply_filters( 'bstone_entry_meta_author', $byline );
}
}
if ( ! function_exists( 'bstone_entry_meta_date' ) ) {
function bstone_entry_meta_date( $meta_icons, $icon_typ, $icon_status ) {
$time_string = '';
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() )
);
$meta_icons_html = '';
if( true == $meta_icons && true == $icon_status ) {
$meta_icons_html = '';
}
if( true == bstone_options('display-meta-text') ) {
$posted_on = ''.$meta_icons_html.sprintf(
/* translators: %s: post date. */
esc_html_x( 'Posted on %s', 'post date', 'bstone' ), $time_string
).'';
} else {
$posted_on = ''.$meta_icons_html.sprintf(
/* translators: %s: post date. */
esc_html_x( '%s', 'post date', 'bstone' ), $time_string
).'';
}
return apply_filters( 'bstone_entry_meta_date', $posted_on );
}
}
if ( ! function_exists( 'bstone_entry_meta_tag' ) ) {
function bstone_entry_meta_tag( $meta_icons, $icon_typ, $icon_status ) {
/* translators: used between list items, there is a space after the comma */
$tags_list = get_the_tag_list( '', esc_html_x( ', ', 'list item separator', 'bstone' ) );
if ( $tags_list ) {
/* translators: 1: list of tags. */
$meta_icons_html = '';
if( true == $meta_icons && true == $icon_status ) {
$meta_icons_html = '';
}
$output = '';
if( true == bstone_options('display-meta-text') ) {
$output = sprintf( ''.$meta_icons_html . esc_html__( 'Tagged %1$s', 'bstone' ) . '', $tags_list ); // WPCS: XSS
} else {
$output = sprintf( ''.$meta_icons_html . esc_html__( '%1$s', 'bstone' ) . '', $tags_list ); // WPCS: XSS
}
return apply_filters( 'bstone_entry_meta_tag', $output );
}
}
}