.
*/
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 = "
" . $plg['pro'];
echo "
|