%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() ) ); ?> ' . esc_html( get_the_author() ) . '' ); echo ' ' . $byline . ''; // WPCS: XSS OK. } endif; if ( ! function_exists( 'blog_elite_entry_footer' ) ) : /** * Prints HTML with meta information for the categories, tags and comments. * * @since 1.0.0 * * @param boolean $cat * @param boolean $tag * @param boolean $comment */ function blog_elite_entry_footer($cat = true, $tag = true, $comment = true) { // Hide category and tag text for pages. if ( 'post' === get_post_type() ) { if(true == $cat){ $categories = wp_get_post_categories(get_the_ID()); if(!empty($categories)){ ?> term_id, 'category_color', true); if($color){ $style = "background-color:".esc_attr($color); } ?> cat_name);?> '; comments_popup_link( sprintf( wp_kses( /* translators: %s: post title */ __( 'Leave a Comment on %s', 'blog-elite' ), array( 'span' => array( 'class' => array(), ), ) ), get_the_title() ) ); echo ''; } } edit_post_link( sprintf( wp_kses( /* translators: %s: Name of current post. Only visible to screen readers */ __( 'Edit %s', 'blog-elite' ), array( 'span' => array( 'class' => array(), ), ) ), get_the_title() ), '', '' ); } endif; if ( ! function_exists( 'blog_elite_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 blog_elite_post_thumbnail() { if ( post_password_required() || is_attachment() || ! has_post_thumbnail() ) { return; } if ( is_singular() ) : ?>