public static function showBlock() { PHPWS_Core::initModClass('layout', 'Layout.php'); if (PHPWS_Settings::get('whatsnew', 'homeonly')) { $key = Key::getCurrent(); if (!empty($key) && $key->isHomeKey()) { Layout::add(Whatsnew::whatsnewBlock(), 'whatsnew', 'whatsnew_sidebox'); } } else { Layout::add(Whatsnew::whatsnewBlock(), 'whatsnew', 'whatsnew_sidebox'); } }