.
*/
function makeTextWithTooltip($text, $tip, $title='', $width='')
{
if (!empty($title))
$titleText = "TITLE, '$title',STICKY, 1, CLOSEBTN, true, CLICKCLOSE, true,";
if (!empty($width))
$widthText = "WIDTH, $width," ;
$return = "$text" ;
return $return ;
}
function makeTextWithTooltipTag($plg, $text, $tip, $title='', $width='')
{
if (!empty($title))
$titleText = "TITLE, '$title',STICKY, 1, CLOSEBTN, true, CLICKCLOSE, true,";
if (!empty($width))
$widthText = "WIDTH, $width," ;
$return = "$text" ;
echo "
$tip
";
return $return ;
}
function renderPlg($name, $plg) {
$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 = " More Info " ;
$liteVersion = " Get Lite Version " ;
$proVersion = " Get Pro Version
" ;
$why = "
".$plg['pro'] ;
echo "" . makeTextWithTooltip($text, $toolTip, $value, 350) .
makeTextWithTooltip($moreInfo, "Read more about $value at its own page.
".$toolTip, "More Information about $value", 300) .
makeTextWithTooltip($liteVersion, $toolTip, "Download $value - the Lite version", 300) .
makeTextWithTooltipTag($name, $proVersion, $why, "Get $value Pro!", 300) .
"\n" ;
}
?>