diff options
| author | Ron Lucke <lucke@elan-ev.de> | 2025-07-14 09:36:18 +0200 |
|---|---|---|
| committer | Ron Lucke <lucke@elan-ev.de> | 2025-07-14 09:36:18 +0200 |
| commit | 4355ded9bc56e0b06fbceffe61ddc37061cc3bc7 (patch) | |
| tree | 348493b6b0fd1286b86f213e5077413b97cf9747 /app/controllers/admin/layout.php | |
| parent | 1e59dd2dacc51b3313d7780b66d4bf72e0484f86 (diff) | |
Color-Themes-System, fixes #5361
Closes #5361
Merge request studip/studip!4038
Diffstat (limited to 'app/controllers/admin/layout.php')
| -rw-r--r-- | app/controllers/admin/layout.php | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/app/controllers/admin/layout.php b/app/controllers/admin/layout.php new file mode 100644 index 0000000..bd91497 --- /dev/null +++ b/app/controllers/admin/layout.php @@ -0,0 +1,40 @@ +<?php +/** + * admin/layout.php - Layout for Stud.IP + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of + * the License, or (at your option) any later version. + * + * @author Ron Lucke <lucke@elan-ev.de> + * @license http://www.gnu.org/licenses/gpl-2.0.html GPL version 2 + * @category Stud.IP + * @package admin + * @since 6.1 + */ + +class Admin_LayoutController extends AuthenticatedController +{ + public function before_filter(&$action, &$args) + { + parent::before_filter($action, $args); + $GLOBALS['perm']->check('root'); + PageLayout::setTitle(_('Darstellung')); + Navigation::activateItem('/admin/locations/layout'); + } + + public function index_action() + { + $this->render_vue_app( + Studip\VueApp::create('ThemeSettings') + ->withVuexStore( + 'theme-settings.module.js', + 'theme-settings-module', + [ + 'setUserId' => User::findCurrent()->id, + ] + ) + ); + } +} |
