added chamber template
authorAnthony Talarico <talarico@gaslightmedia.com>
Fri, 22 Apr 2016 16:53:28 +0000 (12:53 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Fri, 22 Apr 2016 16:53:28 +0000 (12:53 -0400)
chamber-template.php [new file with mode: 0644]
lib/navigation.php

diff --git a/chamber-template.php b/chamber-template.php
new file mode 100644 (file)
index 0000000..05ec155
--- /dev/null
@@ -0,0 +1,31 @@
+<?php
+/*
+Template Name: Chamber Template
+*/
+
+
+get_header(); ?>
+<main class="page-front">
+        <?php get_template_part('parts/slide-show');?>
+    <div id="content-wrapper">
+        <div class="row">
+            <div id="main-content" class="small-12 columns">
+                <h1 id="slogan">Welcome to Silver Lake Sand Dunes!</h1>
+                <img id="divide" src="<?php echo esc_url( get_template_directory_uri() );?>/assets/fancy-divider.png">
+                <?php if(have_posts()) : while(have_posts()): the_post();?>
+                <?php the_content();?>
+                <?php endwhile; else:?>
+                <p><?php _e('Sorry, no posts yet');?></p>
+                <?php endif;?>
+            </div>
+        </div>
+        <div class="row">
+            <div class="small-12 medium-11 small-centered columns">
+                <div class="blocks">
+                    <div class="row" >
+                            <?php get_template_part('parts/glm-blocks'); ?>
+                    </div>
+            </div>
+        </div>
+    </div>
+<?php get_footer(); ?>
\ No newline at end of file
index 660864f..f18d6f1 100644 (file)
@@ -48,7 +48,27 @@ if ( ! function_exists( 'glm_theme_footer' ) ) {
       ));
   }
 }
-
+/*
+ *  Chamber Menu
+ */
+if ( ! function_exists( 'glm_theme_chamber' ) ) {
+  function glm_theme_footer() {
+      wp_nav_menu(array(
+          'container' => false,                           // remove nav container
+          'container_class' => '',                        // class of container
+          'menu' => '',                                   // menu name
+          'menu_class' => '',                             // adding custom nav class
+          'theme_location' => 'chamber',                  // where it's located in the theme
+          'before' => '',                                 // before each link <a>
+          'after' => '',                                  // after each link </a>
+          'link_before' => '',                            // before each link text
+          'link_after' => '',                             // after each link text
+          'depth' => 3,                                   // limit the depth of the nav
+          'fallback_cb' => false,                         // fallback function (see below)
+          'walker' => new Glm_Theme_Top_Bar_Walker()
+      ));
+  }
+}
 /**
  * Mobile off-canvas
  */