<?php





function our_testimonial_list() {
?>
<div class="row">
        <?php
			$args = array (
					'post_type'=>'testimonial',
					'posts_per_page'=>3,
					'post_status' =>'publish',
					'order' => 'ASC'
					);
						$team = new WP_Query($args);
						if($team->have_posts()){ ?>
						<?php
							while($team->have_posts()){
								$team->the_post();
								// var_dump($team);
						?>
                        
						<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12 testimonial_dtail">
                        	<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
								<blockquote><p><?php the_content();?></p></blockquote>
								<h4><?php the_post_thumbnail('full', array('class'=>'img-responsive')); ?> <?php the_title();?></h4>
                            </div>
						</div><!-- end of div col-xs-12 -->
                     
						<?php }
						}
						wp_reset_query();
						?>
</div><!-- end of idv row -->
                       
<?php
}
function our_testimonial_list_all() {
?>
<div class="row">
        <?php
			$args = array (
					'post_type'=>'testimonial',
					'posts_per_page'=>-1,
					'post_status' =>'publish',
					'order' => 'ASC'
					);
						$team = new WP_Query($args);
						if($team->have_posts()){ ?>
						<?php
							while($team->have_posts()){
								$team->the_post();
								// var_dump($team);
						?>
                        
						<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12 testimonial_dtail">
                        	<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
								<blockquote><p><?php the_content();?></p></blockquote>
								<h4><?php the_post_thumbnail('full', array('class'=>'img-responsive')); ?> <?php the_title();?></h4>
                            </div>
						</div><!-- end of div col-xs-12 -->
                     
						<?php }
						}
						wp_reset_query();
						?>
</div><!-- end of idv row -->
                       
<?php
}

function our_blog() {
?>
<!-- Blog Wrap Area Start -->
                        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 no-padding blog-wrap">
        <?php
			$args = array (
					'post_type'=>'post',
					'posts_per_page'=>5,
					'post_status' =>'publish',
					'order' => 'ASC'
					);
						$team = new WP_Query($args);
						if($team->have_posts()){ ?>
						<?php
							while($team->have_posts()){
								$team->the_post();
						?>
							<!-- Blog Post Item Area Start -->
                            <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 blog-item">
                            	<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                                	
                                	<h5><span><?php echo get_the_date('F j'); ?></span><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h5>
                                </div>
                            </div><!-- Blog Post Item Area End -->
                        
						<?php }
						}
						wp_reset_query();
						?>
                        </div><!-- Blog Wrap Area End -->
<?php
}

function our_service() {
?>
<!-- Blog Wrap Area Start -->
                        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 no-padding our-services">
        <?php
			$args = array (
					'post_type'=>'service',
					'posts_per_page'=>4,
					'post_status' =>'publish',
					'order' => 'ASC'
					);
						$team = new WP_Query($args);
						if($team->have_posts()){ ?>
						<?php
							while($team->have_posts()){
								$team->the_post();
						?>
                        <div class="col-lg-3 col-md-3 col-sm-3 col-xs-12 no-padding service-item">
                        	<?php the_post_thumbnail('full', array('class'=>'full-width')); ?>
                            <h5 class="service-title"><span><?php the_field('subtitle'); ?></span><?php the_title(); ?></h5>
                            <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 hover-content">
                            	<?php if( get_field('homepage_service_image') ): ?>
                                    <p><img src="<?php the_field('homepage_service_image'); ?>" /></p> 
                                <?php endif; ?>
                                <p><?php the_excerpt(); ?></p>
                                <p style="text-align:center;"><a href="<?php the_permalink(); ?>" class="read-more-btn">LEARN MORE</a></p>
                            </div>
                        </div>  
						<?php }
						}
						wp_reset_query();
						?>
                        </div><!-- Blog Wrap Area End -->
<?php
}


function featured_icons(){
?>
	<ul class="featured_list">
		<li><img src="<?php echo ot_get_option('icon_1');?>"  class="img-reponsive" /><h5>CLEAN</h5></li>
		<li><img src="<?php echo ot_get_option('icon_2');?>"  class="img-reponsive" /><h5>PROTECT</h5></li>
		<li><img src="<?php echo ot_get_option('icon_3');?>"  class="img-reponsive" /><h5>OPTIMISE</h5></li>
		<li><img src="<?php echo ot_get_option('icon_4');?>"  class="img-reponsive" /><h5>CONTROL</h5></li>
		<li><img src="<?php echo ot_get_option('icon_5');?>"  class="img-reponsive" /><h5>VISUALISE</h5></li>
	</ul>
<?php
}
