Version Description
New option to suppress the red placeholder boxes that annoy some users.
=
Download this release
Release Info
Developer | manojtd |
Plugin | Easy Plugin for AdSense |
Version | 6.23 |
Comparing to | |
See all releases |
Code changes from version 6.22 to 6.23
- admin.php +8 -4
- easy-adsense-lite.php +13 -6
- readme.txt +5 -4
admin.php
CHANGED
@@ -175,10 +175,10 @@ printf(__('A few easy steps to setup %s', 'easy-adsenser'),'<em>Easy AdSense</em
|
|
175 |
</td>
|
176 |
</tr>
|
177 |
<tr style="vertical-align:top">
|
178 |
-
<td style="width:50%;height:
|
179 |
<b><?php _e('Post Lead-out AdSense Text', 'easy-adsenser') ; ?></b>
|
180 |
<?php _e('(Appears near the end of the post)', 'easy-adsenser') ; ?><br />
|
181 |
-
<textarea cols="50" rows="15" name="ezAdSenseTextLeadout" style="width: 95%; height:
|
182 |
<br />
|
183 |
<b><?php _e('Ad Alignment', 'easy-adsenser') ; ?></b>
|
184 |
<span onmouseover="Tip('<?php _e('Suppress this ad block if the post is not at least this many words long. Enter 0 or a small number if you do not want to suppress ads based on the number of words in the page/post.', 'easy-adsenser') ?>', WIDTH, 240, TITLE, '<?php _e('Min. Word Count', 'easy-adsenser') ?>')" onmouseout="UnTip()"><?php _e('Min. Word Count', 'easy-adsenser') ; ?>: <input style="width:40px;text-align:center;" id="ezLeadOutWC" name="ezLeadOutWC" value="<?php echo(stripslashes(htmlspecialchars($this->options['wc_leadout'])));?>" /></span>
|
@@ -264,8 +264,12 @@ Colors: Normal:#<input style="width:55px;text-align:center;" id="ezBorderN
|
|
264 |
<label for="ezKillInLine" onmouseover="Tip('<?php _e('All <code>&lt;div&gt;</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'); ?>',WIDTH, 290, TITLE, 'CSS vs. In-Line')" onmouseout="UnTip()" >
|
265 |
<input type="checkbox" id="ezKillInLine" name="ezKillInLine" <?php if ($this->options['kill_inline']) { echo('checked="checked"'); }?> /> <?php _e('Suppress in-line styles (Control ad-blocks using style.css)', 'easy-adsenser') ; ?></label><br />
|
266 |
|
267 |
-
<label for="ezKillLineBreaks" onmouseover="Tip('<?php _e('If you find that you have extra vertical spaces or if your ad code is messed up with <code><</code><code>p></code> or <code><</code><code>br /></code> tags, try checking this option.<br />Under normal cirumstances, this option should be left unchecked.', 'easy-adsenser'); ?>',WIDTH, 290, TITLE, '
|
268 |
-
<input type="checkbox" id="ezKillLineBreaks" name="ezKillLineBreaks" <?php if ($this->options['kill_linebreaks']) { echo('checked="checked"'); }?> /> <?php _e('Prevent spurious line breaks', 'easy-adsenser') ; ?></label
|
|
|
|
|
|
|
|
|
269 |
</td>
|
270 |
</tr>
|
271 |
</table>
|
175 |
</td>
|
176 |
</tr>
|
177 |
<tr style="vertical-align:top">
|
178 |
+
<td style="width:50%;height:200px;vertical-align:middle">
|
179 |
<b><?php _e('Post Lead-out AdSense Text', 'easy-adsenser') ; ?></b>
|
180 |
<?php _e('(Appears near the end of the post)', 'easy-adsenser') ; ?><br />
|
181 |
+
<textarea cols="50" rows="15" name="ezAdSenseTextLeadout" style="width: 95%; height: 112px;"><?php echo(stripslashes(htmlspecialchars($this->options['text_leadout']))) ?></textarea>
|
182 |
<br />
|
183 |
<b><?php _e('Ad Alignment', 'easy-adsenser') ; ?></b>
|
184 |
<span onmouseover="Tip('<?php _e('Suppress this ad block if the post is not at least this many words long. Enter 0 or a small number if you do not want to suppress ads based on the number of words in the page/post.', 'easy-adsenser') ?>', WIDTH, 240, TITLE, '<?php _e('Min. Word Count', 'easy-adsenser') ?>')" onmouseout="UnTip()"><?php _e('Min. Word Count', 'easy-adsenser') ; ?>: <input style="width:40px;text-align:center;" id="ezLeadOutWC" name="ezLeadOutWC" value="<?php echo(stripslashes(htmlspecialchars($this->options['wc_leadout'])));?>" /></span>
|
264 |
<label for="ezKillInLine" onmouseover="Tip('<?php _e('All <code>&lt;div&gt;</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'); ?>',WIDTH, 290, TITLE, 'CSS vs. In-Line')" onmouseout="UnTip()" >
|
265 |
<input type="checkbox" id="ezKillInLine" name="ezKillInLine" <?php if ($this->options['kill_inline']) { echo('checked="checked"'); }?> /> <?php _e('Suppress in-line styles (Control ad-blocks using style.css)', 'easy-adsenser') ; ?></label><br />
|
266 |
|
267 |
+
<label for="ezKillLineBreaks" onmouseover="Tip('<?php _e('If you find that you have extra vertical spaces or if your ad code is messed up with <code><</code><code>p></code> or <code><</code><code>br /></code> tags, try checking this option.<br />Under normal cirumstances, this option should be left unchecked.', 'easy-adsenser'); ?>',WIDTH, 290, TITLE, 'Spurious Linebreaks')" onmouseout="UnTip()" >
|
268 |
+
<input type="checkbox" id="ezKillLineBreaks" name="ezKillLineBreaks" <?php if ($this->options['kill_linebreaks']) { echo('checked="checked"'); }?> /> <?php _e('Prevent spurious line breaks', 'easy-adsenser') ; ?></label><br />
|
269 |
+
|
270 |
+
<label for="ezSuppressBoxes" onmouseover="Tip('<?php _e('If no ad text is entered for a particular slot, Easy AdSense Pro displays a box with red borders to indicate where an would have been placed. If you would like to suppress them, check this option.', 'easy-adsenser'); ?>',WIDTH, 290, TITLE, 'Suppress Red Boxes')" onmouseout="UnTip()" >
|
271 |
+
<input type="checkbox" id="ezSuppressBoxes" name="ezSuppressBoxes" <?php if ($this->options['suppressBoxes']) { echo('checked="checked"'); }?> /> <?php _e('Suppress Placement Boxes', 'easy-adsenser') ; ?></label>
|
272 |
+
|
273 |
</td>
|
274 |
</tr>
|
275 |
</table>
|
easy-adsense-lite.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Easy AdSense
|
4 |
Plugin URI: http://www.thulasidas.com/adsense
|
5 |
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>.
|
6 |
-
Version: 6.
|
7 |
Author: Manoj Thulasidas
|
8 |
Author URI: http://www.thulasidas.com
|
9 |
*/
|
@@ -164,6 +164,7 @@ if (!class_exists("EzAdSense")) {
|
|
164 |
$this->options['kill_archive'] = isset($_POST['ezKillArchive']);
|
165 |
$this->options['kill_inline'] = isset($_POST['ezKillInLine']);
|
166 |
$this->options['kill_linebreaks'] = isset($_POST['ezKillLineBreaks']);
|
|
|
167 |
|
168 |
$this->options['show_borders'] = isset($_POST['ezShowBorders']);
|
169 |
if (isset($_POST['ezBorderWidth']))
|
@@ -310,6 +311,7 @@ if (!class_exists("EzAdSense")) {
|
|
310 |
'kill_inline' => false,
|
311 |
'kill_widget_title' => false,
|
312 |
'kill_linebreaks' => false,
|
|
|
313 |
'title_widget' => '');
|
314 |
return $defaultOptions ;
|
315 |
}
|
@@ -324,11 +326,16 @@ if (!class_exists("EzAdSense")) {
|
|
324 |
function handleDefaultText($text, $key = '300x250') {
|
325 |
$ret = $text ;
|
326 |
if ($ret == $this->defaults['defaultText'] || strlen(trim($ret)) == 0) {
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
|
|
|
|
|
|
|
|
|
|
332 |
}
|
333 |
return $ret ;
|
334 |
}
|
3 |
Plugin Name: Easy AdSense
|
4 |
Plugin URI: http://www.thulasidas.com/adsense
|
5 |
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>.
|
6 |
+
Version: 6.23
|
7 |
Author: Manoj Thulasidas
|
8 |
Author URI: http://www.thulasidas.com
|
9 |
*/
|
164 |
$this->options['kill_archive'] = isset($_POST['ezKillArchive']);
|
165 |
$this->options['kill_inline'] = isset($_POST['ezKillInLine']);
|
166 |
$this->options['kill_linebreaks'] = isset($_POST['ezKillLineBreaks']);
|
167 |
+
$this->options['suppressBoxes'] = isset($_POST['ezSuppressBoxes']);
|
168 |
|
169 |
$this->options['show_borders'] = isset($_POST['ezShowBorders']);
|
170 |
if (isset($_POST['ezBorderWidth']))
|
311 |
'kill_inline' => false,
|
312 |
'kill_widget_title' => false,
|
313 |
'kill_linebreaks' => false,
|
314 |
+
'suppressBoxes' => false,
|
315 |
'title_widget' => '');
|
316 |
return $defaultOptions ;
|
317 |
}
|
326 |
function handleDefaultText($text, $key = '300x250') {
|
327 |
$ret = $text ;
|
328 |
if ($ret == $this->defaults['defaultText'] || strlen(trim($ret)) == 0) {
|
329 |
+
if ($this->options['suppressBoxes']) {
|
330 |
+
$ret = '';
|
331 |
+
}
|
332 |
+
else {
|
333 |
+
$x = strpos($key, 'x') ;
|
334 |
+
$w = substr($key, 0, $x);
|
335 |
+
$h = substr($key, $x+1);
|
336 |
+
$p = (int)(min($w,$h)/6) ;
|
337 |
+
$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> OR<br /><u title="Use the option to suppress placement boxes">Suppress Placement Boxes</u>.</p></div></div>' ;
|
338 |
+
}
|
339 |
}
|
340 |
return $ret ;
|
341 |
}
|
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.5
|
7 |
-
Stable tag: 6.
|
8 |
|
9 |
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!
|
10 |
|
@@ -32,13 +32,13 @@ Easy AdSense is the freely distributed version of a premium plugin. The [Pro ver
|
|
32 |
|
33 |
= New in this Release =
|
34 |
|
35 |
-
New option to
|
36 |
|
37 |
== Upgrade Notice ==
|
38 |
|
39 |
-
= 6.
|
40 |
|
41 |
-
New option to
|
42 |
|
43 |
== Screenshots ==
|
44 |
|
@@ -126,6 +126,7 @@ A big "Thank You" to all my translators. Easy AdSense V2.6+ sports an *Easy Tran
|
|
126 |
|
127 |
== Change Log ==
|
128 |
|
|
|
129 |
* V6.22: New option to prevent line-breaks in ad insertion. [Jul 3, 2013]
|
130 |
* V6.21: Updating a few translations. Minor changes to the admin page. [Jun 10, 2013]
|
131 |
* V6.20: Correcting W3C markup validation errors on the admin page. [Apr 27, 2013]
|
4 |
Tags: adsense, google adsense, ads, advertising, easy adsense, google, adsense plugin
|
5 |
Requires at least: 2.6
|
6 |
Tested up to: 3.5
|
7 |
+
Stable tag: 6.23
|
8 |
|
9 |
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!
|
10 |
|
32 |
|
33 |
= New in this Release =
|
34 |
|
35 |
+
New option to suppress the red placeholder boxes that annoy some users.
|
36 |
|
37 |
== Upgrade Notice ==
|
38 |
|
39 |
+
= 6.23 =
|
40 |
|
41 |
+
New option to suppress the red placeholder boxes that annoy some users.
|
42 |
|
43 |
== Screenshots ==
|
44 |
|
126 |
|
127 |
== Change Log ==
|
128 |
|
129 |
+
* V6.23: New option to suppress the red placeholder boxes that annoy some users. [Jul 27, 2013]
|
130 |
* V6.22: New option to prevent line-breaks in ad insertion. [Jul 3, 2013]
|
131 |
* V6.21: Updating a few translations. Minor changes to the admin page. [Jun 10, 2013]
|
132 |
* V6.20: Correcting W3C markup validation errors on the admin page. [Apr 27, 2013]
|