<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") { ?>