Also add no-sidebar-nor-bottom template
authorLaury GvR <laury@gaslightmedia.com>
Wed, 17 Apr 2019 17:39:45 +0000 (13:39 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Wed, 17 Apr 2019 17:39:45 +0000 (13:39 -0400)
no-sidebar-nor-bottom.php [new file with mode: 0644]
no-sidebar-template.php [deleted file]
no-sidebar.php [new file with mode: 0644]
parts/main-content.php
sections/interior-page.php

diff --git a/no-sidebar-nor-bottom.php b/no-sidebar-nor-bottom.php
new file mode 100644 (file)
index 0000000..9c572c1
--- /dev/null
@@ -0,0 +1,47 @@
+<?php
+/*
+Template Name: No Sidebar nor Bottom Sections
+*/
+?>
+<!doctype html>
+<html class="no-js" lang="en">
+    <?php get_template_part("parts/header-meta"); ?>
+    <?php $index_template = true;?>
+    <body>
+        <div class="off-canvas-wrap" data-offcanvas>
+            <div class="inner-wrap">
+                <div id="page-wrapper">
+                    <?php
+                    include "sections/header.php"; 
+                    include "sections/off-canvas.php"; 
+                    if (is_front_page()) { 
+                        include "sections/front-page.php"; 
+                    } 
+                    if (is_home()) { 
+                        include "sections/blog-home.php";
+                    } 
+                    if (is_archive()) { 
+                        include "sections/blog-archive.php";
+                    } 
+                    if (is_single()) {
+                        include "sections/blog-single.php";
+                    }
+                    if (is_search()) { 
+                        include "sections/search.php";
+                    }
+                    if (is_page() && !is_front_page()) { 
+                        include "sections/interior-page.php"; 
+                    }
+                    include "sections/footer.php";  
+                    include "sections/copyright.php";  
+                    ?>
+                </div><!--/#page-wrapper-->
+                <a class="exit-off-canvas"></a>
+            </div><!--End of inner-wrap-->
+        </div><!--End of off-canvas-->
+        <?php wp_footer();?>
+        <script charset="utf-8" type="text/javascript">var switchTo5x=true;</script>
+        <script charset="utf-8" type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
+        <script charset="utf-8" type="text/javascript">stLight.options({"publisher":"wp.c3d3647e-de70-4780-b71d-6b739fad685a"});var st_type="wordpress4.3.1";</script>
+    </body>
+</html>
\ No newline at end of file
diff --git a/no-sidebar-template.php b/no-sidebar-template.php
deleted file mode 100644 (file)
index 651cea1..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-<?php
-/*
-Template Name: No Sidebar
-*/
-get_template_part('index');
-?>
\ No newline at end of file
diff --git a/no-sidebar.php b/no-sidebar.php
new file mode 100644 (file)
index 0000000..651cea1
--- /dev/null
@@ -0,0 +1,6 @@
+<?php
+/*
+Template Name: No Sidebar
+*/
+get_template_part('index');
+?>
\ No newline at end of file
index 411b8ef..daf32f9 100644 (file)
@@ -1,4 +1,4 @@
-        <?php if (is_front_page() || is_page_template('no-sidebar-template.php')) { ?>
+        <?php if ( is_front_page() || is_page_template('no-sidebar.php') || is_page_template('no-sidebar-nor-bottom.php') ) { ?>
             <div id="main-content" class="small-12 small-centered columns">
         <?php } else if (!is_page_template('no-bottom-sections.php')) { ?>
             <div id="main-content" class="small-12 large-8 columns" data-equalizer-watch>
index f14ea16..566ea62 100644 (file)
@@ -38,9 +38,9 @@
 
                             <div class="row medium-uncollapse">
 
-                                    <?php get_template_part('parts/main-content');?>
+                                <?php get_template_part('parts/main-content');?>
                                     
-                                <?php if (!is_page_template('no-sidebar-template.php')) {  ?>
+                                <?php if (!is_page_template('no-sidebar.php') && !is_page_template('no-sidebar-nor-bottom.php')) {  ?>
                                     <div class="sidebar-container show-for-large-up small-12 large-4 columns small-text-center medium-text-left">
                                         <?php get_sidebar(); ?>
                                     </div>