<div class="<?php if(esc_attr(get_theme_mod('onlineflowershop_slider_section_width','Full Width')) == 'Full Width'){ ?>container-fluid pd-0 <?php } elseif(esc_attr(get_theme_mod('onlineflowershop_slider_section_width','Full Width')) == 'Box Width'){ ?> container <?php }?>">
<section id="slider-section" class="slider-area home-slider">
  <div class="row m-0">
    <div class="col-lg-1 col-md-1 col-sm-12 socialbx">
      <div class="social-icon">
        <a href="<?php echo esc_url(get_theme_mod('slider_fblink')); ?>"><i class="fa fa-facebook" aria-hidden="true"></i></a>
        <a href="<?php echo esc_url(get_theme_mod('slider_twitterlink')); ?>"><i class="fa fa-twitter" aria-hidden="true"></i></a>
        <a href="<?php echo esc_url(get_theme_mod('slider_instagramlink')); ?>"><i class="fa fa-instagram" aria-hidden="true"></i></a>
      </div>
    </div>
    <?php
			$slider_btntext = get_theme_mod('slider_btntext', 'PICK A REQUEST');
		?> 
    <div class="col-lg-11 col-md-11 col-sm-12 pd-0">
      <!-- start of hero --> 
      <section class="hero-slider hero-style">
          <div class="online_flower_shopswiper-container">
              <div class="swiper-wrapper">
                <?php for($p=1; $p<6; $p++) { ?>
                <?php if( get_theme_mod('slider'.$p,false)) { ?>
                <?php $querycolumns = new WP_query('page_id='.get_theme_mod('slider'.$p,true)); ?>
                <?php while( $querycolumns->have_posts() ) : $querycolumns->the_post(); 
                  $image = wp_get_attachment_image_src(get_post_thumbnail_id() , true); ?>
                <?php 
                  if(has_post_thumbnail()){
                    $img = esc_url($image[0]);
                  }
                  if(empty($image)){
                    $img = get_template_directory_uri().'/assets/images/default.png';
                  }
                ?>
                  <div class="online_flower_shopswiper-slide">
                      <div class="online_flower_shopslide-inner slide-bg-image">      
                          <div class="slidercontent">
                              <div class="slide-title">
                                <h2><?php the_title_attribute(); ?></h2>   
                              </div>    
                              <div class="slide-text">
                                <?php
                                  the_content();
                                ?>
                              </div>
                              <div class="slide-btns">
                                  <a class="ShopNow" href="<?php echo esc_url(get_theme_mod('slider_btnlink')); ?>"><?php echo ($slider_btntext);  ?></a>   
                              </div>
                          </div>
                          <div class="clearfix"></div>
                        <img class="slide-mainimg slidershape1" src="<?php echo esc_url($img); ?>" alt="<?php the_title_attribute(); ?>">
                      </div>
                  </div>
                <?php endwhile;
                  wp_reset_postdata(); ?>
                <?php } } ?>
                <div class="clear"></div> 
              </div>
              <div class="online_flower_shopswiper-pagination"></div>
          </div>
      </section>
    </div>
  </div>
</section>
</div>
