%2$s'; if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) { $time_string = ''; } $time_string = sprintf( $time_string, esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ), esc_attr( get_the_modified_date( 'c' ) ), esc_html( get_the_modified_date() ) ); if ( 'download' === get_post_type() ) { echo ' ' . $time_string . ''; } else { echo '' . $time_string . ''; } } endif; if ( ! function_exists( 'azuma_posted_by' ) ) : /** * Prints HTML with meta information for the current author. */ function azuma_posted_by() { if ( in_the_loop() ) { if ( 'download' === get_post_type() ) { echo ' ' . esc_html( get_the_author() ) . ' '; } else { echo '' . esc_html( get_the_author() ) . ' '; } } else { global $post; echo '' . esc_html( get_the_author_meta( 'display_name', $post->post_author ) ) . ' '; } } endif; if ( ! function_exists( 'azuma_entry_footer' ) ) : /** * Prints HTML with meta information for the categories, tags and comments. */ function azuma_entry_footer() { // Hide category and tag text for pages. if ( 'post' === get_post_type() ) { $author_post_count = count_user_posts( get_the_author_meta( 'ID' ) ); if ( $author_post_count > 1 ) { /* translators: %2s: number of posts by this author. */ $author_post_count_output = sprintf( ' - ' . esc_html__( '%2s posts', 'azuma' ) . '', esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), $author_post_count ); } else { $author_post_count_output = ''; } echo '' . esc_html( get_the_author() ) . '' . $author_post_count_output . ''; echo '' . wpautop( get_the_author_meta( 'description' ) ) . ''; /* translators: used between list items, there is a space after the comma */ $list_item_seperator = esc_html__( ', ', 'azuma' ); $categories_list = get_the_category_list( $list_item_seperator ); if ( $categories_list ) { echo ' ' . $categories_list . ''; } $tags_list = get_the_tag_list( '', $list_item_seperator ); if ( $tags_list ) { echo ' ' . $tags_list . ''; } } 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', 'azuma' ), array( 'span' => array( 'class' => array(), ), ) ), get_the_title() ) ); echo ''; } edit_post_link( sprintf( wp_kses( /* translators: %s: Name of current post. Only visible to screen readers */ __( 'Edit %s', 'azuma' ), array( 'span' => array( 'class' => array(), ), ) ), get_the_title() ), '', '' ); } endif; if ( ! function_exists( 'azuma_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 azuma_post_thumbnail() { if ( post_password_required() || is_attachment() || ! has_post_thumbnail() ) { return; } if ( is_singular() ) : ?>