Main content showing, inadvertently removed with members only changes
authorLaury GvR <laury@gaslightmedia.com>
Tue, 13 Mar 2018 13:35:04 +0000 (09:35 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Tue, 13 Mar 2018 13:35:04 +0000 (09:35 -0400)
sections/interior-page.php

index 0df068d..11fa315 100644 (file)
                                     <div class="members-only-template large-push-4 large-8 columns" data-equalizer-watch>
                                         <?php if (is_user_logged_in()) { ?>
                                             <!-- If user is logged in as a member, display top bar, bread crumbs, & content -->
+                                            <?php if(function_exists('bcn_display') && !is_front_page() && !is_member())
+                                            {
+                                                echo "<div class=\"breadcrumbs small-12 columns\">";
+                                                echo '<span class="st_sharethis" st_title="'. get_the_title().'" st_url="'. get_the_permalink() .'"></span>'; 
+                                                bcn_display();
+                                                echo "</div>";
+                                            }?>
                                             <?php get_template_part('parts/glm-members-only-top-bar');
                                             get_template_part('parts/main-content');
                                         } else {
+                                            
+                                            // Show the content of the Members Only Login page
+                                            get_post_field('post_content', MEMBERS_ONLY_LOGIN_PAGE_ID);
                                             get_template_part('parts/glm-members-only-login-form');
                                         } ?>
                                     </div>
                                             bcn_display();
                                             echo "</div>";
                                         }?>
-                                        <?php 
-                                            // Show the content of the Members Only Login page
-                                            echo get_post_field('post_content', MEMBERS_ONLY_LOGIN_PAGE_ID);
-                                        ?>
-                                        <?php get_template_part('template-parts/glm-members-only-login-form');?>
+                                        <?php get_template_part('parts/main-content'); ?>
                                     </div>
                                 <?php } 
                                 if (get_page_template_slug( $post->ID ) === "members-only-template.php") {  ?>