%2$s'; $posted_updated = esc_html__( 'Published: ', 'boyo' ); if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) { $time_string = ''; $posted_updated = esc_html__( 'Last Updated: ', 'boyo' ); } $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 = $posted_updated . '' . $time_string . ''; echo '' . $posted_on . ''; // WPCS: XSS OK. } endif; if ( ! function_exists( 'boyo_posted_by' ) ) : /** * Prints HTML with meta information for the current author. */ function boyo_posted_by() { if ( function_exists( 'get_coauthors' ) ) { $coauthors = get_coauthors(); if ( ! empty( $coauthors ) ) { $byline = '
'; } } else { $byline = ' '; } echo ' '; // WPCS: XSS OK. } endif; if ( ! function_exists( 'boyo_entry_footer' ) ) : /** * Prints HTML with meta information for the categories, tags and comments. */ function boyo_entry_footer() { // Hide category and tag text for pages. if ( 'post' === get_post_type() ) { boyo_the_tags(); } edit_post_link( sprintf( wp_kses( /* translators: %s: Name of current post. Only visible to screen readers */ __( 'Edit %s', 'boyo' ), array( 'span' => array( 'class' => array(), ), ) ), get_the_title() ), '', '' ); } endif; if ( ! function_exists( 'boyo_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 boyo_post_thumbnail() { if ( post_password_required() || is_attachment() ) { return; } if ( is_singular() ) : if ( has_post_thumbnail() && ! get_post_format() ) : ?>