WordPress Ad Widget - Version 2.1.6

Version Description

Download this release

Release Info

Developer broadstreetads
Plugin Icon wp plugin WordPress Ad Widget
Version 2.1.6
Comparing to
See all releases

Code changes from version 2.1.5 to 2.1.6

Files changed (3) hide show
  1. adwidget.php +3 -3
  2. readme.txt +1 -1
  3. views/admin.php +23 -8
adwidget.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Wordpress Ad Widget
4
  Plugin URI: https://github.com/broadstreetads/wordpress-ad-widget
5
  Description: The easiest way to place ads in your Wordpress sidebar. Go to Settings -> Ad Widget
6
- Version: 2.1.5
7
  Author: Broadstreet Ads
8
  Author URI: http://broadstreetads.com
9
  */
@@ -18,7 +18,7 @@ add_action('admin_menu', array('AdWidget_Core', 'registerAdmin'));
18
  class AdWidget_Core
19
  {
20
  CONST KEY_INSTALL_REPORT = 'AdWidget_Installed';
21
- CONST VERSION = '2.1.5';
22
 
23
  /**
24
  * The callback used to register the scripts
@@ -177,7 +177,7 @@ class AdWidget_HTMLWidget extends WP_Widget
177
 
178
  echo $before_widget;
179
 
180
- $instance['w_adcode'];
181
 
182
  echo $after_widget;
183
  }
3
  Plugin Name: Wordpress Ad Widget
4
  Plugin URI: https://github.com/broadstreetads/wordpress-ad-widget
5
  Description: The easiest way to place ads in your Wordpress sidebar. Go to Settings -> Ad Widget
6
+ Version: 2.1.6
7
  Author: Broadstreet Ads
8
  Author URI: http://broadstreetads.com
9
  */
18
  class AdWidget_Core
19
  {
20
  CONST KEY_INSTALL_REPORT = 'AdWidget_Installed';
21
+ CONST VERSION = '2.1.6';
22
 
23
  /**
24
  * The callback used to register the scripts
177
 
178
  echo $before_widget;
179
 
180
+ echo "<div style='text-align: center;'>{$instance['w_adcode']}</div>";
181
 
182
  echo $after_widget;
183
  }
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: Broadstreet
3
  Tags: wordpress,ad,widget,sidebar,google,tag,code
4
  Requires at least: 3.0
5
  Tested up to: 3.5.1
6
- Stable tag: 2.1.5
7
 
8
  Easily upload ad images and ad code to your sidebar. For those that don't need or
9
  want a complicated ad management system.
3
  Tags: wordpress,ad,widget,sidebar,google,tag,code
4
  Requires at least: 3.0
5
  Tested up to: 3.5.1
6
+ Stable tag: 2.1.6
7
 
8
  Easily upload ad images and ad code to your sidebar. For those that don't need or
9
  want a complicated ad management system.
views/admin.php CHANGED
@@ -1,4 +1,4 @@
1
- <div style="width: 650px;">
2
  <script>(function(d, s, id) {
3
  var js, fjs = d.getElementsByTagName(s)[0];
4
  if (d.getElementById(id)) return;
@@ -7,9 +7,15 @@
7
  fjs.parentNode.insertBefore(js, fjs);
8
  }(document, 'script', 'facebook-jssdk'));</script>
9
  <script>window.admin_email = '<?php bloginfo('admin_email'); ?>';</script>
 
 
 
 
 
 
10
 
11
  <h1>Wordpress Ad Widget</h1>
12
-
13
  <script type="text/javascript" src="http://cdn.broadstreetads.com/init.js"></script>
14
  <script type="text/javascript">broadstreet.zone(423);</script>
15
 
@@ -31,16 +37,25 @@ Drag one of those into your a widget area, like a sidebar, and follow the
31
  instructions! Send questions to kenny@broadstreetads.com .
32
  </p>
33
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
  <div>
35
  <div class="fb-like" data-href="http://www.facebook.com/broadstreetads" data-send="false" data-layout="box_count" data-width="450" data-show-faces="true"></div>
36
  <a href="https://twitter.com/broadstreetads" class="twitter-follow-button" data-show-count="false">Follow @broadstreetads</a>
37
  <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
38
  </div>
39
 
40
- <p>
41
- Here's a short instructional video if you need help:
42
- </p>
43
-
44
- <iframe src="http://www.screenr.com/embed/u0t7" width="650" height="396" frameborder="0"></iframe>
45
 
46
- </div>
1
+ <div style="float: left; width: 650px;">
2
  <script>(function(d, s, id) {
3
  var js, fjs = d.getElementsByTagName(s)[0];
4
  if (d.getElementById(id)) return;
7
  fjs.parentNode.insertBefore(js, fjs);
8
  }(document, 'script', 'facebook-jssdk'));</script>
9
  <script>window.admin_email = '<?php bloginfo('admin_email'); ?>';</script>
10
+ <script>
11
+ jQuery(function() {
12
+ var bs = new Broadstreet.Network();
13
+ bs.postList('#bs-blog');
14
+ });
15
+ </script>
16
 
17
  <h1>Wordpress Ad Widget</h1>
18
+ <script src="https://broadstreet-common.s3.amazonaws.com/broadstreet-net/init.js"></script>
19
  <script type="text/javascript" src="http://cdn.broadstreetads.com/init.js"></script>
20
  <script type="text/javascript">broadstreet.zone(423);</script>
21
 
37
  instructions! Send questions to kenny@broadstreetads.com .
38
  </p>
39
 
40
+ <p>
41
+ Here's a short instructional video if you need help:
42
+ </p>
43
+
44
+ <iframe src="http://www.screenr.com/embed/u0t7" width="650" height="396" frameborder="0"></iframe>
45
+
46
+ </div>
47
+
48
+ <div style="float: right; width: 250px; margin-top: 150px;">
49
+ <h2>The Streetlight</h2>
50
+ <p>A blog for local news publishers</p>
51
+ <div id="bs-blog"></div>
52
+
53
  <div>
54
  <div class="fb-like" data-href="http://www.facebook.com/broadstreetads" data-send="false" data-layout="box_count" data-width="450" data-show-faces="true"></div>
55
  <a href="https://twitter.com/broadstreetads" class="twitter-follow-button" data-show-count="false">Follow @broadstreetads</a>
56
  <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
57
  </div>
58
 
59
+ </div>
 
 
 
 
60
 
61
+ <div style="clear:both;"></div>