request()->path(); $currentModuleName = current_module_name(); if ($currentModuleName === null && preg_match('~^/modules/(?:setup|access)/([a-zA-Z0-9_-]+)~', $requestPath, $moduleMatch)) { $currentModuleName = $moduleMatch[1]; } $currentModule = $currentModuleName !== null ? modules()->get($currentModuleName) : null; $isStagingHost = defined('APP_DOMAIN_PRIMARY') && str_starts_with((string) APP_DOMAIN_PRIMARY, 'staging.'); $headerEyebrow = ''; $headerTitle = $currentModule ? (string)($currentModule['title'] ?? $currentModuleName) : ('Nexus' . ($isStagingHost ? ' (staging)' : '')); $headerText = $currentModule ? (string)($currentModule['description'] ?? '') : ''; $headerTitle = isset($GLOBALS['layout_header_title']) && is_string($GLOBALS['layout_header_title']) && trim($GLOBALS['layout_header_title']) !== '' ? trim($GLOBALS['layout_header_title']) : $headerTitle; $headerText = isset($GLOBALS['layout_header_text']) && is_string($GLOBALS['layout_header_text']) ? trim($GLOBALS['layout_header_text']) : $headerText; $headerActions = isset($GLOBALS['layout_header_actions']) && is_array($GLOBALS['layout_header_actions']) ? $GLOBALS['layout_header_actions'] : []; $auth = app()->auth(); $authUser = $auth->user(); ?> Nexus
Nexus Logo

isEnabled()): ?>