Current File : /home/itiffy/rockyjohnsonconcrete.com/wp-content/themes/rockyjohnson/project.php
<?php
/*Template Name: Project*/
get_header();

wp_reset_query();
?>

<?php include_once('top.php'); ?>

<!-- BANNER SECTION -->
<div class="inner-banner-section clearfix" style="background:url(<?php echo the_post_thumbnail_url(); ?>) no-repeat center;">
  <div class="container">
    <h1>
      <?php wp_reset_query(); the_title(); ?>
    </h1>
  </div>
</div>
<!-- /BANNER SECTION --> 
<!-- CONTENT SECTION -->
<div class="content-section clearfix">
  <div class="project-details-section clearfix">
    <div class="container">
      <h2><?php wp_reset_query(); echo get_field('project-section-heading',get_the_ID()); ?></h2>
      <p><?php wp_reset_query(); echo get_field('project-section-content',get_the_ID()); ?></p>
      <div class="box">
        <div class="row">
          <div class="col-sm-5"><?php $image =  get_field('project-section-image',get_the_ID()); ?><img src="<?php echo $image['url']; ?>" /></div>
          <div class="col-sm-7">
            <div class="content mCustomScrollbar">
              <?php wp_reset_query(); echo get_field('project-section-details',get_the_ID()); ?>
            </div>
          </div>
        </div>
      </div>
      <div class="gallery clearfix">
      	<div class="project-slider owl-carousel">
        <?php
		// check if the repeater field has rows of data
		if( have_rows('project-section-gallery') ):		
		// loop through the rows of data
		while ( have_rows('project-section-gallery') ) : the_row();		
	  	?>
          <div class="item">
            <div class="gbox"><a data-fancybox="gallery" href="<?php the_sub_field('image');?>" data-caption=""><img src="<?php the_sub_field('image');?>" /></a></div>
          </div>
          <?php
		  endwhile;
		  endif;
		?>     
       </div>
      </div>
    </div>
  </div>
  
</div>
<!-- /CONTENT SECTION --> 

<!--Footer start-->
<?php get_footer(); ?>
<?php include_once('commonJs.php'); ?>
</body>
</html>