aboutsummaryrefslogtreecommitdiffstats
path: root/include/nav.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-03-19 13:55:18 +0000
committerMario <mario@mariovavti.com>2023-03-19 13:55:18 +0000
commit89285f1408d21091bb80d45b391ddcbe06ba8d0f (patch)
treeb2eb07d9f3d91d77f89a4565a58e6e5231b20c1c /include/nav.php
parent0a679e503ef367eda3085c44af103ee53869a94f (diff)
parent17c0bb2069dcfe35d3febc5bfdb3a7295f15d49c (diff)
downloadvolse-hubzilla-8.2.tar.gz
volse-hubzilla-8.2.tar.bz2
volse-hubzilla-8.2.zip
Merge branch '8.2RC'8.2
Diffstat (limited to 'include/nav.php')
-rw-r--r--include/nav.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/nav.php b/include/nav.php
index 2cdf7d42b..31a447a84 100644
--- a/include/nav.php
+++ b/include/nav.php
@@ -201,6 +201,8 @@ function nav($template = 'default') {
$nav['admin'] = ['admin/', t('Admin'), "", t('Site Setup and Configuration'), 'admin_nav_btn'];
}
+ $theme_switch_icon = ((App::$page['color_mode'] === 'dark') ? 'sun' : 'moon');
+
$x = ['nav' => $nav, 'usermenu' => $userinfo];
call_hooks('nav', $x);
@@ -317,6 +319,9 @@ function nav($template = 'default') {
App::$page['nav'] .= replace_macros($tpl, [
'$baseurl' => z_root(),
+ '$color_mode' => App::$page['color_mode'] ?? '',
+ '$navbar_color_mode' => App::$page['navbar_color_mode'] ?? '',
+ '$theme_switch_icon' => $theme_switch_icon,
'$fulldocs' => t('Help'),
'$sitelocation' => $sitelocation,
'$nav' => $x['nav'],