%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() ) ); printf( '%1$s%3$s', twentynineteen_get_icon_svg( 'watch', 16 ), esc_url( get_permalink() ), $time_string ); } endif; if ( ! function_exists( 'twentynineteen_posted_by' ) ) : /** * Prints HTML with meta information about theme author. */ function twentynineteen_posted_by() { printf( /* translators: 1: SVG icon. 2: Post author, only visible to screen readers. 3: Author link. */ '%1$s%2$s%4$s', twentynineteen_get_icon_svg( 'person', 16 ), __( 'Posted by', 'twentynineteen' ), esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), esc_html( get_the_author() ) ); } endif; if ( ! function_exists( 'twentynineteen_comment_count' ) ) : /** * Prints HTML with the comment count for the current post. */ function twentynineteen_comment_count() { if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) { echo ''; echo twentynineteen_get_icon_svg( 'comment', 16 ); /* translators: %s: Post title. Only visible to screen readers. */ comments_popup_link( sprintf( __( 'Leave a comment on %s', 'twentynineteen' ), get_the_title() ) ); echo ''; } } endif; if ( ! function_exists( 'twentynineteen_entry_footer' ) ) : /** * Prints HTML with meta information for the categories, tags and comments. */ function twentynineteen_entry_footer() { // Hide author, post date, category and tag text for pages. if ( 'post' === get_post_type() ) { // Posted by. twentynineteen_posted_by(); // Posted on. twentynineteen_posted_on(); $categories_list = get_the_category_list( wp_get_list_item_separator() ); if ( $categories_list ) { printf( /* translators: 1: SVG icon. 2: Posted in label, only visible to screen readers. 3: List of categories. */ '%1$s%2$s%3$s', twentynineteen_get_icon_svg( 'archive', 16 ), __( 'Posted in', 'twentynineteen' ), $categories_list ); // WPCS: XSS OK. } $tags_list = get_the_tag_list( '', wp_get_list_item_separator() ); if ( $tags_list && ! is_wp_error( $tags_list ) ) { printf( /* translators: 1: SVG icon. 2: Posted in label, only visible to screen readers. 3: List of tags. */ '%1$s%2$s %3$s', twentynineteen_get_icon_svg( 'tag', 16 ), __( 'Tags:', 'twentynineteen' ), $tags_list ); // WPCS: XSS OK. } } // Comment count. if ( ! is_singular() ) { twentynineteen_comment_count(); } // Edit post link. edit_post_link( sprintf( wp_kses( /* translators: %s: Post title. Only visible to screen readers. */ __( 'Edit %s', 'twentynineteen' ), array( 'span' => array( 'class' => array(), ), ) ), get_the_title() ), '' . twentynineteen_get_icon_svg( 'edit', 16 ), '' ); } endif; if ( ! function_exists( 'twentynineteen_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 twentynineteen_post_thumbnail() { if ( ! twentynineteen_can_show_post_thumbnail() ) { return; } if ( is_singular() ) : ?>
%s', get_avatar( $id_or_email, twentynineteen_get_avatar_size() ) ); } endif; if ( ! function_exists( 'twentynineteen_discussion_avatars_list' ) ) : /** * Displays a list of avatars involved in a discussion for a given post. */ function twentynineteen_discussion_avatars_list( $comment_authors ) { if ( empty( $comment_authors ) ) { return; } echo '
    ', "\n"; foreach ( $comment_authors as $id_or_email ) { printf( "
  1. %s
  2. \n", twentynineteen_get_user_avatar_markup( $id_or_email ) ); } echo '
', "\n"; } endif; if ( ! function_exists( 'twentynineteen_comment_form' ) ) : /** * Documentation for function. */ function twentynineteen_comment_form( $order ) { if ( true === $order || strtolower( $order ) === strtolower( get_option( 'comment_order', 'asc' ) ) ) { comment_form( array( 'title_reply' => null, ) ); } } endif; if ( ! function_exists( 'twentynineteen_the_posts_navigation' ) ) : /** * Documentation for function. */ function twentynineteen_the_posts_navigation() { the_posts_pagination( array( 'mid_size' => 2, 'prev_text' => sprintf( '%s %s', twentynineteen_get_icon_svg( 'chevron_left', 22 ), __( 'Newer posts', 'twentynineteen' ) ), 'next_text' => sprintf( '%s %s', __( 'Older posts', 'twentynineteen' ), twentynineteen_get_icon_svg( 'chevron_right', 22 ) ), ) ); } endif; if ( ! function_exists( 'wp_body_open' ) ) : /** * Fire the wp_body_open action. * * Added for backward compatibility to support pre-5.2.0 WordPress versions. * * @since Twenty Nineteen 1.4 */ function wp_body_open() { /** * Triggered after the opening tag. * * @since Twenty Nineteen 1.4 */ do_action( 'wp_body_open' ); } endif;