Adding new template for the theme.
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 3 Nov 2017 17:26:53 +0000 (13:26 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 3 Nov 2017 17:26:53 +0000 (13:26 -0400)
So there's now a full width and full width cover template.

sections/interior-page.php
template-fullwidthcover.php [new file with mode: 0644]

index 67da000..f93e5b7 100644 (file)
@@ -2,30 +2,30 @@
                         <div id="content-wrapper">
                             <div class="feature-img">
                                 <?php echo glm_get_header(); ?>
-                            </div>                            
+                            </div>
                             <div id="feature-border"></div>
                             <div class="row">
                                 <?php //if(function_exists('bcn_display') && !is_front_page())
                                 {
                                     //echo "<div class=\"breadcrumbs small-12 columns\">";
-                                    //echo '<span class="st_sharethis" st_title="'. get_the_title().'" st_url="'. get_the_permalink() .'"></span>'; 
+                                    //echo '<span class="st_sharethis" st_title="'. get_the_title().'" st_url="'. get_the_permalink() .'"></span>';
                                     //bcn_display();
                                     //echo "</div>";
                                 }
                                 ?>
                             </div>
-                            <?php if (get_page_template_slug( $post->ID ) == "template-fullwidth.php") { ?>
-                               <?php if (is_page(1130)){ ?>
-                                     <div id="fullwidth-template" class="row large-collapse event-detail-page">
-                                <?php } else { ?>
-                                      <div id="fullwidth-template" class="row large-collapse">
-                                <?php } ?>
-                              
+                            <?php if (get_page_template_slug( $post->ID ) == "template-fullwidthcover.php") { ?>
+                                <div id="fullwidth-template" class="row large-collapse event-detail-page">
+                                  <?php $index_template = false; ?>
+                                   <?php include get_template_directory() . '/parts/main-content.php'; ?>
+                                </div>
+                            <?php } else if ( get_page_template_slug( $post->ID ) == "template-fullwidth.php" ) { ?>
+                                <div id="fullwidth-template" class="row large-collapse">
                                   <?php $index_template = false; ?>
                                    <?php include get_template_directory() . '/parts/main-content.php'; ?>
                                 </div>
                             <?php } else { ?>
-                    
+
                             <div class="row large-collapse">
                                 <?php $index_template = true; ?>
                                 <?php include get_template_directory() . '/parts/main-content.php'; ?>
@@ -37,4 +37,4 @@
                             </div>
                             <?php } ?>
                         </div>
-                    </main>
\ No newline at end of file
+                    </main>
diff --git a/template-fullwidthcover.php b/template-fullwidthcover.php
new file mode 100644 (file)
index 0000000..206a5d9
--- /dev/null
@@ -0,0 +1,6 @@
+<?php
+/*
+Template Name: Full-Width Cover Page
+*/
+get_template_part('index');
+?>