<?php if(has_post_thumbnail()): ?>
   <div class="post-media post-image">

      <a href="<?php echo esc_url(get_the_permalink()); ?>">
        <img class="img-fluid" src="<?php echo get_the_post_thumbnail_url(); ?>" alt=" <?php the_title_attribute(); ?> ">
      </a>
               <?php 
                  if ( is_sticky() ) {
                     echo '<sup class="meta-featured-post"> <i class="fa fa-thumb-tack"></i> ' . esc_html__( 'Sticky', 'digiqole' ) . ' </sup>';
				      }
				
               ?>
  </div>
<?php endif; ?>
<div class="post-body clearfix">
      <div class="entry-header">
         <?php  digiqole_post_meta();  ?>
         <h2 class="entry-title">
           <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
         </h2>
      </div>
     
      <?php 
           if ( is_sticky() && !has_post_thumbnail() ) {
					echo '<sup class="meta-featured-post"> <i class="fa fa-thumb-tack"></i> ' . esc_html__( 'Sticky', 'digiqole' ) . ' </sup>';
           }
       ?> 
      <div class="post-content">
        <div class="entry-content">
           <p>
                <?php digiqole_excerpt( 40, null ); ?>
            </p>
        </div>
        <?php
            if(!is_single()):
               $blog_read_more = digiqole_option('blog_read_more');
               $blog_read_more_text = digiqole_option('blog_read_more_text','continue'); 
               if($blog_read_more=='yes'){
                     printf('<div class="post-footer readmore-btn-area"><a class="readmore" href="%1$s"> '.$blog_read_more_text.' <i class="icon icon-arrow-right"></i></a></div>',
                  get_the_permalink()
                     );
               }
            endif; 
        ?>
      </div>
<!-- Post content right-->
</div>
<!-- post-body end-->