Replacing the adrotate ads with the header-ads widget
authorLaury GvR <laury@gaslightmedia.com>
Fri, 30 Jun 2017 18:33:47 +0000 (14:33 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Fri, 30 Jun 2017 18:33:47 +0000 (14:33 -0400)
sections/header.php

index 8078ace..aea4223 100644 (file)
@@ -3,14 +3,9 @@
         <div class="row">
             <div id="ad" class="small-12 columns text-center">
                 <span>-Advertisements-</span>
-                <div class="row">
-                    <div class="small-12 text-center medium-6 columns medium-text-right">
-                        <?php echo adrotate_group(1); ?>
-                    </div>
-                    <div class="small-12 text-center medium-6 columns medium-text-left">
-                        <?php echo adrotate_group(2); ?>
-                    </div>
-                </div>
+                <?php if ( is_active_sidebar( 'header-ads' ) ) : ?>
+                    <?php dynamic_sidebar( 'header-ads' ); ?>
+                <?php endif; ?>
             </div>
         </div>
     <?php } ?>
@@ -38,5 +33,5 @@
                 <?php get_template_part('sections/top-bar');?>
             </div>
         </div>
-    </div>    
+    </div>
 </header>
\ No newline at end of file