gUIFile("Home-Compat.php")); # ----- MAIN ----------------------------------------------------------------- # non-standard global variables global $AnnouncementOffset; global $MoreResources; global $ResourceOffset; global $ReleaseResourceTotal; $SysConfig = SystemConfiguration::getInstance(); $IntConfig = InterfaceConfiguration::getInstance(); # get the total number of released resources if ($IntConfig->getBool("ShowNumResourcesEnabled")) { $ResourceFactory = new RecordFactory(); $ReleaseResourceTotal = $ResourceFactory->getReleasedRecordTotal(); } $ResourceOffset = isset($_GET["ResourceOffset"]) ? intval($_GET["ResourceOffset"]) : 0; # retrieve any announcement content ob_start(); $GLOBALS["AF"]->SignalEvent( "EVENT_HTML_INSERTION_POINT", [ $GLOBALS["AF"]->GetPageName(), "Blog Entries", [ "Blog Name" => "News", "Max Entries" => $IntConfig->getInt("NumAnnounceOnHomePage") ] ] ); $Announcements = ob_get_contents(); ob_end_clean(); // phpcs:disable Generic.Files.LineLength.MaxExceeded ?>