<?php
/*Template Name: Home */

get_header(); ?>


<!----------------------- banner---------------------------------------------------->

<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
<!-- Indicators -->

  <!-- Wrapper for slides -->
  <div class="carousel-inner" role="listbox">



 <?php global $dynamic_featured_image;	$i = 0; 
$featured_images = $dynamic_featured_image->get_featured_images(263 );
foreach($featured_images as $images) {
 $imageurl = $images['full'];?>
 
 <div class="item <?php if($i == 0){ echo "active";}?>">
  			<img src="<?php echo $imageurl;?>" width="1604" height="639" /><?php $i++;?>
    
</div>
 <?php } ?>
  </div>
  <div class="carousel-caption rve-frm">
<div class="bnr_frm_styl">
 <?php echo do_shortcode('[bookly-form hide="categories,staff_members,week_days,time_range"]'); ?>

</div>
         <?php /*?> <img src="<?php echo get_template_directory_uri();?>/images/cal.png" width="409" height="386" /> <?php */?>
      </div>
    </div>
 

<!----------------------- banner---------------------------------------------------->


<div class="container">
<div class="servc_sect">
<div class="row">
   <div class="col-sm-4">
     <a href="?page_id=4" class="hom_a_tg"><div class="total_box">
  	<?php
	$my_id =85;
	$post_id = get_post($my_id, ARRAY_A);
	$content = $post_id['post_content'];
  	 $title=$post_id['post_title'];
	 $url = wp_get_attachment_url( get_post_thumbnail_id($my_id, 'thumbnail') );
	?>
        <div class="iconbox"><img src="<?php echo $url;?>" width="106" height="106" /></div>
    	<h2><?php echo $title;?></h2>
        <p><?php echo $content;?></p>
     </div></a>
   </div>
   
   <div class="col-sm-4">
    <a href="?page_id=8"  class="hom_a_tg">  <div class="total_box">
      	<?php
	$my_id =87;
	$post_id = get_post($my_id, ARRAY_A);
	$content = $post_id['post_content'];
  	 $title=$post_id['post_title'];
	  $url = wp_get_attachment_url( get_post_thumbnail_id($my_id, 'thumbnail') );
	?>
        <div class="iconbox"><img src="<?php echo $url;?>" width="106" height="106" /></div>
      	<h2><?php echo $title;?></h2>
        <p><?php echo $content;?></p>
     </div></a>
   </div>
   
   <div class="col-sm-4">
   <a href="?page_id=11" class="hom_a_tg"><div class="total_box">
     <?php
	$my_id =89;
	$post_id = get_post($my_id, ARRAY_A);
	$content = $post_id['post_content'];
  	$title=$post_id['post_title'];
	$url = wp_get_attachment_url( get_post_thumbnail_id($my_id, 'thumbnail') );
	?>
        <div class="iconbox"><img src="<?php echo $url;?>" width="106" height="106" /></div>
       <h2> <?php echo $title;?></h2>
      <p><?php echo $content;?></p>
     </div></a>
   </div>
</div>
</div><!--<div class="servc_sect">-->
</div>

<?php get_footer(); ?>

