Easy Plugin for AdSense - Version 8.15

Version Description

Minor bug fix on ad suppression while not in loop.

Download this release

Release Info

Developer manojtd
Plugin Icon 128x128 Easy Plugin for AdSense
Version 8.15
Comparing to
See all releases

Code changes from version 8.13 to 8.15

Files changed (6) hide show
  1. EzGA.php +1 -1
  2. EzWidget.php +3 -1
  3. admin/Updater.php +11 -0
  4. easy-adsense-widget.php +4 -4
  5. easy-adsense.php +1 -1
  6. readme.txt +4 -2
EzGA.php CHANGED
@@ -806,7 +806,7 @@ if (!class_exists("EzGA")) {
806
  self::$noAdsReason .= $reason;
807
  return $content . " <!-- $plgName: $reason -->\n";
808
  }
809
- if (!in_the_loop() && !$isWidget && !is_single()) {
810
  $reason = 'WP is not in the loop. ';
811
  self::$noAds = true;
812
  self::$noAdsReason .= $reason;
806
  self::$noAdsReason .= $reason;
807
  return $content . " <!-- $plgName: $reason -->\n";
808
  }
809
+ if (!in_the_loop() && !$isWidget && !is_singular() && !is_front_page()) {
810
  $reason = 'WP is not in the loop. ';
811
  self::$noAds = true;
812
  self::$noAdsReason .= $reason;
EzWidget.php CHANGED
@@ -55,7 +55,9 @@ abstract class EzWidget extends WP_Widget {
55
  }
56
 
57
  function form($instance) {
58
- echo "<p>" . sprintf(__("Configure it at %s", 'easy-ads'), "<br /><a href='options-general.php?page=wp-google-adsense.php'> " . __("Settings", 'easy-ads') . " &rarr; Google AdSense</a></p>\n");
 
 
59
  }
60
 
61
  static function setPlugin(&$plg) {
55
  }
56
 
57
  function form($instance) {
58
+ require 'EzGA.php';
59
+ $plgName = EzGA::getPlgName();
60
+ echo "<p>" . sprintf(__("Configure it at %s", 'easy-ads'), "<br /><a href='options-general.php?page=wp-google-adsense.php'> " . __("Settings", 'easy-ads') . " &rarr; $plgName</a></p>\n");
61
  }
62
 
63
  static function setPlugin(&$plg) {
admin/Updater.php CHANGED
@@ -15,6 +15,17 @@ else {
15
  function __construct($slug) {
16
  $this->slug = $slug;
17
  $this->localVersion = $this->remoteVersion = -1;
 
 
 
 
 
 
 
 
 
 
 
18
  }
19
 
20
  function __destruct() {
15
  function __construct($slug) {
16
  $this->slug = $slug;
17
  $this->localVersion = $this->remoteVersion = -1;
18
+ if (!class_exists('ZipArchive')) {
19
+ $msg = "This application cannot update itself because your PHP does not have ZIP support. Please update your application using the following steps.";
20
+ $pluginLink = "<a href='" . admin_url('plugins.php') . "' class='popup'>Plugins Page</a>";
21
+ $uploadLink = "<a href='" . admin_url('plugin-install.php?tab=upload') . "' class='popup'>Upload Page</a>";
22
+ $workAround = "<ol><li>Deactivate and delete your on the $pluginLink. If you do not delete the plugin first, the next step will fail because WordPress will refuse to overwrite the existing plugin folder.</li><li>Install the plugin by uploading the zip file on the $uploadLink.</li><li>Activate the plugin and you are all set.</li></ol>";
23
+ $msg .= $workAround;
24
+ echo '<script>$(document).ready(function() {' .
25
+ "showError(\"$msg\");
26
+ });
27
+ </script>";
28
+ }
29
  }
30
 
31
  function __destruct() {
easy-adsense-widget.php CHANGED
@@ -60,13 +60,13 @@ if (!class_exists("EzAdsWidget")) {
60
  if (EzGA::$noAds) {
61
  return;
62
  }
63
- $plg->options['text_gsearch'] = EzGA::handleDefaultText($plg->options['text_gsearch'], '160x600');
64
  $metaOptions = EzGA::getMetaOptions();
65
  if (isset($metaOptions['adsense']) && $metaOptions['adsense'] == 'no') {
66
  return;
67
  }
68
  $title_gsearch = $metaOptions['title_gsearch'];
69
- if ($title_gsearch != 'no') {
70
  return;
71
  }
72
  if (!empty($plg->options['kill_linebreaks'])) {
@@ -131,7 +131,7 @@ if (!class_exists("EzAdsWidget")) {
131
  if (EzGA::$noAds) {
132
  return;
133
  }
134
- $plg->options['text_lu'] = EzGA::handleDefaultText($plg->options['text_lu'], '160x600');
135
  $metaOptions = EzGA::getMetaOptions();
136
  if (isset($metaOptions['adsense']) && $metaOptions['adsense'] == 'no') {
137
  return;
@@ -146,7 +146,7 @@ if (!class_exists("EzAdsWidget")) {
146
  function getTitle() {
147
  $plg = self::$plg;
148
  if (empty($plg->options['title_lu'])) {
149
- $title = __('Sponsored Links', 'easy-adsenser');
150
  }
151
  else {
152
  $title = stripslashes(htmlspecialchars($plg->options['title_lu']));
60
  if (EzGA::$noAds) {
61
  return;
62
  }
63
+ $plg->options['text_gsearch'] = EzGA::handleDefaultText($plg->options['text_gsearch'], '200x90');
64
  $metaOptions = EzGA::getMetaOptions();
65
  if (isset($metaOptions['adsense']) && $metaOptions['adsense'] == 'no') {
66
  return;
67
  }
68
  $title_gsearch = $metaOptions['title_gsearch'];
69
+ if ($title_gsearch == 'no') {
70
  return;
71
  }
72
  if (!empty($plg->options['kill_linebreaks'])) {
131
  if (EzGA::$noAds) {
132
  return;
133
  }
134
+ $plg->options['text_lu'] = EzGA::handleDefaultText($plg->options['text_lu'], '200x90');
135
  $metaOptions = EzGA::getMetaOptions();
136
  if (isset($metaOptions['adsense']) && $metaOptions['adsense'] == 'no') {
137
  return;
146
  function getTitle() {
147
  $plg = self::$plg;
148
  if (empty($plg->options['title_lu'])) {
149
+ $title = __('Link Units', 'easy-adsenser');
150
  }
151
  else {
152
  $title = stripslashes(htmlspecialchars($plg->options['title_lu']));
easy-adsense.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: Easy Plugin for AdSense
5
  Plugin URI: http://www.thulasidas.com/adsense
6
  Description: <em>Lite Version</em>: Easiest way to show AdSense and make money from your blog. Configure it at <a href="options-general.php?page=wp-google-adsense.php">Settings &rarr; Easy AdSense Lite</a>.
7
- Version: 8.13
8
  Author: Manoj Thulasidas
9
  Author URI: http://www.thulasidas.com
10
  */
4
  Plugin Name: Easy Plugin for AdSense
5
  Plugin URI: http://www.thulasidas.com/adsense
6
  Description: <em>Lite Version</em>: Easiest way to show AdSense and make money from your blog. Configure it at <a href="options-general.php?page=wp-google-adsense.php">Settings &rarr; Easy AdSense Lite</a>.
7
+ Version: 8.15
8
  Author: Manoj Thulasidas
9
  Author URI: http://www.thulasidas.com
10
  */
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://buy.thulasidas.com/easy-adsense
4
  Tags: adsense, google adsense, ads, advertising, easy adsense, google, adsense plugin
5
  Requires at least: 2.6
6
  Tested up to: 4.1
7
- Stable tag: 8.13
8
  License: GPL2 or later
9
 
10
  Easy Plugin for AdSense manages all aspects of AdSense: insert ads into posts and sidebar, and add a Google Search box. Easiest and most complete AdSense Plugin!
@@ -50,7 +50,7 @@ Easy Plugin for AdSense is the freely distributed version of a premium plugin. T
50
 
51
  == Upgrade Notice ==
52
 
53
- Serious bug fix related to multiple passes of the content filter. Introducing a verbosity option.
54
 
55
  == Screenshots ==
56
 
@@ -148,6 +148,8 @@ A big "Thank You" to all my translators. Easy AdSense V2.6+ sports an *Easy Tran
148
 
149
  == Change Log ==
150
 
 
 
151
  * V8.13: Serious bug fix related to multiple passes of the content filter. Introducing a verbosity option. [Mar 22, 2015]
152
  * V8.12: Minor bug fixes, and adding diagnostic comments. [Mar 21, 2015]
153
  * V8.11: Providing a downgrade path to the previous, non-AJAX version of the plugin. [Mar 19, 2015]
4
  Tags: adsense, google adsense, ads, advertising, easy adsense, google, adsense plugin
5
  Requires at least: 2.6
6
  Tested up to: 4.1
7
+ Stable tag: 8.14
8
  License: GPL2 or later
9
 
10
  Easy Plugin for AdSense manages all aspects of AdSense: insert ads into posts and sidebar, and add a Google Search box. Easiest and most complete AdSense Plugin!
50
 
51
  == Upgrade Notice ==
52
 
53
+ Minor bug fix on ad suppression while not in loop.
54
 
55
  == Screenshots ==
56
 
148
 
149
  == Change Log ==
150
 
151
+ * V8.15: Minor bug fix on search widget and ad suppression while not in loop. [Mar 25, 2015]
152
+ * V8.14: Adding error handling for updates. [Mar 24, 2015]
153
  * V8.13: Serious bug fix related to multiple passes of the content filter. Introducing a verbosity option. [Mar 22, 2015]
154
  * V8.12: Minor bug fixes, and adding diagnostic comments. [Mar 21, 2015]
155
  * V8.11: Providing a downgrade path to the previous, non-AJAX version of the plugin. [Mar 19, 2015]