<?php
/**
 * Template part for displaying results in single page
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package educrap
 */
?>
<div id="post-<?php the_ID(); ?>" class="blog__item white-bg mb-30 transition-3 fix">
    <?php if( has_post_thumbnail() ){ ?>
        <div class="blog__thumb w-img fix">
            <a href="blog-details.html">
                <?php the_post_thumbnail( ); ?>
            </a>                           
        </div> 
    <?php } ?>                       
    <div class="blog__content"> 
        <div class="blog__meta d-flex align-items-center">
            <div class="blog__author d-flex align-items-center mr-10">
                <div class="blog__date d-flex align-items-center">
                   <i class="fal fa-clock"></i>
                   <span><?php the_date(); ?></span>
                </div>
            </div>
            <div class="blog__author-thumb blog__date ">
               <i class="fa fa-user icon"></i>
            </div>
            <div class="blog__author-info mr-10">
               <h5><?php echo esc_html( get_the_author() ) ?></h5>
            </div>                                  
            <div class="blog__date d-flex align-items-center">
               <i class="fa fa-comments"></i>
               <span><?php comments_number(); ?></span>
            </div>
        </div>
        <?php the_content(); ?>
        <?php if(get_the_tag_list() != '') { ?>         
            <div class="taggs">
                <?php the_tags(); ?>
            </div>
        <?php } ?>
    </div>
</div>