Sidebar inside, disallow forms
authorLaury GvR <laury@gaslightmedia.com>
Tue, 11 Aug 2015 14:30:39 +0000 (10:30 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Tue, 11 Aug 2015 14:30:39 +0000 (10:30 -0400)
page.php

index 0fea665..af55f21 100644 (file)
--- a/page.php
+++ b/page.php
@@ -1,8 +1,8 @@
 <?php get_header(); ?>
                 <main>
                     <div class="row" data-equalizer>
-                        <?php get_sidebar(); ?>
-                        <?php if (get_the_block( 'sidebar' ) != ""
+                        <?php if (get_the_block( 'sidebar' ) != "" 
+                            && empty($ninja_forms_append_page_form_id)
                             && $name != "request-brochures"
                             && $name != "contact-us"
                             && $name != "tips-hotline") { ?>
                                 </div>
                             </footer>
                         </div>
-                        <?php if (get_the_block( 'sidebar' ) != "" && $name != "request-brochures" && $name != "contact-us") {
+                        <?php if (get_the_block( 'sidebar' ) != ""
+                                && empty($ninja_forms_append_page_form_id)
+                                && $name != "request-brochures" 
+                                && $name != "contact-us"
+                                && $name != "tips-hotline") {
                             get_template_part('parts/right-sidebar');
                         } ?>
                     </div>