diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2023-03-20 14:37:56 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2023-03-20 14:37:56 +0000 |
| commit | 352d8259532c10384d6aa31fc0d76efcd5bbccb0 (patch) | |
| tree | 48fa976df103713539a2062ec48d56310ddcf1b3 /templates | |
| parent | cae6febc3efa76da31d581b4bc52e4afb494a254 (diff) | |
implement PageLayout::disableSidebar() and PageLayout::disableFooter.php, fixes #2395
Closes #2395
Merge request studip/studip!1585
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/footer.php | 2 | ||||
| -rw-r--r-- | templates/layouts/base.php | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/templates/footer.php b/templates/footer.php index d652cb2..164b054 100644 --- a/templates/footer.php +++ b/templates/footer.php @@ -1,3 +1,4 @@ +<? if (PageLayout::isFooterEnabled()): ?> <!-- Beginn Footer --> <?= SkipLinks::addIndex(_('Fußzeile'), 'main-footer', 900, false) ?> <footer id="main-footer" aria-label="<?= _('Fußzeile') ?>"> @@ -55,5 +56,6 @@ </nav> <? endif; ?> </footer> +<? endif; ?> <?= $this->render_partial('debug/db-log.php') ?> <!-- Ende Footer --> diff --git a/templates/layouts/base.php b/templates/layouts/base.php index 29a8cd9..2869270 100644 --- a/templates/layouts/base.php +++ b/templates/layouts/base.php @@ -70,13 +70,15 @@ $lang_attr = str_replace('_', '-', $_SESSION['_language']); </script> </head> -<body id="<?= PageLayout::getBodyElementId() ?>"> +<body id="<?= PageLayout::getBodyElementId() ?>" <? if (!PageLayout::isSidebarEnabled()) echo 'class="no-sidebar"'; ?>> <div id="skip_link_navigation" aria-busy="true"></div> <?= PageLayout::getBodyElements() ?> <? include 'lib/include/header.php' ?> - <?= Sidebar::get()->render() ?> + <? if (PageLayout::isSidebarEnabled()): ?> + <?= Sidebar::get()->render() ?> + <? endif; ?> <!-- Start main page content --> <main id="content-wrapper"> |
