Advertisement
Guest User

Untitled

a guest
Apr 6th, 2015
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 25.84 KB | None | 0 0
  1. <?php
  2. function clean($string) {
  3.    $string = str_replace(' ', '-', $string); // Replaces all spaces with hyphens.
  4.  
  5.    return preg_replace('/[^A-Za-z0-9\-]/', '', $string); // Removes special chars.
  6. }
  7. if (!empty($_GET["state"])):
  8. $state = $_GET["state"];
  9. $state = clean($state);
  10. $theZip = strtolower($state);
  11. if (($theZip >= 90001) && ($theZip <= 96162) || ($theZip == 'california') || ($theZip == 'placer-county') || ($theZip == 'auburn')) { header('Location: /placercounty'); }
  12. if (($theZip >= 80001) && ($theZip <= 81658) || ($theZip == 'colorado') || ($theZip == 'denver') || ($theZip == 'golden')) { header('Location: /denver'); }
  13. if (($theZip >= 32004) && ($theZip <= 34997) || ($theZip == 'florida') || ($theZip == 'osceola-county') || ($theZip == 'osceola') || ($theZip == 'orlando')) { header('Location: /osceolacounty'); }
  14. if (($theZip == 'river-valley') || ($theZip == 'davenport')) { header('Location: /rivervalley'); }
  15. if (($theZip >= 50001) && ($theZip <= 52809) || ($theZip == 'iowa')) { header('Location: /searchresult/?state=iowa'); }
  16. if (($theZip == 52333-0416) || ($theZip == 'eastern-iowa') || ($theZip == 'Solon')) { header('Location: /easterniowa'); }
  17. if (($theZip == 52101) || ($theZip == 'tri-state-valley') || ($theZip == 'decorah')) { header('Location: /tristatevalley'); }
  18. if (($theZip >= 01001) && ($theZip <= 02791) || ($theZip == 'massachusetts') || ($theZip == 'essex-county') || ($theZip == 'essex') || ($theZip == 'methuen')) { header('Location: /essexcounty'); }
  19. if (($theZip >= 20331) && ($theZip <= 20331) || ($theZip == 'maryland') || ($theZip == 'delmarva-peninsula') || ($theZip == 'delmarva') || ($theZip == 'salisbury')) { header('Location: /delmarva'); }
  20. if (($theZip == 'eastern-michigan') || ($theZip == 'fort-gratiot') || ($theZip == 'gratiot')) { header('Location: /easternmichigan'); }
  21. if (($theZip >= 48001) && ($theZip <= 49971) || ($theZip == 'michigan')) { header('Location: /searchresult/?state=michigan'); }
  22. if (($theZip == 'northwest-michigan') || ($theZip == 'traverse-city') || ($theZip == 'traverse')) { header('Location: /nwmichigan'); }
  23. if (($theZip >= 48001) && ($theZip <= 49971) || ($theZip == 'ottawa-county') || ($theZip == 'ottawa') || ($theZip == 'grand-haven') || ($theZip == 'haven')) { header('Location: /ottawacounty'); }
  24. if (($theZip == 55707) || ($theZip == 'northland') || ($theZip == 'barnum')) { header('Location: /northland'); }
  25. if (($theZip == 55448) || ($theZip == 'central-minnesota') || ($theZip == 'coon-rapids') || ($theZip == 'rapids') || ($theZip == 'coon')) { header('Location: /centralminnesota'); }
  26. if (($theZip >= 55001) && ($theZip <= 56763)  || ($theZip == 'minnesota')) { header('Location: /searchresult/?state=minnesota'); }
  27. if (($theZip >= 27006) && ($theZip <= 28909) || ($theZip == 'north-carolina') || ($theZip == 'carolina') || ($theZip == 'coon-rapids') || ($theZip == 'cutting-edge') || ($theZip == 'charlotte')) { header('Location: /charlotte'); }
  28. if (($theZip >= 88901) && ($theZip <= 89883) || ($theZip == 'nevada') || ($theZip == 'las-vegas')) { header('Location: /cleanworld'); }
  29. if (($theZip >= 10001) && ($theZip <= 14975)  || ($theZip == 'new-york') || ($theZip == 'port-crane') || ($theZip == 'crane')) { header('Location: /southerntier'); }
  30. if (($theZip >= 43001) && ($theZip <= 45999) || ($theZip == 'ohio')) { header('Location: /searchresult/?state=ohio'); }
  31. if (($theZip == 44312) || ($theZip == 'akron')) { header('Location: /northcentralohio'); }
  32. if (($theZip == 44146) || ($theZip == 'cuyahoga') || ($theZip == 'oakwood')) { header('Location: /cuyahogacounty'); }
  33. if (($theZip == 44060) || ($theZip == 'lake-county') || ($theZip == 'lake') || ($theZip == 'mentor')) { header('Location: /lakecounty'); }
  34. if (($theZip == 45802) || ($theZip == 'lima') || ($theZip == 'lima')) { header('Location: /lima'); }
  35. if (($theZip == L7L4J7) || ($theZip == 'burlington')) { header('Location: /trefethen'); }
  36. if (($theZip == 97475) || ($theZip == 'oregon') || ($theZip == 'lane-county') || ($theZip == 'lane') || ($theZip == 'springfield')) { header('Location: /lanecounty'); }
  37. if (($theZip >=15001) && ($theZip <= 19640) || ($theZip == 'pennsylvania')) {  header('Location: /searchresult/?state=pennsylvania'); }
  38. if (($theZip == 19540-9745) || ($theZip == 'mohnton') || ($theZip == 'lane-county') || ($theZip == 'berks') || ($theZip == 'berks-county')) { header('Location: /berkscounty'); }
  39. if (($theZip == 15220) || ($theZip == 'pittsburgh') || ($theZip == 'allegheny-county') || ($theZip == 'allegheny')) { header('Location: /alleghenycounty'); }
  40. if (($theZip == 17402) || ($theZip == 'york-county') || ($theZip == 'york')) { header('Location: /york'); }
  41. if (($theZip == 15857) || ($theZip == 'st-marys')) { header('Location: /saintmary'); }
  42. if (($theZip == 78130) || ($theZip == 'siouxland') || ($theZip == 'south-dakota') || ($theZip == 'dakota') || ($theZip == 'humboldt')) { header('Location: /siouxland'); }
  43. if (($theZip >= 73301) && ($theZip <= 73301) || ($theZip == 'texas')) { header('Location: /searchresult/?state=texas'); }
  44. if (($theZip == 57035) || ($theZip == 'two-rivers') || ($theZip == 'rivers') || ($theZip == 'new-braunfels')) { header('Location: /tworivers'); }
  45. if (($theZip == 77380) || ($theZip == 'lone-star') || ($theZip == 'lone') || ($theZip == 'star') || ($theZip == 'woodlands')) { header('Location: /woodlands'); }
  46. if (($theZip >= 22001) && ($theZip <= 24658) || ($theZip == 'virginia')) { header('Location: /searchresult/?state=virginia'); }
  47. if (($theZip == 24068) || ($theZip == 'valley') || ($theZip == 'christiansburg')) { header('Location: /newrivervalley'); }
  48. if (($theZip == 23235) || ($theZip == 'central-virginia') || ($theZip == 'richmond')) { header('Location: /centralvirginia'); }
  49. if (($theZip >=98001 ) && ($theZip <= 99403) || ($theZip == 'washington')) { header('Location: /searchresult/?state=washington'); }
  50. if (($theZip == 98321) || ($theZip == 'northwest') || ($theZip == 'buckley')) { header('Location: /northwest'); }
  51. if (($theZip == 98082) || ($theZip == 'mill-creek') || ($theZip == 'mill') || ($theZip == 'creek')) { header('Location: /pugetsound'); }
  52. if (($theZip >=53001) && ($theZip <= 54990) || ($theZip == 'wisconsin')) { header('Location: /searchresult/?state=wisconsin'); } //Wisconsin
  53. if (($theZip == 54702) || ($theZip == 'eau-claire') || ($theZip == 'eau') || ($theZip == 'claire')) { header('Location: /eauclaire'); }
  54. if (($theZip == 54937) || ($theZip == 'fox') || ($theZip == 'valley') || ($theZip == 'fond-du-lac')) { header('Location: /foxvalley'); }
  55. if (($theZip == 54452) || ($theZip == 'merrill')) { header('Location: /northwisconsin'); }
  56. if (($theZip == 54426-9409) || ($theZip == 'washing') || ($theZip == 'edgar')) { header('Location: /centralstatewashing'); }
  57. if (($theZip == 53048) || ($theZip == 'lomira')) { header('Location: /eastwisconsin'); }
  58. if (($theZip == 26554) || ($theZip == 'fairmont') || ($theZip == 'west-virginia')) { header('Location: /northcentralwv'); }
  59. endif; 
  60. ?>
  61. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  62. <html xmlns="http://www.w3.org/1999/xhtml">
  63. <!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
  64. <!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
  65. <!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
  66. <!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
  67. <head>
  68. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  69. <meta name="description" content="">
  70. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  71. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
  72. <link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
  73. <script src="<?php bloginfo('template_url'); ?>/js/bootstrap.min.js"></script>
  74. <script src="<?php bloginfo('template_url'); ?>/js/js.js"></script>
  75. <script src="<?php bloginfo('template_url'); ?>/js/owl.carousel.min.js"></script>
  76. <link href="<?php bloginfo('template_url'); ?>/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
  77. <link href="<?php bloginfo('template_url'); ?>/style.css" rel="stylesheet" type="text/css" />
  78. <link href="<?php bloginfo('template_url'); ?>/css/hover.css" rel="stylesheet" type="text/css" />
  79. <link href="<?php bloginfo('template_url'); ?>/css/owl.carousel.css" rel="stylesheet" type="text/css" />
  80. <link rel='stylesheet' media='screen and (min-width: 320px) and (max-width: 768px)' href='<?php bloginfo('template_url'); ?>/css/xs device css.css' />
  81. <link rel='stylesheet' media='screen and (min-width: 769px) and (max-width: 992px)' href='<?php bloginfo('template_url'); ?>/css/sm device css.css' />
  82. <link rel='stylesheet' media='screen and (min-width: 993px) and (max-width: 1199px)' href='<?php bloginfo('template_url'); ?>/css/md device css.css' />
  83. <link rel='stylesheet' media='screen and (min-width: 1200px) and (max-width: 2000px)' href='<?php bloginfo('template_url'); ?>/css/lg device css.css' />
  84. <title><?php bloginfo('name'); ?>/</title>
  85. <?php wp_head(); ?>
  86. </head>
  87. <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
  88.       <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  89.       <!--[if lt IE 9]>
  90.       <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
  91.       <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  92.       <script src="<?php bloginfo('template_url'); ?>/js/respond.js"></script>
  93.       <![endif]-->
  94. <style>
  95. #gform_submit_button_3{
  96. background-color: red;
  97. width: 100%;
  98. border: 0px;
  99. border-radius: 0px;
  100. color: white;
  101. font-family: bebas-neue;
  102. font-size: 30px;
  103. }
  104. #field_3_1 > label,#field_3_2 > label,#field_3_3 > label,#field_3_4 > label,#field_3_5 > label{
  105. display: none;
  106. }
  107. input[type="text"]{
  108. background: rgba(195, 195, 195, 0.01);
  109. border: 1px solid white;
  110. color: white;
  111. width: 100% !important;
  112. }
  113. ::-webkit-input-placeholder { /* WebKit browsers */
  114.     color: white;
  115. }
  116. :-moz-placeholder { /* Mozilla Firefox 4 to 18 */
  117.    color: white;
  118.    opacity:  1;
  119. }
  120. ::-moz-placeholder { /* Mozilla Firefox 19+ */
  121.    color: white;
  122.    opacity:  1;
  123. }
  124. :-ms-input-placeholder { /* Internet Explorer 10+ */
  125.    color: white;
  126. }
  127.  
  128.  
  129. </style>
  130. <body>
  131. <!--------------------------------Top gray area start------------------------- -->
  132. <div class="container-fluid top-gray">
  133.     <div class="container ">
  134.         <div class="row">
  135.             <div class="col-md-4 col-sm-6">
  136.                 <p class="abt-ctct-text"><a href="<?php the_field('page_url_1', 'options'); ?>"><?php the_field('page_name_1', 'options'); ?></a> | <a href="<?php the_field('page_url_2', 'options'); ?>"><?php the_field('page_name_2', 'options'); ?></a></p>
  137.             </div>
  138.             <div class="col-md-1"></div>
  139.             <div class="col-md-3 col-sm-3 col-xs-12">
  140.                 <p class="contact text-center">800.321.0770</p>
  141.             </div>
  142.            
  143.              <div class="col-md-4 franchise col-sm-3 col-xs-12">  
  144.             <p class="text-center top-txt"><a href="http://sparklewashfranchise.com" class="white"><?php the_field('red_text', 'options'); ?></a></p>
  145.             </div>
  146.         </div>
  147.     </div>
  148. </div>
  149. <!--------------------------------Top gray area end--------------------------->
  150.  
  151. <!--------------------------------Header area start------------------------- -->
  152. <div class="clearfix"> </div>
  153.  
  154. <div class="container header">
  155.     <div class="row">
  156.         <div class="col-md-4 col-sm-4 col-xs-12">
  157.             <a href="/"><img src="<?php bloginfo('template_url'); ?>/images/logo.png" class="img-responsive" alt="logo"/></a>
  158.         </div>
  159.         <div class="col-md-8 col-sm-8 col-xs-12">
  160.                                 <div class="navbar navbar-inverse navabar-inverse-for-dropdown">
  161.                                 <!-- button section start -->
  162.                             <span class="icon-bar"></span>
  163.                    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
  164.                          <span class="icon-bar"></span>
  165.                             <span class="icon-bar"></span>
  166.                           </button>
  167.                                          <!-- button section end -->
  168.                               <?php
  169.             wp_nav_menu( array(
  170.                 'menu'              => 'top',
  171.                 'theme_location'    => 'top',
  172.                 'depth'             => 2,
  173.                 'container'         => 'div',
  174.                 'container_class'   => 'collapse navbar-collapse pers',
  175.                        'container_id'      => '',
  176.                 'menu_class'        => 'nav navbar-nav down-menues pull-right menu',
  177.                 'fallback_cb'       => 'wp_bootstrap_navwalker::fallback',
  178.                 'walker'            => new wp_bootstrap_navwalker())
  179.             );
  180.         ?>
  181.                   </div>
  182.             </div>
  183.            
  184.        
  185.         </div>
  186.     </div>
  187. </div>
  188. <!--------------------------------Header area end----------------------------->
  189.  
  190. <style>
  191. #home {
  192.             background: url(<?php the_field('fbimage', 'options'); ?>) 50% 0 fixed;
  193.             height: auto;  
  194.             margin: 0 auto;
  195.             width: 100%;
  196.             position: relative;
  197.             padding: 20px 0;
  198.             background-position:center;
  199.                 -webkit-background-size: cover;
  200.     -moz-background-size: cover;
  201.     -o-background-size: cover;
  202.     background-size: cover;
  203.     width: 100%;
  204.         }
  205. </style>
  206.  
  207. <!--------------------------------parallax area start--------------------------- -->
  208. <section id="home" class="section" data-stellar-background-ratio="0.5">
  209.     <div class="container">
  210.         <div class="row">
  211.             <div class="col-md-7 big-word">
  212.                 <h1><?php the_field('form_text','options'); ?> </h1>
  213.             </div>
  214.             <div class="col-md-5 formarea">
  215.                   <div class="form-group">
  216.                     <?php gravity_form( 3, false, false, false, '', false ); ?>
  217.                   </div>
  218.             </div>
  219.         </div>
  220.     </div>
  221. </section>
  222. <!--------------------------------parallax area end----------------------------->
  223.  
  224.  
  225. <!--------------------------------local area start--------------------------- -->
  226. <div class="container-fluid local">
  227.     <div class="container">
  228.         <div class="row ">
  229.             <div class="col-md-12">
  230.                 <h2 class="text-center"><?php the_field('service_title','options'); ?></h2>
  231. <?php the_field('service_text','options'); ?>
  232.             </div>
  233.  
  234.             <div class="col-md-2"></div>
  235.         </div>
  236.     </div>
  237. </div>
  238. <!--------------------------------local area end----------------------------->
  239. <!--------------------------------search area start--------------------------- -->
  240. <div class="container-fluid red-bg">
  241.     <div class="container">
  242.         <div class="row">
  243.             <div class="col-md-12 col-sm-12">
  244.                 <h3 class="text-center"><?php the_field('search_text','options'); ?></h3>
  245.             </div>
  246.             <div class="col-md-12 dark-red col-sm-12">
  247.                 <div class="col-md-10 left-spacing col-sm-12">
  248.                     <form method="GET" action="/">
  249.                       <div class="form-group">
  250.                        <input type="text" class="search-input" name="state" id="exampleInputEmail1" placeholder="Enter state, or zip code">
  251.                       </div>
  252.                    
  253.                 </div>
  254.                 <div class="col-md-2 left-spacing right-spacing col-sm-12">
  255.             <style>input[type="submit"]{ font-family: bebas-neue; }</style>
  256.                     <a href="http://sparklewash.com/location/"><input type="submit" class="btn btn-primary col-md-12 search col-sm-12 col-xs-12" value="SEARCH"></a>
  257.                 </div>
  258.                     </form>            
  259.             </div>
  260.         </div> 
  261.     </div>
  262. </div>
  263. <!--------------------------------search area end----------------------------->
  264.  
  265. <!--------------------------------services area start--------------------------- -->
  266. <div class="container-fluid services">
  267.     <div class="row">
  268.         <div class="col-md-12 col-sm-12">
  269.             <h2 class="text-center">SERVICES WE OFFER!</h2>
  270.         </div>
  271.         <div class="col-md-12 col-sm-12"><!--slider start-->
  272.     <div class="owl-carousel">
  273.     <?php if( have_rows('offer', 'options') ):
  274.     while ( have_rows('offer', 'options') ) : the_row(); ?>
  275.  
  276.        
  277.  
  278.     <div class="owl-item">
  279.         <img src="<?php the_sub_field('offer_image'); ?>" class="img-responsive center-block" />
  280.         <div class="slider-txt text-center"><?php the_sub_field('offer_text'); ?></div>
  281.         <div class="gray-area">
  282.         <h3 class="text-center red-txt"><?php the_sub_field('offer_title'); ?></h3>
  283.         </div>
  284.         <a href="<?php the_sub_field('offer_url'); ?>" ><button type="button" class="btn btn-primary center-block red-btn slider-btn">LEARN MORE</button></a>
  285.     </div>
  286.        <?php endwhile; endif; ?>
  287.     </div>
  288.         <!--owl end-->
  289.         </div><!--slider end-->
  290.     </div>
  291. </div>
  292. <!--------------------------------services area end----------------------------->
  293.  
  294. <!--------------------------------services 2nd area start--------------------------- -->
  295. <div class="container-fluid">
  296.     <div class="row">
  297.         <div class="col-md-12 col-lg-12 col-sm-12 col-xs-12 ">
  298.               <div class="owl-carousel2">
  299.                   <?php if( have_rows('corusel', 'options') ):
  300.                   while ( have_rows('corusel', 'options') ) : the_row(); ?>
  301.     <div class="owl-item">
  302.         <div class="col-md-4 blue-bg-area col-lg-4 col-sm-4 col-xs-12">
  303.             <div class="service-heading"><?php the_sub_field('blueblock_title'); ?></div>
  304.             <div class="service-sub"><?php the_sub_field('blueblock_text'); ?></div>
  305.         </div>
  306.         <div class="col-md-4 col-lg-4 col-sm-4 col-xs-12 spacing">
  307.             <div class="col-md-12 left-spacing right-spacing col-sm-12 col-xs-12 hidden-xs">
  308.                 <img src="<?php the_sub_field('image_1'); ?>" class="img-responsive" />
  309.              </div>
  310.              <div class="col-md-12 left-spacing right-spacing red-service-area col-lg-12 col-sm-12 col-xs-12">
  311.                 <div class="service-heading text-center"><?php the_sub_field('block_1_title'); ?></div>
  312.                 <div class="service-sub text-center"><?php the_sub_field('block_1_text'); ?> </div>
  313.              </div>  
  314.         </div>
  315.         <div class="col-md-4 left-spacing col-lg-4 col-sm-4 col-xs-12">
  316.              <div class="col-md-12 left-spacing right-spacing red-service-area2">
  317.                 <div class="service-heading text-center"><?php the_sub_field('block_2_title'); ?></div>
  318.                 <div class="service-sub text-center"><?php the_sub_field('block_2_text'); ?>  </div>
  319.             </div>
  320.              <div class="col-md-12 left-spacing right-spacing cleang3 col-lg-12 col-sm-12 hidden-xs">
  321.                 <img src="<?php the_sub_field('image_2'); ?> " class="img-responsive" />
  322.              </div>
  323.         </div>
  324.     </div>
  325.     <?php endwhile; endif; ?>
  326.    
  327.    
  328.  
  329.     </div>
  330.         <!--owl end-->
  331.         </div>
  332.     </div>
  333. </div>
  334. <!--------------------------------services 2nd area end----------------------------->
  335.  
  336. <!--------------------------------Testiomonial area start--------------------------- -->
  337. <div class="container-fluid testimonial">
  338.     <div class="container">
  339.         <div class="row">
  340.                         <div class="col-md-4 ">
  341.                             <p class="customer-heading text-center"><b><?php the_field('title','options'); ?></b></p>
  342.                         </div>
  343.                         <div class="col-md-4">
  344.                             <div class="col-md-12 testimonials">
  345.                                 <ul class="stars">
  346.                                     <li><img src="<?php bloginfo('template_url'); ?>/images/star.png" class="img-responsive" /></li>
  347.                                     <li><img src="<?php bloginfo('template_url'); ?>/images/star.png" class="img-responsive" /></li>
  348.                                     <li><img src="<?php bloginfo('template_url'); ?>/images/star.png" class="img-responsive" /></li>
  349.                                     <li><img src="<?php bloginfo('template_url'); ?>/images/star.png" class="img-responsive" /></li>
  350.                                     <li><img src="<?php bloginfo('template_url'); ?>/images/star.png" class="img-responsive" /></li>
  351.                                 </ul>
  352.                                 <div class="testi-sub"><?php the_field('text_1','options'); ?></div>
  353.                              </div>  
  354.                         </div>
  355.                         <div class="col-md-4">
  356.                         <div class="col-md-12 testimonials">
  357.                                 <ul class="stars">
  358.                                       <li><img src="<?php bloginfo('template_url'); ?>/images/star.png" class="img-responsive" /></li>
  359.                                     <li><img src="<?php bloginfo('template_url'); ?>/images/star.png" class="img-responsive" /></li>
  360.                                     <li><img src="<?php bloginfo('template_url'); ?>/images/star.png" class="img-responsive" /></li>
  361.                                     <li><img src="<?php bloginfo('template_url'); ?>/images/star.png" class="img-responsive" /></li>
  362.                                       <li><img src="<?php bloginfo('template_url'); ?>/images/star.png" class="img-responsive" /></li>
  363.                                 </ul>
  364.                                 <div class="testi-sub"><?php the_field('text_2','options'); ?></div>
  365.                              </div>
  366.                         </div>
  367.          </div>
  368.          <div class="row top-spacing">
  369.             <div class="col-md-7">
  370.             <div class="col-md-12 testimonials">
  371.                                 <ul class="stars">
  372.                                       <li><img src="<?php bloginfo('template_url'); ?>/images/star.png" class="img-responsive" /></li>
  373.                                    <li><img src="<?php bloginfo('template_url'); ?>/images/star.png" class="img-responsive" /></li>
  374.                                      <li><img src="<?php bloginfo('template_url'); ?>/images/star.png" class="img-responsive" /></li>
  375.                                     <li><img src="<?php bloginfo('template_url'); ?>/images/star.png" class="img-responsive" /></li>
  376.                                       <li><img src="<?php bloginfo('template_url'); ?>/images/star.png" class="img-responsive" /></li>
  377.                                 </ul>
  378.                                <div class="testi-sub"><?php the_field('text_3','options'); ?></div>
  379.               </div>
  380.             </div>
  381.             <div class="col-md-5">
  382.                             <div class="col-md-12 testimonials">
  383.                                 <ul class="stars">
  384.                                       <li><img src="<?php bloginfo('template_url'); ?>/images/star.png" class="img-responsive" /></li>
  385.                                      <li><img src="<?php bloginfo('template_url'); ?>/images/star.png" class="img-responsive" /></li>
  386.                                      <li><img src="<?php bloginfo('template_url'); ?>/images/star.png" class="img-responsive" /></li>
  387.                                       <li><img src="<?php bloginfo('template_url'); ?>/images/star.png" class="img-responsive" /></li>
  388.                                      <li><img src="<?php bloginfo('template_url'); ?>/images/star.png" class="img-responsive" /></li>
  389.                                 </ul>
  390.                                 <div class="testi-sub"><?php the_field('text_4','options'); ?></div>
  391.               </div>
  392.            
  393.             </div>
  394.          </div>
  395.     </div>
  396. </div>
  397.  
  398. <!--------------------------------Testiomonial area end----------------------------->
  399.  
  400.  
  401. <!--------------------------------footer area start--------------------------- -->
  402. <div class="container-fluid footer-area">
  403.     <div class="container">
  404.         <div class="row">
  405.             <div class="col-md-6">
  406.                 <p class="white-txt copy-right">© 2015 Sparkle Wash International</p>
  407.             </div>
  408.             <div class="col-md-6">
  409.                 <ul class="social pull-right">
  410.                     <li><a href="#"><img src="<?php bloginfo('template_url'); ?>/images/fb.png" class="img-responsive" /></a></li>
  411.                     <li><a href="#"><img src="<?php bloginfo('template_url'); ?>/images/twiter.png" class="img-responsive" /></a></li>
  412.                     <li><a href="#"><img src="<?php bloginfo('template_url'); ?>/images/gplus.png" class="img-responsive" /></a></li>
  413.                 </ul>
  414.             </div>
  415.         </div>
  416.     </div>
  417. </div>
  418. <!--------------------------------footer area end--------------------------- -->
  419. <?php wp_footer(); ?>
  420. </body>
  421. </html>
  422. <script>
  423. $(document).ready(function(){
  424.   $('.owl-carousel').owlCarousel({
  425.   margin: 0,
  426.   loop: true,
  427.   items: 1,
  428.   stagePadding: 250,
  429.         nav: true,
  430.         responsiveClass:true,
  431.         pagination: false,
  432.        navText : false,
  433.         responsive:{
  434.         0:{
  435.            items:1,
  436.               nav:true,
  437.               navText : false,
  438.               pagination: false,
  439.               loop:true,
  440.               stagePadding: 0,
  441.         },
  442.         1024:{
  443.               items:1,
  444.               nav:true,
  445.               navText : false,
  446.               pagination: false,
  447.               loop:true,
  448.               stagePadding: 250,
  449.         },
  450.     }
  451. })
  452. });
  453.  
  454.  
  455. </script>
  456. <script>
  457. $(document).ready(function(){
  458.   $('.owl-carousel2').owlCarousel({
  459.   margin: 0,
  460.   loop: true,
  461.   items: 1,
  462.   stagePadding: 250,
  463.               nav:true,
  464.               navText : false,
  465.   responsiveClass:true,
  466.     responsive:{
  467.         0:{
  468.             items:1,
  469.             nav:true,
  470.               navText : false,
  471.             loop:true,
  472.               stagePadding: 0,
  473.         },
  474.                 1024:{
  475.             items:1,
  476.             nav:true,
  477.               navText : false,
  478.             loop:true,
  479.               stagePadding: 100,
  480.         },
  481.     }
  482. })
  483. });
  484.  
  485.  
  486. </script>
  487. <script>
  488. var owl = $('.owl-carousel3');
  489. owl.owlCarousel({
  490.     items:1,
  491.     loop:true,
  492.     margin:10,
  493.     autoplay: false,
  494.     autoplayTimeout:1000,
  495.     autoplayHoverPause:true
  496. });
  497. $('.play').on('click',function(){
  498.     owl.trigger('autoplay.play.owl',[1000])
  499. })
  500. $('.stop').on('click',function(){
  501.     owl.trigger('autoplay.stop.owl')
  502. })
  503.  
  504. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement