<?php if (!function_exists('blogdata_footer_missed_section')) :
/**
 *  Header
 *
 * @since blogdata
 *
 */
function blogdata_footer_missed_section() {
$you_missed_enable = blogdata_get_option('you_missed_enable',);
$you_missed_title = blogdata_get_option('you_missed_title');

$missed_slider_category = 0;
$missed_number_of_post = 4;
  
  $missed_all_posts_main = blogdata_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 if($you_missed_title) { ?>
          <div class="bs-widget-title one">
            <h2 class="title"><?php echo esc_html($you_missed_title); ?></h2>
          </div>
          <?php } ?>
          <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;
                $url = blogdata_get_freatured_image_url($post->ID, 'blogdata-featured'); ?>
                  <div class="bs-blog-post three md back-img bshre mb-0" <?php if(has_post_thumbnail()) { ?> style="background-image: url('<?php echo esc_url($url); ?>'); <?php } ?>">
                  <div class="inner">
                    <?php blogdata_post_categories(); ?>
                    <h4 class="title md mb-0"> <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute();?>"> <?php the_title(); ?></a> </h4> 
                    <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('blogdata_action_footer_missed_section','blogdata_footer_missed_section'); ?>