WordPress Ad Widget - Version 2.13.0

Version Description

Download this release

Release Info

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

Code changes from version 2.12.0 to 2.13.0

Files changed (2) hide show
  1. adwidget.php +3 -29
  2. readme.txt +1 -1
adwidget.php CHANGED
@@ -3,8 +3,8 @@
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.12.0
7
- Author: Broadstreet Ads
8
Author URI: http://broadstreetads.com
9
*/
10
@@ -13,7 +13,6 @@ require_once 'lib/Utility.php';
13
add_action('admin_init', array('AdWidget_Core', 'registerScripts'));
14
add_action('widgets_init', array('AdWidget_Core', 'registerWidgets'));
15
add_action('admin_menu', array('AdWidget_Core', 'registerAdmin'));
16
- add_action('admin_footer', array('AdWidget_Core', 'footerScripts'));
17
18
/**
19
* This class is the core of Ad Widget
@@ -21,7 +20,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.12.0';
25
CONST KEY_WELCOME = 'AdWidget_Welcome';
26
27
/**
@@ -119,31 +118,6 @@ class AdWidget_Core
119
@wp_mail($email, $subject, $body);
120
}
121
}
122
-
123
- public static function footerScripts()
124
- {
125
- if(is_admin()): ?>
126
-
127
- <script>(function() {
128
- var _fbq = window._fbq || (window._fbq = []);
129
- if (!_fbq.loaded) {
130
- var fbds = document.createElement('script');
131
- fbds.async = true;
132
- fbds.src = '//connect.facebook.net/en_US/fbds.js';
133
- var s = document.getElementsByTagName('script')[0];
134
- s.parentNode.insertBefore(fbds, s);
135
- _fbq.loaded = true;
136
- }
137
- _fbq.push(['addPixelId', '770762566324001']);
138
- })();
139
- window._fbq = window._fbq || [];
140
- window._fbq.push(['track', 'PixelInitialized', {}]);
141
- </script>
142
- <noscript><img height="1" width="1" alt="" style="display:none" src="https://www.facebook.com/tr?id=770762566324001&amp;ev=PixelInitialized" /></noscript>
143
-
144
- <?php endif;
145
-
146
- }
147
148
/**
149
* If this is a new installation and we've never sent a report to the
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.13.0
7
+ Author: Broadstreet XPRESS
8
Author URI: http://broadstreetads.com
9
*/
10
13
add_action('admin_init', array('AdWidget_Core', 'registerScripts'));
14
add_action('widgets_init', array('AdWidget_Core', 'registerWidgets'));
15
add_action('admin_menu', array('AdWidget_Core', 'registerAdmin'));
16
17
/**
18
* This class is the core of Ad Widget
20
class AdWidget_Core
21
{
22
CONST KEY_INSTALL_REPORT = 'AdWidget_Installed';
23
+ CONST VERSION = '2.13.0';
24
CONST KEY_WELCOME = 'AdWidget_Welcome';
25
26
/**
118
@wp_mail($email, $subject, $body);
119
}
120
}
121
122
/**
123
* If this is a new installation and we've never sent a report to the
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: 4.7
6
- Stable tag: 2.12.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.
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.13.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.