Version Description
Renaming the plugin as requested by Google.
Download this release
Release Info
Developer | manojtd |
Plugin | Easy Plugin for AdSense |
Version | 7.50 |
Comparing to | |
See all releases |
Code changes from version 7.43 to 7.50
- admin.php +1 -1
- easy-adsense-lite.php +12 -12
- readme.txt +3 -2
admin.php
CHANGED
@@ -23,7 +23,7 @@ $this->setOptionValues();
|
|
23 |
$this->mkHelpTags();
|
24 |
?>
|
25 |
<div class="wrap" id="wrapper" style="width:1000px">
|
26 |
-
<h2>Easy AdSense Setup</h2>
|
27 |
<table class="form-table">
|
28 |
<tr style="vertical-align:middle">
|
29 |
<td style="width:40%">
|
23 |
$this->mkHelpTags();
|
24 |
?>
|
25 |
<div class="wrap" id="wrapper" style="width:1000px">
|
26 |
+
<h2>Easy Plugin for AdSense Setup</h2>
|
27 |
<table class="form-table">
|
28 |
<tr style="vertical-align:middle">
|
29 |
<td style="width:40%">
|
easy-adsense-lite.php
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
<?php
|
2 |
|
3 |
/*
|
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 → Easy AdSense</a>.
|
7 |
-
Version: 7.
|
8 |
Author: Manoj Thulasidas
|
9 |
Author URI: http://www.thulasidas.com
|
10 |
*/
|
@@ -48,7 +48,7 @@ if (!class_exists("EzAdSense")) {
|
|
48 |
var $ezOptions = array();
|
49 |
|
50 |
function EzAdSense() {
|
51 |
-
parent::__construct("easy-adsense", "Easy AdSense", __FILE__);
|
52 |
$this->prefix = 'ezAdSense';
|
53 |
$this->adminMsg = '';
|
54 |
$this->defaults = array('defaultText' => 'Please generate and paste your ad code here. If left empty, the ad location will be highlighted on your blog pages with a reminder to enter your code.');
|
@@ -71,7 +71,7 @@ if (!class_exists("EzAdSense")) {
|
|
71 |
}
|
72 |
|
73 |
static function showUnreal($print = true) {
|
74 |
-
$unreal = "<div style='text-align:center;margin-left:auto;margin-right:auto;font-size:0.6em'><a href='http://www.thulasidas.com/adsense/' target='_blank' title='The simplest way to put AdSense to work for you!'> Easy AdSense</a> by <a href='http://www.Thulasidas.com/' target='_blank' title='Unreal Blog proudly brings you Easy AdSense'>Unreal</a></div>";
|
75 |
if ($print) {
|
76 |
echo $unreal;
|
77 |
}
|
@@ -85,7 +85,7 @@ if (!class_exists("EzAdSense")) {
|
|
85 |
$o = new EzHelpTag('help0');
|
86 |
$o->title = __('Click for help', 'easy-adsenser');
|
87 |
$o->tipTitle = __('How to Set it up', 'easy-adsenser');
|
88 |
-
$o->desc = sprintf(__('A few easy steps to setup %s', 'easy-adsenser'), "<em>Easy AdSense</em>");
|
89 |
$this->helpTags[] = $o;
|
90 |
|
91 |
$o = new EzHelpTag('help1');
|
@@ -360,7 +360,7 @@ if (!class_exists("EzAdSense")) {
|
|
360 |
$this->ezOptions['border_color'] = clone $o;
|
361 |
|
362 |
$o = new EzCheckBox('kill_inline');
|
363 |
-
$o->title = __('All <code><div></code>s that <em>Easy AdSense</em> creates have the class attribute <code>adsense</code>. Furthermore, they have class attributes like <code>adsense-leadin</code>, <code>adsense-midtext</code>, <code>adsense-leadout</code>, <code>adsense-widget</code> and <code>adsense-lu</code> depending on the type. You can set the style for these classes in your theme <code>style.css</code> to control their appearance.<br />If this is all Greek to you, please leave the option unchecked.', 'easy-adsenser');
|
364 |
$o->desc = __('Suppress in-line styles (Control ad-blocks using style.css)', 'easy-adsenser');
|
365 |
$o->after = "<br />";
|
366 |
$o->tipWidth = 350;
|
@@ -432,7 +432,7 @@ if (!class_exists("EzAdSense")) {
|
|
432 |
$this->ezOptions['max_link'] = clone $o;
|
433 |
|
434 |
$o = new EzCheckBox('suppressBoxes');
|
435 |
-
$o->title = __('Easy AdSense displays a box with red borders to indicate where an ad would have been placed, but has been suppressed by one of the filters above. If you would like to suppress the boxes, check this option.', 'easy-adsenser');
|
436 |
$o->desc = __('Suppress Placement Boxes?', 'easy-adsenser');
|
437 |
$o->between = " ";
|
438 |
$o->after = "<br /><br />";
|
@@ -538,7 +538,7 @@ if (!class_exists("EzAdSense")) {
|
|
538 |
$w = substr($key, 0, $x);
|
539 |
$h = substr($key, $x + 1);
|
540 |
$p = (int) (min($w, $h) / 6);
|
541 |
-
$ret = '<div style="width:' . $w . 'px;height:' . $h . 'px;border:1px solid red;"><div style="padding:' . $p . 'px;text-align:center;font-family:arial;font-size:8pt;"><p>Your ads will be inserted here by</p><p><b>Easy AdSense</b>.</p><p>Please go to the plugin admin page to<br /><u title="Generate your ad code from your provider and paste it in the text box for this ad slot">Paste your ad code</u> OR<br /> <u title="Use the dropdown under the text box for this ad slot to suppress it">Suppress this ad slot</u>.</p></div></div>';
|
542 |
}
|
543 |
}
|
544 |
return $ret;
|
@@ -721,16 +721,16 @@ if (!class_exists("EzAdSense")) {
|
|
721 |
$this->ezMax--;
|
722 |
}
|
723 |
if ($this->ezCount >= $this->ezMax) {
|
724 |
-
return "$content <!-- Easy AdSense Unfiltered [count: {$this->ezCount} "
|
725 |
. "is not less than {$this->ezMax}] -->";
|
726 |
}
|
727 |
if (strpos($content, "<!--noadsense-->") !== false) {
|
728 |
$this->metaOptions['adsense'] = 'no';
|
729 |
-
return "$content <!-- Easy AdSense Unfiltered [suppressed by noadsense comment] -->";
|
730 |
}
|
731 |
$metaOptions = $this->getMetaOptions();
|
732 |
if (isset($metaOptions['adsense']) && $metaOptions['adsense'] == 'no') {
|
733 |
-
return "$content <!-- Easy AdSense Unfiltered [suppressed by meta option adsense = no] -->";
|
734 |
}
|
735 |
|
736 |
if (!in_the_loop()) {
|
1 |
<?php
|
2 |
|
3 |
/*
|
4 |
+
Plugin Name: Easy Plugin for 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 → Easy Plugin for AdSense</a>.
|
7 |
+
Version: 7.50
|
8 |
Author: Manoj Thulasidas
|
9 |
Author URI: http://www.thulasidas.com
|
10 |
*/
|
48 |
var $ezOptions = array();
|
49 |
|
50 |
function EzAdSense() {
|
51 |
+
parent::__construct("easy-adsense", "Easy Plugin for AdSense", __FILE__);
|
52 |
$this->prefix = 'ezAdSense';
|
53 |
$this->adminMsg = '';
|
54 |
$this->defaults = array('defaultText' => 'Please generate and paste your ad code here. If left empty, the ad location will be highlighted on your blog pages with a reminder to enter your code.');
|
71 |
}
|
72 |
|
73 |
static function showUnreal($print = true) {
|
74 |
+
$unreal = "<div style='text-align:center;margin-left:auto;margin-right:auto;font-size:0.6em'><a href='http://www.thulasidas.com/adsense/' target='_blank' title='The simplest way to put AdSense to work for you!'> Easy Plugin for AdSense</a> by <a href='http://www.Thulasidas.com/' target='_blank' title='Unreal Blog proudly brings you Easy Plugin for AdSense'>Unreal</a></div>";
|
75 |
if ($print) {
|
76 |
echo $unreal;
|
77 |
}
|
85 |
$o = new EzHelpTag('help0');
|
86 |
$o->title = __('Click for help', 'easy-adsenser');
|
87 |
$o->tipTitle = __('How to Set it up', 'easy-adsenser');
|
88 |
+
$o->desc = sprintf(__('A few easy steps to setup %s', 'easy-adsenser'), "<em>Easy Plugin for AdSense</em>");
|
89 |
$this->helpTags[] = $o;
|
90 |
|
91 |
$o = new EzHelpTag('help1');
|
360 |
$this->ezOptions['border_color'] = clone $o;
|
361 |
|
362 |
$o = new EzCheckBox('kill_inline');
|
363 |
+
$o->title = __('All <code><div></code>s that <em>Easy Plugin for AdSense</em> creates have the class attribute <code>adsense</code>. Furthermore, they have class attributes like <code>adsense-leadin</code>, <code>adsense-midtext</code>, <code>adsense-leadout</code>, <code>adsense-widget</code> and <code>adsense-lu</code> depending on the type. You can set the style for these classes in your theme <code>style.css</code> to control their appearance.<br />If this is all Greek to you, please leave the option unchecked.', 'easy-adsenser');
|
364 |
$o->desc = __('Suppress in-line styles (Control ad-blocks using style.css)', 'easy-adsenser');
|
365 |
$o->after = "<br />";
|
366 |
$o->tipWidth = 350;
|
432 |
$this->ezOptions['max_link'] = clone $o;
|
433 |
|
434 |
$o = new EzCheckBox('suppressBoxes');
|
435 |
+
$o->title = __('Easy Plugin for AdSense displays a box with red borders to indicate where an ad would have been placed, but has been suppressed by one of the filters above. If you would like to suppress the boxes, check this option.', 'easy-adsenser');
|
436 |
$o->desc = __('Suppress Placement Boxes?', 'easy-adsenser');
|
437 |
$o->between = " ";
|
438 |
$o->after = "<br /><br />";
|
538 |
$w = substr($key, 0, $x);
|
539 |
$h = substr($key, $x + 1);
|
540 |
$p = (int) (min($w, $h) / 6);
|
541 |
+
$ret = '<div style="width:' . $w . 'px;height:' . $h . 'px;border:1px solid red;"><div style="padding:' . $p . 'px;text-align:center;font-family:arial;font-size:8pt;"><p>Your ads will be inserted here by</p><p><b>Easy Plugin for AdSense</b>.</p><p>Please go to the plugin admin page to<br /><u title="Generate your ad code from your provider and paste it in the text box for this ad slot">Paste your ad code</u> OR<br /> <u title="Use the dropdown under the text box for this ad slot to suppress it">Suppress this ad slot</u>.</p></div></div>';
|
542 |
}
|
543 |
}
|
544 |
return $ret;
|
721 |
$this->ezMax--;
|
722 |
}
|
723 |
if ($this->ezCount >= $this->ezMax) {
|
724 |
+
return "$content <!-- Easy Plugin for AdSense Unfiltered [count: {$this->ezCount} "
|
725 |
. "is not less than {$this->ezMax}] -->";
|
726 |
}
|
727 |
if (strpos($content, "<!--noadsense-->") !== false) {
|
728 |
$this->metaOptions['adsense'] = 'no';
|
729 |
+
return "$content <!-- Easy Plugin for AdSense Unfiltered [suppressed by noadsense comment] -->";
|
730 |
}
|
731 |
$metaOptions = $this->getMetaOptions();
|
732 |
if (isset($metaOptions['adsense']) && $metaOptions['adsense'] == 'no') {
|
733 |
+
return "$content <!-- Easy Plugin for AdSense Unfiltered [suppressed by meta option adsense = no] -->";
|
734 |
}
|
735 |
|
736 |
if (!in_the_loop()) {
|
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.0
|
7 |
-
Stable tag: 7.
|
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 |
-
|
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.43: Admin page changes. [Oct 11, 2014]
|
144 |
* V7.42: Suppressing a session start error on mobile devices. [Sep 9, 2014]
|
145 |
* V7.41: Minor change to the admin interface. [Sep 9, 2011]
|
4 |
Tags: adsense, google adsense, ads, advertising, easy adsense, google, adsense plugin
|
5 |
Requires at least: 2.6
|
6 |
Tested up to: 4.0
|
7 |
+
Stable tag: 7.50
|
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 |
+
Renaming the plugin as requested by Google.
|
46 |
|
47 |
== Screenshots ==
|
48 |
|
140 |
|
141 |
== Change Log ==
|
142 |
|
143 |
+
* V7.50: Renaming the plugin as requested by Google. [Nov 30, 2014]
|
144 |
* V7.43: Admin page changes. [Oct 11, 2014]
|
145 |
* V7.42: Suppressing a session start error on mobile devices. [Sep 9, 2014]
|
146 |
* V7.41: Minor change to the admin interface. [Sep 9, 2011]
|