Current File : /home/itiffy/silverservice.melbourne/wp-content/themes/silverservice/index.php==1-3-22 |
<?php
/*Template Name:Home page*/
get_header();
$page_id = get_the_ID();
?>
<?php include_once('top.php'); ?>
<!-- BANNER SECTION -->
<div class="banner-section clearfix">
<?php masterslider(1); ?>
<div class="container">
<section>
<?php //the_field('banner_captions', $page_id); ?>
</section>
</div>
</div>
<!-- /BANNER SECTION -->
<!-- CONTENT SECTION -->
<div class="content-section clearfix">
<div class="home-section01 clearfix">
<div class="icon-logo"><img src="<?php echo bloginfo('template_directory'); ?>/images/logo-icon.png" alt=""></div>
<div class="container">
<div class="row">
<div class="col-md-6">
<h2><a href="tel:<?php $arr = array(' ', '-', '+'); echo $telephone = str_replace($arr, '', get_option('telephone')); ?>">
<?php the_field('banner_botttom_left_tagline', $page_id); ?></a></h2>
</div>
<div class="col-md-6">
<h2><a href="sms:<?php echo get_option('telephone2'); ?>" style="color:#fff"><?php the_field('banner_botttom_right_tagline', $page_id); ?></a></h2>
</div>
</div>
</div>
</div>
<div class="home-section02 clearfix">
<div class="container">
<h2><?php the_field('services_section_heading', $page_id); ?></h2>
<h6><?php the_field('services_section_sub_heading', $page_id); ?></h6>
<div class="row">
<?php
wp_reset_query();
$arr = array('post_type'=>'our_service', 'order_by'=>'date', 'order'=>'ASC');
$query = new WP_Query($arr);
while($query->have_posts()): $query->the_post();
?>
<div class="col-md-4">
<figure><img src="<?php the_post_thumbnail_url(); ?>" alt="<?php the_title(); ?>"></figure>
<article>
<h4><?php the_title(); ?></h4>
<?php echo wp_trim_words( get_the_content(), 25, '...' ); ?>
</article>
</div>
<?php endwhile; ?>
</div>
</div>
</div>
<div class="home-section03 clearfix">
<div class="container">
<div class="row">
<div class="col-md-8 text-center">
<h2><?php wp_reset_query(); the_field('feature_section_heading', $page_id); ?></h2>
<h6><?php the_field('feature_section_sub_heading', $page_id); ?></h6>
<figure><img src="<?php $feature_section_image = get_field('feature_section_image',$page_id); echo $feature_section_image['url']; ?>" alt=""></figure>
</div>
<div class="col-md-4">
<ul>
<?php while( have_rows('feature_section_listings') ): the_row(); ?>
<li><?php echo get_sub_field('feature_description'); ?></li>
<?php endwhile; ?>
</ul>
</div>
</div>
</div>
</div>
<div class="home-section04 clearfix" style="background-image:url(<?php $testimonial_section_image = get_field('testimonial_section_image',$page_id); echo $testimonial_section_image['url']; ?>)">
<div class="container">
<section class="clearfix">
<h2><?php the_field('testimonial_section_heading', $page_id); ?></h2>
<div id="demo" class="carousel slide" data-ride="carousel">
<ul class="carousel-indicators">
<?php
wp_reset_query(); $c = 0;
$args= array('post_type'=>'our_testimonials', 'posts_per_page'=>-1, 'order'=>'DESC');
$query = new WP_Query($args);
while ($query->have_posts()){
$query->the_post();
?>
<li data-target="#demo" data-slide-to="<?=$c;?>" class="<?php if($c == 0) echo "active"; ?>"></li>
<?php $c++; } ?>
</ul>
<div class="carousel-inner">
<?php
wp_reset_query(); $x = 1;
$tes_query2 = new WP_Query($args);
while($tes_query2->have_posts()){
$tes_query2->the_post();
?>
<div class="carousel-item <?php if($x == 1) echo "active"; ?>">
<figure><img src="<?php the_post_thumbnail_url(); ?>" alt=""></figure>
<article>
<?php the_content();?>
<h6><?php the_title(); ?> <span><?php the_field('author_designation', get_the_ID()); ?></span></h6>
</article>
</div>
<?php $x++; } ?>
</div>
</div>
</section>
</div>
</div>
</div>
<!--Footer start-->
<?php get_footer(); ?>
<?php include_once('commonJs.php'); ?>
</body>
</html>