%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() ) ); $icon = ''; $posted_on = sprintf( '%s%s', esc_url( get_permalink() ), $icon, $time_string ); echo $posted_on; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } endif; if ( ! function_exists( 'bexplore_posted_by' ) ): /** * return HTML with meta information for the current author. */ function bexplore_posted_by() { $icon = ''; $author_id = get_post_field('post_author', get_the_ID()); $author_name = get_the_author_meta('display_name', $author_id); $url = get_author_posts_url($author_id); $byline = sprintf( '%s%s', esc_url( $url ), $icon, esc_html( $author_name ) ); echo $byline; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } endif; /** * Function for get comment number */ if (!function_exists('bexplore_comment_by')): function bexplore_comment_by($style = '', $link = true) { $number = get_comments_number(get_the_ID()); if( 0 == $number ){ $comment_number = sprintf('%2$s', get_comments_link(), esc_html__('No Comment', 'bexplore')); }elseif( 1 == $number ){ $comment_number = sprintf('%2$s', get_comments_link(), esc_html__('1 Comment', 'bexplore')); }else{ $comment_number = sprintf('%2$s', get_comments_link(), $number. esc_html__(' Comments', 'bexplore' )); } echo $comment_number; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } endif; if ( ! function_exists( 'bexplore_entry_footer' ) ) : /** * Prints HTML with meta information for the categories, tags and comments. */ function bexplore_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__( ', ', 'bexplore' ) ); if ( $categories_list ) { /* translators: 1: list of categories. */ printf( '' . esc_html__( 'Posted in %1$s', 'bexplore' ) . '', $categories_list ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } /* translators: used between list items, there is a space after the comma */ $tags_list = get_the_tag_list( '', esc_html_x( ', ', 'list item separator', 'bexplore' ) ); if ( $tags_list ) { /* translators: 1: list of tags. */ printf( '', $tags_list ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } } } endif; if ( ! function_exists( 'bexplore_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 bexplore_post_thumbnail() { if ( post_password_required() || is_attachment() || ! has_post_thumbnail() ) { return; } if ( is_singular() ) : ?>