sdsfsf
All checks were successful
Deploy / deploy-production (push) Has been skipped
Deploy / deploy-staging (push) Successful in 5s

This commit is contained in:
2026-05-04 01:55:41 +02:00
parent f161a4c622
commit 468736ac4d
6 changed files with 42 additions and 8 deletions

View File

@@ -7,13 +7,19 @@ if ($currentModuleName === null && preg_match('~^/modules/(?:setup|access)/([a-z
$currentModule = $currentModuleName !== null ? modules()->get($currentModuleName) : null;
$isStagingHost = defined('APP_DOMAIN_PRIMARY') && str_starts_with((string) APP_DOMAIN_PRIMARY, 'staging.');
$headerEyebrow = '';
$headerTitle = $currentModule
$defaultHeaderTitle = $currentModule
? (string)($currentModule['title'] ?? $currentModuleName)
: ('Nexus' . ($isStagingHost ? ' (staging)' : ''));
$headerText = $currentModule ? (string)($currentModule['description'] ?? '') : '';
$headerBaseTitle = isset($GLOBALS['layout_header_base_title']) && is_string($GLOBALS['layout_header_base_title']) && trim($GLOBALS['layout_header_base_title']) !== ''
? trim($GLOBALS['layout_header_base_title'])
: $defaultHeaderTitle;
$headerTitle = isset($GLOBALS['layout_header_title']) && is_string($GLOBALS['layout_header_title']) && trim($GLOBALS['layout_header_title']) !== ''
? trim($GLOBALS['layout_header_title'])
: $headerTitle;
: $headerBaseTitle;
$headerContext = isset($GLOBALS['layout_header_context']) && is_string($GLOBALS['layout_header_context'])
? trim($GLOBALS['layout_header_context'])
: '';
$headerText = isset($GLOBALS['layout_header_text']) && is_string($GLOBALS['layout_header_text'])
? trim($GLOBALS['layout_header_text'])
: $headerText;
@@ -50,7 +56,7 @@ $authUser = $auth->user();
</head>
<body>
<main class="main-shell">
<section class="home-hero app-header" data-module-name="<?= e((string)($currentModuleName ?? '')) ?>">
<section class="home-hero app-header main-header-box" data-module-name="<?= e((string)($currentModuleName ?? '')) ?>">
<a class="brand-mark" href="/" aria-label="Nexus">
<img src="/assets/images/logo.png" alt="Nexus Logo">
</a>
@@ -58,7 +64,12 @@ $authUser = $auth->user();
<?php if ($headerEyebrow !== ''): ?>
<span class="eyebrow"><?= e($headerEyebrow) ?></span>
<?php endif; ?>
<h1><?= e($headerTitle) ?></h1>
<h1>
<?= e($headerTitle) ?>
<?php if ($headerContext !== ''): ?>
<span class="module-page-context"> / <?= e($headerContext) ?></span>
<?php endif; ?>
</h1>
<?php if ($headerText !== ''): ?>
<p><?= e($headerText) ?></p>
<?php endif; ?>