%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'), '' ); echo ''; // 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() { if (post_password_required() || is_attachment() || !has_post_thumbnail()) { return; } if (is_singular()) : ?>