Current File : /home/itiffy/silverservice.melbourne/wp-content/themes/silverservice/our_fleet.php
<?php
/*Template Name:Our Fleets*/
get_header();
$page_id = get_the_ID();
?>
    <?php include_once('top.php'); ?>
           
    <!-- BANNER SECTION -->
       <div class="inner-banner-section clearfix" style="background:url(<?php wp_reset_query(); $banner = get_field('page_banner_image', $page_id); echo $banner['url']; ?>) no-repeat center / cover;"> </div>
    <!-- /BANNER SECTION -->

    <!-- CONTENT SECTION -->
       <div class="fleet-section clearfix">
          <h2 class="text-center"><?php the_title(); ?></h2>
          <h6 class="text-center"><?php the_field('page_sub_heading',$page_id); ?></h6>
          <div class="section01 clearfix">
            <div class="container">
              <div class="row">
                <div class="col-md-7"><img src="<?php wp_reset_query(); $sec1_img = get_field('section1_image',$page_id); echo $sec1_img['url']; ?>" alt=""></div>
                <div class="col-md-5">
                  <h3><?php the_field('section1_heading',$page_id); ?></h3>
                  <?php the_field('section1_content',$page_id); ?>
                  <div class="btn-book01"><a href="<?php the_permalink(45); ?>">Book Your Fleet</a></div>
                </div>
              </div>
            </div>
          </div>
          <div class="section02 clearfix" style="background-image:url(<?php $sec2_bg_img = get_field('section2_background',$page_id); echo $sec2_bg_img['url']; ?>)">
            <div class="container">
              <div class="row flex-column-reverse flex-md-row">
                <div class="col-md-5">
                  <h3><?php the_field('section2_heading',$page_id); ?></h3>
                  <?php the_field('section2_content',$page_id); ?>
                  <div class="btn-book02"><a href="<?php the_permalink(45); ?>">Book Your Fleet</a></div>
                </div>
                <div class="col-md-7"><img src="<?php $sec2_img = get_field('section2_image',$page_id); echo $sec2_img['url']; ?>" alt=""></div>
              </div>
            </div>
          </div>
          <div class="section03 clearfix" style="background-image:url(<?php $sec3_bg_img = get_field('section3_background',$page_id); echo $sec3_bg_img['url']; ?>)">
            <div class="container">
              <div class="row">
                <div class="col-md-7"><img src="<?php $sec3_img = get_field('section3_image',$page_id); echo $sec3_img['url']; ?>" alt=""></div>
                <div class="col-md-5">
                  <h3><?php the_field('section3_heading',$page_id); ?></h3>
                  <?php the_field('section3_content',$page_id); ?>
                  <div class="btn-book01"><a href="<?php the_permalink(45); ?>">Book Your Fleet</a></div>
                </div>
              </div>
            </div>
          </div>
          <div class="section04 clearfix" style="background-image:url(<?php $sec4_bg_img = get_field('section4_background',$page_id); echo $sec4_bg_img['url']; ?>)">
            <div class="container">
              <div class="row flex-column-reverse flex-md-row">
                <div class="col-md-5">
                  <h3><?php the_field('section4_heading',$page_id); ?></h3>
                  <?php the_field('section4_content',$page_id); ?>
                  <div class="btn-book02"><a href="<?php the_permalink(45); ?>">Book Your Fleet</a></div>
                </div>
                <div class="col-md-7"><img src="<?php $sec4_img = get_field('section4_image',$page_id); echo $sec4_img['url']; ?>" alt=""></div>
              </div>
            </div>
          </div>
          <div class="section05 clearfix">
            <div class="container">
              <div class="row">
                <?php 
					while(have_rows('bottom_section_box_lists', $page_id)): the_row();
					$image = get_sub_field('image');
				?>
                    <div class="col-lg-3 col-md-6">
                      <p><img src="<?php echo $image['url']; ?>" alt=""></p>
                      <h5><?php echo get_sub_field('heading'); ?></h5>
                      <p><?php echo get_sub_field('content'); ?></p>
                      <div class="btn-book02"><a href="<?php the_permalink(45); ?>">Book Your Fleet</a></div>
                    </div>
                <?php endwhile; ?>
              </div>
            </div>
          </div>
        </div>
    <!-- /CONTENT SECTION --> 
     
    <!--Footer start-->   
    <?php get_footer(); ?>
    
	<?php include_once('commonJs.php');  ?>
</body>
</html>