<?php if (!function_exists('newsxo_footer_missed_section')) :
/**
 *  Header
 *
 * @since newsxo
 *
 */
function newsxo_footer_missed_section() {
$you_missed_enable = newsxo_get_option('you_missed_enable',);
$you_missed_title = newsxo_get_option('you_missed_title');

$missed_slider_category = 0;
$missed_number_of_post = 4;
  
  $missed_all_posts_main = newsxo_get_posts($missed_number_of_post, $missed_slider_category);
 
if($you_missed_enable == true) { ?>
<!--==================== Missed ====================-->
<div class="missed">
  <div class="container">
    <div class="row">
      <div class="col-12">
        <div class="wd-back position-relative">
          <?php newsxo_widget_title($you_missed_title);?>
          <div class="missedslider d-grid column4">
              <?php 
                if ( $missed_all_posts_main->have_posts() ) :
                while ( $missed_all_posts_main->have_posts() ) : $missed_all_posts_main->the_post(); 
                global $post;
                $newsxo_url = newsxo_get_freatured_image_url($post->ID, 'newsxo-featured');
                $url=  !empty( $newsxo_url ) ? 'style="background-image: url(' . esc_url( $newsxo_url ) . ');"' : ''; ?>
                <div class="bs-blog-post three md bshre mb-0">
                  <figure class="bs-thumb-bg back-img" <?php echo ($url); ?>></figure>
                  <div class="inner">
                    <?php newsxo_post_categories(); ?>
                    <div class="title-wrap">
                      <h4 class="title bsm"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h4>
                      <div class="btn-wrap">
                        <a href="<?php the_permalink(); ?>"><i class="fas fa-arrow-right"></i></a>
                      </div>
                    </div> 
                    <a class="link-div" href="<?php the_permalink(); ?>"></a>
                    </div>
                  </div>
              <?php endwhile; endif; wp_reset_postdata(); ?> 
          </div>        
        </div><!-- end wd-back -->
      </div><!-- end col12 -->
    </div><!-- end row -->
  </div><!-- end container -->
</div> 
<!-- end missed -->
<?php 
} }
endif;
add_action('newsxo_action_footer_missed_section','newsxo_footer_missed_section'); ?>