deploy
This commit is contained in:
26
docs/Umsetzungsanweisung/Old-Nexus/partials/structure/layout_end.php
Executable file
26
docs/Umsetzungsanweisung/Old-Nexus/partials/structure/layout_end.php
Executable file
@@ -0,0 +1,26 @@
|
||||
</main>
|
||||
<?php
|
||||
$requestPath = app()->request()->path();
|
||||
$currentModuleName = current_module_name();
|
||||
if ($currentModuleName === null && preg_match('~^/modules/(?:setup|access)/([a-zA-Z0-9_-]+)~', $requestPath, $moduleMatch)) {
|
||||
$currentModuleName = $moduleMatch[1];
|
||||
}
|
||||
$showModuleDebug = auth_is_admin() && $currentModuleName !== null && module_debug_enabled($currentModuleName);
|
||||
?>
|
||||
<?php if ($showModuleDebug): ?>
|
||||
<?php
|
||||
$nexusDebugPayload = json_encode([
|
||||
'enabled' => true,
|
||||
'entries' => module_debug_entries($currentModuleName),
|
||||
], 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>
|
||||
</html>
|
||||
Reference in New Issue
Block a user