%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', varia_get_icon_svg( 'watch', 16 ), esc_url( get_permalink() ), $time_string ); } endif; if ( ! function_exists( 'varia_posted_by' ) ) : /** * Prints HTML with meta information about theme author. */ function varia_posted_by() { printf( /* translators: 1: SVG icon. 2: post author, only visible to screen readers. 3: author link. */ ' ', varia_get_icon_svg( 'person', 16 ), __( 'Posted by', 'varia' ), esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), esc_html( get_the_author() ) ); } endif; if ( ! function_exists( 'varia_comment_count' ) ) : /** * Prints HTML with the comment count for the current post. */ function varia_comment_count() { if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) { echo ''; echo varia_get_icon_svg( 'comment', 16 ); /* translators: %s: Name of current post. Only visible to screen readers. */ comments_popup_link( sprintf( __( 'Leave a comment on %s', 'varia' ), get_the_title() ) ); echo ''; } } endif; if ( ! function_exists( 'varia_entry_meta' ) ) : /** * Prints HTML with meta information for the categories, tags and comments. */ function varia_entry_meta() { // Hide author, post date, category and tag text for pages. if ( 'post' === get_post_type() ) { // Posted by varia_posted_by(); // Posted on varia_posted_on(); /* translators: used between list items, there is a space after the comma. */ $categories_list = get_the_category_list( __( ', ', 'varia' ) ); 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', varia_get_icon_svg( 'archive', 16 ), __( 'Posted in', 'varia' ), $categories_list ); // WPCS: XSS OK. } /* translators: used between list items, there is a space after the comma. */ $tags_list = get_the_tag_list( '', __( ', ', 'varia' ) ); if ( $tags_list ) { printf( /* translators: 1: SVG icon. 2: posted in label, only visible to screen readers. 3: list of tags. */ ' ', varia_get_icon_svg( 'tag', 16 ), __( 'Tags:', 'varia' ), $tags_list ); // WPCS: XSS OK. } } // Comment count. if ( ! is_singular() ) { varia_comment_count(); } // Edit post link. edit_post_link( sprintf( wp_kses( /* translators: %s: Name of current post. Only visible to screen readers. */ __( 'Edit %s', 'varia' ), array( 'span' => array( 'class' => array(), ), ) ), get_the_title() ), '' . varia_get_icon_svg( 'edit', 16 ), '' ); } endif; if ( ! function_exists( 'varia_entry_footer' ) ) : /** * Prints HTML with meta information for the categories, tags and comments. */ function varia_entry_footer() { // Hide author, post date, category and tag text for pages. if ( 'post' === get_post_type() ) { // Posted by varia_posted_by(); // Posted on varia_posted_on(); /* translators: used between list items, there is a space after the comma. */ $categories_list = get_the_category_list( __( ', ', 'varia' ) ); 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', varia_get_icon_svg( 'archive', 16 ), __( 'Posted in', 'varia' ), $categories_list ); // WPCS: XSS OK. } /* translators: used between list items, there is a space after the comma. */ $tags_list = get_the_tag_list( '', __( ', ', 'varia' ) ); if ( $tags_list ) { printf( /* translators: 1: SVG icon. 2: posted in label, only visible to screen readers. 3: list of tags. */ ' ', varia_get_icon_svg( 'tag', 16 ), __( 'Tags:', 'varia' ), $tags_list ); // WPCS: XSS OK. } } // Comment count. if ( ! is_singular() ) { varia_comment_count(); } // Edit post link. edit_post_link( sprintf( wp_kses( /* translators: %s: Name of current post. Only visible to screen readers. */ __( 'Edit %s', 'varia' ), array( 'span' => array( 'class' => array(), ), ) ), get_the_title() ), '' . varia_get_icon_svg( 'edit', 16 ), '' ); } endif; if ( ! function_exists( 'varia_post_thumbnail' ) ) : /** * Displays an optional post thumbnail. * * Wraps the post thumbnail in an anchor element on index views */ function varia_post_thumbnail() { if ( ! varia_can_show_post_thumbnail() ) { return; } if ( is_singular() ) : ?> %s', get_avatar( $id_or_email, varia_get_avatar_size() ) ); } endif; if ( ! function_exists( 'varia_discussion_avatars_list' ) ) : /** * Displays a list of avatars involved in a discussion for a given post. */ function varia_discussion_avatars_list( $comment_authors ) { if ( empty( $comment_authors ) ) { return; } echo '