Add Members Only ad sidebar widget area
authorLaury GvR <laury@gaslightmedia.com>
Thu, 12 Apr 2018 14:50:55 +0000 (10:50 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Thu, 12 Apr 2018 14:50:55 +0000 (10:50 -0400)
functions.php
sidebar.php
style.css

index 9b2d2e1..e70f709 100644 (file)
@@ -207,6 +207,16 @@ function wmta_widgets_init() {
                        'after_title'   => '</h2>',
        ) );
 
+       register_sidebar( array(
+                       'name'          => esc_html__( 'Members Only Sidebar Advertising', 'wmta' ),
+                       'id'            => 'members-only-sidebar-ad',
+                       'description'   => '',
+                       'before_widget' => '<section id="%1$s" class="widget %2$s advert-wrap">',
+                       'after_widget'  => '</section>',
+                       'before_title'  => '<h2 class="widget-title">',
+                       'after_title'   => '</h2>',
+       ) );
+
        register_sidebar( array(
                        'name'          => esc_html__( 'Sidebar Bottom Left Advertising', 'wmta' ),
                        'id'            => 'sidebar-bottom-ad-left',
@@ -264,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.21', true );
-       wp_enqueue_style( 'glm-style', get_template_directory_uri() . '/assets/stylesheets/glm-dev.css', false, "1.0.21" );
+       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" );
 
        if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
                wp_enqueue_script( 'comment-reply' );
index 84ae62f..068b46f 100644 (file)
@@ -23,7 +23,7 @@ if ( ! is_active_sidebar( 'sidebar-1' ) ) {
                     </ul>
                 </div>
             </section>
-            <?php echo the_ad_group(3058); // Members only ad group ?>
+            <?php dynamic_sidebar( 'members-only-sidebar-ad' ); ?>
         <?php } else { ?>
             <?php if (! dynamic_sidebar('sidebar-top-ad')):endif; ?>
        <section class="widget sidebar">
index 73de171..c491fdf 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.21
+Version: 1.0.22
 License: GNU General Public License v2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain: wmta