aboutsummaryrefslogtreecommitdiff
path: root/app/views/partials
diff options
context:
space:
mode:
authorThedro Neely <thedroneely@gmail.com>2019-04-21 14:40:43 -0400
committerThedro Neely <thedroneely@gmail.com>2019-04-21 14:40:43 -0400
commit34f6d5dce682463c84796402c84e2d5118437397 (patch)
tree3b5a263a9fd286c043c1cae6af76dfe91280092b /app/views/partials
parentcc434a53547a81eee5112b43683ee36bbf50b3a4 (diff)
downloadthedroneely.com-34f6d5dce682463c84796402c84e2d5118437397.tar.gz
thedroneely.com-34f6d5dce682463c84796402c84e2d5118437397.tar.bz2
thedroneely.com-34f6d5dce682463c84796402c84e2d5118437397.zip
app/views: Check for specific color theme
Diffstat (limited to 'app/views/partials')
-rw-r--r--app/views/partials/navigator.php20
1 files changed, 14 insertions, 6 deletions
diff --git a/app/views/partials/navigator.php b/app/views/partials/navigator.php
index eb12cca..5164e7c 100644
--- a/app/views/partials/navigator.php
+++ b/app/views/partials/navigator.php
@@ -106,10 +106,11 @@
<div class ="is-inline-block theme-toggle">
<form method="get" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
- <button class="theme-toggle-button button is-text"
- name="toggle" type="submit" value="theme">
- <?php if($theme->dark()) { ?>
+ <?php if ($theme->color() === 'dark') { ?>
+
+ <button class="theme-toggle-button button is-text"
+ name="theme" type="submit" value="light">
<span class="theme-toggle-sun">
<?php echo file_get_contents(
@@ -121,6 +122,9 @@
<?php } else { ?>
+ <button class="theme-toggle-button button is-text"
+ name="theme" type="submit" value="dark">
+
<span class="theme-toggle-moon">
<?php echo file_get_contents(
$_SERVER['DOCUMENT_ROOT']
@@ -177,10 +181,11 @@
<div class ="theme-toggle">
<form method="get" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
- <button class="theme-toggle-button button is-text has-text-centered is-block"
- name="toggle" type="submit" value="theme">
- <?php if ($theme->dark()) { ?>
+ <?php if ($theme->color() === 'dark') { ?>
+
+ <button class="theme-toggle-button button is-text has-text-centered is-block"
+ name="theme" type="submit" value="light">
<span class="theme-toggle-sun">
<?php echo file_get_contents(
@@ -192,6 +197,9 @@
<?php } else { ?>
+ <button class="theme-toggle-button button is-text has-text-centered is-block"
+ name="theme" type="submit" value="dark">
+
<span class="theme-toggle-moon">
<?php echo file_get_contents(
$_SERVER['DOCUMENT_ROOT']