Adjusting the members only sidebar and top-bar, removing some links
authorLaury GvR <laury@gaslightmedia.com>
Fri, 21 Jul 2017 20:03:02 +0000 (16:03 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Fri, 21 Jul 2017 20:03:02 +0000 (16:03 -0400)
css/app.css
parts/blog-feed-front.php
parts/glm-members-only-blog-feed.php
parts/glm-members-only-top-bar.php
parts/members-sidebar.php
scss/_blog.scss
scss/plugins/_glm-member-db.scss

index 048701c..ccd5123 100644 (file)
@@ -7726,6 +7726,10 @@ body main.members-only-template #side-links {
   border-radius: 5px;
   list-style: outside none none;
   padding: 20px; }
+body main.members-only-template #menu-side .glm-button {
+  background: transparent;
+  text-decoration: underline;
+  color: white; }
 body main.members-only-template #menu-members-only-menu {
   list-style: outside none none; }
 body main.members-only-template #side-links h2 {
@@ -7843,52 +7847,63 @@ body #glm-member-front-header .button.glm-button {
 #blog-posts-over .vcard {
   border: 0; }
 
-.blog-feed-post:nth-child(odd) .blog-feed-img {
-  float: left;
-  padding: 0 15px;
-  margin-bottom: 25px; }
-  @media only screen and (max-width: 40em) {
-    .blog-feed-post:nth-child(odd) .blog-feed-img {
-      float: none; }
-      .blog-feed-post:nth-child(odd) .blog-feed-img img.wp-post-image {
-        text-align: center;
-        float: none;
-        margin: 0 auto; } }
-.blog-feed-post:nth-child(even) .blog-feed-img {
-  float: right;
-  padding: 0 15px;
-  margin-bottom: 15px; }
-  @media only screen and (max-width: 40em) {
-    .blog-feed-post:nth-child(even) .blog-feed-img {
-      float: none; }
-      .blog-feed-post:nth-child(even) .blog-feed-img img.wp-post-image {
-        text-align: center;
-        float: none;
-        margin: 0 auto; } }
-.blog-feed-post img.post-shadow {
-  display: block; }
-.blog-feed-post h2 {
-  line-height: 1.2;
-  text-transform: uppercase;
-  font-size: 22px;
-  margin-bottom: 0; }
-  .blog-feed-post h2 a {
-    font-style: normal;
-    font-weight: normal; }
-.blog-feed-post .blog-feed-date {
-  font-size: 0.75rem;
-  color: #939598;
-  margin: 0 0 12px; }
-.blog-feed-post p {
-  font-size: 1.125rem; }
-.blog-feed-post a.read-more {
-  color: #FFFFFF;
-  background: #ffc742;
-  border-radius: 5px;
-  padding: 5px;
-  margin-top: 15px;
-  display: block;
-  width: 145px; }
+.blog-feed-post {
+  /*    &:nth-child(odd) {
+        .blog-feed-img {
+            float: left;
+            padding: 0 15px;
+            margin-bottom: 25px;
+            @media only screen and (max-width: 40em) {
+                float: none;
+                img.wp-post-image {
+                    text-align: center;
+                    float: none;
+                    margin: 0 auto;
+                }
+            }
+        }
+    }*/
+  border: 1px solid #434343;
+  border-radius: 4px;
+  padding-right: 0; }
+  .blog-feed-post .blog-feed-img {
+    float: right;
+    padding: 0 0 0 15px;
+    border-top-right-radius: 4px;
+    border-bottom-right-radius: 4px;
+    overflow: hidden;
+    /*        margin-bottom: 15px;*/ }
+    @media only screen and (max-width: 40em) {
+      .blog-feed-post .blog-feed-img {
+        float: none; }
+        .blog-feed-post .blog-feed-img img.wp-post-image {
+          text-align: center;
+          float: none;
+          margin: 0 auto; } }
+  .blog-feed-post img.post-shadow {
+    display: block; }
+  .blog-feed-post h2 {
+    line-height: 1.2;
+    text-transform: uppercase;
+    font-size: 22px;
+    margin-bottom: 0; }
+    .blog-feed-post h2 a {
+      font-style: normal;
+      font-weight: normal; }
+  .blog-feed-post .blog-feed-date {
+    font-size: 0.75rem;
+    color: #939598;
+    margin: 0 0 12px; }
+  .blog-feed-post p {
+    font-size: 1.125rem; }
+  .blog-feed-post h1, .blog-feed-post h2, .blog-feed-post h3, .blog-feed-post h4, .blog-feed-post h5, .blog-feed-post h6 {
+    font-size: 1.125rem; }
+  .blog-feed-post a.read-more {
+    color: #b32024;
+    background: transparent;
+    display: inline;
+    width: 145px;
+    white-space: pre; }
 
 .home-feed-post {
   padding-bottom: 25px; }
index e08a3ac..49a92d7 100644 (file)
@@ -11,8 +11,7 @@
                         <?php $thumbnail = get_the_post_thumbnail($post->ID, 'blog-feed-front'); ?>
                         <?php if ($thumbnail) { ?>
                             <div class="small-8 small-centered medium-uncentered medium-6 columns blog-feed-img">
-                                    <?php echo $thumbnail; ?>
-                                    <img alt="post shadow" class="post-shadow" src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/post-image-shadow.jpg">
+                                <?php echo $thumbnail; ?>
                             </div>
                             <div class="small-12 medium-6 columns blog-feed-content">
                         <?php } else { ?>
index 7aef777..edb5845 100644 (file)
@@ -14,8 +14,7 @@ if ($lastposts) { ?>
                     <?php $thumbnail = get_the_post_thumbnail($post->ID, 'blog-feed-front'); ?>
                     <?php if ($thumbnail) { ?>
                         <div class="small-8 small-centered medium-uncentered medium-4 columns blog-feed-img">
-                                <?php echo $thumbnail; ?>
-                                <img alt="post shadow" class="post-shadow" src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/post-image-shadow.jpg">
+                            <?php echo $thumbnail; ?>
                         </div>
                         <div class="small-12 medium-8 columns blog-feed-content">
                     <?php } else { ?>
index 3c49979..d65cabd 100644 (file)
@@ -1,9 +1,6 @@
 <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>
-    <?php if (current_user_can("glm_members_member")) { ?>
-        <?php $glmAssociateTerms = apply_filters('glm_associate_terms', '');?>
-        <a class='button glm-button' href='<?php echo get_admin_url() ?>admin.php?page=glm-members-admin-menu-member'>Enter <?php echo $glmAssociateTerms['term_member_cap']; ?> Admin Area</a>
+    <?php if (true) { ?>
         <a class='button glm-button' href="<?php echo get_permalink(get_option("glm_members_database_option_members_only_id")); ?>">Members Home</a>
     <?php } ?>
 </div>
\ No newline at end of file
index a5d978c..3fc5611 100644 (file)
@@ -6,5 +6,11 @@
             <?php glm_members_only_menu(); ?>
         <?php } ?>
     <?php } ?>
-    <h2><a href="<?php echo get_home_url(null, "/?post_type=member_post"); ?>">True North News</a></h2>
+<!--    <h2><a href="<?php // echo get_home_url(null, "/?post_type=member_post"); ?>">True North News</a></h2>-->
+        <hr>
+    <?php if (current_user_can("glm_members_member")) { ?>
+        <?php $glmAssociateTerms = apply_filters('glm_associate_terms', '');?>
+        <a class='button glm-button' href='<?php echo get_admin_url() ?>admin.php?page=glm-members-admin-menu-member'>Update Profile</a>
+        <a class='button glm-button' href="<?php echo wp_logout_url( home_url() ); ?>">Logout</a>
+    <?php } ?>
 </div>
\ No newline at end of file
index 04a2f03..64ffdd6 100644 (file)
     border: 0;
 }
 .blog-feed-post {
-    &:nth-child(odd) {
+/*    &:nth-child(odd) {
         .blog-feed-img {
             float: left;
             padding: 0 15px;
                 }
             }
         }
-    }
-    &:nth-child(even) {
-        .blog-feed-img {
-            float: right;
-            padding: 0 15px;
-            margin-bottom: 15px;
-            @media #{$small-only} {
+    }*/
+    border: 1px solid #434343;
+    border-radius: 4px;
+    padding-right: 0;
+    .blog-feed-img {
+        float: right;
+        padding: 0 0 0 15px;
+        border-top-right-radius: 4px;
+        border-bottom-right-radius: 4px;
+        overflow: hidden;
+/*        margin-bottom: 15px;*/
+        @media #{$small-only} {
+            float: none;
+            img.wp-post-image {
+                text-align: center;
                 float: none;
-                img.wp-post-image {
-                    text-align: center;
-                    float: none;
-                    margin: 0 auto;
-                }
+                margin: 0 auto;
             }
         }
     }
     p {
         font-size: rem-calc(18);
     }
+    h1, h2, h3, h4, h5, h6 {
+        font-size: rem-calc(18);
+    }
     a.read-more {
-        color: $white;
-        background: $gold;
-        border-radius: 5px;
-        padding: 5px;
-        margin-top: 15px;
-        display: block;
+        color: $red;
+        background: transparent;
+        display: inline;
         width: 145px;
+        white-space: pre;
     }
 }
 
index b09e759..c5af481 100644 (file)
@@ -190,6 +190,11 @@ main.members-only-template {
         list-style: outside none none;
         padding: 20px;
     }
+    #menu-side .glm-button {
+        background: transparent;
+        text-decoration: underline;
+        color: white;
+    }
     #menu-members-only-menu {
         list-style: outside none none;
     }