%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( 'On %s', 'post date', 'appzend' ), '' . $time_string . '' ); echo '
' . $posted_on . '
'; // WPCS: XSS OK. } endif; if ( ! function_exists( 'appzend_posted_by' ) ) : /** * Prints HTML with meta information for the current author. */ function appzend_posted_by() { $byline = sprintf( /* translators: %s: post author. */ //esc_html_x( 'by %s', 'post author', 'appzend' ), '' . esc_html( get_the_author() ) . '' ); echo '
' . $byline . '
'; // WPCS: XSS OK. } endif; if ( ! function_exists( 'appzend_comments' ) ) : /** * Prints HTML with meta information for the current author. */ function appzend_comments() { echo '
'; comments_popup_link( sprintf( wp_kses( /* translators: %s: post title */ __( 'Leave a Comment on %s', 'appzend' ), array( 'span' => array( 'class' => array(), ), ) ), get_the_title() ) ); echo '
'; // WPCS: XSS OK. } endif; if ( ! function_exists( 'appzend_category_list' ) ) : /** * Prints HTML with meta information for the current author. */ function appzend_category_list() { $categories_list = get_the_category_list( esc_html__( ', ', 'appzend' ) ); if ( $categories_list ) { /* translators: 1: list of categories. */ printf( '
' . esc_html__( 'in %1$s', 'appzend' ) . '
', $categories_list ); // WPCS: XSS OK. } // WPCS: XSS OK. } endif; if ( ! function_exists( 'appzend_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 appzend_post_thumbnail() { if ( post_password_required() || is_attachment() || ! has_post_thumbnail() ) { return; } if ( is_singular() ) : ?>