made a new template
authorIan Weller <ian@gaslightmedia.com>
Fri, 28 Apr 2017 12:33:04 +0000 (08:33 -0400)
committerIan Weller <ian@gaslightmedia.com>
Fri, 28 Apr 2017 12:33:04 +0000 (08:33 -0400)
I made the full width template.  It is being used on "The Center" page.

parts/main-content.php
sections/interior-page.php
template-fullwidth.php [new file with mode: 0644]

index 49ec6d5..a70ce0b 100644 (file)
@@ -1,4 +1,4 @@
-<?php if (is_front_page()) { ?>            
+<?php if (is_front_page() && '$index_template = false')  { ?>            
             <div id="main-content" class="small-12 columns">
                 <?php if(have_posts()) : while(have_posts()): the_post();?>
                 <?php the_content();?>
index 55b1c03..3fee770 100644 (file)
                                 }
                                 ?>
                             </div>
+                            <?php if (get_page_template_slug( $post->ID ) == "template-fullwidth.php") { ?>
+                            <?php $index_template = false; ?>
+                                <div id="fullwidth-template" class="row large-collapse">
+                                    <?php get_template_part('parts/main-content');?>
+                                </div>                            
+                            <?php } else { ?>
                             <div class="row large-collapse">
                                 <?php get_template_part('parts/main-content');?>
                                 <div id="sidebar" class="text-center small-12 large-text-left large-4 columns">
@@ -24,5 +30,6 @@
                                     <?php the_field('sidebar_3');?>
                                 </div>
                             </div>
+                            <?php } ?>
                         </div>
                     </main>
\ No newline at end of file
diff --git a/template-fullwidth.php b/template-fullwidth.php
new file mode 100644 (file)
index 0000000..08b5293
--- /dev/null
@@ -0,0 +1,6 @@
+<?php
+/*
+Template Name: Full-Width Interior Page
+*/
+get_template_part('index');
+?>