From 4d6953e89d4f357d2511465faf9927886792885c Mon Sep 17 00:00:00 2001 From: FlyingSky Date: Sat, 11 Jul 2020 13:35:38 +0800 Subject: [PATCH] update: #19; --- footer.php | 1399 +++++++++++++++++++++++++++++----------------------- 1 file changed, 778 insertions(+), 621 deletions(-) diff --git a/footer.php b/footer.php index 3def78e..3f29c0d 100644 --- a/footer.php +++ b/footer.php @@ -1,636 +1,793 @@ - + - -
- -
- options->scrollTop): ?> - - options->DarkMode): ?> - - options->mdrQrCode): ?> - - options->MusicSet && $this->options->MusicUrl): ?> - - -
-
-options->mdrQrCode): ?> - -
- - - - - -user->hasLogin() && $this->user->pass('administrator', true) and null !== @$_GET['debug']): ?> - - -options->PjaxOption || $this->options->AjaxLoad || $this->options->ViewImg || $this->options->mdrQrCode): ?> - - -options->ViewImg): ?> - - - -options->PjaxOption): ?> - - - - + options->mdrQrCode) : ?> + +
+ + + + + + user->hasLogin() && $this->user->pass('administrator', true) and null !== @$_GET['debug']) : ?> + + + options->PjaxOption || $this->options->AjaxLoad || $this->options->ViewImg || $this->options->mdrQrCode) : ?> + + + options->ViewImg) : ?> + + + + options->PjaxOption) : ?> + + + + - -options->AjaxLoad): ?> - - - - -footer(); ?> -options->scrollTop): ?> - - + + options->AjaxLoad) : ?> + + + + + footer(); ?> + options->scrollTop) : ?> + + + options->MusicSet && $this->options->MusicUrl) : ?> + + options->CustomContent) : $this->options->CustomContent(); ?> + + + + options->mdrQrCode) : ?> + + + + options->DarkMode) : ?> + + options->DarkModeFD && $this->options->DarkModeDomain) { + $DarkModeFD = "domain=" . $this->options->DarkModeDomain; } else { - cancelAnimationFrame(totop) + $DarkModeFD = ""; } - }; -} - -options->MusicSet && $this->options->MusicUrl): ?> - -options->CustomContent): $this->options->CustomContent(); ?> + ?> + -options->mdrQrCode): ?> - - - -options->DarkMode): ?> - -options->DarkModeFD && $this->options->DarkModeDomain) { - $DarkModeFD="domain=".$this->options->DarkModeDomain; - } else { - $DarkModeFD=""; - } -?> - - - - -user->hasLogin() && $this->user->pass('administrator', true) and null !== @$_GET['debug']): ?> - - + function offDarkMode() { + var body = mdui.JQ('body'), + appbar = document.getElementsByClassName('mdui-appbar')[0]; + console.log('Dark mode off'); + document.cookie = "dark=0;path=/;"; + body.removeClass('mdui-theme-layout-dark'); + body.removeClass('mdui-theme-accent-options->mdrAccentD() ?>'); + body.addClass('mdui-theme-accent-options->mdrAccent() ?>'); + appbar.style.backgroundColor = '#ffffff'; + var meta = document.getElementsByTagName('meta'); + meta["theme-color"].setAttribute('content', 'options->mdrChrome ? $this->options->mdrChrome : "#FFFFFF" ?>'); + } + + + + + user->hasLogin() && $this->user->pass('administrator', true) and null !== @$_GET['debug']) : ?> + + + -options->compressHtml): $html_source = ob_get_contents(); ob_clean(); print compressHtml($html_source); ob_end_flush(); endif; ?> \ No newline at end of file +options->compressHtml) { + $html_source = ob_get_contents(); + ob_clean(); + print compressHtml($html_source); + ob_end_flush(); +} +?> \ No newline at end of file