%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() ) ); $posted_on = sprintf( '%s', '' . $time_string . '' ); } if ( ! empty( $posted_on ) ) { echo '' . $posted_on . ''; // WPCS: XSS OK. } $byline = ''; $show_post_admin = bookstore_exhibition_get_option( 'show_post_admin_setting' ); if ( true === $show_meta_author ) { if ( true === $show_post_admin ) { $byline = sprintf( '%s', '' ); } } if ( ! empty( $byline ) ) { echo ''; // WPCS: XSS OK. } } if ( ! is_single() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) { $show_post_comments = bookstore_exhibition_get_option( 'show_post_comments_setting' ); if ( true === $show_post_comments) { $show_meta_comment = true; if ( true === $show_meta_comment ) { echo ''; comments_popup_link( esc_html__( 'Leave a comment', 'bookstore-exhibition' ), esc_html__( '1 Comment', 'bookstore-exhibition' ), esc_html__( '% Comments', 'bookstore-exhibition' ) ); echo ''; } } } // Hide category and tag text for pages. if ( 'post' === get_post_type() ) { $show_meta_categories = true; $show_post_categories = bookstore_exhibition_get_option( 'show_post_categories_setting' ); if ( true === $show_post_categories) { if ( true === $show_meta_categories ) { /* Translators: used between list items, there is a space after the comma. */ $categories_list = get_the_category_list( esc_html__( ', ', 'bookstore-exhibition' ) ); if ( $categories_list && bookstore_exhibition_categorized_blog() ) { printf( '%1$s', $categories_list ); // WPCS: XSS OK. } } } $show_meta_tags = true; $show_meta_tags = bookstore_exhibition_get_option( 'show_post_tags_setting' ); if ( true === $show_meta_tags) { if ( true === $show_meta_tags ) { /* Translators: used between list items, there is a space after the comma. */ $tags_list = get_the_tag_list( '', esc_html__( ', ', 'bookstore-exhibition' ) ); if ( $tags_list ) { printf( '', $tags_list ); // WPCS: XSS OK. } } } } edit_post_link( esc_html__( 'Edit', 'bookstore-exhibition' ), '', '' ); } endif; if ( ! function_exists( 'bookstore_exhibition_entry_meta_date' ) ) : /** * Prints HTML with date meta. */ function bookstore_exhibition_entry_meta_date() { ?>