Easy Plugin for AdSense - Version 7.02

Version Description

Fixing a bug related to showing borders around ad blocks.

Download this release

Release Info

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

Code changes from version 7.01 to 7.02

Files changed (2) hide show
  1. easy-adsense-lite.php +20 -34
  2. readme.txt +3 -2
easy-adsense-lite.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: Easy AdSense
5
  Plugin URI: http://www.thulasidas.com/adsense
6
  Description: Easiest way to show AdSense and make money from your blog. Configure it at <a href="options-general.php?page=easy-adsense-lite.php">Settings &rarr; Easy AdSense</a>.
7
- Version: 7.01
8
  Author: Manoj Thulasidas
9
  Author URI: http://www.thulasidas.com
10
  */
@@ -739,6 +739,19 @@ if (!class_exists("EzAdSense")) {
739
  return $paras;
740
  }
741
 
 
 
 
 
 
 
 
 
 
 
 
 
 
742
  function filterContent($content) {
743
  foreach ($this->kills as $k) {
744
  $fn = "is_$k";
@@ -792,10 +805,7 @@ if (!class_exists("EzAdSense")) {
792
  else {
793
  $unreal = '';
794
  }
795
- $border = '';
796
- if ($this->options['show_borders']) {
797
- $border = "border:#{$this->options['border_normal']} solid {$this->options['border_width']}px;' onmouseover='this.style.border=\"#{$this->options['border_color']} solid {$this->options['border_width']}px\"' onmouseout='this.style.border=\"#{$this->options['border_normal']} solid {$this->options['border_width']}px\"";
798
- }
799
 
800
  $show_leadin = $metaOptions['show_leadin'];
801
  $leadin = '';
@@ -913,15 +923,7 @@ if (!class_exists("EzAdSense")) {
913
  if (strpos($_SERVER['REQUEST_URI'], 'feed') !== false) {
914
  return;
915
  }
916
- $border = '';
917
- if ($this->options['show_borders']) {
918
- $border = 'border:#' . $this->options['border_normal'] .
919
- ' solid ' . $this->options['border_width'] . 'px;" ' .
920
- ' onmouseover="this.style.border=\'#' . $this->options['border_color'] .
921
- ' solid ' . $this->options['border_width'] . 'px\'" ' .
922
- 'onmouseout="this.style.border=\'#' . $this->options['border_normal'] .
923
- ' solid ' . $this->options['border_width'] . 'px\'"';
924
- }
925
  $show_leadin = $this->options['show_leadin'];
926
  if ($show_leadin != 'no') {
927
  $margin = $this->options['margin_leadin'];
@@ -1018,15 +1020,7 @@ if (class_exists("EzAdSense")) {
1018
  $title = empty($ezAdSense->options['title_widget']) ?
1019
  __('Sponsored Links', 'easy-adsenser') :
1020
  stripslashes(htmlspecialchars($ezAdSense->options['title_widget']));
1021
- $border = '';
1022
- if ($ezAdSense->options['show_borders'] && $ezAdSense->options['border_widget']) {
1023
- $border = 'border:#' . $ezAdSense->options['border_normal'] .
1024
- ' solid ' . $ezAdSense->options['border_width'] . 'px ;"' .
1025
- ' onmouseover="this.style.border=\'#' . $ezAdSense->options['border_color'] .
1026
- ' solid ' . $ezAdSense->options['border_width'] . 'px\'" ' .
1027
- 'onmouseout="this.style.border=\'#' . $ezAdSense->options['border_normal'] .
1028
- ' solid ' . $ezAdSense->options['border_width'] . 'px\'"';
1029
- }
1030
  echo $before_widget;
1031
  if (!$ezAdSense->options['kill_widget_title']) {
1032
  echo $before_title . $title . $after_title;
@@ -1043,8 +1037,8 @@ if (class_exists("EzAdSense")) {
1043
  "$linebreak<!-- Widg[count: " . $ezAdSense->ezCount . "] -->$linebreak" .
1044
  '<div class="ezAdsense adsense adsense-widget"><div ' . $inline . '>' .
1045
  $ezAdSense->options['text_widget']) .
1046
- ($ezAdSense->urCount++ < $ezAdSense->urMax ? $unreal : '') .
1047
- "</div></div>$linebreak" . $ezAdSense->options['info'] . "$linebreak";
1048
  echo $after_widget;
1049
  }
1050
 
@@ -1164,15 +1158,7 @@ if (class_exists("EzAdSense")) {
1164
  return;
1165
  }
1166
  $show_lu = $metaOptions['show_lu'];
1167
- $border = '';
1168
- if ($ezAdSense->options['show_borders'] && $ezAdSense->options['border_lu']) {
1169
- $border = 'border:#' . $ezAdSense->options['border_normal'] .
1170
- ' solid ' . $ezAdSense->options['border_width'] . 'px;" ' .
1171
- ' onmouseover="this.style.border=\'#' . $ezAdSense->options['border_color'] .
1172
- ' solid ' . $ezAdSense->options['border_width'] . 'px\'" ' .
1173
- 'onmouseout="this.style.border=\'#' . $ezAdSense->options['border_normal'] .
1174
- ' solid ' . $ezAdSense->options['border_width'] . 'px\'"';
1175
- }
1176
  if ($show_lu != 'no') {
1177
  if ($ezAdSense->options['kill_linebreaks']) {
1178
  $linebreak = "";
4
  Plugin Name: Easy AdSense
5
  Plugin URI: http://www.thulasidas.com/adsense
6
  Description: Easiest way to show AdSense and make money from your blog. Configure it at <a href="options-general.php?page=easy-adsense-lite.php">Settings &rarr; Easy AdSense</a>.
7
+ Version: 7.02
8
  Author: Manoj Thulasidas
9
  Author URI: http://www.thulasidas.com
10
  */
739
  return $paras;
740
  }
741
 
742
+ function mkBorder() {
743
+ $border = '';
744
+ if ($this->options['show_borders']) {
745
+ $border = 'border:#' . $this->options['border_normal'] .
746
+ ' solid ' . $this->options['border_width'] . 'px;" ' .
747
+ ' onmouseover="this.style.border=\'#' . $this->options['border_color'] .
748
+ ' solid ' . $this->options['border_width'] . 'px\'" ' .
749
+ 'onmouseout="this.style.border=\'#' . $this->options['border_normal'] .
750
+ ' solid ' . $this->options['border_width'] . 'px\'"';
751
+ }
752
+ return $border;
753
+ }
754
+
755
  function filterContent($content) {
756
  foreach ($this->kills as $k) {
757
  $fn = "is_$k";
805
  else {
806
  $unreal = '';
807
  }
808
+ $border = $this->mkBorder();
 
 
 
809
 
810
  $show_leadin = $metaOptions['show_leadin'];
811
  $leadin = '';
923
  if (strpos($_SERVER['REQUEST_URI'], 'feed') !== false) {
924
  return;
925
  }
926
+ $border = $this->mkBorder();
 
 
 
 
 
 
 
 
927
  $show_leadin = $this->options['show_leadin'];
928
  if ($show_leadin != 'no') {
929
  $margin = $this->options['margin_leadin'];
1020
  $title = empty($ezAdSense->options['title_widget']) ?
1021
  __('Sponsored Links', 'easy-adsenser') :
1022
  stripslashes(htmlspecialchars($ezAdSense->options['title_widget']));
1023
+ $border = $ezAdSense->mkBorder();
 
 
 
 
 
 
 
 
1024
  echo $before_widget;
1025
  if (!$ezAdSense->options['kill_widget_title']) {
1026
  echo $before_title . $title . $after_title;
1037
  "$linebreak<!-- Widg[count: " . $ezAdSense->ezCount . "] -->$linebreak" .
1038
  '<div class="ezAdsense adsense adsense-widget"><div ' . $inline . '>' .
1039
  $ezAdSense->options['text_widget']) .
1040
+ ($ezAdSense->urCount++ < $ezAdSense->urMax ? $unreal : '') .
1041
+ "</div></div>$linebreak" . $ezAdSense->options['info'] . "$linebreak";
1042
  echo $after_widget;
1043
  }
1044
 
1158
  return;
1159
  }
1160
  $show_lu = $metaOptions['show_lu'];
1161
+ $border = $ezAdSense->mkBorder();
 
 
 
 
 
 
 
 
1162
  if ($show_lu != 'no') {
1163
  if ($ezAdSense->options['kill_linebreaks']) {
1164
  $linebreak = "";
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: 3.8
7
- Stable tag: 7.01
8
  License: GPL2 or later
9
 
10
  Easy AdSense manages all aspects of AdSense: insert ads into posts and sidebar, and add a Google Search box. Easiest and most complete AdSense Plugin!
@@ -42,7 +42,7 @@ Easy AdSense is the freely distributed version of a premium plugin. The [Pro ver
42
 
43
  == Upgrade Notice ==
44
 
45
- Changes to show ads on home/front pages made up of full posts. (Those made up of excerpts cannot show ads.)
46
 
47
  == Screenshots ==
48
 
@@ -140,6 +140,7 @@ A big "Thank You" to all my translators. Easy AdSense V2.6+ sports an *Easy Tran
140
 
141
  == Change Log ==
142
 
 
143
  * V7.01: Changes to show ads on home/front pages made up of full posts. Translation interface improvements. [Mar 29, 2014]
144
  * V7.00: Major changes to the options data model and the translation interface. [Mar 21, 2014]
145
  * V6.51: Adding options to suppress ads on sticky front page or search pages. [Jan 7, 2014]
4
  Tags: adsense, google adsense, ads, advertising, easy adsense, google, adsense plugin
5
  Requires at least: 2.6
6
  Tested up to: 3.8
7
+ Stable tag: 7.02
8
  License: GPL2 or later
9
 
10
  Easy AdSense manages all aspects of AdSense: insert ads into posts and sidebar, and add a Google Search box. Easiest and most complete AdSense Plugin!
42
 
43
  == Upgrade Notice ==
44
 
45
+ Fixing a bug related to showing borders around ad blocks.
46
 
47
  == Screenshots ==
48
 
140
 
141
  == Change Log ==
142
 
143
+ * V7.02: Fixing a bug related to showing borders around ad blocks. [Apr 1, 2014]
144
  * V7.01: Changes to show ads on home/front pages made up of full posts. Translation interface improvements. [Mar 29, 2014]
145
  * V7.00: Major changes to the options data model and the translation interface. [Mar 21, 2014]
146
  * V6.51: Adding options to suppress ads on sticky front page or search pages. [Jan 7, 2014]