* @license GPL2 or any later version */ $getInstalledLanguages = function () { $languages = []; foreach ($GLOBALS['INSTALLED_LANGUAGES'] as $key => $value) { $languages[$key] = array_merge( $value, ['selected' => $_SESSION['_language'] === $key] ); } return $languages; }; $getJsonApiSchemas = function () { return array_values( array_unique( array_map( fn($class) => $class::TYPE, app('json-api-integration-schemas') ) ) ); }; $htmlAttributes = HTMLAttributes::from([ 'lang' => str_replace('_', '-', $_SESSION['_language']), 'class' => 'no-js', 'data--a11y-motion' => match (User::findCurrent()?->getConfiguration()->getValue('A11Y_USER_REDUCE_ANIMATIONS')) { 'yes' => 'reduce', 'no' => 'allow', default => 'no-preference', } ]); ?> > <?= htmlReady(PageLayout::getTitle() . ' - ' . Config::get()->UNI_NAME_CLEAN) ?>