2022-07-10 10:20:04 +01:00
|
|
|
<div id="sidebar-wrapper" class="inline-block">
|
|
|
|
<div id="sidebar" class="inline-block">
|
|
|
|
<aside>
|
2022-09-27 17:10:15 +01:00
|
|
|
<div class="section container" style="font-size: 14px;">
|
2022-07-10 10:26:31 +01:00
|
|
|
<h2>Theme</h2>
|
2023-08-13 19:32:01 +01:00
|
|
|
<?php foreach (["auto", "light", "dark"] as $theme): ?>
|
2023-09-09 17:06:32 +01:00
|
|
|
<div class="icon-wrapper">
|
|
|
|
<picture class="light">
|
|
|
|
<source type="image/svg+xml" srcset="/assets/icons/light-mode/theme-<?= $theme ?>.svg">
|
|
|
|
<img class="icon" src="/assets/icons/light-mode/theme-<?= $theme ?>.png" alt="">
|
|
|
|
</picture>
|
|
|
|
<picture class="dark">
|
|
|
|
<source type="image/svg+xml" srcset="/assets/icons/dark-mode/theme-<?= $theme ?>.svg">
|
|
|
|
<img class="icon" src="/assets/icons/dark-mode/theme-<?= $theme ?>.png" alt="">
|
|
|
|
</picture>
|
|
|
|
</div>
|
2023-08-13 19:32:01 +01:00
|
|
|
<span id="<?= $theme ?>-theme">
|
|
|
|
<a class="theme-btn" data-theme="<?= $theme ?>" href="/api/set_theme/<?= $name ?>.php">
|
|
|
|
<?= ucwords($theme) ?>
|
|
|
|
</a>
|
|
|
|
<span class="theme-check">✓</span>
|
|
|
|
</span>
|
2022-07-10 10:20:04 +01:00
|
|
|
<br>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
</div>
|
|
|
|
</aside>
|
|
|
|
</div>
|
2023-08-13 19:32:01 +01:00
|
|
|
</div>
|