.
*/
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 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 or " ;
$supportText .= "
Money." ;
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 '
' ;
renderSupportText($plgName, $myPlugins[$plgName], $myPlugins[$plgName]['long']) ;
echo ' | ' ;
echo '
' ;
renderProText($plgName, $myPlugins[$plgName]) ;
renderTipDivs($name) ;
echo ' | ' ;
?>