Placed Members Only ad at the top of the sidebar
authorLaury GvR <laury@gaslightmedia.com>
Thu, 12 Apr 2018 14:54:14 +0000 (10:54 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Thu, 12 Apr 2018 14:54:14 +0000 (10:54 -0400)
functions.php
sidebar.php
style.css

index e70f709..8c45f64 100644 (file)
@@ -274,8 +274,8 @@ function wmta_scripts() {
 
        wp_enqueue_script( 'wmta-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20130115', true );
 
-       wp_enqueue_script( 'glm-dev', get_template_directory_uri() . '/assets/javascript/glm-dev.js', array(), '1.0.22', true );
-       wp_enqueue_style( 'glm-style', get_template_directory_uri() . '/assets/stylesheets/glm-dev.css', false, "1.0.22" );
+       wp_enqueue_script( 'glm-dev', get_template_directory_uri() . '/assets/javascript/glm-dev.js', array(), '1.0.23', true );
+       wp_enqueue_style( 'glm-style', get_template_directory_uri() . '/assets/stylesheets/glm-dev.css', false, "1.0.23" );
 
        if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
                wp_enqueue_script( 'comment-reply' );
index 068b46f..1848bb7 100644 (file)
@@ -15,6 +15,7 @@ if ( ! is_active_sidebar( 'sidebar-1' ) ) {
 <aside id="secondary" class="widget-area" role="complementary">
 
         <?php if ( get_page_template_slug( $post->ID ) === "members-only-template.php" && current_user_can("glm_members_member") ) {  // Members only ?>
+            <?php dynamic_sidebar( 'members-only-sidebar-ad' ); ?>
             <section class="widget sidebar">
                 <h2 class="widget-title">Members Only Area</h2>
                 <div id="members-only-menu-side" class="widget-container members-only">
@@ -23,7 +24,6 @@ if ( ! is_active_sidebar( 'sidebar-1' ) ) {
                     </ul>
                 </div>
             </section>
-            <?php dynamic_sidebar( 'members-only-sidebar-ad' ); ?>
         <?php } else { ?>
             <?php if (! dynamic_sidebar('sidebar-top-ad')):endif; ?>
        <section class="widget sidebar">
index c491fdf..312231b 100644 (file)
--- a/style.css
+++ b/style.css
@@ -4,7 +4,7 @@ Theme URI: http://underscores.me/
 Author: Underscores.me
 Author URI: http://underscores.me/
 Description: Description
-Version: 1.0.22
+Version: 1.0.23
 License: GNU General Public License v2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain: wmta