gUIFile("Home-Compat.php")); # ----- MAIN ----------------------------------------------------------------- # non-standard global variables global $AnnouncementOffset; global $MoreResources; global $ResourceOffset; global $ReleaseResourceTotal; $AF = ApplicationFramework::getInstance(); $SysConfig = SystemConfiguration::getInstance(); $IntConfig = InterfaceConfiguration::getInstance(); $AF->setPageTitle("Home"); # 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(); $AF->SignalEvent( "EVENT_HTML_INSERTION_POINT", [ $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 ?>

# Announcements

New Resources HasPriv(PRIV_RESOURCEADMIN, PRIV_COLLECTIONADMIN)) { ?> Add Resource getBool("ShowNumResourcesEnabled")) { ?> Currently: Resources