' . '%1$s' . '', $categories_list ); // WPCS: XSS OK. } } } endif; if ( ! function_exists( 'bosa_entry_footer' ) ) : /** * Prints HTML with meta information for the tags and comments. */ function bosa_entry_footer() { $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() ) ); $year = get_the_date( 'Y' ); $month = get_the_date( 'm' ); $link = ( is_single() ) ? get_month_link( $year, $month ) : get_permalink(); $posted_on = '' . $time_string . ''; if ( !is_single() && !get_theme_mod( 'hide_date', false ) ){ echo '' . $posted_on . ''; // WPCS: XSS OK. }else if ( is_single() && !get_theme_mod( 'hide_single_post_date', false ) ){ echo '' . $posted_on . ''; } $byline = '' . esc_html( get_the_author() ) . ''; if ( !is_single() && !get_theme_mod( 'hide_author', false ) ){ echo ' ' . $byline . ''; } if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) { if( !is_single() && !get_theme_mod( 'hide_comment', false ) ){ echo ''; comments_popup_link( sprintf( wp_kses( /* translators: %s: post title */ __( 'Comment on %s', 'bosa' ), array( 'span' => array( 'class' => array(), ), ) ), get_the_title() ) ); echo ''; }else if ( is_single() && !get_theme_mod( 'hide_single_post_comment', false ) ){ echo ''; comments_popup_link( sprintf( wp_kses( /* translators: %s: post title */ __( 'Leave a Comment on %s', 'bosa' ), array( 'span' => array( 'class' => array(), ), ) ), get_the_title() ) ); echo ''; } } if ( 'post' === get_post_type() ) { /* translators: used between list items, there is a space after the comma */ $categories_list = get_the_category_list( esc_html__( ', ', 'bosa' ) ); if( is_single() && $categories_list && !get_theme_mod( 'hide_single_post_category', false ) ){ /* translators: 1: list of categories. */ printf( '' . '%1$s' . '', $categories_list ); // WPCS: XSS OK. } } if ( is_single() && !get_theme_mod( 'hide_single_post_tag_links', false ) ){ if( get_the_tag_list() ): ?> %2$s'; $time_string = sprintf( $time_string, get_the_date( DATE_W3C ), get_the_date() ); ?> "%s"', 'bosa' ), get_the_title() ), '', '' ); if( ! $echo ){ $output = ob_get_contents(); ob_end_clean(); return $output; } } endif;