WordPress Ad Widget - Version 2.16.0

Version Description

Download this release

Release Info

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

Code changes from version 2.15.0 to 2.16.0

Files changed (3) hide show
  1. adwidget.php +3 -3
  2. assets/widgets.js +3 -1
  3. readme.txt +2 -2
adwidget.php CHANGED
@@ -5,7 +5,7 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
5
  Plugin Name: Wordpress Ad Widget
6
  Plugin URI: https://github.com/broadstreetads/wordpress-ad-widget
7
  Description: The easiest way to place ads in your Wordpress sidebar. Go to Settings -> Ad Widget
8
- Version: 2.15.0
9
  Author: Broadstreet XPRESS
10
  Author URI: http://broadstreetads.com
11
  */
@@ -22,7 +22,7 @@ add_action('admin_menu', array('AdWidget_Core', 'registerAdmin'));
22
  class AdWidget_Core
23
  {
24
  CONST KEY_INSTALL_REPORT = 'AdWidget_Installed';
25
- CONST VERSION = '2.15.0';
26
  CONST KEY_WELCOME = 'AdWidget_Welcome';
27
 
28
  /**
@@ -376,7 +376,7 @@ class AdWidget_ImageWidget extends WP_Widget
376
  <input type="checkbox" name="<?php echo $this->get_field_name('w_new'); ?>" value="yes" <?php if($instance['w_new'] == 'yes') echo 'checked'; ?> />
377
  </p>
378
  <p>
379
- <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.
380
  </p>
381
  </div>
382
  <?php
5
  Plugin Name: Wordpress Ad Widget
6
  Plugin URI: https://github.com/broadstreetads/wordpress-ad-widget
7
  Description: The easiest way to place ads in your Wordpress sidebar. Go to Settings -> Ad Widget
8
+ Version: 2.16.0
9
  Author: Broadstreet XPRESS
10
  Author URI: http://broadstreetads.com
11
  */
22
  class AdWidget_Core
23
  {
24
  CONST KEY_INSTALL_REPORT = 'AdWidget_Installed';
25
+ CONST VERSION = '2.16.0';
26
  CONST KEY_WELCOME = 'AdWidget_Welcome';
27
 
28
  /**
376
  <input type="checkbox" name="<?php echo $this->get_field_name('w_new'); ?>" value="yes" <?php if($instance['w_new'] == 'yes') echo 'checked'; ?> />
377
  </p>
378
  <p>
379
+ <span style="color: green; font-weight: bold;">Tip:</span> If you're using this widget, you might also find <a target="_blank" href="https://information.broadstreetads.com/category/ad-formats/">our special ad formats for sales people and publishers</a> useful.
380
  </p>
381
  </div>
382
  <?php
assets/widgets.js CHANGED
@@ -12,7 +12,9 @@ jQuery(function($) {
12
  imgurl = $('img',html).attr('src');
13
  if(!imgurl) imgurl = $(html).attr('src');
14
 
15
- $('#' + window.adcode_id).val(imgurl);
 
 
16
 
17
  tb_remove();
18
  };
12
  imgurl = $('img',html).attr('src');
13
  if(!imgurl) imgurl = $(html).attr('src');
14
 
15
+ var el = $('#' + window.adcode_id);
16
+ el.val(imgurl);
17
+ el.parents('form').first().trigger('change');
18
 
19
  tb_remove();
20
  };
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.7
6
- Stable tag: 2.15.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.
2
  Contributors: Broadstreet
3
  Tags: wordpress,ad,widget,sidebar,google,tag,code
4
  Requires at least: 3.0
5
+ Tested up to: 4.9
6
+ Stable tag: 2.16.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.