Fix icon paths

This commit is contained in:
ReimarPB 2022-12-28 19:53:31 +01:00
parent a13bb5c0f6
commit 0ac3c438e6

View File

@ -14,11 +14,11 @@
<?php foreach ($themes as $name=>$condition): ?>
<picture class="light">
<source type="image/svg+xml" srcset="/assets/icons/light-mode/theme-<?= $name ?>.svg">
<img class="icon" src="/assets/icons/theme-<?= $name ?>.png" alt="">
<img class="icon" src="/assets/icons/light-mode/theme-<?= $name ?>.png" alt="">
</picture>
<picture class="dark">
<source type="image/svg+xml" srcset="/assets/icons/dark-mode/theme-<?= $name ?>.svg">
<img class="icon" src="/assets/icons/theme-<?= $name ?>.png" alt="">
<img class="icon" src="/assets/icons/dark-mode/theme-<?= $name ?>.png" alt="">
</picture>
<a class="theme-btn <?= $condition ? "" : "selected" ?>" data-theme="<?= $name ?>" href="/api/set_theme/<?= $name ?>.php">
<?= ucwords($name) . ($condition ? "" : " &#10003;") ?>