Added a narrow template
authorLaury GvR <laury@gaslightmedia.com>
Tue, 6 Jun 2017 17:18:39 +0000 (13:18 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Tue, 6 Jun 2017 17:18:39 +0000 (13:18 -0400)
index.php
page-narrow-template.php [new file with mode: 0644]

index 9b587fe..55e9034 100644 (file)
--- a/index.php
+++ b/index.php
@@ -1,24 +1,23 @@
 <?php get_header(); ?>
 
 <main class="page-inside">
-        
-        <div id="content-wrapper">
-            <?php echo glm_get_header() ?>
-            <div class="row">
-                <?php
-                    get_template_part('parts/bread-crumbs');
-                ?>
-            </div>
-            
+    <div id="content-wrapper">
+        <?php echo glm_get_header() ?>
+        <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 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>
 <?php get_footer(); ?>
diff --git a/page-narrow-template.php b/page-narrow-template.php
new file mode 100644 (file)
index 0000000..106759c
--- /dev/null
@@ -0,0 +1,25 @@
+<?php
+/**
+ * Template Name: Narrow Template
+ */
+get_header(); ?>
+<main class="page-inside">
+    <div id="content-wrapper">
+        <?php echo glm_get_header() ?>
+        <div class="row">
+            <?php
+            get_template_part('parts/bread-crumbs');
+            ?>
+        </div>
+        <div class="row">
+            <div id="main-content" class="small-12 medium-10 medium-centered 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>
+<?php get_footer(); ?>