/** * Display the page with layout * If ajax is enabled it returns only the module content * @param string|NULL $content replace page content * @return string */ public function onDisplayPage($content = NULL) { if (true === self::getConfig('log_request') && class_exists('GWF_Log')) { GWF_Log::logRequest(); } # Display the page if (true === isset($_GET['ajax'])) { GWF_Website::plaintext(); return self::$page; } else { $page = $content === NULL ? self::$page : $content; return GWF_Website::displayPage($page); } }