%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 ( 'testimonial' == $type ) { echo '' . $time_string . ''; // WPCS: XSS OK. } else { echo '' . $time_string . ''; // WPCS: XSS OK. } } endif; // ends check for canape_posted_on() if ( ! function_exists( 'canape_entry_meta' ) ) : /** * Prints HTML with meta information for current post: date, comments and edit link. */ function canape_entry_meta() { // Sticky if ( is_sticky() && is_home() && ! is_paged() ) { echo '' . esc_html__( 'Featured', 'canape' ) . ''; } // Date if ( ! is_sticky() ) { canape_posted_on(); } // Comments if ( ! is_single() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) { echo ''; comments_popup_link( esc_html__( 'Leave a comment', 'canape' ), esc_html__( '1 Comment', 'canape' ), esc_html__( '% Comments', 'canape' ) ); echo ''; } // Edit link edit_post_link( esc_html__( 'Edit', 'canape' ), '', '' ); } endif; // ends check for canape_entry_meta() if ( ! function_exists( 'canape_entry_footer' ) ) : /** * Prints HTML with meta information for the categories and tags. */ function canape_entry_footer() { // Hide category and tag text for pages. if ( 'post' === get_post_type() ) { /* translators: used between list items, there is a space after the comma */ $categories_list = get_the_category_list( esc_html__( ', ', 'canape' ) ); if ( $categories_list && canape_categorized_blog() ) { printf( '' . esc_html__( 'Posted in %1$s', 'canape' ) . '', $categories_list ); // WPCS: XSS OK. } /* translators: used between list items, there is a space after the comma */ the_tags( sprintf( ' ' ); } } endif; // ends check for canape_entry_footer() /** * Display an optional post thumbnail. * * Wraps the post thumbnail in an anchor element on index * views, or a div element when on single views. */ function canape_post_thumbnail() { if ( post_password_required() || is_attachment() || ! has_post_thumbnail() ) { return; } if ( is_singular() ) : ?>