%2$s'; if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) { $time_string = ''; } $time_string = sprintf( $time_string, esc_attr( get_the_date( DATE_W3C ) ), esc_html( get_the_date() ), esc_attr( get_the_modified_date( DATE_W3C ) ), esc_html( get_the_modified_date() ) ); $posted_on = sprintf( /* translators: %s: post date. */ esc_html_x( '%s', 'post date', 'bro-barbershop' ), '' . $time_string . '' ); echo '' . $posted_on . ''; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } endif; if ( ! function_exists( 'bro_barbershop_posted_by' ) ) : /** * Prints HTML with meta information for the current author. */ function bro_barbershop_posted_by() { $byline = sprintf( /* translators: %s: post author. */ esc_html_x( 'by %s', 'post author', 'bro-barbershop' ), '' . esc_html( get_the_author() ) . '' ); echo ' ' . $byline . ''; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } endif; if ( ! function_exists( 'bro_barbershop_posted_in' ) ) : function bro_barbershop_posted_in() { $categories_list = get_the_category_list( ' ' ); if ( $categories_list ) { echo '' . $categories_list . ''; } } endif; if ( ! function_exists( 'bro_barbershop_comments_number' ) ) : function bro_barbershop_comments_number() { $comments_number = get_comments_number(); if ( $comments_number ) { ?> ' . esc_html__( '%1$s', 'bro-barbershop' ) . '', $tags_list ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } } if ( ! is_single() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) { echo ''; comments_popup_link( sprintf( wp_kses( /* translators: %s: post title */ __( 'Leave a Comment on %s', 'bro-barbershop' ), array( 'span' => array( 'class' => array(), ), ) ), wp_kses_post( get_the_title() ) ) ); echo ''; } edit_post_link( sprintf( wp_kses( /* translators: %s: Name of current post. Only visible to screen readers */ __( 'Edit %s', 'bro-barbershop' ), array( 'span' => array( 'class' => array(), ), ) ), wp_kses_post( get_the_title() ) ), '', '' ); } endif; if ( ! function_exists( 'bro_barbershop_post_thumbnail' ) ) : /** * Displays an optional post thumbnail. * * Wraps the post thumbnail in an anchor element on index views, or a div * element when on single views. */ function bro_barbershop_post_thumbnail( $size = 'post-thumbnail' ) { if ( post_password_required() || is_attachment() || ! has_post_thumbnail() ) { return; } if ( is_singular() ) : ?>
'; $icon_next = ' '; the_posts_pagination( array( 'mid_size' => 1, 'prev_text' => $icon_prev, 'next_text' => $icon_next, ) ); } endif; if ( ! function_exists( 'bro_barbershop_posts_navigation' ) ): function bro_barbershop_posts_navigation() { if ( is_singular( 'mpa_service' ) || is_singular( 'mpa_employee' ) || is_singular( 'mpa_location' ) ) { return; } $icon_prev = ' '; $icon_next = ' '; the_post_navigation( array( 'prev_text' => '%title', 'next_text' => '%title', ) ); } endif;