testing the removal of template checking for the members only off canvas menu, the
authorAnthony Talarico <talarico@gaslightmedia.com>
Mon, 16 Jan 2017 14:30:28 +0000 (09:30 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Mon, 16 Jan 2017 14:30:28 +0000 (09:30 -0500)
menu was only showing on pages that had a members only template

sections/off-canvas.php

index e491ab1..fc983f1 100644 (file)
@@ -1,17 +1,14 @@
                     <aside class="left-off-canvas-menu opensearchserver.ignore">
                         <?php glm_theme_mobile_off_canvas(); ?>
-                        
-                        <?php if (get_page_template_slug( $post->ID ) === "members-only-template.php") {  ?>
+              
                             <div id="members-only-off-canvas" class="show-for-small-only">
                                 <div class="row collapse">
-                                    <?php if (current_user_can("glm_members_member")) { ?>
+                                    <?php if (is_user_logged_in()) { ?>
                                          <?php glm_theme_top_bar('members-only-menu'); ?>
                                     <?php } ?>
                                 </div>
                             </div>
 
-                        <?php } ?>
-                        
                         <?php get_template_part('parts/search-form');?>
                         <?php if (function_exists('glm_get_clientinfo_option')) :?>
                             <ul>