';
}
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_tgs = sprintf(
/* translators: %1$s: Post Tags */
esc_html__( 'Posted in %1$s', 'bstone' ),
$categories_list
);
$output = '' . $meta_icons_html . $output_tgs . '';
} 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;
$byline .= __('by', 'bstone');
$byline .= ' ' . esc_html( get_the_author() ) . '';
$byline .= '';
} else {
$byline = ''.$meta_icons_html;
$byline .= ' ' . esc_html( get_the_author() ) . '';
$byline .= '';
}
return apply_filters( 'bstone_entry_meta_author', $byline );
}
}
if ( ! function_exists( 'bstone_entry_meta_author_by_post_id' ) ) {
function bstone_entry_meta_author_by_post_id( $meta_icons, $icon_typ, $icon_status, $posd_id ) {
$meta_icons_html = '';
if( true == $meta_icons && true == $icon_status ) {
$meta_icons_html = '';
}
$author_id = get_post_field ( 'post_author', $posd_id );
if( true == bstone_options('display-meta-text') ) {
$byline = ''.$meta_icons_html;
$byline .= __('by', 'bstone');
$byline .= ' ' . esc_html( get_the_author_meta( 'display_name', $author_id ) ) . '';
$byline .= '';
} else {
$byline = ''.$meta_icons_html;
$byline .= ' ' . esc_html( get_the_author_meta( 'display_name', $author_id ) ) . '';
$byline .= '';
}
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.$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_tgs = sprintf(
/* translators: %1$s: Post tags */
esc_html__( 'Tagged %1$s', 'bstone' ),
$tags_list
);
$output = ''.$meta_icons_html . $output_tgs . '';
} else {
$output = ''.$meta_icons_html.$tags_list.'';
}
return apply_filters( 'bstone_entry_meta_tag', $output );
}
}
}