dbFields = array(
'showCurrentVersion' => true,
'newVersionAlert' => true
);
}
public function form()
{
global $L;
$html = '
';
$html .= '';
$html .= '';
$html .= '
';
$html .= '';
$html .= '';
$html .= '';
$html .= '
';
return $html;
}
public function adminSidebar()
{
global $L;
$html = '';
if ($this->getValue('showCurrentVersion')) {
$html = '' . $L->get('Version') . ' ' . (defined('BLUDIT_PRO') ? '' : '') . '' . BLUDIT_VERSION . '';
}
if ($this->getValue('newVersionAlert')) {
$html .= '' . $L->get('New version available') . ' ';
}
return $html;
}
public function adminBodyEnd()
{
if ($this->getValue('newVersionAlert')) {
// The follow Javascript get via AJAX the information about new versions
// The script is on /bl-plugins/version/js/version.js
$jsPath = $this->phpPath() . 'js' . DS;
$scripts = '';
return $scripts;
}
return false;
}
}