Adjust content restriction based on template selection
authorLaury GvR <laury@gaslightmedia.com>
Wed, 17 Apr 2019 17:43:37 +0000 (13:43 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Wed, 17 Apr 2019 17:43:37 +0000 (13:43 -0400)
parts/main-content.php
sections/interior-page.php

index daf32f9..52ca168 100644 (file)
@@ -1,6 +1,6 @@
         <?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')) { ?>
+        <?php } else if ( !is_page_template('no-bottom-sections.php') && !is_page_template('no-sidebar-nor-bottom.php') ) { ?>
             <div id="main-content" class="small-12 large-8 columns" data-equalizer-watch>
         <?php } else { ?>
             <div id="main-content" class="small-12 large-8 columns">
index 566ea62..3e2a7d0 100644 (file)
@@ -47,7 +47,7 @@
                                 <?php } ?>
                             </div>
 
-                            <?php if (!is_page_template('no-bottom-sections.php')) { ?>
+                            <?php if (!is_page_template('no-bottom-sections.php') && !is_page_template('no-sidebar-nor-bottom.php')) { ?>
                                 <?php if (get_field('glm-acf-first-text')) { ?>
                                     <div id="glm-acf-first" class="glm-acf-field row">
                                         <div class="glm-acf-text small-12 columns">