sdsfsf
This commit is contained in:
@@ -2,7 +2,9 @@
|
||||
$modules = modules()->all();
|
||||
$error = null;
|
||||
$notice = null;
|
||||
$GLOBALS['layout_header_title'] = 'Aktive Module';
|
||||
$GLOBALS['layout_header_base_title'] = 'Modulverwaltung';
|
||||
$GLOBALS['layout_header_title'] = 'Modulverwaltung';
|
||||
$GLOBALS['layout_header_context'] = 'Aktive Module';
|
||||
$GLOBALS['layout_header_text'] = '';
|
||||
$GLOBALS['layout_header_actions'] = [];
|
||||
$knownAuthUsers = modules()->knownAuthUsers();
|
||||
@@ -59,7 +61,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="module-box-soft">
|
||||
<div class="submenu-box">
|
||||
<div class="module-hero-top module-hero-top--compact">
|
||||
<nav class="module-tabs" aria-label="Modulverwaltung">
|
||||
<a class="module-button module-button--tab-active" href="/modules">Aktive Module</a>
|
||||
@@ -108,7 +110,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
? count($pendingMigrations) . ' ausstehend'
|
||||
: (($migrationStatus['available'] ?? 0) > 0 ? 'Schema aktuell' : 'Keine Migrationen');
|
||||
?>
|
||||
<article class="module-admin-card">
|
||||
<article class="card-box module-admin-card">
|
||||
<div class="module-admin-card__head">
|
||||
<div class="module-admin-card__title">
|
||||
<h2><?= e($module['title']) ?></h2>
|
||||
|
||||
@@ -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; ?>
|
||||
|
||||
Reference in New Issue
Block a user