Markup added to members only for better style targeting
authorLaury GvR <laury@gaslightmedia.com>
Tue, 14 May 2019 20:49:10 +0000 (16:49 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Tue, 14 May 2019 20:49:10 +0000 (16:49 -0400)
includes/lib/glma/glm-members-only-template.php
page.php

index 1f8f727..d40f24e 100644 (file)
@@ -5,7 +5,7 @@
             <h2> Members Only Area </h2>
             <?php glm_members_only_menu(); ?>
         </div>
-        <div id="members-only-content">
+        <div id="members-only-content-wrapper">
             <div id="glm-member-front-header" class="small-12 columns">
                 <div class='glm-member-greeting'>Hello,     <?php $current_user = wp_get_current_user();echo $current_user->user_login ?>.</div>
                 <a class='button glm-button' href="<?php echo wp_logout_url( home_url() ); ?>">Logout</a>
                     <a class='button glm-button' href='<?php echo get_admin_url(); ?>'>Enter <?php echo $glmAssociateTerms['term_member_cap']; ?> Admin Area</a>                        
                 <?php } ?>
             </div>
-            <?php the_content(); ?>
+            <div id="members-only-content">
+                <?php the_content(); ?>
+            </div>
         </div>
     <?php } else if (get_the_ID() == get_option("glm_members_database_option_members_only_id")) {?>
         <!-- If user is not logged in as member, but it's the main members only page, display content & form -->
         <?php the_content(); ?>
-        <?php include("glm-members-only-login-form.php"); ?>
+        <?php include "glm-members-only-login-form.php"; ?>
     <?php } else { ?>
         <!-- Otherwise, display main members only page content & form -->
         <?php echo get_post_page_content(get_option("glm_members_database_option_members_only_id")); ?>
-        <?php include("glm-members-only-login-form.php"); ?>
+        <?php include "glm-members-only-login-form.php"; ?>
     <?php } ?>
 </div>
\ No newline at end of file
index 279aea4..689fe71 100644 (file)
--- a/page.php
+++ b/page.php
@@ -37,7 +37,7 @@ if ( ! defined( 'ABSPATH' ) ) {
                        <div class="post-content">
                                <?php if ( is_in_tree( get_option("glm_members_database_option_members_only_id") ) ) { ?>
                                        <!-- if this is a page in the members only tree, go through members only content -->
-                                       <?php include(get_template_directory_uri() . "/includes/lib/glma/glm-members-only-template.php"); ?>
+                                       <?php include "includes/lib/glma/glm-members-only-template.php"; ?>
                                <?php } else { ?>
                                        <!-- if this is not a members-only template, show the regular content -->
                                        <?php the_content(); ?>