.
*/
function renderHeadText($name, $plg) {
$plugindir = get_option('siteurl') . '/' . PLUGINDIR . '/' . basename(dirname(__FILE__)) ;
$value = ''.$plg['value'].'';
$desc = $plg['desc'] ;
$toolTip = $plg['title'] ;
$url = 'http://www.thulasidas.com/plugins/' . $name ;
$link = '' . $value . ' ' ;
$text = $link . $desc ;
$price = $plg['price'] ;
$moreInfo =
"Pro Version" ;
$toolTip .= addslashes('
' . $moreInfo) ;
$why = addslashes($plg['pro']) ;
$version = 'Lite' ;
echo "Get Pro Version!
You are using the $version version of $value, which is also available as in a Pro version.
The Pro Version
' ;
$value .= '
Lite' ;
echo "Thank you for using $value. The \"Pro\" version gives you more options$filter. Consider
buying it. It costs only \$$price." ;
echo "
" ;
renderHeadText($name, $plg) ;
echo "
" ;
}
function renderAffiliate() {
$plugindir = get_option('siteurl') . '/' . PLUGINDIR . '/' . basename(dirname(__FILE__)) ;
echo "
ezAffiliates: The most affiliate-centric revenue sharing model on the Web. Finally, you can make some serious returns on your web presence.
Generous 50% Commission: 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!
$10 Minimum Payout so that you will not be waiting forever before you qualify for payment.
Lifetime Tracking: 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!
High Quality Products such as this plugin, and other premium plugins and PHP packages.
Diverse Markets: 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()\" >

" ;
}
function renderSupportText($name, $plg, $long=true) {
$value = '
'.$plg['value'].'';
$supportText = "
Support $value. Go Pro!" ;
if ($long) $longText = "How about " ;
else $longText= '' ;
$supportText .= "
$longText
2GB of free online storage?" ;
if ($long) $longText = "WordPress Hosting for " ;
else $longText= 'Hosting for ' ;
$supportText .= "
$longText
just $4/month. " ;
if ($long) $longText = "My books on " ;
else $longText= 'Books: ' ;
$supportText .= "
$longText
Physics & Philosophy or " ;
$supportText .= "
Money & Finance." ;
echo $supportText ;
}
function renderTipDivs($name) {
$plugindir = get_option('siteurl') . '/' . PLUGINDIR . '/' . basename(dirname(__FILE__)) ;
echo <<
Arvixe is my favorite hosting provider. Friendly service, extremely competitive rates, and of course a great affiliate program.
Dropbox! gives you 2GB of network (cloud) storage for free, which I find quite adequate for any normal user. (That sounds like the famous last words by Bill Gates, doesn’t it? “64KB of memory should be enough for anyone!”) And, you can get 250MB extra for every successful referral you make. That brings me to my ulterior motive – please use this link to sign up. When you do, I get 250MB extra. Don’t worry, you get 250MB extra as well. So I can grow my online storage up to 8GB, which should keep me happy for a long time. Thank you!
ENDDIVS;
}
echo '
' ;
if (rand(0,2) % 2 || $plgName == "easy-ads" || $plgName == "google-adsense") {
renderSupportText($plgName, $myPlugins[$plgName], $myPlugins[$plgName]['long']) ;
renderTipDivs($name) ;
}
else renderAffiliate() ;
echo ' | ' ;
echo '
' ;
renderProText($plgName, $myPlugins[$plgName]) ;
echo ' | ' ;
?>