windhamdavid 2 years ago
parent
commit
6dfd13db55
4 changed files with 1394 additions and 1323 deletions
  1. 6 11
      header.php
  2. 8 1
      js/climatecontrol.js
  3. 40 0
      page-home.php
  4. 1340 1311
      style.css

+ 6 - 11
header.php

@@ -37,21 +37,17 @@
 		<div class="header-main">
 			<div class="inner-wrapper">
 				<div class="header-left">
+				<div class="header-left">
 					<div class="header-links">
-						<?php if ( get_field('header_links', 'options') ) {
-							while( has_sub_field('header_links', 'options') ) {
-								$page = get_sub_field('page');
-								echo "<a href='" . get_permalink( $page->ID ) . "'>" . $page->post_title . "</a>";
-							}
-						} ?>
+						<a href='service-request/'>Service Request</a><a href='estimate-request/'>Estimate Request</a></div>
+						<div class="phone"><a href="tel:+18642291409">864-229-1409</a></div>
 					</div>
-					<div class="phone"><?php the_field('phone', 'options'); ?></div>
 				</div>
 				<div class="logo">
-					<a href="<?php bloginfo('url'); ?>"></a>
+					<a href="<?php bloginfo('url'); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/climate_control_logo.png"></a>
 				</div>
 				<!--<?php get_search_form(); ?>-->
-				<div class="social">
+				<!--<div class="social">
 					<?php if ( get_field('social_media', 'options') ) {
 						echo "<ul class='social-links'>";
 						while( has_sub_field('social_media', 'options') ) {
@@ -59,7 +55,7 @@
 						}
 						echo "</ul>";
 					} ?>
-				</div>
+				</div>-->
 			</div>
 		</div>
 		<nav id="primary-navigation" class="site-navigation primary-navigation inner-wrapper " role="navigation">
@@ -70,5 +66,4 @@
 		</nav>
 	</header><!-- #masthead -->
 
-	<div class="bg-element"></div>
 	<div id="main" class="site-main">

+ 8 - 1
js/climatecontrol.js

@@ -18,7 +18,14 @@ $(window).load( function() {
 });
 
 $(function () {
-  $("#menu-primary-menu").tinyNav();
+  $("#menu-primary-menu").tinyNav(
+	  {
+	    active: 'selected', // String: Set the "active" class
+	    header: 'Navigation', // String: Specify text for "header" and show header instead of the active item
+	    indent: '- ', // String: Specify text for indenting sub-items
+	    label: '' // String: Sets the <label> text for the <select> (if not set, no label will be added)
+	  }
+  );
 });
 
 

+ 40 - 0
page-home.php

@@ -0,0 +1,40 @@
+<?php
+/*
+Template Name: Home
+*/
+?>
+<?php
+/**
+ * @package WordPress
+ * @subpackage Default_Theme
+ */
+
+get_header(); ?>
+<?php if ( is_front_page() ) { ?>
+	<div class="slider">
+		<div class="bg-color">
+			<div class="inner-wrapper">
+				<?php 
+    echo do_shortcode("[metaslider id=130 percentwidth=100]"); 
+?>
+			</div>
+		</div>
+	</div>
+<?php } ?>
+
+<div id="main-content" class="main-content inner-wrapper">
+	<div id="primary" class="content-area">
+		<div id="content" class="site-content" role="main">
+			<?php
+				// Start the Loop.
+				while ( have_posts() ) : the_post();
+					// Include the page content template.
+					get_template_part( 'content', 'page' );
+				endwhile;
+			?>
+		</div><!-- #content -->
+	</div><!-- #primary -->
+</div><!-- #main-content -->
+            
+
+<?php get_footer(); ?>

File diff suppressed because it is too large
+ 1340 - 1311
style.css