<?php if (!function_exists('blogarise_footer_missed_section')) :
/**
 *  Header
 *
 * @since blogarise
 *
 */
function blogarise_footer_missed_section()
{
$you_missed_enable = get_theme_mod('you_missed_enable',true);
$you_missed_title = get_theme_mod('you_missed_title',esc_html__('You Missed','blogarise'));
if($you_missed_enable == 'true')
{ ?>
  <div class="container">
    <div class="row">
      <div class="col-12">
        <div class="wd-back">
          <?php if($you_missed_title) { ?>
          <div class="bs-widget-title">
            <h2 class="title"><?php echo esc_html($you_missed_title); ?></h2>
          </div>
          <?php } ?>
          <div class="missed-area">
          <?php $blogarise_you_missed_loop = new WP_Query(array( 'post_type' => 'post', 'posts_per_page' => 4, 'order' => 'DESC',  'ignore_sticky_posts' => true));
            if ( $blogarise_you_missed_loop->have_posts() ) :
            while ( $blogarise_you_missed_loop->have_posts() ) : $blogarise_you_missed_loop->the_post(); 
            $url = blogarise_get_freatured_image_url($blogarise_you_missed_loop->ID, 'blogarise-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 blogarise_post_categories(); ?>
              <h4 class="title sm mb-0"> <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute( array('before' => 'Permalink to: ','after'  => '') ); ?>"> <?php the_title(); ?></a> </h4> 
              <a class="link-div" href="<?php the_permalink(); ?>"></a>
              </div>
            </div>
          <?php endwhile; endif; wp_reset_postdata(); ?>
          </div><!-- end inner row -->
        </div><!-- end wd-back -->
      </div><!-- end col12 -->
    </div><!-- end row -->
  </div><!-- end container -->
<?php 
} }
endif;
add_action('blogarise_action_footer_missed_section','blogarise_footer_missed_section'); ?>