<?php require_once('cms/cms.php'); include('assets/global.php'); ?>
<cms:template title='Home' icon='document' order='2' >
	<cms:editable name='statement_one' type='textarea' label='First statement' />
	<cms:editable name='statement_two' type='textarea' label='Second statement' />

	<?php $exclude = true; $exclude_page_options = true; include('assets/logic/template-defaults.php'); ?>		
</cms:template>
<cms:embed 'header.html' />
		<div class="hero">
			<div id="first-slider">
			    <div id="carousel-example-generic" class="carousel slide carousel-fade">
			        <div class="carousel-inner" role="listbox">
			            <div class="item active slide2">
			                <div class="row">
			                	<div class="container">
				                    <div class="col-md-8 text-left">
				                        <h3 data-animation="animated bounceInDown">The only lawn care service you'll ever need.</h3>
				                        <h4 data-animation="animated bounceInUp">Get your free quote</h4>           
				                       	<h5 data-animation="animated bounceInUp"> <a href="#" id="slider-quote-btn" class="button" data-toggle="modal" data-target="#quote-modal">Get Quote</a></h5>
				                       	<h5 data-animation="animated bounceInUp"> <a href="#testimonials" class="button2">Testimonials</a></h5>
				                     </div>
				                    <div class="col-md-4 skull-slide">
				                        <img data-animation="animated zoomInLeft" src="images/logo_skulls.png" style="float: right; opacity: 0.7;">
				                    </div>
			                	</div>
			                </div>
			             </div>
			        </div>
			    </div>
			</div>
		</div>
		<div class="content">

			<section id="services">
				<div class="container">
					<a name="services"></a>
					<div class="services-top">
						<div class="row">
							<div class="col-md-12 welcome-text">
								<p><cms:show statement_one /></p>
							</div>
							<div class="col-md-12">
								<h1><cms:get_custom_field 'g_services' masterpage='settings.php' /> | <cms:get_custom_field 'g_site_title' masterpage='settings.php' /></h1>
								<h2><cms:get_custom_field 'g_services' masterpage='settings.php' /></h2>
							</div>
							<cms:pages masterpage='services.php' orderby='weight' order='asc' >
							<div class="service-box">
								<a href="<cms:show k_page_link />">
									<div class="<cms:if k_count gt '3'>col-md-6 col-sm-6 col-xs-12 top-content<cms:else />col-md-4 col-sm-4 col-xs-12 top-content</cms:if>">
										<img class="img-responsive" src="<cms:show gg_thumb />" alt="">
										<h4><cms:show k_page_title /></h4>
										<p><cms:show short_description /></p>
									</div>
								</a>
							</div>
						<cms:if k_count = '3'>
						</div>
						<div class="row">
						</cms:if>
							</cms:pages>
						</div>
						<div class="clearfix"> </div>
						
					</div>
				</div>
			</section>

			<section id="about">
				<div class="content-middle">
					<cms:pages masterpage='about.php'>
					<div class="col-md-6 content-middle1">
						<img src="<cms:show about_left />" class="img-responsive" alt="">
					</div>
					<div class="col-md-6 content-middle2">
						<h1><cms:get_custom_field 'g_about' masterpage='settings.php' /> | <cms:get_custom_field 'g_site_title' masterpage='settings.php' /></h1>
						<h2><cms:show header_title /></h2>
						<img src="<cms:show about_right />" class="img-responsive mike-melissa" align="right" />
						<p><cms:show content /></p>
						<ul>
							<cms:show_repeatable 'bullet_list'>
							<li><i class="glyphicon glyphicon-ok"></i><cms:show bullet /></li>
							</cms:show_repeatable>
						</ul>
					</div>
					</cms:pages>
					<div class="clearfix"> </div>
				</div>
			</section>
			
			<section id="why-mm-lawns">
				<a name="whymm"></a>
				<div id="statement">
					<div class="container">
						<div class="statement-text">
							<cms:show statement_two />
						</div>
					</div>
				</div>
				<cms:pages masterpage="whymm.php">
				<div class="why">
					<div class="container">
						<div class="why-top-top">
							<div class="why-top">
								<h1><cms:get_custom_field 'g_whymm' masterpage='settings.php' /> | <cms:get_custom_field 'g_site_title' masterpage='settings.php' /></h1>
								<h2><cms:show header_title /></h2>
							</div>
							<cms:show_repeatable 'reasons'>
							<div class="col-xs-4 why-top1">
								<span><cms:show k_count /></span>
								<h6><cms:show reason /></h6>
								<p><cms:show reason_description /></p>
							</div>
							</cms:show_repeatable>
							<div class="clearfix"> </div>
						</div>
					</div>
				</div>
				</cms:pages>
			</section>

			<section id="customer-testimonials">
				<div class="testimonials"><a name="testimonials"></a>
					<div class="container">
						<h1><cms:get_custom_field 'g_testimonials' masterpage='settings.php' /> | <cms:get_custom_field 'g_site_title' masterpage='settings.php' /></h1>
						<h2><cms:get_custom_field 'g_testimonials' masterpage='settings.php' /></h2>
						<cms:pages masterpage='testimonials.php' orderby='weight' order='asc' >
						<div class="col-md-6 customer-quote">
							<blockquote class="testimonial">
								<p><cms:show testimonial /></p>
							</blockquote>
						</div>
						</cms:pages>
					</div>
				</div>
			</section>

			<section id="gallery">
				<div class="gallery"><a name="yards"></a>
					<div class="container">
						<h1><cms:get_custom_field 'g_gallery' masterpage='settings.php' /> | <cms:get_custom_field 'g_site_title' masterpage='settings.php' /></h1>
						<h2><cms:get_custom_field 'g_gallery' masterpage='settings.php' /></h2>
						<div class="grid">
							<cms:pages masterpage="gallery.php" include_subfolders='0' limit='12'>
							<div class="col-md-3 col-xs-6 gallery-top">
								<a href="<cms:show gg_image />" rel="<cms:show k_page_title />" class="b-link-stripe b-animate-go  thickbox">
									<figure class="effect-oscar">
										<img src="<cms:show gg_thumb />" alt="<cms:show k_page_title />"/>
										<figcaption>
											<p><i class="fa fa-search" aria-hidden="true"></i></p>
										</figcaption>			
									</figure>
								</a>
							</div>
							</cms:pages>
							<div class="clearfix"> </div>
							<div class="more-gallery">
								<a href="/gallery" class="button2 goto-gallery">View Entire Gallery</a>
							</div>
						</div>
					</div>
				</div>
			</section>

		</div>
		<cms:embed 'footer.html' />
		<script>
			(function( $ ) {

			    //Function to animate slider captions 
				function doAnimations( elems ) {
					//Cache the animationend event in a variable
					var animEndEv = 'webkitAnimationEnd animationend';
					
					elems.each(function () {
						var $this = $(this),
							$animationType = $this.data('animation');
						$this.addClass($animationType).one(animEndEv, function () {
							$this.removeClass($animationType);
						});
					});
				}
				
				//Variables on page load 
				var $myCarousel = $('#carousel-example-generic'),
					$firstAnimatingElems = $myCarousel.find('.item:first').find("[data-animation ^= 'animated']");
					
				//Initialize carousel 
				$myCarousel.carousel();
				
				//Animate captions in first slide on page load 
				doAnimations($firstAnimatingElems);
				
				//Pause carousel  
				$myCarousel.carousel('pause');
				
				
				//Other slides to be animated on carousel slide event 
				$myCarousel.on('slide.bs.carousel', function (e) {
					var $animatingElems = $(e.relatedTarget).find("[data-animation ^= 'animated']");
					doAnimations($animatingElems);
				});  
			    $('#carousel-example-generic').carousel({
			        interval: 3000,
			        pause: "false"
			    });
				
			})(jQuery);	
		</script>
	</body>
</html>
<?php COUCH::invoke(); ?>