Easy Plugin for AdSense - Version 6.51

Version Description

Adding options to suppress ads on sticky front page or search pages.

=

Download this release

Release Info

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

Code changes from version 6.50 to 6.51

Files changed (9) hide show
  1. admin.php +13 -8
  2. defaults.php +1 -2
  3. easy-adsense-lite.php +10 -1
  4. head-text.php +81 -74
  5. myPlugins.php +175 -181
  6. readme.txt +5 -4
  7. support.php +38 -37
  8. tail-text.php +132 -103
  9. why-pro.php +8 -14
admin.php CHANGED
@@ -36,7 +36,7 @@ else {
36
  <h2>Easy AdSense Setup
37
  </h2>
38
 
39
- <form method="post" action="<?php echo $_SERVER["REQUEST_URI"]; ?>">
40
  <?php
41
  wp_nonce_field('EzAdsenseSubmit','EzAdsenseNonce');
42
  $plgDir = dirname(__FILE__) ;
@@ -46,8 +46,8 @@ if (empty($this->options['kill_rating']))
46
  if (empty($this->options['kill_invites']))
47
  renderInvite($myPlugins[$plgName], $plgName) ;
48
  ?>
49
- <table class="form-table">
50
- <tr><th scope="row"><b><?php _e('Instructions', 'easy-adsenser') ; ?></b></th></tr>
51
  </table>
52
 
53
  <table class="form-table" style="width:100%">
@@ -79,8 +79,8 @@ printf(__('A few easy steps to setup %s', 'easy-adsenser'),'<em>Easy AdSense</em
79
 
80
  <br />
81
 
82
- <table class="form-table">
83
- <tr><th scope="row"><b><?php printf(__('Options (for the %s theme)', 'easy-adsenser'), get_option('stylesheet')); ?></b></th></tr>
84
  </table>
85
 
86
  <table style="width:100%">
@@ -231,8 +231,8 @@ printf(__('A few easy steps to setup %s', 'easy-adsenser'),'<em>Easy AdSense</em
231
 
232
  <b><?php _e('Suppress AdSense Ad Blocks on:', 'easy-adsenser') ; ?></b>&nbsp;&nbsp;
233
  <input type="checkbox" id="ezKillPages" name="ezKillPages" value="true" <?php if ($this->options['kill_pages']) { echo('checked="checked"'); }?> /> <a href="http://codex.wordpress.org/Pages" target="_blank" title="<?php _e('Click to see the difference between posts and pages', 'easy-adsenser') ; ?>"><?php _e('Pages (Ads only on Posts)', 'easy-adsenser') ; ?></a><br />
234
- <label style="display:inline-block;width:35%" for="ezKillAttach" title="<?php _e('Pages that show attachments', 'easy-adsenser') ; ?>">
235
- <input type="checkbox" id="ezKillAttach" name="ezKillAttach" <?php if ($this->options['kill_attach']) { echo('checked="checked"'); }?> /> <?php _e('Attachment Page', 'easy-adsenser') ; ?></label>
236
  <label style="display:inline-block;width:25%" for="ezKillHome" title="<?php _e('Home Page and Front Page are the same for most blogs', 'easy-adsenser') ; ?>">
237
  <input type="checkbox" id="ezKillHome" name="ezKillHome" <?php if ($this->options['kill_home']) { echo('checked="checked"'); }?> /> <?php _e('Home Page', 'easy-adsenser') ; ?></label>
238
  <label style="display:inline-block;width:30%" for="ezKillFront" title="<?php _e('Home Page and Front Page are the same for most blogs', 'easy-adsenser') ; ?>">
@@ -244,6 +244,12 @@ printf(__('A few easy steps to setup %s', 'easy-adsenser'),'<em>Easy AdSense</em
244
  <input type="checkbox" id="ezKillTag" name="ezKillTag" <?php if ($this->options['kill_tag']) { echo('checked="checked"'); }?> /> <?php _e('Tag Pages', 'easy-adsenser') ; ?></label>
245
  <label style="display:inline-block;width:30%" for="ezKillArchive" title="<?php _e('Pages that come up when you click on year/month archives', 'easy-adsenser') ; ?>">
246
  <input type="checkbox" id="ezKillArchive" name="ezKillArchive" <?php if ($this->options['kill_archive']) { echo('checked="checked"'); }?> /> <?php _e('Archive Pages', 'easy-adsenser') ; ?></label>
 
 
 
 
 
 
247
  <br />
248
  <br style="line-height: 15px;" />
249
 
@@ -489,4 +495,3 @@ if (!$this->options['kill_invites']) {
489
  </div>
490
  <?php
491
  }
492
- ?>
36
  <h2>Easy AdSense Setup
37
  </h2>
38
 
39
+ <form method="post" action="">
40
  <?php
41
  wp_nonce_field('EzAdsenseSubmit','EzAdsenseNonce');
42
  $plgDir = dirname(__FILE__) ;
46
  if (empty($this->options['kill_invites']))
47
  renderInvite($myPlugins[$plgName], $plgName) ;
48
  ?>
49
+ <table>
50
+ <tr><th scope="row"><h3><?php _e('Instructions', 'easy-adsenser') ; ?></h3></th></tr>
51
  </table>
52
 
53
  <table class="form-table" style="width:100%">
79
 
80
  <br />
81
 
82
+ <table>
83
+ <tr><th scope="row"><h3><?php printf(__('Options (for the %s theme)', 'easy-adsenser'), get_option('stylesheet')); ?></h3></th></tr>
84
  </table>
85
 
86
  <table style="width:100%">
231
 
232
  <b><?php _e('Suppress AdSense Ad Blocks on:', 'easy-adsenser') ; ?></b>&nbsp;&nbsp;
233
  <input type="checkbox" id="ezKillPages" name="ezKillPages" value="true" <?php if ($this->options['kill_pages']) { echo('checked="checked"'); }?> /> <a href="http://codex.wordpress.org/Pages" target="_blank" title="<?php _e('Click to see the difference between posts and pages', 'easy-adsenser') ; ?>"><?php _e('Pages (Ads only on Posts)', 'easy-adsenser') ; ?></a><br />
234
+ <label style="display:inline-block;width:35%" for="ezKillSticky" title="<?php _e('Sticky front page -- if you use a post as a front page', 'easy-adsenser') ; ?>">
235
+ <input type="checkbox" id="ezKillSticky" name="ezKillSticky" <?php if ($this->options['kill_sticky']) { echo('checked="checked"'); }?> /> <?php _e('Sticky Front Page', 'easy-adsenser') ; ?></label>
236
  <label style="display:inline-block;width:25%" for="ezKillHome" title="<?php _e('Home Page and Front Page are the same for most blogs', 'easy-adsenser') ; ?>">
237
  <input type="checkbox" id="ezKillHome" name="ezKillHome" <?php if ($this->options['kill_home']) { echo('checked="checked"'); }?> /> <?php _e('Home Page', 'easy-adsenser') ; ?></label>
238
  <label style="display:inline-block;width:30%" for="ezKillFront" title="<?php _e('Home Page and Front Page are the same for most blogs', 'easy-adsenser') ; ?>">
244
  <input type="checkbox" id="ezKillTag" name="ezKillTag" <?php if ($this->options['kill_tag']) { echo('checked="checked"'); }?> /> <?php _e('Tag Pages', 'easy-adsenser') ; ?></label>
245
  <label style="display:inline-block;width:30%" for="ezKillArchive" title="<?php _e('Pages that come up when you click on year/month archives', 'easy-adsenser') ; ?>">
246
  <input type="checkbox" id="ezKillArchive" name="ezKillArchive" <?php if ($this->options['kill_archive']) { echo('checked="checked"'); }?> /> <?php _e('Archive Pages', 'easy-adsenser') ; ?></label>
247
+ <label style="display:inline-block;width:35%" for="ezKillSearch" title="<?php _e('Pages showing search results', 'easy-adsenser') ; ?>">
248
+ <input type="checkbox" id="ezKillSearch" name="ezKillSearch" <?php if ($this->options['kill_search']) { echo('checked="checked"'); }?> /> <?php _e('Search Results', 'easy-adsenser') ; ?></label>
249
+ <label style="display:inline-block;width:25%" for="ezKillSingle" title="<?php _e('Posts (ads will be shown only on other kind of pages as specified in these checkboxes)', 'easy-adsenser') ; ?>">
250
+ <input type="checkbox" id="ezKillSingle" name="ezKillSingle" <?php if ($this->options['kill_single']) { echo('checked="checked"'); }?> /> <?php _e('Single Posts', 'easy-adsenser') ; ?></label>
251
+ <label style="display:inline-block;width:30%" for="ezKillAttach" title="<?php _e('Pages that show attachments', 'easy-adsenser') ; ?>">
252
+ <input type="checkbox" id="ezKillAttach" name="ezKillAttach" <?php if ($this->options['kill_attach']) { echo('checked="checked"'); }?> /> <?php _e('Attachment Page', 'easy-adsenser') ; ?></label>
253
  <br />
254
  <br style="line-height: 15px;" />
255
 
495
  </div>
496
  <?php
497
  }
 
defaults.php CHANGED
@@ -1,3 +1,2 @@
1
  <?php
2
- $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.')
3
- ?>
1
  <?php
2
+ $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.');
 
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 &rarr; Easy AdSense</a>.
6
- Version: 6.50
7
  Author: Manoj Thulasidas
8
  Author URI: http://www.thulasidas.com
9
  */
@@ -165,6 +165,9 @@ if (!class_exists("EzAdSense")) {
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,6 +314,9 @@ if (!class_exists("EzAdSense")) {
311
  'kill_inline' => false,
312
  'kill_widget_title' => false,
313
  'kill_linebreaks' => false,
 
 
 
314
  'suppressBoxes' => false,
315
  'title_widget' => '');
316
  return $defaultOptions ;
@@ -431,6 +437,9 @@ if (!class_exists("EzAdSense")) {
431
  if ($this->options['kill_cat'] && is_category()) return $content ;
432
  if ($this->options['kill_tag'] && is_tag()) return $content ;
433
  if ($this->options['kill_archive'] && is_archive()) return $content ;
 
 
 
434
  $this->ezMax = $this->options['max_count'] ;
435
  if ($this->options['force_widget']) $this->ezMax-- ;
436
  $this->urMax = $this->options['max_link'] ;
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 &rarr; Easy AdSense</a>.
6
+ Version: 6.51
7
  Author: Manoj Thulasidas
8
  Author URI: http://www.thulasidas.com
9
  */
165
  $this->options['kill_inline'] = isset($_POST['ezKillInLine']);
166
  $this->options['kill_linebreaks'] = isset($_POST['ezKillLineBreaks']);
167
  $this->options['suppressBoxes'] = isset($_POST['ezSuppressBoxes']);
168
+ $this->options['kill_single'] = isset($_POST['ezKillSingle']);
169
+ $this->options['kill_search'] = isset($_POST['ezKillSearch']);
170
+ $this->options['kill_sticky'] = isset($_POST['ezKillSticky']);
171
 
172
  $this->options['show_borders'] = isset($_POST['ezShowBorders']);
173
  if (isset($_POST['ezBorderWidth']))
314
  'kill_inline' => false,
315
  'kill_widget_title' => false,
316
  'kill_linebreaks' => false,
317
+ 'kill_single' => false,
318
+ 'kill_search' => true,
319
+ 'kill_sticky' => false,
320
  'suppressBoxes' => false,
321
  'title_widget' => '');
322
  return $defaultOptions ;
437
  if ($this->options['kill_cat'] && is_category()) return $content ;
438
  if ($this->options['kill_tag'] && is_tag()) return $content ;
439
  if ($this->options['kill_archive'] && is_archive()) return $content ;
440
+ if ($this->options['kill_single'] && is_single()) return $content ;
441
+ if ($this->options['kill_search'] && is_search()) return $content ;
442
+ if ($this->options['kill_sticky'] && is_sticky()) return $content ;
443
  $this->ezMax = $this->options['max_count'] ;
444
  if ($this->options['force_widget']) $this->ezMax-- ;
445
  $this->urMax = $this->options['max_link'] ;
head-text.php CHANGED
@@ -1,38 +1,34 @@
1
  <?php
 
2
  /*
3
- Copyright (C) 2008 www.thulasidas.com
4
 
5
- This file is part of the programs "Easy AdSense", "AdSense Now!",
6
- "Theme Tweaker", "Easy LaTeX", "More Money" and "Easy Translator".
7
 
8
- These programs are free software; you can redistribute them and/or
9
- modify it under the terms of the GNU General Public License as
10
- published by the Free Software Foundation; either version 3 of the
11
- License, or (at your option) any later version.
12
 
13
- These programs are distributed in the hope that they will be useful,
14
- but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
- General Public License for more details.
17
 
18
- You should have received a copy of the GNU General Public License
19
- along with the programs. If not, see <http://www.gnu.org/licenses/>.
20
- */
21
 
22
  function renderHeadText($name, $plg) {
23
- $plugindir = get_option('siteurl') . '/' . PLUGINDIR . '/' . basename(dirname(__FILE__)) ;
24
- $value = '<em><strong>'.$plg['value'].'</strong></em>';
25
- $desc = $plg['desc'] ;
26
- $toolTip = $plg['title'] ;
27
- $url = 'http://www.thulasidas.com/plugins/' . $name ;
28
- $link = '<b><a href="' . $url . '" target="_blank">' . $value . '</a> </b>' ;
29
- $text = $link . $desc ;
30
- $price = $plg['price'] ;
31
- $moreInfo =
32
- "<b><a href='http://buy.thulasidas.com/$name' title='Buy the Pro version of {$plg['value']} for \$$price. Instant download link.' onclick=\"popupwindow('http://buy.thulasidas.com/$name','Get {$plg['value']}', 1024, 768);return false;\">Pro Version</a></b>" ;
33
- $toolTip .= addslashes('<br />' . $moreInfo) ;
34
- $why = addslashes($plg['pro']) ;
35
- $version = 'Lite' ;
36
  echo "<b>Get Pro Version!</b>
37
  <a href='http://buy.thulasidas.com/$name' title='Buy the Pro version of the $name plugin. Instant download link.' onclick=\"popupwindow('http://buy.thulasidas.com/$name','Get {$plg['value']}', 1024, 768);return false;\"><img src='$plugindir/ezpaypal.png' alt='ezPayPal -- Instant PayPal Shop.' class='alignright'/></a>
38
  <br />
@@ -41,56 +37,67 @@ You are using the $version version of $value, which is also available as in a Pr
41
  $moreInfo
42
  </li>
43
  <li>$why And it costs only \$$price!</li>
44
- </ul>" ;
45
  }
 
46
  function renderProText($name, $plg) {
47
- $value = '<em><strong>'.$plg['value'].'</strong></em>';
48
- $filter = '' ;
49
- if (strpos($name,'adsense')!== FALSE) $filter = " (e.g., a filter to ensure AdSense policy compliance) " ;
50
- $desc = $plg['desc'] ;
51
- $toolTip = $plg['title'] ;
52
- $price = $plg['price'] ;
 
53
  $popup = "onclick=\"popupwindow('http://buy.thulasidas.com/$name','Get {$plg['value']}', 1024, 768);return false;\"";
54
- $moreInfo =
55
- "&nbsp; <a href='http://buy.thulasidas.com/lite/$name.zip' title='Download the Lite version of $value'>Lite Version </a>" .
56
- "&nbsp; <a href='http://buy.thulasidas.com/$name' title='Buy the Pro version of $value for \$$price' $popup>Pro Version</a>" ;
57
- $toolTip .= addslashes('<br />' . $moreInfo) ;
58
- $why = addslashes($plg['pro']) ;
59
  echo "<div style='background-color:#ffcccc;padding:5px;border: solid 1px;text-align:center;'>
60
- <span style='font-size:14px;color:#a48;font-variant: small-caps;text-decoration:underline;text-align:center;' $popup onmouseover=\"TagToTip('pro', WIDTH, 300, TITLE, 'Buy the Pro Version',STICKY, 1, CLOSEBTN, true, CLICKCLOSE, true, FIX, [this, 5, 5])\"><b>The Pro Version</b></span><br />" ;
61
 
62
- $value .= '<b><i> Lite</i></b>' ;
63
- echo "Thank you for using $value. The \"Pro\" version gives you more options$filter. Consider <a href='http://buy.thulasidas.com/$name' title='Pro version of this plugin. Instant download link.' $popup>buying it</a>. It costs only \$$price." ;
64
 
65
- echo "<div id='pro' style='display:none'>" ;
66
- renderHeadText($name, $plg) ;
67
- echo "</div></div>" ;
68
  }
69
 
70
  function renderAffiliate() {
71
- $plugindir = get_option('siteurl') . '/' . PLUGINDIR . '/' . basename(dirname(__FILE__)) ;
72
- echo "<div style='padding:0px;border:none; width:300px' id='support' onmouseover=\"Tip('<b>ezAffiliates</b>: The most affiliate-centric revenue sharing model on the Web. Finally, you can make some serious returns on your web presence.<br /><b>Generous 50% Commission</b>: perhaps the highest rate of revenue sharing on the web. With just a couple of sales of this plugin, you will have recovered your purchase price!<br /><b>$10 Minimum Payout</b> so that you will not be waiting forever before you qualify for payment.<br /><b>Lifetime Tracking</b>: ezAffiliates uses cookie-less tracking technology to attribute every purchase of your lead to your account. Whatever your leads buy from us, whenever they do, will earn you commission. No cookie expiry!<br /><b>High Quality Products</b> such as this plugin, and other premium plugins and PHP packages.<br /><b>Diverse Markets</b>: Bloggers who blog about plugins, PayPal integration, affiliate marketing, MacOS apps and even eBooks will find ezAffiliates attractive and more effective that their current ad campaigns.', WIDTH, 295, TITLE, 'ezAffiliates', FIX, [this, 0, 0])\" onmouseout=\"UnTip()\" ><a href='http://affiliates.thulasidas.com'><img src='$plugindir/invite.gif' alt='ezAffiliates' onclick=\"popupwindow('http://affiliates.thulasidas.com/','50-50 Revenue Share', 1024, 768);return false;\"/></a></div>" ;
73
  }
74
 
75
- function renderSupportText($name, $plg, $long=true) {
76
- $value = '<em><strong>'.$plg['value'].'</strong></em>';
77
- $supportText = "<div style=\"background-color:#cff;padding:5px;border: solid 1px\" id=\"support\"><b>Support $value. <a href=\"http://buy.thulasidas.com/$name\" title=\"Pro version of this plugin. Instant download link.\" onclick=\"popupwindow('http://buy.thulasidas.com/$name','Get {$plg['value']}', 1024, 768);return false;\">Go Pro!</a></b>" ;
78
- if ($long) $longText = "How about " ;
79
- else $longText= '' ;
80
- $supportText .= "<br />$longText<span onmouseover=\"TagToTip('dropbox', WIDTH, 440, TITLE, 'What is DropBox?',STICKY, 1, CLOSEBTN, true, FIX, [this, -150, 2])\"><a href='http://db.tt/qsogWB1' title='Sign up for Dropbox -- free 2GB online storage on the cloud!' target='_blank'>2GB of <em>free</em> online storage</a></span>?" ;
81
- if ($long) $longText = "WordPress Hosting for " ;
82
- else $longText= 'Hosting for ' ;
83
- $supportText .= "<br />$longText<span onmouseover=\"TagToTip('arvixe', WIDTH, 300, TITLE, 'Arvixe - My favorite provider!',STICKY, 1, CLOSEBTN, true, FIX, [this, -200, 2])\"><a href='http://www.arvixe.com/1933.html' target='_blank'>just $4/month</a></span>. " ;
84
- if ($long) $longText = "My books on " ;
85
- else $longText= 'Books: ' ;
86
- $supportText .= "<br />$longText<span style=\"text-decoration:underline\" onmouseover=\"TagToTip('unreal', WIDTH, 205, TITLE, 'Buy &lt;em&gt;The Unreal Universe&lt;/em&gt;',STICKY, 1, CLOSEBTN, true, FIX, [this, 5, 2])\"><b><a href='http://buy.thulasidas.com/unreal' target='_blank'>Physics &amp; Philosophy</a></b></span> or " ;
87
- $supportText .= "<span style=\"text-decoration:underline\" onmouseover=\"TagToTip('pqd', WIDTH, 205, TITLE, '&lt;em&gt;Principles of Quant. Devel.&lt;/em&gt;',STICKY, 1, CLOSEBTN, true, FIX, [this, 5, 2])\"><b><a href='http://buy.thulasidas.com/pqd' target='_blank'>Money &amp; Finance</a></b></span>.</div>" ;
88
- echo $supportText ;
 
 
 
 
 
 
 
 
 
 
 
 
89
  }
90
 
91
  function renderTipDivs($name) {
92
- $plugindir = get_option('siteurl') . '/' . PLUGINDIR . '/' . basename(dirname(__FILE__)) ;
93
- echo <<<ENDDIVS
94
  <div id="arvixe" style='display:none;'>
95
  <a href="http://www.arvixe.com/1933-27-1-310.html" target="_blank">Arvixe</a> is my favorite hosting provider. Friendly service, extremely competitive rates, and of course a great affiliate program.
96
  </div>
@@ -170,19 +177,19 @@ Want to break into the lucrative world of trading and quantitative finance? You
170
  ENDDIVS;
171
  }
172
 
173
- echo '<td style="width:30%">' ;
174
 
175
- if (rand(0,2) % 2 || $plgName == "easy-ads" || $plgName == "google-adsense") {
176
- renderSupportText($plgName, $myPlugins[$plgName], $myPlugins[$plgName]['long']) ;
177
- renderTipDivs($name) ;
 
 
 
178
  }
179
- else renderAffiliate() ;
180
-
181
- echo '</td>' ;
182
- echo '<td style="width:30%">' ;
183
 
184
- renderProText($plgName, $myPlugins[$plgName]) ;
 
185
 
186
- echo '</td>' ;
187
 
188
- ?>
1
  <?php
2
+
3
  /*
4
+ Copyright (C) 2008 www.thulasidas.com
5
 
6
+ This file is part of the programs "Easy AdSense", "AdSense Now!",
7
+ "Theme Tweaker", "Easy LaTeX", "More Money" and "Easy Translator".
8
 
9
+ These programs are free software; you can redistribute them and/or
10
+ modify it under the terms of the GNU General Public License as
11
+ published by the Free Software Foundation; either version 3 of the
12
+ License, or (at your option) any later version.
13
 
14
+ These programs are distributed in the hope that they will be useful,
15
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17
+ General Public License for more details.
18
 
19
+ You should have received a copy of the GNU General Public License
20
+ along with the programs. If not, see <http://www.gnu.org/licenses/>.
21
+ */
22
 
23
  function renderHeadText($name, $plg) {
24
+ $plugindir = get_option('siteurl') . '/' . PLUGINDIR . '/' . basename(dirname(__FILE__));
25
+ $value = '<em><strong>' . $plg['value'] . '</strong></em>';
26
+ $toolTip = $plg['title'];
27
+ $price = $plg['price'];
28
+ $moreInfo = "<b><a href='http://buy.thulasidas.com/$name' title='Buy the Pro version of {$plg['value']} for \$$price. Instant download link.' onclick=\"popupwindow('http://buy.thulasidas.com/$name','Get {$plg['value']}', 1024, 768);return false;\">Pro Version</a></b>";
29
+ $toolTip .= addslashes('<br />' . $moreInfo);
30
+ $why = addslashes($plg['pro']);
31
+ $version = 'Lite';
 
 
 
 
 
32
  echo "<b>Get Pro Version!</b>
33
  <a href='http://buy.thulasidas.com/$name' title='Buy the Pro version of the $name plugin. Instant download link.' onclick=\"popupwindow('http://buy.thulasidas.com/$name','Get {$plg['value']}', 1024, 768);return false;\"><img src='$plugindir/ezpaypal.png' alt='ezPayPal -- Instant PayPal Shop.' class='alignright'/></a>
34
  <br />
37
  $moreInfo
38
  </li>
39
  <li>$why And it costs only \$$price!</li>
40
+ </ul>";
41
  }
42
+
43
  function renderProText($name, $plg) {
44
+ $value = '<em><strong>' . $plg['value'] . '</strong></em>';
45
+ $filter = '';
46
+ if (stripos($name, 'adsense') !== FALSE) {
47
+ $filter = " (e.g., a filter to ensure AdSense policy compliance) ";
48
+ }
49
+ $toolTip = $plg['title'];
50
+ $price = $plg['price'];
51
  $popup = "onclick=\"popupwindow('http://buy.thulasidas.com/$name','Get {$plg['value']}', 1024, 768);return false;\"";
52
+ $moreInfo = "&nbsp; <a href='http://buy.thulasidas.com/lite/$name.zip' title='Download the Lite version of $value'>Lite Version </a>&nbsp; <a href='http://buy.thulasidas.com/$name' title='Buy the Pro version of $value for \$$price' $popup>Pro Version</a>";
53
+ $toolTip .= addslashes('<br />' . $moreInfo);
 
 
 
54
  echo "<div style='background-color:#ffcccc;padding:5px;border: solid 1px;text-align:center;'>
55
+ <span style='font-size:14px;color:#a48;font-variant: small-caps;text-decoration:underline;text-align:center;' $popup onmouseover=\"TagToTip('pro', WIDTH, 300, TITLE, 'Buy the Pro Version',STICKY, 1, CLOSEBTN, true, CLICKCLOSE, true, FIX, [this, 5, 5])\"><b>The Pro Version</b></span><br />";
56
 
57
+ $value .= '<b><i> Lite</i></b>';
58
+ echo "Thank you for using $value. The \"Pro\" version gives you more options$filter. Consider <a href='http://buy.thulasidas.com/$name' title='Pro version of this plugin. Instant download link.' $popup>buying it</a>. It costs only \$$price.";
59
 
60
+ echo "<div id='pro' style='display:none'>";
61
+ renderHeadText($name, $plg);
62
+ echo "</div></div>";
63
  }
64
 
65
  function renderAffiliate() {
66
+ $plugindir = get_option('siteurl') . '/' . PLUGINDIR . '/' . basename(dirname(__FILE__));
67
+ echo "<div style='padding:0px;border:none; width:300px' id='support' onmouseover=\"Tip('<b>ezAffiliates</b>: The most affiliate-centric revenue sharing model on the Web. Finally, you can make some serious returns on your web presence.<br /><b>Generous 50% Commission</b>: perhaps the highest rate of revenue sharing on the web. With just a couple of sales of this plugin, you will have recovered your purchase price!<br /><b>$10 Minimum Payout</b> so that you will not be waiting forever before you qualify for payment.<br /><b>Lifetime Tracking</b>: ezAffiliates uses cookie-less tracking technology to attribute every purchase of your lead to your account. Whatever your leads buy from us, whenever they do, will earn you commission. No cookie expiry!<br /><b>High Quality Products</b> such as this plugin, and other premium plugins and PHP packages.<br /><b>Diverse Markets</b>: Bloggers who blog about plugins, PayPal integration, affiliate marketing, MacOS apps and even eBooks will find ezAffiliates attractive and more effective that their current ad campaigns.', WIDTH, 295, TITLE, 'ezAffiliates', FIX, [this, 0, 0])\" onmouseout=\"UnTip()\" ><a href='http://affiliates.thulasidas.com'><img src='$plugindir/invite.gif' alt='ezAffiliates' onclick=\"popupwindow('http://affiliates.thulasidas.com/','50-50 Revenue Share', 1024, 768);return false;\"/></a></div>";
68
  }
69
 
70
+ function renderSupportText($name, $plg, $long = true) {
71
+ $value = '<em><strong>' . $plg['value'] . '</strong></em>';
72
+ $supportText = "<div style=\"background-color:#cff;padding:5px;border: solid 1px\" id=\"support\"><b>Support $value. <a href=\"http://buy.thulasidas.com/$name\" title=\"Pro version of this plugin. Instant download link.\" onclick=\"popupwindow('http://buy.thulasidas.com/$name','Get {$plg['value']}', 1024, 768);return false;\">Go Pro!</a></b>";
73
+ if ($long) {
74
+ $longText = "How about ";
75
+ }
76
+ else {
77
+ $longText = '';
78
+ }
79
+ $supportText .= "<br />$longText<span onmouseover=\"TagToTip('dropbox', WIDTH, 440, TITLE, 'What is DropBox?',STICKY, 1, CLOSEBTN, true, FIX, [this, -150, 2])\"><a href='http://db.tt/qsogWB1' title='Sign up for Dropbox -- free 2GB online storage on the cloud!' target='_blank'>2GB of <em>free</em> online storage</a></span>?";
80
+ if ($long) {
81
+ $longText = "WordPress Hosting for ";
82
+ }
83
+ else {
84
+ $longText = 'Hosting for ';
85
+ }
86
+ $supportText .= "<br />$longText<span onmouseover=\"TagToTip('arvixe', WIDTH, 300, TITLE, 'Arvixe - My favorite provider!',STICKY, 1, CLOSEBTN, true, FIX, [this, -200, 2])\"><a href='http://www.arvixe.com/1933.html' target='_blank'>just $4/month</a></span>. ";
87
+ if ($long) {
88
+ $longText = "My books on ";
89
+ }
90
+ else {
91
+ $longText = 'Books: ';
92
+ }
93
+ $supportText .= "<br />$longText<span style=\"text-decoration:underline\" onmouseover=\"TagToTip('unreal', WIDTH, 205, TITLE, 'Buy &lt;em&gt;The Unreal Universe&lt;/em&gt;',STICKY, 1, CLOSEBTN, true, FIX, [this, 5, 2])\"><b><a href='http://buy.thulasidas.com/unreal' target='_blank'>Physics &amp; Philosophy</a></b></span> or ";
94
+ $supportText .= "<span style=\"text-decoration:underline\" onmouseover=\"TagToTip('pqd', WIDTH, 205, TITLE, '&lt;em&gt;Principles of Quant. Devel.&lt;/em&gt;',STICKY, 1, CLOSEBTN, true, FIX, [this, 5, 2])\"><b><a href='http://buy.thulasidas.com/pqd' target='_blank'>Money &amp; Finance</a></b></span>.</div>";
95
+ echo $supportText;
96
  }
97
 
98
  function renderTipDivs($name) {
99
+ $plugindir = get_option('siteurl') . '/' . PLUGINDIR . '/' . basename(dirname(__FILE__));
100
+ echo <<<ENDDIVS
101
  <div id="arvixe" style='display:none;'>
102
  <a href="http://www.arvixe.com/1933-27-1-310.html" target="_blank">Arvixe</a> is my favorite hosting provider. Friendly service, extremely competitive rates, and of course a great affiliate program.
103
  </div>
177
  ENDDIVS;
178
  }
179
 
180
+ echo '<td style="width:30%">';
181
 
182
+ if (rand(0, 2) % 2 || $plgName == "easy-ads" || $plgName == "google-adsense") {
183
+ renderSupportText($plgName, $myPlugins[$plgName], $myPlugins[$plgName]['long']);
184
+ renderTipDivs($name);
185
+ }
186
+ else {
187
+ renderAffiliate();
188
  }
 
 
 
 
189
 
190
+ echo '</td>';
191
+ echo '<td style="width:30%">';
192
 
193
+ renderProText($plgName, $myPlugins[$plgName]);
194
 
195
+ echo '</td>';
myPlugins.php CHANGED
@@ -1,189 +1,174 @@
1
  <?php
2
 
3
- $myPlugins = array() ;
4
 
5
- $needPHP5 = ' <br /> <span style="font-color:#c00;">Note that this plugin requires PHPv5.0+. Please use the Lite version first to ensure that it works before buying the Pro version. If it does not work on your web host, consider the amazing <a href="http://buy.thulasidas.com/easy-adsense/" title="The most popular plugin to insert AdSense on your blog"><em><strong>Easy AdSense Pro</strong></em></a> for all your advertising needs. It can insert non-AdSense blocks as well.</span>' ;
6
 
7
- $myPlugins['ezpaypal-pro'] =
8
- array('value' => 'ezPayPal',
9
- 'price' => '9.95',
10
- 'share' => false,
11
- 'long' => false,
12
- 'blurb' => '<em><strong>ezPayPal Pro</strong></em> is the simplest possible way to sell your digital goods online. This standalone PHP package ',
13
- 'desc' => 'helps you quickly set up an online store to sell any downloadable item, where your buyers can pay for it and get an automatic, expiring download link. [ezPayPal is a standalone PHP package, which runs independent of WordPress.]',
14
- 'title' => 'Do you have an application, PHP package, photograph, PDF book (or any other downloadable item) to sell? Find the set up of a shopping cart system too overwhelming? <em>ezPayPal</em> may be the right solution for you.',
15
- 'pro' => 'The Pro version adds a whole slew of features: Data Security, Sandbox Mode, Template Editors, Automatic Handling of returns, refunds, e-chques etc, Sales Editor, Email Tools, Product Version support, Batch Product File Uploads, Data backup/restore/migration tools and so on. It can also be enhanced with optional modules like Affiliate Package, Reporting Tools etc. This powerful and professional package provides you with a complete and robust solution for your online business. <em><strong>ezPayPal Pro</strong></em> provides the most robust and feature-complete solution to sell your digital goods online. It helps you quickly set up an online store to sell any downloadable item, where your buyers can pay for it and get an automatic, expiring download link. The whole flow runs fully automated and designed to run unattended. <em><strong>ezPayPal</strong></em> manages all aspects of selling your digital goods.') ;
16
 
17
- $myPlugins['easy-ads'] =
18
- array('value' => 'Easy Ads',
19
- 'price' => '8.95',
20
- 'share' => true,
21
- 'long' => false,
22
- 'blurb' => '<em><strong>Easy Ads</strong></em> is a multi-provider advertising plugin. This streamlined plugin ',
23
- 'desc' => 'showcases AdSense and its alternatives on your blog',
24
- 'title' => '<em><strong>Easy Ads</strong></em> provides a unified and intuitive interface to manage multiple ad providers on your blog. It lets you insert ads provided by <a href="http://www.clicksor.com/pub/index.php?ref=105268" title="Careful, do not double-date with AdSense and Clicksor, they get very jealous of each other!">Clicksor</a>, <a href="http://www.bidvertiser.com/bdv/bidvertiser/bdv_ref_publisher.dbm?Ref_Option=pub&amp;Ref_PID=229404" title="Another fine ad provider">BidVertiser</a> or <a href="http://chitika.com/publishers.php?refid=manojt" title="Compatible with AdSense">Chitika</a> into your existing and future blog posts and pages.',
25
- 'pro' => 'The Lite version of <em><strong>Easy Ads</strong></em> is fully functional. In the Pro version, you get a filter to minimize the chance of your AdSense and other accounts getting banned. It uses a fast and effective keyword matching algorithm to examine the contents of each page on the fly and determines whether the page content could look offensive to Google and others. If so, it prevents your ads from appearing on those pages. And you can tweak the strength of the algorithm (for each provider). The Pro version also gives you control over other global options like activating and deactivating various ad providers, resetting all options etc. The Pro version also lets you specify a list of computers where your ads will not be shown, in order to prevent accidental clicks on your own ads -- one of the main reasons the ad providers may ban you.' . $needPHP5) ;
26
 
27
- $myPlugins['easy-paypal'] =
28
- array('value' => 'Easy PayPal',
29
- 'price' => '6.95',
30
- 'share' => false,
31
- 'long' => false,
32
- 'blurb' => '<em><strong>Easy PayPal</strong></em> is the plugin version of ezPayPal, the simplest possible way to sell your digital goods online. This premium plugin ',
33
- 'desc' => 'helps you quickly set up an online store to sell any downloadable item, where your buyers can pay for it and get an automatic, expiring download link. [Easy PayPal is a Premium WordPress plugin.]',
34
- 'title' => 'Do you have an application, PHP package, photograph, PDF book (or any other downloadable item) to sell from your blog? Find the set up of a shopping cart system too overwhelming? <em>ezPayPal</em> may be the right solution for you.',
35
- 'pro' => 'The Pro version adds a whole slew of features: Data Security, Sandbox Mode, Template Editors, Automatic Handling of returns, refunds, e-chques etc, Sales Editor, Email Tools, Product Version support, Batch Product File Uploads, Data backup/restore/migration tools and so on. It can also be enhanced with optional modules like Affiliate Package, Reporting Tools etc. This powerful and professional package provides you with a complete and robust solution for your online business. <em><strong>ezPayPal Pro</strong></em> provides the most robust and feature-complete solution to sell your digital goods online. It helps you quickly set up an online store to sell any downloadable item, where your buyers can pay for it and get an automatic, expiring download link. The whole flow runs fully automated and designed to run unattended. <em><strong>ezPayPal</strong></em> manages all aspects of selling your digital goods.') ;
36
 
37
- $myPlugins['google-adsense'] =
38
- array('value' => 'Google AdSense',
39
- 'price' => '5.95',
40
- 'share' => true,
41
- 'long' => false,
42
- 'blurb' => '<em><strong>Google AdSense</strong></em> is a single-provider version of <em><strong>Easy Ads</strong></em> specialized for Google AdSense serving. If you are planning to use more than two providers, it may be easier and more economical to use <em><strong>Easy Ads</strong></em>. <em><strong>Google AdSense</strong></em> ',
43
- 'desc' => 'provides you with a fully streamlined interface to manage Google AdSense on your blog.',
44
- 'title' => '<a href="http://buy.thulasidas.com/plugins/google-adsense/" title="A new plugin to handle Google"><em><strong>Google AdSense</strong></em></a> gives you a specialized and intuitive interface to manage AdSense ads on your blog, with size selectors, widget options, color-picker to customize your colors, etc. It is a new generation plugin with a fancy, tabbed interface.',
45
- 'pro' => 'The Lite version of <em><strong>Google AdSense</strong></em> is fully functional. But the Pro version gives you more features and control. In the Pro version, you get a filter to minimize the chance of your AdSense account getting banned. It uses a fast and effective keyword matching algorithm to examine the contents of each page on the fly and determines whether the page content could look offensive to Google. If so, it prevents your ads from appearing on those pages. And you can tweak the strength of the algorithm. The Pro version also lets you specify a list of computers where your ads will not be shown, in order to prevent accidental clicks on your own ads -- one of the main reasons AdSense bans you.' . $needPHP5) ;
46
 
47
- $myPlugins['easy-adsense'] =
48
- array('value' => 'Easy AdSense',
49
- 'price' => '4.95',
50
- 'share' => true,
51
- 'long' => true,
52
- 'blurb' => '<em><strong>Easy AdSense</strong></em> is an updated version of a very popular (downloaded over 600,000 times) WordPress plugin. This premium plugin ',
53
- 'desc' => 'manages all aspects of Google AdSense for your blog. Easy and complete!',
54
- 'title' => '<em><strong>Easy AdSense</strong></em> provides a very easy way to generate revenue from your blog using Google AdSense. It can insert ads into posts and sidebar, and add a Google Search box. With its full set of features, <em><strong>Easy AdSense</strong></em> is perhaps the first plugin to give you a complete solution for everything AdSense-related.',
55
- 'pro' => 'The Lite version of <em><strong>Easy AdSense</strong></em> is fully functional. But the Pro version gives you more features and control. In the Pro version, you get a filter to minimize the chance of your AdSense account getting banned. It uses a fast and effective keyword matching algorithm to examine the contents (including comments that you may have no control over) of each page on the fly and determines whether the page content could look offensive to Google. If so, it prevents your ads from appearing on those pages. And you can tweak the strength of the algorithm. The Pro version also lets you specify a list of computers where your ads will not be shown, in order to prevent accidental clicks on your own ads -- one of the main reasons AdSense bans you.',
56
- 'benefits' => '<li>Safe Content filter: To ensure that your Google AdSense ads show only on those pages that seem to comply with Google AdSense policies, which can be important since some comments may render your pages inconsistent with those policies.</li>
57
  <li>IP filter: Ability to specify a list of computers where your ads will not be shown, in order to prevent accidental clicks on your own ads -- one of the main reasons AdSense bans you. These features will minimize your chance of getting banned.</li>
58
  <li>Compatibility mode: To solve the issue of the ad insertion messing up your page appearances when using some themes.</li>
59
  <li>Shortcode support: Show the ads only on the pages or posts you want, and exactly where you want them.</li>
60
  <li>Mobile support: Ability to suppress ads on mobile devices.</li>
61
  <li>Ability to show a configurable number of ads on Excerpts (which make up the home page in some themes)</li>
62
  <li>Real text-wrapping option in Leadout ad blocks. In the Lite version, text-wrapping in the lead-out ad block may fail in some cases.</li>'
63
- ) ;
64
 
65
- $myPlugins['adsense-now'] =
66
- array('value' => 'AdSense Now!',
67
- 'price' => '3.95',
68
- 'share' => true,
69
- 'long' => true,
70
- 'blurb' => '<em><strong>AdSense Now!</strong></em> is an updated version of another popular (downloaded about 150,000 times) WordPress plugin. This premium plugin ',
71
- 'desc' => 'gets you started with Google AdSense. No mess, no fuss.',
72
- 'title' => '<em><strong>AdSense Now!</strong></em> is the simplest possible way to generate revenue from your blog using Google AdSense. Aiming at simplicity, <em><strong>AdSense Now!</strong></em> does only one thing: it puts your AdSense code in up to three spots in your posts and pages (both existing ones and those yet to be written).',
73
- 'pro' => 'The Lite version of <em><strong>AdSense Now!</strong></em> is fully functional. In the Pro version, you get a filter to minimize the chance of your AdSense account getting banned. It uses a fast and effective keyword matching algorithm to examine the contents of each page on the fly and determines whether the page content could look offensive to Google. If so, it prevents your ads from appearing on those pages. And you can tweak the strength of the algorithm. The Pro version also lets you specify a list of computers where your ads will not be shown, in order to prevent accidental clicks on your own ads -- one of the main reasons AdSense bans you.',
74
- 'benefits' => '<li>A safety filter to help you maintain your AdSense account standing. This fast and efficient filter will help keep your AdSense account in good standing by suppressing your ads on pages that may violate Google policies. For instance, if a visitor leaves a comment deemed offensive by Google, this filter will kick in as remove your ads from that page.</li>
75
  <li>Ability to suppress your ads on some IPs to prevent accidental clicks on your own ads -- one of the main reasons for getting your AdSense account banned. It will also help prevent intentional clicks (by your jealous competitor, for instance).</li>
76
- <li>A compatibility mode, if the ad insertion messes up the page layout. Some poorly coded themes may get your pages messed up by ad insertion. The compatibility mode will help prevent it.</li>') ;
77
 
78
- $myPlugins['theme-tweaker'] =
79
- array('value' => 'Theme Tweaker',
80
- 'price' => '3.95',
81
- 'share' => false,
82
- 'long' => true,
83
- 'blurb' =>'<em><strong>Theme Tweaker</strong></em> is a remarkable plugin that ',
84
- 'desc' => 'lets you modify the colors in your theme with no CSS/PHP editing.',
85
- 'title' => '<em><strong>Theme Tweaker</strong></em> displays the existing colors from your current theme, and gives you a color picker to replace them. It also lets you change them in bulk, like invert all colors, use grey scale etc.',
86
- 'pro' => 'Note that <em><strong>Theme Tweaker</strong></em> may not work with some themes. Please verify its suitability using the Lite version first. The Lite version of the plugin is fully functional. The Pro version lets you create and save your tweaked <code>style.css</code> files, and even generate your own child themes!',
87
- 'benefits' => '<li>Ability to generate and download <code>style.css</code> files with your modified colors.</li>
88
  <li>Ability to create a child theme so that your changes can be applied even when the underlying theme is updated.</li>
89
- <li>Scanning for *all* the style files in your theme directory to find all possible color definitions.</li>') ;
90
 
91
- $myPlugins['easy-quiz'] =
92
- array('value' => 'Easy Quiz',
93
- 'price' => '2.95',
94
- 'share' => false,
95
- 'long' => true,
96
- 'blurb' =>'<em><strong>Easy Quiz</strong></em> is a jQuery quiz plugin that ',
97
- 'desc' => 'runs a simple but elegant quiz on your posts or pages.',
98
- 'title' => '<em><strong>Easy Quiz</strong></em> displays the statements or questions you type into your post or page (surrounded by <code>[ezquiz][/ezquiz]</code> tag) as a neat quiz for your reader on his/her browser. The answers are not transfered to your server, and there is no extra server load in running the quiz.',
99
- 'pro' => '<em><strong>Easy Quiz</strong></em>, in its lite form, comes with a standard color scheme. If you would like to modify the color scheme, please consider the Pro version. It gives you color pickers for all aspects of the quiz display so that you can perfectly match your theme. It also lets you have different types of quizes (true-or-false, fill-in-the-blanks, multiple-choice, etc.), which you can even mix and match within one test. The Lite version of the plugin is fully functional, but is limited to only true-or-false questions.',
100
- 'benefits' => '<li>Different types of quizes (true-or-false, fill-in-the-blanks, multiple-choice, etc.).</li>
101
  <li>Ability to mix and match different types of questions within one quiz.</li>
102
  <li>Ability to tweak the quiz display colors.</li>
103
- <li>Color pickers for customization with live preview on the admin page.</li>') ;
104
 
105
- $myPlugins['easy-text-links'] =
106
- array('value' => 'Easy Text Links',
107
- 'price' => '7.95',
108
- 'share' => false,
109
- 'long' => true,
110
- 'blurb' =>'<em><strong>Easy Text Links</strong></em> is a robust and modern advertising plugin that ',
111
- 'desc' => 'helps you sell and manage text links on your blog.',
112
- 'title' => '<em><strong>Easy Text Links</strong></em> helps you make extra revenue from your blog by selling text links. Text link advertising can be significantly more lucrative than contextual ads. This plugin automates the insertion and expiration of the links, and helps you with quick reminder emails to your advertisers. If you get a lot of advertising enquiries for text links, this is the right plugin for you.',
113
- 'pro' => '<em><strong>Easy Text Links</strong></em>, in its light form, is already a powerful plugin. The Pro version lets you integrate seamlessly with Easy PayPal and fully automate your link sales, expiration and reminder emails.',
114
- 'benefits' => '<li>Automated link sales and management.</li>
115
  <li>Automated email reminders, and subscription based links.</li>
116
  <li>Choice of several attractive Advertise Here images.</li>
117
- <li>Dedicated dedicated and multi-insertable widget for displaying your links.</li>') ;
118
 
119
- $myPlugins['easy-latex'] =
120
- array('value' => 'Easy WP LaTeX',
121
- 'price' => '2.95',
122
- 'share' => false,
123
- 'long' => true,
124
- 'blurb' =>'<em><strong>Easy WP LaTeX</strong></em> is a premium plugin that ',
125
- 'desc' => 'provides a very easy way to display math and equations in your posts.',
126
- 'title' => '<em><strong>Easy WP LaTeX</strong></em> provides a very easy way to display equations or mathematical formulas (typed in as TeX or LaTeX code) in your posts. It translates LaTeX formulas like this [math](a+b)^2 = a^2 + b^2 + 2ab[/math] into this:<br/>&nbsp;&nbsp;&nbsp;&nbsp;<img src="http://l.wordpress.com/latex.php?latex=(a%2bb)^2%20=%20a^2%20%2b%20b^2%20%2b%202ab&amp;bg=E2E7FF&amp;s=1" style="vertical-align:-70%;" alt="(a+b)^2 = a^2 + b^2 + 2ab" />',
127
- 'pro' => 'The Lite version of the plugin is fully functional. The Pro version gives you options to cache the equation images so that your pages load faster.') ;
128
 
129
- $myPlugins['easy-translator'] =
130
- array('value' => 'Easy Translator',
131
- 'price' => '1.95' ,
132
- 'share' => false,
133
- 'long' => true,
134
- 'blurb' =>'<em><strong>Easy Translator</strong></em> ',
135
- 'desc' => 'is a plugin translation tool for authors and translators. (Not a blog page translator!)',
136
- 'title' => '<em><strong>Easy Translator</strong></em> is a plugin to translate other plugins. It picks up translatable strings (in _[_e]() functions) and presents them and their existing translations (from the MO object of the current text-domain, if loaded) in a user editable form. It can generate a valid PO file that can be emailed to the plugin author directly from the its window, streamlining your work.',
137
- 'pro' => 'The Lite version of Easy Translator is fully functional. The Pro version adds the ability to email the generated PO file directly, without having to save it and attach it to a mail message.') ;
138
 
139
- $myPlugins['unreal-universe'] =
140
- array('value' => 'The Unreal Universe - eBook',
141
- 'url' => 'http://www.theunrealuniverse.com',
142
- 'amazon' => 'http://www.amazon.com/exec/obidos/ASIN/9810575947/unrblo-20',
143
- 'price' => '1.49',
144
- 'share' => false,
145
- 'long' => true,
146
- 'blurb' => '<em><strong>The Unreal Universe</strong></em> is a remarkable book on physics and philosophy, science and religion. This compelling read ',
147
- 'desc' => 'will change the way you look at reality and understand the universe around you. Ever wonder why nothing can faster than light? And the Earth was void until God said "Let there be light"? Here are some of the answers.',
148
- 'title' => '<em><strong>The Unreal Universe</strong></em> is a remarkable book on physics, philosophy and surprising interconnections among seemingly disconnected silos of human knowledge.',
149
- 'pro' => '',
150
- 'kind' =>'book') ;
151
 
152
- $myPlugins['pqd'] =
153
- array('value' => 'How Does a Bank Work? - eBook',
154
- 'url' => 'http://pqd.thulasidas.com',
155
- 'amazon' => 'http://www.amazon.com/exec/obidos/ASIN/0470745703/unrblo-20',
156
- 'price' => '5.49',
157
- 'share' => false,
158
- 'long' => true,
159
- 'blurb' => 'This eBook companion to <em><strong>Principles of Quantitative Development</strong></em> is a lucid and succinct exposé on the trade life cycle and the business groups involved in managing it, bringing together the big picture of how a trade flows through the systems, and the role of a quantitative professional in the organization. This compelling book ',
160
- 'desc' => 'looks at the need and demand for in-house trading platforms, addressing the current trends in the industry. It then looks at the trade life cycle and its participants, from beginning to end, and then the functions within the front, middle and back office, giving the reader a full understanding and appreciation of the perspectives and needs of each function.',
161
- 'title' => '<em><strong>Principles of Quantitative Development</strong></em> has been enthusiastically endorsed by the leading professionals in the quantitative finance space, including <strong>Paul Wilmott</strong>.',
162
- 'pro' => '',
163
- 'kind' =>'book') ;
164
 
165
- $myPlugins['iphoto-tagger'] =
166
- array('value' => 'iPhoto Tagger -- Helper for iPhoto imports',
167
- 'price' => '1.99',
168
- 'share' => false,
169
- 'long' => true,
170
- 'blurb' => '<em><strong>iPhotoTagger</strong></em> is for the budding photographer in you. This Mac program ',
171
- 'desc' => 'will make your life a lot easier if you have to import your existing pohtos into your iPhoto Library. It highlights the import status of your photos using an easy-to-follow color scheme.',
172
- 'title' => '<em><strong>iPhoto Tagger</strong></em> is a native Mac Application to locate and tag your existing photos depending on whether they have been imported into your iPhoto Library. It first goes through your iPhoto library and catalogs what you have there. It then scans the folder you specify and compares the photos in there with those in your library. If a photo is found exactly once, it will get a Green label, so that it stands out when you browse to it in your Finder (which is Mac-talk for Windows Explorer). Similarly, if the photo appears more than once in your iPhoto library, it will be tagged in Yellow. And, going the extra-mile, iPhotoTagger will color your folder Green if all the photos within have been imported into your iPhoto library. Those folders that have been partially imported will be tagged Yellow.',
173
- 'pro' => 'The Lite version of <em><strong>iPhoto Tagger</strong></em> is fully functional and makes the lists of the photos to be tagged. The Pro version adds the ability to automatically label those photos using Spotlight colors so that they stand out while browsing in Finder.',
174
- 'kind' => 'app') ;
175
 
176
- $myPlugins['ezpaypal'] =
177
- array('value' => 'ezPayPal',
178
- 'price' => '4.95',
179
- 'share' => false,
180
- 'long' => true,
181
- 'hide' => true,
182
- 'blurb' => '<em><strong>ezPayPal</strong></em> is the simplest possible way to sell your digital goods online. Do you have an application, PHP package, photograph, PDF book (or any other downloadable item) to sell? Find the set up of a shopping cart system too overwhelming? <em>ezPayPal</em> may be the right solution for you. It ',
183
- 'desc' => 'gets you started with your online business. Easy and simple!',
184
- 'title' => '<em><strong>ezPayPal</strong></em> helps you quickly set up an online store to sell any downloadable item, where your buyers can pay for it and get an automatic, expiring download link. The whole flow is fully automated and designed to run unattended.',
185
- 'pro' => 'The Lite version of <em><strong>ezPayPal</strong></em> is fully functional. But the Pro version gives you more features and control. The Pro version has improved data security, sandbox mode, database backup and restore, security audit, data migration tools, template editor, email facilities, upgradeable products and so on. Please follow the more info link for details.',
186
- 'benefits' => '<li><em>Data Security</em>: The <em>Pro</em> version takes special measures to set up data verification links to ensure your sales data is safe and not susceptible to corruption. In technical terms, it checks for the existence of InnoDB in your MySQL installation, and uses it if found, setting up foreign keys to ensure referential integrity, and indices to guarantee performance. The Lite version uses the default MyISAM engine, fast and simple, but not exactly secure.</li>
187
  <li><em>Sandbox Mode</em>: In the <em>Pro</em> version, you have the option to choose PayPal sandbox mode so that you can check your setup before going live.</li>
188
  <li><em>DB Backup</em>: The <em>Pro</em> version has an option to generate a backup of your sales info to download to a safe location.</li>
189
  <li><em>DB Restore</em>: It also provides a means to restore (of course) a previously backed up data file, overwriting (or appending to, as you wish) the existing sales info.</li>
@@ -194,19 +179,22 @@ $myPlugins['ezpaypal'] =
194
  <li><em>Additional Tools</em>: The <em>Pro</em> version also gives you a bunch of tools (php example files) that can help you migrate your existing sales data or product definitions.</li>
195
  <li><em>Email facilities</em>: You can select a number of your buyers to notify, for example, of a critical update of your products, or of a free upgrade opportunity.</li>
196
  <li><em>Upgradeable Products</em>: You can define products that are upgradeable. For instance, you can sell a short eBook at an introductory price. If your buyer likes it, he has the option of buying the full book by paying the difference.</li>
197
- ') ;
198
 
199
  if (!function_exists('renderInvite')) {
200
- function renderInvite($plg, $plgName) {
201
- $plgLongName = $plg['value'] ;
202
- $plgPrice = $plg['price'] ;
203
- $benefits = $plg['benefits'] ;
204
- $yesTip = sprintf(__('Buy %s Pro for $%s. PayPal payment. Instant download.', 'easy-adsenser'),$plgLongName, $plgPrice) ;
205
- $yesTitle = __('Get the Pro version now!', 'easy-adsenser') ;
206
- $noTip = __('Continue using the Lite version, and hide this message. After clicking this button, please remember to save your options to hide this box for good.', 'easy-adsenser') ;
207
- $noTitle = __('Stay Lite', 'easy-adsenser') ;
208
- if (empty($benefits)) return ;
209
- echo <<<ENDINVITE
 
 
 
210
  <input type="hidden" id="killInvites" name="killInvites" value="" />
211
  <div class="updated" id="tnc">
212
  <p><h3>Want More Features? <a href="#" onmouseover="Tip('$yesTip', WIDTH, 200, CLICKCLOSE, true, TITLE, '$yesTitle')" onmouseout="UnTip()" onclick = "buttonwhich('Yes')">Go Pro!</a></h3>
@@ -232,22 +220,27 @@ function buttonwhich(message) {
232
  </script>
233
  </div>
234
  ENDINVITE;
235
- }
 
236
  }
237
  if (!function_exists('renderRating')) {
 
238
  function renderRating($plg, $plgDir, $killable = true) {
239
- $plgCTime = filemtime($plgDir) ;
240
- $days = ( $plgCTime - time() )/ 60/60/24 ;
241
- $plgLongName = $plg['value'] ;
242
- $hideTip = __('Click the link to hide this box. After clicking this link, please remember to save your options to hide this box for good.', 'easy-adsenser') ;
243
- if (time() > $plgCTime + (60*60*24*30))
244
- $msg = "You've installed this plugin over a month ago." ;
245
- else
246
- $msg = "You will find it feature-rich and robust." ;
247
- $plgKey = basename($plgDir) ;
248
- $display = '' ;
249
- if (!$killable) $display = "style='display:none'" ;
250
- echo <<<ENDRATING
 
 
 
251
  <div class='updated' id='rating'>
252
  <p>Thanks for using <i><b>$plgLongName</b></i>! $msg <br />
253
  If you are satisfied with how well it works, why not <a href='http://wordpress.org/extend/plugins/$plgKey/' onclick="popupwindow('http://wordpress.org/extend/plugins/$plgKey/','Rate it', 1024, 768);return false;">rate it</a>
@@ -266,5 +259,6 @@ function hideme() {
266
  }
267
  </script>
268
  ENDRATING;
269
- }
 
270
  }
1
  <?php
2
 
3
+ $myPlugins = array();
4
 
5
+ $needPHP5 = ' <br /> <span style="font-color:#c00;">Note that this plugin requires PHPv5.0+. Please use the Lite version first to ensure that it works before buying the Pro version. If it does not work on your web host, consider the amazing <a href="http://buy.thulasidas.com/easy-adsense/" title="The most popular plugin to insert AdSense on your blog"><em><strong>Easy AdSense Pro</strong></em></a> for all your advertising needs. It can insert non-AdSense blocks as well.</span>';
6
 
7
+ $myPlugins['ezpaypal-pro'] = array('value' => 'ezPayPal',
8
+ 'price' => '9.95',
9
+ 'share' => false,
10
+ 'long' => false,
11
+ 'blurb' => '<em><strong>ezPayPal Pro</strong></em> is the simplest possible way to sell your digital goods online. This standalone PHP package ',
12
+ 'desc' => 'helps you quickly set up an online store to sell any downloadable item, where your buyers can pay for it and get an automatic, expiring download link. [ezPayPal is a standalone PHP package, which runs independent of WordPress.]',
13
+ 'title' => 'Do you have an application, PHP package, photograph, PDF book (or any other downloadable item) to sell? Find the set up of a shopping cart system too overwhelming? <em>ezPayPal</em> may be the right solution for you.',
14
+ 'pro' => 'The Pro version adds a whole slew of features: Data Security, Sandbox Mode, Template Editors, Automatic Handling of returns, refunds, e-chques etc, Sales Editor, Email Tools, Product Version support, Batch Product File Uploads, Data backup/restore/migration tools and so on. It can also be enhanced with optional modules like Affiliate Package, Reporting Tools etc. This powerful and professional package provides you with a complete and robust solution for your online business. <em><strong>ezPayPal Pro</strong></em> provides the most robust and feature-complete solution to sell your digital goods online. It helps you quickly set up an online store to sell any downloadable item, where your buyers can pay for it and get an automatic, expiring download link. The whole flow runs fully automated and designed to run unattended. <em><strong>ezPayPal</strong></em> manages all aspects of selling your digital goods.');
 
15
 
16
+ $myPlugins['easy-ads'] = array('value' => 'Easy Ads',
17
+ 'price' => '8.95',
18
+ 'share' => true,
19
+ 'long' => false,
20
+ 'blurb' => '<em><strong>Easy Ads</strong></em> is a multi-provider advertising plugin. This streamlined plugin ',
21
+ 'desc' => 'showcases AdSense and its alternatives on your blog',
22
+ 'title' => '<em><strong>Easy Ads</strong></em> provides a unified and intuitive interface to manage multiple ad providers on your blog. It lets you insert ads provided by <a href="http://www.clicksor.com/pub/index.php?ref=105268" title="Careful, do not double-date with AdSense and Clicksor, they get very jealous of each other!">Clicksor</a>, <a href="http://www.bidvertiser.com/bdv/bidvertiser/bdv_ref_publisher.dbm?Ref_Option=pub&amp;Ref_PID=229404" title="Another fine ad provider">BidVertiser</a> or <a href="http://chitika.com/publishers.php?refid=manojt" title="Compatible with AdSense">Chitika</a> into your existing and future blog posts and pages.',
23
+ 'pro' => 'The Lite version of <em><strong>Easy Ads</strong></em> is fully functional. In the Pro version, you get a filter to minimize the chance of your AdSense and other accounts getting banned. It uses a fast and effective keyword matching algorithm to examine the contents of each page on the fly and determines whether the page content could look offensive to Google and others. If so, it prevents your ads from appearing on those pages. And you can tweak the strength of the algorithm (for each provider). The Pro version also gives you control over other global options like activating and deactivating various ad providers, resetting all options etc. The Pro version also lets you specify a list of computers where your ads will not be shown, in order to prevent accidental clicks on your own ads -- one of the main reasons the ad providers may ban you.' . $needPHP5);
 
24
 
25
+ $myPlugins['easy-paypal'] = array('value' => 'Easy PayPal',
26
+ 'price' => '6.95',
27
+ 'share' => false,
28
+ 'long' => false,
29
+ 'blurb' => '<em><strong>Easy PayPal</strong></em> is the plugin version of ezPayPal, the simplest possible way to sell your digital goods online. This premium plugin ',
30
+ 'desc' => 'helps you quickly set up an online store to sell any downloadable item, where your buyers can pay for it and get an automatic, expiring download link. [Easy PayPal is a Premium WordPress plugin.]',
31
+ 'title' => 'Do you have an application, PHP package, photograph, PDF book (or any other downloadable item) to sell from your blog? Find the set up of a shopping cart system too overwhelming? <em>ezPayPal</em> may be the right solution for you.',
32
+ 'pro' => 'The Pro version adds a whole slew of features: Data Security, Sandbox Mode, Template Editors, Automatic Handling of returns, refunds, e-chques etc, Sales Editor, Email Tools, Product Version support, Batch Product File Uploads, Data backup/restore/migration tools and so on. It can also be enhanced with optional modules like Affiliate Package, Reporting Tools etc. This powerful and professional package provides you with a complete and robust solution for your online business. <em><strong>ezPayPal Pro</strong></em> provides the most robust and feature-complete solution to sell your digital goods online. It helps you quickly set up an online store to sell any downloadable item, where your buyers can pay for it and get an automatic, expiring download link. The whole flow runs fully automated and designed to run unattended. <em><strong>ezPayPal</strong></em> manages all aspects of selling your digital goods.');
 
33
 
34
+ $myPlugins['google-adsense'] = array('value' => 'Google AdSense',
35
+ 'price' => '5.95',
36
+ 'share' => true,
37
+ 'long' => false,
38
+ 'blurb' => '<em><strong>Google AdSense</strong></em> is a single-provider version of <em><strong>Easy Ads</strong></em> specialized for Google AdSense serving. If you are planning to use more than two providers, it may be easier and more economical to use <em><strong>Easy Ads</strong></em>. <em><strong>Google AdSense</strong></em> ',
39
+ 'desc' => 'provides you with a fully streamlined interface to manage Google AdSense on your blog.',
40
+ 'title' => '<a href="http://buy.thulasidas.com/plugins/google-adsense/" title="A new plugin to handle Google"><em><strong>Google AdSense</strong></em></a> gives you a specialized and intuitive interface to manage AdSense ads on your blog, with size selectors, widget options, color-picker to customize your colors, etc. It is a new generation plugin with a fancy, tabbed interface.',
41
+ 'pro' => 'The Lite version of <em><strong>Google AdSense</strong></em> is fully functional. But the Pro version gives you more features and control. In the Pro version, you get a filter to minimize the chance of your AdSense account getting banned. It uses a fast and effective keyword matching algorithm to examine the contents of each page on the fly and determines whether the page content could look offensive to Google. If so, it prevents your ads from appearing on those pages. And you can tweak the strength of the algorithm. The Pro version also lets you specify a list of computers where your ads will not be shown, in order to prevent accidental clicks on your own ads -- one of the main reasons AdSense bans you.' . $needPHP5);
 
42
 
43
+ $myPlugins['easy-adsense'] = array('value' => 'Easy AdSense',
44
+ 'price' => '4.95',
45
+ 'share' => true,
46
+ 'long' => true,
47
+ 'blurb' => '<em><strong>Easy AdSense</strong></em> is an updated version of a very popular (downloaded over 600,000 times) WordPress plugin. This premium plugin ',
48
+ 'desc' => 'manages all aspects of Google AdSense for your blog. Easy and complete!',
49
+ 'title' => '<em><strong>Easy AdSense</strong></em> provides a very easy way to generate revenue from your blog using Google AdSense. It can insert ads into posts and sidebar, and add a Google Search box. With its full set of features, <em><strong>Easy AdSense</strong></em> is perhaps the first plugin to give you a complete solution for everything AdSense-related.',
50
+ 'pro' => 'The Lite version of <em><strong>Easy AdSense</strong></em> is fully functional. But the Pro version gives you more features and control. In the Pro version, you get a filter to minimize the chance of your AdSense account getting banned. It uses a fast and effective keyword matching algorithm to examine the contents (including comments that you may have no control over) of each page on the fly and determines whether the page content could look offensive to Google. If so, it prevents your ads from appearing on those pages. And you can tweak the strength of the algorithm. The Pro version also lets you specify a list of computers where your ads will not be shown, in order to prevent accidental clicks on your own ads -- one of the main reasons AdSense bans you.',
51
+ 'benefits' => '<li>Safe Content filter: To ensure that your Google AdSense ads show only on those pages that seem to comply with Google AdSense policies, which can be important since some comments may render your pages inconsistent with those policies.</li>
 
52
  <li>IP filter: Ability to specify a list of computers where your ads will not be shown, in order to prevent accidental clicks on your own ads -- one of the main reasons AdSense bans you. These features will minimize your chance of getting banned.</li>
53
  <li>Compatibility mode: To solve the issue of the ad insertion messing up your page appearances when using some themes.</li>
54
  <li>Shortcode support: Show the ads only on the pages or posts you want, and exactly where you want them.</li>
55
  <li>Mobile support: Ability to suppress ads on mobile devices.</li>
56
  <li>Ability to show a configurable number of ads on Excerpts (which make up the home page in some themes)</li>
57
  <li>Real text-wrapping option in Leadout ad blocks. In the Lite version, text-wrapping in the lead-out ad block may fail in some cases.</li>'
58
+ );
59
 
60
+ $myPlugins['adsense-now'] = array('value' => 'AdSense Now!',
61
+ 'price' => '3.95',
62
+ 'share' => true,
63
+ 'long' => true,
64
+ 'blurb' => '<em><strong>AdSense Now!</strong></em> is an updated version of another popular (downloaded about 150,000 times) WordPress plugin. This premium plugin ',
65
+ 'desc' => 'gets you started with Google AdSense. No mess, no fuss.',
66
+ 'title' => '<em><strong>AdSense Now!</strong></em> is the simplest possible way to generate revenue from your blog using Google AdSense. Aiming at simplicity, <em><strong>AdSense Now!</strong></em> does only one thing: it puts your AdSense code in up to three spots in your posts and pages (both existing ones and those yet to be written).',
67
+ 'pro' => 'The Lite version of <em><strong>AdSense Now!</strong></em> is fully functional. In the Pro version, you get a filter to minimize the chance of your AdSense account getting banned. It uses a fast and effective keyword matching algorithm to examine the contents of each page on the fly and determines whether the page content could look offensive to Google. If so, it prevents your ads from appearing on those pages. And you can tweak the strength of the algorithm. The Pro version also lets you specify a list of computers where your ads will not be shown, in order to prevent accidental clicks on your own ads -- one of the main reasons AdSense bans you.',
68
+ 'benefits' => '<li>A safety filter to help you maintain your AdSense account standing. This fast and efficient filter will help keep your AdSense account in good standing by suppressing your ads on pages that may violate Google policies. For instance, if a visitor leaves a comment deemed offensive by Google, this filter will kick in as remove your ads from that page.</li>
 
69
  <li>Ability to suppress your ads on some IPs to prevent accidental clicks on your own ads -- one of the main reasons for getting your AdSense account banned. It will also help prevent intentional clicks (by your jealous competitor, for instance).</li>
70
+ <li>A compatibility mode, if the ad insertion messes up the page layout. Some poorly coded themes may get your pages messed up by ad insertion. The compatibility mode will help prevent it.</li>');
71
 
72
+ $myPlugins['theme-tweaker'] = array('value' => 'Theme Tweaker',
73
+ 'price' => '3.95',
74
+ 'share' => false,
75
+ 'long' => true,
76
+ 'blurb' => '<em><strong>Theme Tweaker</strong></em> is a remarkable plugin that ',
77
+ 'desc' => 'lets you modify the colors in your theme with no CSS/PHP editing.',
78
+ 'title' => '<em><strong>Theme Tweaker</strong></em> displays the existing colors from your current theme, and gives you a color picker to replace them. It also lets you change them in bulk, like invert all colors, use grey scale etc.',
79
+ 'pro' => 'Note that <em><strong>Theme Tweaker</strong></em> may not work with some themes. Please verify its suitability using the Lite version first. The Lite version of the plugin is fully functional. The Pro version lets you create and save your tweaked <code>style.css</code> files, and even generate your own child themes!',
80
+ 'benefits' => '<li>Ability to generate and download <code>style.css</code> files with your modified colors.</li>
 
81
  <li>Ability to create a child theme so that your changes can be applied even when the underlying theme is updated.</li>
82
+ <li>Scanning for *all* the style files in your theme directory to find all possible color definitions.</li>');
83
 
84
+ $myPlugins['easy-quiz'] = array('value' => 'Easy Quiz',
85
+ 'price' => '2.95',
86
+ 'share' => false,
87
+ 'long' => true,
88
+ 'blurb' => '<em><strong>Easy Quiz</strong></em> is a jQuery quiz plugin that ',
89
+ 'desc' => 'runs a simple but elegant quiz on your posts or pages.',
90
+ 'title' => '<em><strong>Easy Quiz</strong></em> displays the statements or questions you type into your post or page (surrounded by <code>[ezquiz][/ezquiz]</code> tag) as a neat quiz for your reader on his/her browser. The answers are not transfered to your server, and there is no extra server load in running the quiz.',
91
+ 'pro' => '<em><strong>Easy Quiz</strong></em>, in its lite form, comes with a standard color scheme. If you would like to modify the color scheme, please consider the Pro version. It gives you color pickers for all aspects of the quiz display so that you can perfectly match your theme. It also lets you have different types of quizes (true-or-false, fill-in-the-blanks, multiple-choice, etc.), which you can even mix and match within one test. The Lite version of the plugin is fully functional, but is limited to only true-or-false questions.',
92
+ 'benefits' => '<li>Different types of quizes (true-or-false, fill-in-the-blanks, multiple-choice, etc.).</li>
 
93
  <li>Ability to mix and match different types of questions within one quiz.</li>
94
  <li>Ability to tweak the quiz display colors.</li>
95
+ <li>Color pickers for customization with live preview on the admin page.</li>');
96
 
97
+ $myPlugins['easy-text-links'] = array('value' => 'Easy Text Links',
98
+ 'price' => '7.95',
99
+ 'share' => false,
100
+ 'long' => true,
101
+ 'blurb' => '<em><strong>Easy Text Links</strong></em> is a robust and modern advertising plugin that ',
102
+ 'desc' => 'helps you sell and manage text links on your blog.',
103
+ 'title' => '<em><strong>Easy Text Links</strong></em> helps you make extra revenue from your blog by selling text links. Text link advertising can be significantly more lucrative than contextual ads. This plugin automates the insertion and expiration of the links, and helps you with quick reminder emails to your advertisers. If you get a lot of advertising enquiries for text links, this is the right plugin for you.',
104
+ 'pro' => '<em><strong>Easy Text Links</strong></em>, in its light form, is already a powerful plugin. The Pro version lets you integrate seamlessly with Easy PayPal and fully automate your link sales, expiration and reminder emails.',
105
+ 'benefits' => '<li>Automated link sales and management.</li>
 
106
  <li>Automated email reminders, and subscription based links.</li>
107
  <li>Choice of several attractive Advertise Here images.</li>
108
+ <li>Dedicated dedicated and multi-insertable widget for displaying your links.</li>');
109
 
110
+ $myPlugins['easy-latex'] = array('value' => 'Easy WP LaTeX',
111
+ 'price' => '2.95',
112
+ 'share' => false,
113
+ 'long' => true,
114
+ 'blurb' => '<em><strong>Easy WP LaTeX</strong></em> is a premium plugin that ',
115
+ 'desc' => 'provides a very easy way to display math and equations in your posts.',
116
+ 'title' => '<em><strong>Easy WP LaTeX</strong></em> provides a very easy way to display equations or mathematical formulas (typed in as TeX or LaTeX code) in your posts. It translates LaTeX formulas like this [math](a+b)^2 = a^2 + b^2 + 2ab[/math] into this:<br/>&nbsp;&nbsp;&nbsp;&nbsp;<img src="http://l.wordpress.com/latex.php?latex=(a%2bb)^2%20=%20a^2%20%2b%20b^2%20%2b%202ab&amp;bg=E2E7FF&amp;s=1" style="vertical-align:-70%;" alt="(a+b)^2 = a^2 + b^2 + 2ab" />',
117
+ 'pro' => 'The Lite version of the plugin is fully functional. The Pro version gives you options to cache the equation images so that your pages load faster.');
 
118
 
119
+ $myPlugins['easy-translator'] = array('value' => 'Easy Translator',
120
+ 'price' => '1.95',
121
+ 'share' => false,
122
+ 'long' => true,
123
+ 'blurb' => '<em><strong>Easy Translator</strong></em> ',
124
+ 'desc' => 'is a plugin translation tool for authors and translators. (Not a blog page translator!)',
125
+ 'title' => '<em><strong>Easy Translator</strong></em> is a plugin to translate other plugins. It picks up translatable strings (in _[_e]() functions) and presents them and their existing translations (from the MO object of the current text-domain, if loaded) in a user editable form. It can generate a valid PO file that can be emailed to the plugin author directly from the its window, streamlining your work.',
126
+ 'pro' => 'The Lite version of Easy Translator is fully functional. The Pro version adds the ability to email the generated PO file directly, without having to save it and attach it to a mail message.');
 
127
 
128
+ $myPlugins['unreal-universe'] = array('value' => 'The Unreal Universe - eBook',
129
+ 'url' => 'http://www.theunrealuniverse.com',
130
+ 'amazon' => 'http://www.amazon.com/exec/obidos/ASIN/9810575947/unrblo-20',
131
+ 'price' => '1.49',
132
+ 'share' => false,
133
+ 'long' => true,
134
+ 'blurb' => '<em><strong>The Unreal Universe</strong></em> is a remarkable book on physics and philosophy, science and religion. This compelling read ',
135
+ 'desc' => 'will change the way you look at reality and understand the universe around you. Ever wonder why nothing can faster than light? And the Earth was void until God said "Let there be light"? Here are some of the answers.',
136
+ 'title' => '<em><strong>The Unreal Universe</strong></em> is a remarkable book on physics, philosophy and surprising interconnections among seemingly disconnected silos of human knowledge.',
137
+ 'pro' => '',
138
+ 'kind' => 'book');
 
139
 
140
+ $myPlugins['pqd'] = array('value' => 'How Does a Bank Work? - eBook',
141
+ 'url' => 'http://pqd.thulasidas.com',
142
+ 'amazon' => 'http://www.amazon.com/exec/obidos/ASIN/0470745703/unrblo-20',
143
+ 'price' => '5.49',
144
+ 'share' => false,
145
+ 'long' => true,
146
+ 'blurb' => 'This eBook companion to <em><strong>Principles of Quantitative Development</strong></em> is a lucid and succinct exposé on the trade life cycle and the business groups involved in managing it, bringing together the big picture of how a trade flows through the systems, and the role of a quantitative professional in the organization. This compelling book ',
147
+ 'desc' => 'looks at the need and demand for in-house trading platforms, addressing the current trends in the industry. It then looks at the trade life cycle and its participants, from beginning to end, and then the functions within the front, middle and back office, giving the reader a full understanding and appreciation of the perspectives and needs of each function.',
148
+ 'title' => '<em><strong>Principles of Quantitative Development</strong></em> has been enthusiastically endorsed by the leading professionals in the quantitative finance space, including <strong>Paul Wilmott</strong>.',
149
+ 'pro' => '',
150
+ 'kind' => 'book');
 
151
 
152
+ $myPlugins['iphoto-tagger'] = array('value' => 'iPhoto Tagger -- Helper for iPhoto imports',
153
+ 'price' => '1.99',
154
+ 'share' => false,
155
+ 'long' => true,
156
+ 'blurb' => '<em><strong>iPhotoTagger</strong></em> is for the budding photographer in you. This Mac program ',
157
+ 'desc' => 'will make your life a lot easier if you have to import your existing pohtos into your iPhoto Library. It highlights the import status of your photos using an easy-to-follow color scheme.',
158
+ 'title' => '<em><strong>iPhoto Tagger</strong></em> is a native Mac Application to locate and tag your existing photos depending on whether they have been imported into your iPhoto Library. It first goes through your iPhoto library and catalogs what you have there. It then scans the folder you specify and compares the photos in there with those in your library. If a photo is found exactly once, it will get a Green label, so that it stands out when you browse to it in your Finder (which is Mac-talk for Windows Explorer). Similarly, if the photo appears more than once in your iPhoto library, it will be tagged in Yellow. And, going the extra-mile, iPhotoTagger will color your folder Green if all the photos within have been imported into your iPhoto library. Those folders that have been partially imported will be tagged Yellow.',
159
+ 'pro' => 'The Lite version of <em><strong>iPhoto Tagger</strong></em> is fully functional and makes the lists of the photos to be tagged. The Pro version adds the ability to automatically label those photos using Spotlight colors so that they stand out while browsing in Finder.',
160
+ 'kind' => 'app');
 
161
 
162
+ $myPlugins['ezpaypal'] = array('value' => 'ezPayPal',
163
+ 'price' => '4.95',
164
+ 'share' => false,
165
+ 'long' => true,
166
+ 'hide' => true,
167
+ 'blurb' => '<em><strong>ezPayPal</strong></em> is the simplest possible way to sell your digital goods online. Do you have an application, PHP package, photograph, PDF book (or any other downloadable item) to sell? Find the set up of a shopping cart system too overwhelming? <em>ezPayPal</em> may be the right solution for you. It ',
168
+ 'desc' => 'gets you started with your online business. Easy and simple!',
169
+ 'title' => '<em><strong>ezPayPal</strong></em> helps you quickly set up an online store to sell any downloadable item, where your buyers can pay for it and get an automatic, expiring download link. The whole flow is fully automated and designed to run unattended.',
170
+ 'pro' => 'The Lite version of <em><strong>ezPayPal</strong></em> is fully functional. But the Pro version gives you more features and control. The Pro version has improved data security, sandbox mode, database backup and restore, security audit, data migration tools, template editor, email facilities, upgradeable products and so on. Please follow the more info link for details.',
171
+ 'benefits' => '<li><em>Data Security</em>: The <em>Pro</em> version takes special measures to set up data verification links to ensure your sales data is safe and not susceptible to corruption. In technical terms, it checks for the existence of InnoDB in your MySQL installation, and uses it if found, setting up foreign keys to ensure referential integrity, and indices to guarantee performance. The Lite version uses the default MyISAM engine, fast and simple, but not exactly secure.</li>
 
172
  <li><em>Sandbox Mode</em>: In the <em>Pro</em> version, you have the option to choose PayPal sandbox mode so that you can check your setup before going live.</li>
173
  <li><em>DB Backup</em>: The <em>Pro</em> version has an option to generate a backup of your sales info to download to a safe location.</li>
174
  <li><em>DB Restore</em>: It also provides a means to restore (of course) a previously backed up data file, overwriting (or appending to, as you wish) the existing sales info.</li>
179
  <li><em>Additional Tools</em>: The <em>Pro</em> version also gives you a bunch of tools (php example files) that can help you migrate your existing sales data or product definitions.</li>
180
  <li><em>Email facilities</em>: You can select a number of your buyers to notify, for example, of a critical update of your products, or of a free upgrade opportunity.</li>
181
  <li><em>Upgradeable Products</em>: You can define products that are upgradeable. For instance, you can sell a short eBook at an introductory price. If your buyer likes it, he has the option of buying the full book by paying the difference.</li>
182
+ ');
183
 
184
  if (!function_exists('renderInvite')) {
185
+
186
+ function renderInvite($plg, $plgName) {
187
+ $plgLongName = $plg['value'];
188
+ $plgPrice = $plg['price'];
189
+ $benefits = $plg['benefits'];
190
+ $yesTip = sprintf(__('Buy %s Pro for $%s. PayPal payment. Instant download.', 'easy-adsenser'), $plgLongName, $plgPrice);
191
+ $yesTitle = __('Get the Pro version now!', 'easy-adsenser');
192
+ $noTip = __('Continue using the Lite version, and hide this message. After clicking this button, please remember to save your options to hide this box for good.', 'easy-adsenser');
193
+ $noTitle = __('Stay Lite', 'easy-adsenser');
194
+ if (empty($benefits)) {
195
+ return;
196
+ }
197
+ echo <<<ENDINVITE
198
  <input type="hidden" id="killInvites" name="killInvites" value="" />
199
  <div class="updated" id="tnc">
200
  <p><h3>Want More Features? <a href="#" onmouseover="Tip('$yesTip', WIDTH, 200, CLICKCLOSE, true, TITLE, '$yesTitle')" onmouseout="UnTip()" onclick = "buttonwhich('Yes')">Go Pro!</a></h3>
220
  </script>
221
  </div>
222
  ENDINVITE;
223
+ }
224
+
225
  }
226
  if (!function_exists('renderRating')) {
227
+
228
  function renderRating($plg, $plgDir, $killable = true) {
229
+ $plgCTime = filemtime($plgDir);
230
+ $plgLongName = $plg['value'];
231
+ $hideTip = __('Click the link to hide this box. After clicking this link, please remember to save your options to hide this box for good.', 'easy-adsenser');
232
+ if (time() > $plgCTime + (60 * 60 * 24 * 30)) {
233
+ $msg = "You've installed this plugin over a month ago.";
234
+ }
235
+ else {
236
+ $msg = "You will find it feature-rich and robust.";
237
+ }
238
+ $plgKey = basename($plgDir);
239
+ $display = '';
240
+ if (!$killable) {
241
+ $display = "style='display:none'";
242
+ }
243
+ echo <<<ENDRATING
244
  <div class='updated' id='rating'>
245
  <p>Thanks for using <i><b>$plgLongName</b></i>! $msg <br />
246
  If you are satisfied with how well it works, why not <a href='http://wordpress.org/extend/plugins/$plgKey/' onclick="popupwindow('http://wordpress.org/extend/plugins/$plgKey/','Rate it', 1024, 768);return false;">rate it</a>
259
  }
260
  </script>
261
  ENDRATING;
262
+ }
263
+
264
  }
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: 6.50
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
 
@@ -41,13 +41,13 @@ Easy AdSense is the freely distributed version of a premium plugin. The [Pro ver
41
 
42
  = New in this Release =
43
 
44
- Compatibility checks for WordPress V3.8. Admin page updates.
45
 
46
  == Upgrade Notice ==
47
 
48
- = 6.50 =
49
 
50
- Compatibility checks for WordPress V3.8. Admin page updates.
51
 
52
  == Screenshots ==
53
 
@@ -131,6 +131,7 @@ A big "Thank You" to all my translators. Easy AdSense V2.6+ sports an *Easy Tran
131
 
132
  == Change Log ==
133
 
 
134
  * V6.50: Compatibility checks for WordPress V3.8. Admin page updates [Dec 17, 2013]
135
  * V6.40: Compatibility checks for WordPress V3.7. Translation updates. [Nov 11, 2013]
136
  * V6.31: Translation updates. Documentation changes. [Aug 22, 2013]
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: 6.51
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
 
41
 
42
  = New in this Release =
43
 
44
+ Adding options to suppress ads on sticky front page or search pages.
45
 
46
  == Upgrade Notice ==
47
 
48
+ = 6.51 =
49
 
50
+ Adding options to suppress ads on sticky front page or search pages.
51
 
52
  == Screenshots ==
53
 
131
 
132
  == Change Log ==
133
 
134
+ * V6.51: Adding options to suppress ads on sticky front page or search pages. [Jan 7, 2014]
135
  * V6.50: Compatibility checks for WordPress V3.8. Admin page updates [Dec 17, 2013]
136
  * V6.40: Compatibility checks for WordPress V3.7. Translation updates. [Nov 11, 2013]
137
  * V6.31: Translation updates. Documentation changes. [Aug 22, 2013]
support.php CHANGED
@@ -1,62 +1,63 @@
1
  <?php
2
- function ezPluginInfo(){
3
- $me = basename(dirname(__FILE__)) ;
4
- $plugins = get_plugins() ;
5
- $ret = array('Version' => '', 'Info' => '') ;
6
- $break = '' ;
 
7
  foreach ($plugins as $k => $p) {
8
- $baseDir = dirname($k) ;
9
  if ($baseDir == $me) {
10
- $version = $p['Version'] ;
11
  if (!empty($_SERVER['HTTP_REFERER'])) {
12
  $referer = $_SERVER['HTTP_REFERER'];
13
  }
14
  else {
15
  $referer = 'Unknown';
16
  }
17
- $info = "$break{$p['Title']} V{$p['Version']} (Referer: $referer)" ;
18
- $ret[] = array('Version' => $version, 'Info' => $info) ;
19
  }
20
  }
21
- return $ret ;
22
  }
 
23
  function renderSupport($name, $plg) {
24
- $plugindir = get_option('siteurl') . '/' . PLUGINDIR . '/' . basename(dirname(__FILE__)) ;
25
  $value = $plg['value'];
26
- $desc = $plg['desc'] ;
27
- $url = 'http://www.thulasidas.com/plugins/' . $name . '#faq' ;
28
- $link = '<a href="' . $url . '" target="_blank">' . $value . '</a>' ;
29
- echo "&nbsp;<a href='http://support.thulasidas.com' onclick=\"popupwindow('http://support.thulasidas.com','ezSupport for $value', 1024, 768);return false;\" title='" ;
30
- _e('Ask a support question (in English or French only) via ezSupport @ $0.95', 'easy-adsenser') ;
31
- echo "'><img src='$plugindir/ezsupport.png' class='alignright' alt='ezSupport Portal'/></a>" ;
32
- printf(__("If you need help with %s, please read the FAQ section on the $link page. It may answer all your questions.", 'easy-adsenser'), $value, $link) ;
33
- echo "<br style='line-height: 20px;'/>" ;
34
- _e("Or, if you still need help, you can raise a support ticket.", 'easy-adsenser') ;
35
- echo "&nbsp;<a href='http://support.thulasidas.com' onclick=\"popupwindow('http://support.thulasidas.com','ezSupport for $value', 1024, 768);return false;\" title='" ;
36
- _e('Ask a support question (in English or French only) via ezSupport @ $0.95', 'easy-adsenser') ;
37
- echo "'>" ;
38
- _e("[Request Paid Support]", 'easy-adsenser') ;
39
- $info = ezPluginInfo() ;
40
- echo "</a>&nbsp;<small><em>[" ;
41
- _e('Using our ezSupport Ticket System.', 'easy-adsenser') ;
42
- echo "]</em></small>" ;
43
- echo "<small style='float:right'><em>[" ;
44
- printf(__('You are using %s (V%s)', 'easy-adsenser'), $value, $info[0]['Version']) ;
45
- echo "]</em></small>" ;
46
- $_SESSION['ezSupport'] = $info[0]['Info'] ;
47
  }
48
 
49
- function renderTranslator($plgName){
50
  $locale = get_locale();
51
  if (strncmp($locale, "en", 2) == 0) {
52
  return;
53
  }
54
  if ($plgName == 'adsense-now' ||
55
- $plgName == 'easy-adsense' ||
56
- $plgName == 'easy-translator') {
57
  return;
58
  }
59
- echo '<div style="background-color:#ddd;padding:5px;border: solid 1px;margin:5px;">' ;
60
  echo "<script type='text/javascript'>
61
  <!--
62
  function hideTranslator(id, btn, translator) {
@@ -116,4 +117,4 @@ function googleTranslateElementInit() {
116
 
117
  renderTranslator($plgName);
118
 
119
- renderSupport($plgName, $myPlugins[$plgName]) ;
1
  <?php
2
+
3
+ function ezPluginInfo() {
4
+ $me = basename(dirname(__FILE__));
5
+ $plugins = get_plugins();
6
+ $ret = array('Version' => '', 'Info' => '');
7
+ $break = '';
8
  foreach ($plugins as $k => $p) {
9
+ $baseDir = dirname($k);
10
  if ($baseDir == $me) {
11
+ $version = $p['Version'];
12
  if (!empty($_SERVER['HTTP_REFERER'])) {
13
  $referer = $_SERVER['HTTP_REFERER'];
14
  }
15
  else {
16
  $referer = 'Unknown';
17
  }
18
+ $info = "$break{$p['Title']} V{$p['Version']} (Referer: $referer)";
19
+ $ret[] = array('Version' => $version, 'Info' => $info);
20
  }
21
  }
22
+ return $ret;
23
  }
24
+
25
  function renderSupport($name, $plg) {
26
+ $plugindir = get_option('siteurl') . '/' . PLUGINDIR . '/' . basename(dirname(__FILE__));
27
  $value = $plg['value'];
28
+ $url = 'http://www.thulasidas.com/plugins/' . $name . '#faq';
29
+ $link = '<a href="' . $url . '" target="_blank">' . $value . '</a>';
30
+ echo "&nbsp;<a href='http://support.thulasidas.com' onclick=\"popupwindow('http://support.thulasidas.com','ezSupport for $value', 1024, 768);return false;\" title='";
31
+ _e('Ask a support question (in English or French only) via ezSupport @ $0.95', 'easy-adsenser');
32
+ echo "'><img src='$plugindir/ezsupport.png' class='alignright' alt='ezSupport Portal'/></a>";
33
+ printf(__("If you need help with %s, please read the FAQ section on the $link page. It may answer all your questions.", 'easy-adsenser'), $value, $link);
34
+ echo "<br style='line-height: 20px;'/>";
35
+ _e("Or, if you still need help, you can raise a support ticket.", 'easy-adsenser');
36
+ echo "&nbsp;<a href='http://support.thulasidas.com' onclick=\"popupwindow('http://support.thulasidas.com','ezSupport for $value', 1024, 768);return false;\" title='";
37
+ _e('Ask a support question (in English or French only) via ezSupport @ $0.95', 'easy-adsenser');
38
+ echo "'>";
39
+ _e("[Request Paid Support]", 'easy-adsenser');
40
+ $info = ezPluginInfo();
41
+ echo "</a>&nbsp;<small><em>[";
42
+ _e('Using our ezSupport Ticket System.', 'easy-adsenser');
43
+ echo "]</em></small>";
44
+ echo "<small style='float:right'><em>[";
45
+ printf(__('You are using %s (V%s)', 'easy-adsenser'), $value, $info[0]['Version']);
46
+ echo "]</em></small>";
47
+ $_SESSION['ezSupport'] = $info[0]['Info'];
 
48
  }
49
 
50
+ function renderTranslator($plgName) {
51
  $locale = get_locale();
52
  if (strncmp($locale, "en", 2) == 0) {
53
  return;
54
  }
55
  if ($plgName == 'adsense-now' ||
56
+ $plgName == 'easy-adsense' ||
57
+ $plgName == 'easy-translator') {
58
  return;
59
  }
60
+ echo '<div style="background-color:#ddd;padding:5px;border: solid 1px;margin:5px;">';
61
  echo "<script type='text/javascript'>
62
  <!--
63
  function hideTranslator(id, btn, translator) {
117
 
118
  renderTranslator($plgName);
119
 
120
+ renderSupport($plgName, $myPlugins[$plgName]);
tail-text.php CHANGED
@@ -1,137 +1,166 @@
1
  <?php
2
  /*
3
- Copyright (C) 2008 www.thulasidas.com
4
 
5
- This file is part of the programs "Easy AdSense", "AdSense Now!",
6
- "Theme Tweaker", "Easy LaTeX", "More Money" and "Easy Translator".
7
 
8
- These programs are free software; you can redistribute them and/or
9
- modify it under the terms of the GNU General Public License as
10
- published by the Free Software Foundation; either version 3 of the
11
- License, or (at your option) any later version.
12
 
13
- These programs are distributed in the hope that they will be useful,
14
- but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
- General Public License for more details.
17
 
18
- You should have received a copy of the GNU General Public License
19
- along with the programs. If not, see <http://www.gnu.org/licenses/>.
20
- */
21
 
22
- function makeTextWithTooltip($text, $tip, $title='', $width='')
23
- {
24
- if (!empty($title))
25
  $titleText = "TITLE, '$title',STICKY, 1, CLOSEBTN, true, CLICKCLOSE, true,";
26
- if (!empty($width))
27
- $widthText = "WIDTH, $width," ;
 
 
28
  $return = "<span style='text-decoration:none' " .
29
- "onmouseover=\"Tip('". htmlspecialchars($tip) . "', " .
30
- "$widthText $titleText FIX, [this, 5, 5])\" " .
31
- "onmouseout=\"UnTip()\">$text</span>" ;
32
- return $return ;
33
  }
34
- function makeTextWithTooltipTag($plg, $text, $tip, $title='', $width='')
35
- {
36
- if (!empty($title))
37
  $titleText = "TITLE, '$title',STICKY, 1, CLOSEBTN, true, CLICKCLOSE, true,";
38
- if (!empty($width))
39
- $widthText = "WIDTH, $width," ;
 
 
40
  $return = "<span style='text-decoration:none' " .
41
- "onmouseover=\"TagToTip('". $plg . "', " .
42
- "$widthText $titleText FIX, [this, 5, 5])\" " .
43
- "onmouseout=\"UnTip()\">$text</span>" ;
44
- return $return ;
45
  }
 
46
  function renderPlg($name, $plg) {
47
- if (!empty($plg['hide']) && $plg['hide']) return ;
48
- $plugindir = get_option('siteurl') . '/' . PLUGINDIR . '/' . basename(dirname(__FILE__)) ;
49
- if (!empty($plg['kind']) && $plg['kind'] != '' && $plg['kind'] != 'plugin') return ;
50
- $value = '<em><strong>'.$plg['value'].'</strong></em>';
51
- $desc = $plg['desc'] ;
52
- $title = $plg['title'] ;
53
- $url = 'http://www.thulasidas.com/plugins/' . $name ;
54
- $link = '<b><a href="' . $url . '" target="_blank">' . $value . '</a></b>&nbsp; ' ;
55
- $text = $link . $desc ;
56
- $price = $plg['price'] ;
57
- $moreInfo = "&nbsp;&nbsp;<a href='http://www.thulasidas.com/plugins/$name' title='More info about $value at Unreal Blog'>More Info</a> " ;
58
- $liteVersion = "&nbsp;&nbsp; <a href='http://buy.thulasidas.com/lite/$name.zip' title='Download the Lite version of $value'>Get Lite Version</a> " ;
59
- $proVersion = "&nbsp;&nbsp; <a href='http://buy.thulasidas.com/$name' title='Buy the Pro version of $value for \$$price' onclick=\"popupwindow('http://buy.thulasidas.com/$name','Get {$plg['value']}', 1024, 768);return false;\">Get Pro Version</a><br />" ;
60
- $why = "<a href='http://buy.thulasidas.com/$name' title='Buy the Pro version of the $name plugin' onclick=\"popupwindow('http://buy.thulasidas.com/$name','Get {$plg['value']}', 1024, 768);return false;\"><img src='$plugindir/ezpaypal.png' alt='ezPayPal -- Instant PayPal Shop.' class='alignright' /></a>
61
- <br />".$plg['pro'] ;
 
 
 
 
 
62
  echo "<li>" . makeTextWithTooltip($text, $title, $value, 350) .
63
- "<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" .
64
- makeTextWithTooltip($moreInfo, "Read more about $value at its own page.<br />".$title, "More Information about $value", 300) .
65
- makeTextWithTooltip($liteVersion, $title, "Download $value - the Lite version", 300) .
66
- makeTextWithTooltipTag($name, $proVersion, $why, "Get $value Pro!", 300) .
67
- "<span id=$name> $why </span>" .
68
- "</li>\n" ;
69
  }
 
70
  function renderBook($name, $plg) {
71
- $plugindir = get_option('siteurl') . '/' . PLUGINDIR . '/' . basename(dirname(__FILE__)) ;
72
- if (empty($plg['kind']) || $plg['kind'] != 'book') return ;
73
- $value = '<em><strong>'.$plg['value'].'</strong></em>';
74
- $desc = $plg['desc'] ;
75
- $title = $plg['title'] ;
76
- $url = $plg['url'] ;
77
- $link = '<b><a href="' . $url . '" target="_blank">' . $value . '</a></b>&nbsp; ' ;
78
- $text = $link . $desc ;
79
- $price = $plg['price'] ;
80
- $moreInfo = "&nbsp;&nbsp; <a href='$url' title='More info about $value'>More Info</a> " ;
81
- $amazon = $plg['amazon'] ;
82
- if (!empty($amazon)) $buyAmazon = "&nbsp;&nbsp; <a href='$amazon' title='Get $value from Amazon.com'>Get it at Amazon</a> " ;
83
- $buyNow = "&nbsp;&nbsp; <a href='http://buy.thulasidas.com/$name' title='Buy and download $value for \$$price'>Buy and Download now!</a><br />" ;
84
- $why = "<a href='http://buy.thulasidas.com/$name' title='$name' onclick=\"popupwindow('http://buy.thulasidas.com/$name','Get {$plg['value']}', 1024, 768);return false;\"><img src='$plugindir/ezpaypal.png' alt='ezPayPal -- Instant PayPal Shop.' class='alignright' /></a>
85
- <br />".$title.$desc." $value costs only \$$price -- direct from the author." ;
 
 
 
 
 
86
  echo "<li>" . makeTextWithTooltip($text, $title, $value, 350) .
87
- "<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" .
88
- makeTextWithTooltip($moreInfo, "Read all about $value at its own site.<br />", "$value", 300) .
89
- makeTextWithTooltip($buyAmazon, $title, "Buy $value from Amazon", 350) .
90
- makeTextWithTooltipTag("$name-book", $buyNow, $why, "Buy $value!", 300) .
91
- "<span id=$name-book> $why </span>" .
92
- "</li>\n" ;
93
  }
94
  ?>
95
 
96
  <table class="form-table" >
97
- <tr>
98
- <td>
99
- <ul style="padding-left:10px;list-style-type:circle; list-style-position:inside;" >
100
- <li>
101
- <?php _e('Check out my other plugin and PHP efforts:', 'easy-adsenser') ; ?>
102
- <script type = "text/javascript">
103
- function popupwindow(url, title, w, h){ var left =(screen.width/2)-(w/2); var top =(screen.height/2)-(h/2); return window.open(url, title,'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width='+w+', height='+h+', top='+top+', left='+left);}
104
- </script>
105
- <ul style="margin-left:0px; padding-left:30px;list-style-type:square; list-style-position:inside;" >
 
 
 
 
106
 
107
  <?php
108
- $myPluginsU = array_unique($myPlugins, SORT_REGULAR);
109
- unset($myPluginsU[$plgName]);
110
- foreach ($myPluginsU as $k => $p) {
111
- if (isset($p['hide']) || isset($p['kind'])) unset($myPluginsU[$k]);
 
 
 
 
 
 
 
112
  }
113
- $keys = array_rand($myPluginsU, 3);
114
- foreach ($keys as $name) if ($name != $plgName) renderPlg($name, $myPluginsU[$name]) ;
115
  ?>
116
 
117
- </ul>
118
- </li>
119
 
120
- <li>
121
- <?php _e('My Books -- on Physics, Philosophy, making Money etc:', 'easy-adsenser') ; ?>
122
 
123
- <ul style="margin-left:0px; padding-left:30px;list-style-type:square; list-style-position:inside;" >
124
 
125
- <?php
126
- foreach ($myPlugins as $name => $plg){ renderBook($name, $plg) ;}
127
- ?>
 
 
128
 
129
- </ul>
130
- </li>
131
 
132
- </ul>
133
 
134
- </td>
135
- </tr>
 
 
 
136
 
137
- <?php echo '</table>' ; ?>
1
  <?php
2
  /*
3
+ Copyright (C) 2008 www.thulasidas.com
4
 
5
+ This file is part of the programs "Easy AdSense", "AdSense Now!",
6
+ "Theme Tweaker", "Easy LaTeX", "More Money" and "Easy Translator".
7
 
8
+ These programs are free software; you can redistribute them and/or
9
+ modify it under the terms of the GNU General Public License as
10
+ published by the Free Software Foundation; either version 3 of the
11
+ License, or (at your option) any later version.
12
 
13
+ These programs are distributed in the hope that they will be useful,
14
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
+ General Public License for more details.
17
 
18
+ You should have received a copy of the GNU General Public License
19
+ along with the programs. If not, see <http://www.gnu.org/licenses/>.
20
+ */
21
 
22
+ function makeTextWithTooltip($text, $tip, $title = '', $width = '') {
23
+ if (!empty($title)) {
 
24
  $titleText = "TITLE, '$title',STICKY, 1, CLOSEBTN, true, CLICKCLOSE, true,";
25
+ }
26
+ if (!empty($width)) {
27
+ $widthText = "WIDTH, $width,";
28
+ }
29
  $return = "<span style='text-decoration:none' " .
30
+ "onmouseover=\"Tip('" . htmlspecialchars($tip) . "', " .
31
+ "$widthText $titleText FIX, [this, 5, 5])\" " .
32
+ "onmouseout=\"UnTip()\">$text</span>";
33
+ return $return;
34
  }
35
+
36
+ function makeTextWithTooltipTag($plg, $text, $tip, $title = '', $width = '') {
37
+ if (!empty($title)) {
38
  $titleText = "TITLE, '$title',STICKY, 1, CLOSEBTN, true, CLICKCLOSE, true,";
39
+ }
40
+ if (!empty($width)) {
41
+ $widthText = "WIDTH, $width,";
42
+ }
43
  $return = "<span style='text-decoration:none' " .
44
+ "onmouseover=\"TagToTip('" . $plg . "', " .
45
+ "$widthText $titleText FIX, [this, 5, 5])\" " .
46
+ "onmouseout=\"UnTip()\">$text</span>";
47
+ return $return;
48
  }
49
+
50
  function renderPlg($name, $plg) {
51
+ if (!empty($plg['hide']) && $plg['hide']) {
52
+ return;
53
+ }
54
+ $plugindir = get_option('siteurl') . '/' . PLUGINDIR . '/' . basename(dirname(__FILE__));
55
+ if (!empty($plg['kind']) && $plg['kind'] != 'plugin') {
56
+ return;
57
+ }
58
+ $value = '<em><strong>' . $plg['value'] . '</strong></em>';
59
+ $desc = $plg['desc'];
60
+ $title = $plg['title'];
61
+ $url = 'http://www.thulasidas.com/plugins/' . $name;
62
+ $link = '<b><a href="' . $url . '" target="_blank">' . $value . '</a></b>&nbsp; ';
63
+ $text = $link . $desc;
64
+ $price = $plg['price'];
65
+ $onclick = "onclick=\"popupwindow('http://buy.thulasidas.com/$name','Get {$plg['value']}', 1024, 768);return false;\"";
66
+ $moreInfo = "&nbsp;&nbsp;<a href='http://www.thulasidas.com/plugins/$name' title='More info about $value at Unreal Blog'>More Info</a> ";
67
+ $liteVersion = "&nbsp;&nbsp; <a href='http://buy.thulasidas.com/lite/$name.zip' title='Download the Lite version of $value'>Get Lite Version</a> ";
68
+ $proVersion = "&nbsp;&nbsp; <a href='http://buy.thulasidas.com/$name' title='Buy the Pro version of $value for \$$price' $onclick>Get Pro Version</a><br />";
69
+ $why = "<a href='http://buy.thulasidas.com/$name' title='Buy the Pro version of the $name plugin' $onclick><img src='$plugindir/ezpaypal.png' alt='ezPayPal -- Instant PayPal Shop.' class='alignright' /></a>
70
+ <br />" . $plg['pro'];
71
  echo "<li>" . makeTextWithTooltip($text, $title, $value, 350) .
72
+ "<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" .
73
+ makeTextWithTooltip($moreInfo, "Read more about $value at its own page.<br />" . $title, "More Information about $value", 300) .
74
+ makeTextWithTooltip($liteVersion, $title, "Download $value - the Lite version", 300) .
75
+ makeTextWithTooltipTag($name, $proVersion, $why, "Get $value Pro!", 300) .
76
+ "<span id=$name> $why </span>" .
77
+ "</li>\n";
78
  }
79
+
80
  function renderBook($name, $plg) {
81
+ $plugindir = get_option('siteurl') . '/' . PLUGINDIR . '/' . basename(dirname(__FILE__));
82
+ if (empty($plg['kind']) || $plg['kind'] != 'book') {
83
+ return;
84
+ }
85
+ $value = '<em><strong>' . $plg['value'] . '</strong></em>';
86
+ $desc = $plg['desc'];
87
+ $title = $plg['title'];
88
+ $url = $plg['url'];
89
+ $link = '<b><a href="' . $url . '" target="_blank">' . $value . '</a></b>&nbsp; ';
90
+ $text = $link . $desc;
91
+ $price = $plg['price'];
92
+ $onclick = "onclick=\"popupwindow('http://buy.thulasidas.com/$name','Get {$plg['value']}', 1024, 768);return false;\"";
93
+ $moreInfo = "&nbsp;&nbsp; <a href='$url' title='More info about $value' target=_blank>More Info</a> ";
94
+ $amazon = $plg['amazon'];
95
+ if (!empty($amazon)) {
96
+ $buyAmazon = "&nbsp;&nbsp; <a href='$amazon' title='Get $value from Amazon.com' target=_blank>Get it at Amazon</a> ";
97
+ }
98
+ $buyNow = "&nbsp;&nbsp; <a href='http://buy.thulasidas.com/$name' title='Buy and download $value for \$$price' target=_blank $onclick>Buy and Download now!</a><br />";
99
+ $why = "<a href='http://buy.thulasidas.com/$name' title='$name' $onclick><img src='$plugindir/ezpaypal.png' alt='ezPayPal -- Instant PayPal Shop.' class='alignright' /></a>
100
+ <br />" . $title . $desc . " $value costs only \$$price -- direct from the author.";
101
  echo "<li>" . makeTextWithTooltip($text, $title, $value, 350) .
102
+ "<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" .
103
+ makeTextWithTooltip($moreInfo, "Read all about $value at its own site.<br />", "$value", 300) .
104
+ makeTextWithTooltip($buyAmazon, $title, "Buy $value from Amazon", 350) .
105
+ makeTextWithTooltipTag("$name-book", $buyNow, $why, "Buy $value!", 300) .
106
+ "<span id=$name-book> $why </span>" .
107
+ "</li>\n";
108
  }
109
  ?>
110
 
111
  <table class="form-table" >
112
+ <tr>
113
+ <td>
114
+ <ul style="padding-left:10px;list-style-type:circle; list-style-position:inside;" >
115
+ <li>
116
+ <?php _e('Check out my other plugin and PHP efforts:', 'easy-adsenser'); ?>
117
+ <script type = "text/javascript">
118
+ function popupwindow(url, title, w, h) {
119
+ var left = (screen.width / 2) - (w / 2);
120
+ var top = (screen.height / 2) - (h / 2);
121
+ return window.open(url, title, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=' + w + ', height=' + h + ', top=' + top + ', left=' + left);
122
+ }
123
+ </script>
124
+ <ul style="margin-left:0px; padding-left:30px;list-style-type:square; list-style-position:inside;" >
125
 
126
  <?php
127
+ $myPluginsU = array_unique($myPlugins, SORT_REGULAR);
128
+ unset($myPluginsU[$plgName]);
129
+ foreach ($myPluginsU as $k => $p) {
130
+ if (isset($p['hide']) || isset($p['kind'])) {
131
+ unset($myPluginsU[$k]);
132
+ }
133
+ }
134
+ $keys = array_rand($myPluginsU, 3);
135
+ foreach ($keys as $name) {
136
+ if ($name != $plgName) {
137
+ renderPlg($name, $myPluginsU[$name]);
138
  }
139
+ }
 
140
  ?>
141
 
142
+ </ul>
143
+ </li>
144
 
145
+ <li>
146
+ <?php _e('My Books -- on Physics, Philosophy, making Money etc:', 'easy-adsenser'); ?>
147
 
148
+ <ul style="margin-left:0px; padding-left:30px;list-style-type:square; list-style-position:inside;" >
149
 
150
+ <?php
151
+ foreach ($myPlugins as $name => $plg) {
152
+ renderBook($name, $plg);
153
+ }
154
+ ?>
155
 
156
+ </ul>
157
+ </li>
158
 
159
+ </ul>
160
 
161
+ </td>
162
+ </tr>
163
+
164
+ <?php
165
+ echo '</table>';
166
 
 
why-pro.php CHANGED
@@ -1,18 +1,13 @@
1
  <?php
2
 
3
  function renderWhyPro($name, $plg) {
4
- $plugindir = get_option('siteurl') . '/' . PLUGINDIR . '/' . basename(dirname(__FILE__)) ;
5
  $value = $plg['value'];
6
- $desc = $plg['desc'] ;
7
- $toolTip = $plg['title'] ;
8
- $url = 'http://www.thulasidas.com/plugins/' . $name ;
9
- $link = "<b><a href='$url' target='_blank'>$value</a> </b>" ;
10
- $text = $link . $desc ;
11
- $price = $plg['price'] ;
12
- $moreInfo = " &nbsp; &nbsp; <a href='http://www.thulasidas.com/plugins/$name' title='More info about $value'> More Info </a>" .
13
- "&nbsp; <a href='http://buy.thulasidas.com/$name' onclick=\"popupwindow('http://buy.thulasidas.com/$name','Get $value', 1024, 768);return false;\" title='Buy the Pro version of $value for \$$price'>Get Pro Version</a>" ;
14
- $toolTip .= addslashes('<br />' . $moreInfo) ;
15
- $why = addslashes($plg['pro']) ;
16
  echo "<b>Get Pro Version!</b>
17
  <a href='http://buy.thulasidas.com/$name' title='Buy the Pro version of the $value plugin for \$$price'><img src='$plugindir/ezpaypal.png' alt='ezPayPal -- Your Instant PayPal Shop.' class='alignright' onclick=\"popupwindow('http://buy.thulasidas.com/$name','Get $value', 1024, 768);return false;\"/></a>
18
  <br />
@@ -20,8 +15,7 @@ You are using the Lite version of $value, which is available in two versions: <b
20
  <ul><li>
21
  $moreInfo
22
  <li>$why</li>
23
- </ul>" ;
24
  }
25
 
26
- renderWhyPro($plgName, $myPlugins[$plgName]) ;
27
- ?>
1
  <?php
2
 
3
  function renderWhyPro($name, $plg) {
4
+ $plugindir = get_option('siteurl') . '/' . PLUGINDIR . '/' . basename(dirname(__FILE__));
5
  $value = $plg['value'];
6
+ $toolTip = $plg['title'];
7
+ $price = $plg['price'];
8
+ $moreInfo = " &nbsp; &nbsp; <a href='http://www.thulasidas.com/plugins/$name' title='More info about $value'> More Info </a>&nbsp; <a href='http://buy.thulasidas.com/$name' onclick=\"popupwindow('http://buy.thulasidas.com/$name','Get $value', 1024, 768);return false;\" title='Buy the Pro version of $value for \$$price'>Get Pro Version</a>";
9
+ $toolTip .= addslashes('<br />' . $moreInfo);
10
+ $why = addslashes($plg['pro']);
 
 
 
 
 
11
  echo "<b>Get Pro Version!</b>
12
  <a href='http://buy.thulasidas.com/$name' title='Buy the Pro version of the $value plugin for \$$price'><img src='$plugindir/ezpaypal.png' alt='ezPayPal -- Your Instant PayPal Shop.' class='alignright' onclick=\"popupwindow('http://buy.thulasidas.com/$name','Get $value', 1024, 768);return false;\"/></a>
13
  <br />
15
  <ul><li>
16
  $moreInfo
17
  <li>$why</li>
18
+ </ul>";
19
  }
20
 
21
+ renderWhyPro($plgName, $myPlugins[$plgName]);