%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 = ''; $cafeteria_elementor_show_post_admin = cafeteria_elementor_get_option( 'cafeteria_elementor_show_post_admin_setting' ); if ( true === $cafeteria_elementor_show_meta_author ) { if ( true === $cafeteria_elementor_show_post_admin ) { $byline = sprintf( '%s', '' ); } } if ( ! empty( $byline ) ) { echo ''; // WPCS: XSS OK. } } if ( ! is_single() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) { $cafeteria_elementor_show_post_comments = cafeteria_elementor_get_option( 'cafeteria_elementor_show_post_comments_setting' ); if ( true === $cafeteria_elementor_show_post_comments) { $cafeteria_elementor_show_meta_comment = true; if ( true === $cafeteria_elementor_show_meta_comment ) { echo ''; comments_popup_link( esc_html__( 'Leave a comment', 'cafeteria-elementor' ), esc_html__( '1 Comment', 'cafeteria-elementor' ), esc_html__( '% Comments', 'cafeteria-elementor' ) ); echo ''; } } } // Hide category and tag text for pages. if ( 'post' === get_post_type() ) { $cafeteria_elementor_show_meta_categories = true; $cafeteria_elementor_show_post_categories = cafeteria_elementor_get_option( 'cafeteria_elementor_show_post_categories_setting' ); if ( true === $cafeteria_elementor_show_post_categories) { if ( true === $cafeteria_elementor_show_meta_categories ) { /* Translators: used between list items, there is a space after the comma. */ $cafeteria_elementor_categories_list = get_the_category_list( esc_html__( ', ', 'cafeteria-elementor' ) ); if ( $cafeteria_elementor_categories_list && cafeteria_elementor_categorized_blog() ) { printf( '%1$s', $cafeteria_elementor_categories_list ); // WPCS: XSS OK. } } } $cafeteria_elementor_show_meta_tags = true; $cafeteria_elementor_show_meta_tags = cafeteria_elementor_get_option( 'cafeteria_elementor_show_post_tags_setting' ); if ( true === $cafeteria_elementor_show_meta_tags) { if ( true === $cafeteria_elementor_show_meta_tags ) { /* Translators: used between list items, there is a space after the comma. */ $cafeteria_elementor_tags_list = get_the_tag_list( '', esc_html__( ', ', 'cafeteria-elementor' ) ); if ( $cafeteria_elementor_tags_list ) { printf( '', $cafeteria_elementor_tags_list ); // WPCS: XSS OK. } } } } edit_post_link( esc_html__( 'Edit', 'cafeteria-elementor' ), '', '' ); } endif; if ( ! function_exists( 'cafeteria_elementor_entry_meta_date' ) ) : /** * Prints HTML with date meta. */ function cafeteria_elementor_entry_meta_date() { ?>