added another partial for the content pages
authorIan Weller <ian@gaslightmedia.com>
Mon, 25 Jul 2016 20:36:20 +0000 (16:36 -0400)
committerIan Weller <ian@gaslightmedia.com>
Mon, 25 Jul 2016 20:36:20 +0000 (16:36 -0400)
root/front-page.php
root/index.php
root/parts/main-content.php [new file with mode: 0644]

index a420ded..859a190 100644 (file)
             ?>
         </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 posts yet');?></p>
-                <?php endif;?>
-            </div>
+            <?php get_template_part('parts/main-content');?>
 <!--
             <div class="small-12 medium-6 large-4 columns small-text-center medium-text-left">
                 <?php //get_sidebar(); ?>
index 62bcd1e..cfeba0c 100644 (file)
@@ -7,13 +7,7 @@
                 ?>
             </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>
+                <?php get_template_part('parts/main-content');?>
 <!--
                 <div class="small-12 medium-6 large-4 columns small-text-center medium-text-left">
                     <?php //get_sidebar(); ?>
diff --git a/root/parts/main-content.php b/root/parts/main-content.php
new file mode 100644 (file)
index 0000000..5a9ccd0
--- /dev/null
@@ -0,0 +1,7 @@
+            <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 posts yet');?></p>
+                <?php endif;?>
+            </div>
\ No newline at end of file