. */ 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" ; return $return ; } function renderPlg($name, $plg) { if (!empty($plg['hide']) && $plg['hide']) return ; $plugindir = get_option('siteurl') . '/' . PLUGINDIR . '/' . basename(dirname(__FILE__)) ; if (!empty($plg['kind']) && $plg['kind'] != '' && $plg['kind'] != 'plugin') return ; $value = ''.$plg['value'].''; $desc = $plg['desc'] ; $title = $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 = "ezPayPal -- Instant PayPal Shop.
".$plg['pro'] ; echo "
  • " . makeTextWithTooltip($text, $title, $value, 350) . "
                " . makeTextWithTooltip($moreInfo, "Read more about $value at its own page.
    ".$title, "More Information about $value", 300) . makeTextWithTooltip($liteVersion, $title, "Download $value - the Lite version", 300) . makeTextWithTooltipTag($name, $proVersion, $why, "Get $value Pro!", 300) . " $why " . "
  • \n" ; } function renderBook($name, $plg) { $plugindir = get_option('siteurl') . '/' . PLUGINDIR . '/' . basename(dirname(__FILE__)) ; if (empty($plg['kind']) || $plg['kind'] != 'book') return ; $value = ''.$plg['value'].''; $desc = $plg['desc'] ; $title = $plg['title'] ; $url = $plg['url'] ; $link = '' . $value . '  ' ; $text = $link . $desc ; $price = $plg['price'] ; $moreInfo = "   More Info " ; $amazon = $plg['amazon'] ; if (!empty($amazon)) $buyAmazon = "   Get it at Amazon " ; $buyNow = "   Buy and Download now!
    " ; $why = "ezPayPal -- Instant PayPal Shop.
    ".$title.$desc." $value costs only \$$price -- direct from the author." ; echo "
  • " . makeTextWithTooltip($text, $title, $value, 350) . "
                " . makeTextWithTooltip($moreInfo, "Read all about $value at its own site.
    ", "$value", 300) . makeTextWithTooltip($buyAmazon, $title, "Buy $value from Amazon", 350) . makeTextWithTooltipTag($name, $buyNow, $why, "Buy $value!", 300) . " $why " . "
  • \n" ; } ?> ' ; ?>
      • $plg){ renderBook($name, $plg) ;} ?>