aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/redbasic/php/theme.php
diff options
context:
space:
mode:
Diffstat (limited to 'view/theme/redbasic/php/theme.php')
-rw-r--r--view/theme/redbasic/php/theme.php22
1 files changed, 1 insertions, 21 deletions
diff --git a/view/theme/redbasic/php/theme.php b/view/theme/redbasic/php/theme.php
index b7e08705c..c33c4f78e 100644
--- a/view/theme/redbasic/php/theme.php
+++ b/view/theme/redbasic/php/theme.php
@@ -14,26 +14,6 @@
*/
-function redbasic_init(&$a) {
+function redbasic_init() {
- $mode = '';
- $navbar_mode = '';
-
- if (local_channel()) {
- $mode = ((get_pconfig(local_channel(), 'redbasic', 'dark_mode')) ? 'dark' : 'light');
- $navbar_mode = ((get_pconfig(local_channel(), 'redbasic', 'navbar_dark_mode')) ? 'dark' : 'light');
- }
-
- if (App::$profile_uid) {
- $mode = ((get_pconfig(App::$profile_uid, 'redbasic', 'dark_mode')) ? 'dark' : 'light');
- $navbar_mode = ((get_pconfig(App::$profile_uid, 'redbasic', 'navbar_dark_mode')) ? 'dark' : 'light');
- }
-
- if (!$mode) {
- $mode = ((get_config('redbasic', 'dark_mode')) ? 'dark' : 'light');
- $navbar_mode = ((get_config('redbasic', 'navbar_dark_mode')) ? 'dark' : 'light');
- }
-
- App::$page['color_mode'] = 'data-bs-theme="' . $mode . '"';
- App::$page['navbar_color_mode'] = (($navbar_mode === 'dark') ? 'data-bs-theme="' . $navbar_mode . '"' : '');
}