blob: ea726bcd03a4008607a362977e4351b85d9c9107 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
<form
class="<?php echo $formClass ?? null; ?>"
method="get"
action="<?php echo $_SERVER['REQUEST_URI']; ?>"
>
<?php if ($theme->color() === 'dark') { ?>
<button
title="Switch to Light Theme"
class="<?php echo $buttonClass ?? null; ?>"
name="theme"
type="submit"
value="light"
>
<?php echo featherIcon('sun'); ?>
<span>Light</span>
</button>
<?php } else { ?>
<button
title="Switch to Dark Theme"
class="<?php echo $buttonClass ?? null; ?>"
name="theme"
type="submit"
value="dark"
>
<?php echo featherIcon('moon'); ?>
<span>Dark</span>
</button>
<?php } ?>
</form>
|