Creating a new theme template page-narrow
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 24 Jun 2016 15:36:09 +0000 (11:36 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 24 Jun 2016 15:36:09 +0000 (11:36 -0400)
This is for the Events Listing page.

page-narrow-template.php [new file with mode: 0644]

diff --git a/page-narrow-template.php b/page-narrow-template.php
new file mode 100644 (file)
index 0000000..96271b5
--- /dev/null
@@ -0,0 +1,30 @@
+<?php 
+/**
+ * Template Name: Narrow Template
+ */
+get_header(); ?>
+<div id="head-img">
+    <?php echo glm_get_background(); ?>
+    <div class="gradient"></div>
+    <div class="gradient"></div>
+</div>
+    <main class="page-inside">
+        <div class="row">
+            <div class="small-12 medium-10 medium-centered columns" id="content-wrapper">
+                <div class="row">
+                    <?php
+                    get_template_part('parts/bread-crumbs');
+                    ?>
+                </div>
+                <div class="row">
+                    <div id="main-content" class="small-12 columns">
+                        <?php if(have_posts()) : while(have_posts()): the_post();?>
+                        <?php the_content();?>
+                        <?php endwhile; else:?>
+                        <p><?php _e('Sorry, no results found.');?></p>
+                        <?php endif;?>
+                    </div>
+                </div>
+            </div>
+        </div>
+<?php get_footer(); ?>