#plugin-version { display: block; position: fixed; bottom: 0; right: 0; background: #eee; padding: 2px 10px; font-size: 0.9em; color: #555; } #plugin-version a { color: #777; margin-left: 8px; } '; return $html; } public function adminBodyEnd() { global $ADMIN_CONTROLLER; $timeToCheck = time() + 10; if( ($ADMIN_CONTROLLER=='dashboard') && (Session::get('timeToCheck')>$timeToCheck) ) { //$versions = $this->getVersion(); $versions = array('latest'=>'2.1'); Session::set('timeToCheck', $timeToCheck); Session::set('latestVersion', $versions['latest']); } if( version_compare(Session::get('latestVersion'), BLUDIT_VERSION, '>') ) { $html = '
'; } else { $html = '