aboutsummaryrefslogtreecommitdiff
path: root/templates/layouts/base.php
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2024-05-28 07:55:24 +0000
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2024-05-28 07:55:24 +0000
commitfe2b584cb79ba8a2c642be085cacdd82d526df25 (patch)
tree875665187b3f3c9e26bc0056bf9d658c8b724d29 /templates/layouts/base.php
parent4e798558115a71c61d9a5f77a909356aeb0873b6 (diff)
add debug bar, fixes #4220
Closes #4220 Merge request studip/studip!3049
Diffstat (limited to 'templates/layouts/base.php')
-rw-r--r--templates/layouts/base.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/templates/layouts/base.php b/templates/layouts/base.php
index 2db1f7e..cd32e3b 100644
--- a/templates/layouts/base.php
+++ b/templates/layouts/base.php
@@ -103,6 +103,12 @@ $lang_attr = str_replace('_', '-', $_SESSION['_language']);
<?= $this->render_partial('footer', ['link_params' => $header_template->link_params]); ?>
<?= SkipLinks::getHTML() ?>
<section class="sr-only" id="notes_for_screenreader" aria-live="polite"></section>
+
+<?php
+if (Studip\Debug\DebugBar::isActivated()) {
+ echo app()->get(\DebugBar\DebugBar::class)->getJavascriptRenderer()->render();
+}
+?>
</body>
</html>
<?php NotificationCenter::postNotification('PageDidRender', PageLayout::getBodyElementId());