yyxx
This commit is contained in:
@@ -1,4 +1,17 @@
|
||||
</main>
|
||||
<?php if (auth_is_admin()): ?>
|
||||
<?php
|
||||
$nexusDebugPayload = json_encode([
|
||||
'enabled' => nexus_debug_enabled(),
|
||||
'entries' => nexus_debug_entries(),
|
||||
], JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES);
|
||||
if (!is_string($nexusDebugPayload)) {
|
||||
$nexusDebugPayload = '{"enabled":false,"entries":[]}';
|
||||
}
|
||||
?>
|
||||
<div id="nexus-debug-root"></div>
|
||||
<script id="nexus-debug-data" type="application/json"><?= $nexusDebugPayload ?></script>
|
||||
<?php endif; ?>
|
||||
<script src="<?= e(app()->assets()->versioned('/assets/js/app.js')) ?>" defer></script>
|
||||
<?php asset_scripts('footer'); ?>
|
||||
</body>
|
||||
|
||||
@@ -28,6 +28,8 @@ $headerActions = isset($GLOBALS['layout_header_actions']) && is_array($GLOBALS['
|
||||
: [];
|
||||
$auth = app()->auth();
|
||||
$authUser = $auth->user();
|
||||
$isDebugAdmin = auth_is_admin();
|
||||
$isNexusDebugEnabled = $isDebugAdmin && nexus_debug_enabled();
|
||||
?>
|
||||
<!doctype html>
|
||||
<html lang="de">
|
||||
@@ -54,7 +56,7 @@ $authUser = $auth->user();
|
||||
<?php asset_styles(); ?>
|
||||
<?php asset_scripts('header'); ?>
|
||||
</head>
|
||||
<body>
|
||||
<body data-nexus-debug-admin="<?= $isDebugAdmin ? '1' : '0' ?>" data-nexus-debug-enabled="<?= $isNexusDebugEnabled ? '1' : '0' ?>">
|
||||
<main class="main-shell">
|
||||
<section class="home-hero app-header main-header-box" data-module-name="<?= e((string)($currentModuleName ?? '')) ?>">
|
||||
<a class="brand-mark" href="/" aria-label="Nexus">
|
||||
|
||||
Reference in New Issue
Block a user