WordPress Ad Widget - Version 2.8.0

Version Description

Download this release

Release Info

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

Code changes from version 2.7.1 to 2.8.0

Files changed (3) hide show
  1. adwidget.php +4 -4
  2. lib/Utility.php +1 -1
  3. readme.txt +4 -4
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.7.1
7
  Author: Broadstreet Ads
8
  Author URI: http://broadstreetads.com
9
  */
@@ -21,7 +21,7 @@ add_action('admin_footer', array('AdWidget_Core', 'footerScripts'));
21
  class AdWidget_Core
22
  {
23
  CONST KEY_INSTALL_REPORT = 'AdWidget_Installed';
24
- CONST VERSION = '2.7.1';
25
  CONST KEY_WELCOME = 'AdWidget_Welcome';
26
 
27
  /**
@@ -53,7 +53,7 @@ class AdWidget_Core
53
  */
54
  public static function getBaseURL()
55
  {
56
- return (get_bloginfo('url') . '/wp-content/plugins/ad-widget/');
57
  }
58
 
59
  /**
@@ -475,7 +475,7 @@ class AdWidget_ImageWidget extends WP_Widget
475
  <input type="checkbox" name="<?php echo $this->get_field_name('w_new'); ?>" value="yes" <?php if($instance['w_new'] == 'yes') echo 'checked'; ?> />
476
  </p>
477
  <p>
478
- <span style="color: green; font-weight: bold;">Tip:</span> If you're using this widget, you might also find <a target="_blank" href="http://wordpress.org/plugins/selfie">Selfie</a> useful.
479
  </p>
480
  <?php if(!Broadstreet_Adwidget_Mini_Utility::hasAdserving()): ?>
481
  <p>
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.8.0
7
  Author: Broadstreet Ads
8
  Author URI: http://broadstreetads.com
9
  */
21
  class AdWidget_Core
22
  {
23
  CONST KEY_INSTALL_REPORT = 'AdWidget_Installed';
24
+ CONST VERSION = '2.8.0';
25
  CONST KEY_WELCOME = 'AdWidget_Welcome';
26
 
27
  /**
53
  */
54
  public static function getBaseURL()
55
  {
56
+ return plugin_dir_url(__FILE__);
57
  }
58
 
59
  /**
475
  <input type="checkbox" name="<?php echo $this->get_field_name('w_new'); ?>" value="yes" <?php if($instance['w_new'] == 'yes') echo 'checked'; ?> />
476
  </p>
477
  <p>
478
+ <span style="color: green; font-weight: bold;">Tip:</span> If you're using this widget, you might also find <a target="_blank" href="http://broadstreetads.com/ad-platform/ad-formats/">our special ad formats for sales people and publishers</a> useful.
479
  </p>
480
  <?php if(!Broadstreet_Adwidget_Mini_Utility::hasAdserving()): ?>
481
  <p>
lib/Utility.php CHANGED
@@ -28,7 +28,7 @@ function bsadwidget_set_option($name, $value)
28
  function bsadwidget_get_base_url($append = false)
29
  {
30
  $dir = basename(dirname(__FILE__));
31
- return (WP_PLUGIN_URL . "/ad-widget/" . ($append ? $append : ''));
32
  }
33
 
34
  function bsadwidget_get_email()
28
  function bsadwidget_get_base_url($append = false)
29
  {
30
  $dir = basename(dirname(__FILE__));
31
+ return (AdWidget_Core::getBaseURL() . ($append ? $append : ''));
32
  }
33
 
34
  function bsadwidget_get_email()
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: Broadstreet
3
  Tags: wordpress,ad,widget,sidebar,google,tag,code
4
  Requires at least: 3.0
5
- Tested up to: 4.0
6
- Stable tag: 2.7.1
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.
@@ -19,9 +19,9 @@ Watch a short video demo: http://www.screenr.com/u0t7
19
  * No clunky ad management interface
20
  * Easily place image banner ads
21
  * Easily place Google ad tags and other ad code
22
- * Easily upgrade to **cloud-based adserving power** backed by [Broadstreet Ads](http://broadstreetads.com)
23
 
24
- If you like Ad Widget, you might like [Selfie](http://wordpress.org/plugins/selfie) too.
 
25
 
26
  You will not find an easier way to run ads on your website!
27
 
2
  Contributors: Broadstreet
3
  Tags: wordpress,ad,widget,sidebar,google,tag,code
4
  Requires at least: 3.0
5
+ Tested up to: 4.1
6
+ Stable tag: 2.8.0
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.
19
  * No clunky ad management interface
20
  * Easily place image banner ads
21
  * Easily place Google ad tags and other ad code
 
22
 
23
+ If you like Ad Widget and you're selling ads, you might like our new [ad formats for publishers
24
+ and salespeople](http://broadstreetads.com/ad-platform/ad-formats/).
25
 
26
  You will not find an easier way to run ads on your website!
27