diff options
author | Thedro Neely <thedroneely@gmail.com> | 2022-07-19 11:59:45 -0400 |
---|---|---|
committer | Thedro Neely <thedroneely@gmail.com> | 2022-07-19 11:59:45 -0400 |
commit | ea54421b15c9705f86a8d25a6caaa40791d66e18 (patch) | |
tree | 546ec8892c2140a48129fd521189dc68b567c95b /app/views/components/theme.toggle.php | |
parent | f888991f298e59933250c8d56080c1805068f5e0 (diff) | |
download | thedroneely.com-ea54421b15c9705f86a8d25a6caaa40791d66e18.tar.gz thedroneely.com-ea54421b15c9705f86a8d25a6caaa40791d66e18.tar.bz2 thedroneely.com-ea54421b15c9705f86a8d25a6caaa40791d66e18.zip |
app: Refactor and CSS rewrite
Diffstat (limited to 'app/views/components/theme.toggle.php')
-rw-r--r-- | app/views/components/theme.toggle.php | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/app/views/components/theme.toggle.php b/app/views/components/theme.toggle.php index 3b2d15b..71e8841 100644 --- a/app/views/components/theme.toggle.php +++ b/app/views/components/theme.toggle.php @@ -1,5 +1,4 @@ <form - class="<?php echo $formClass ?? null; ?>" method="get" action="<?php echo $_SERVER['REQUEST_URI']; ?>" > @@ -7,29 +6,25 @@ <button title="Switch to Light Theme" - class="<?php echo $buttonClass ?? null; ?>" name="theme" type="submit" value="light" > - <?php echo icon('sun', $iconClass ?? null); ?> - <span>Light</span> + <?php echo icon('moon'); ?> + <span>Dark</span> </button> <?php } else { ?> <button title="Switch to Dark Theme" - class="<?php echo $buttonClass ?? null; ?>" name="theme" type="submit" value="dark" > - <?php echo icon('moon', $iconClass ?? null); ?> - <span>Dark</span> + <?php echo icon('sun'); ?> + <span>Light</span> </button> <?php } ?> </form> - -<?php $formClass = $buttonClass = $iconClass = null; ?> |