if ( ! function_exists( 'polestar_post_meta' ) ) :
/**
* Print HTML with meta information for the sticky status, current post-date/time, author, comment count and post categories.
*/
function polestar_post_meta() {
if ( ( is_home() || is_archive() || is_search() ) && get_theme_mod( 'post_date', true ) ) {
echo '';
}
if ( is_single() && get_theme_mod( 'post_date', true ) ) {
echo '';
}
/* translators: used between list items, there is a space after the comma */
$categories_list = get_the_category_list( esc_html__( ', ', 'polestar' ) );
if ( $categories_list ) {
/* translators: 1: list of categories. */
printf( '' . esc_html__( 'Posted in %1$s', 'polestar' ) . '', $categories_list ); // WPCS: XSS OK.
}
if ( get_theme_mod( 'post_author', true ) ) {
echo '' . esc_html( get_the_author() ) . '';
}
if ( comments_open() && get_theme_mod( 'post_comment_count', true ) ) {
echo '';
}
}
endif;