Fix paths and tags

This commit is contained in:
ellite 2023-11-14 21:16:32 +01:00
parent d10878470b
commit 602387df58
6 changed files with 16 additions and 17 deletions

View File

@ -82,7 +82,7 @@
Add First Subscription Add First Subscription
</button> </button>
</div> </div>
<? <?php
} }
} }

View File

@ -9,5 +9,4 @@ if (!$db) {
die('Connection to the database failed.'); die('Connection to the database failed.');
} }
// $db->close();
?> ?>

View File

@ -79,11 +79,11 @@ if (isset($_POST['username']) && isset($_POST['password'])) {
<div class="content"> <div class="content">
<section class="container"> <section class="container">
<header> <header>
<? <?php
if ($theme == "light") { if ($theme == "light") {
?> <img src="images/wallossolid.png" alt="Wallos Logo" title="Wallos - Subscription Tracker" /> <? ?> <img src="images/wallossolid.png" alt="Wallos Logo" title="Wallos - Subscription Tracker" /> <?php
} else { } else {
?> <img src="images/wallossolidwhite.png" alt="Wallos Logo" title="Wallos - Subscription Tracker" /> <? ?> <img src="images/wallossolidwhite.png" alt="Wallos Logo" title="Wallos - Subscription Tracker" /> <?php
} }
?> ?>
<p> <p>

View File

@ -85,11 +85,11 @@ if (isset($_POST['username'])) {
<div class="content"> <div class="content">
<section class="container"> <section class="container">
<header> <header>
<? <?php
if ($theme == "light") { if ($theme == "light") {
?> <img src="images/wallossolid.png" alt="Wallos Logo" title="Wallos - Subscription Tracker" /> <? ?> <img src="images/wallossolid.png" alt="Wallos Logo" title="Wallos - Subscription Tracker" /> <?php
} else { } else {
?> <img src="images/wallossolidwhite.png" alt="Wallos Logo" title="Wallos - Subscription Tracker" /> <? ?> <img src="images/wallossolidwhite.png" alt="Wallos Logo" title="Wallos - Subscription Tracker" /> <?php
} }
?> ?>
<p> <p>

View File

@ -13,7 +13,7 @@ function closeAvatarSelect() {
} }
function changeAvatar(number) { function changeAvatar(number) {
document.getElementById("avatarImg").src = "/images/avatars/" + number + ".svg"; document.getElementById("avatarImg").src = "images/avatars/" + number + ".svg";
document.getElementById("avatarUser").value = number; document.getElementById("avatarUser").value = number;
closeAvatarSelect(); closeAvatarSelect();
} }
@ -425,7 +425,7 @@ document.addEventListener('DOMContentLoaded', function() {
.then(data => { .then(data => {
if (data.success) { if (data.success) {
var newAvatar = document.getElementById("avatarUser").value; var newAvatar = document.getElementById("avatarUser").value;
document.getElementById("avatar").src = "/images/avatars/" + newAvatar + ".svg"; document.getElementById("avatar").src = "images/avatars/" + newAvatar + ".svg";
var newUsername = document.getElementById("username").value; var newUsername = document.getElementById("username").value;
document.getElementById("user").textContent = newUsername; document.getElementById("user").textContent = newUsername;
showSuccessMessage("User details saved"); showSuccessMessage("User details saved");

View File

@ -11,9 +11,9 @@
<div class="fields"> <div class="fields">
<div> <div>
<div class="user-avatar"> <div class="user-avatar">
<img src="/images/avatars/<?= $userData['avatar'] ?>.svg" alt="avatar" class="avatar" id="avatarImg" onClick="toggleAvatarSelect()"/> <img src="images/avatars/<?= $userData['avatar'] ?>.svg" alt="avatar" class="avatar" id="avatarImg" onClick="toggleAvatarSelect()"/>
<span class="edit-avatar" onClick="toggleAvatarSelect()"> <span class="edit-avatar" onClick="toggleAvatarSelect()">
<img src="/images/siteicons/editavatar.png" title="Change avatar" /> <img src="images/siteicons/editavatar.png" title="Change avatar" />
</span> </span>
</div> </div>
@ -433,7 +433,7 @@
<div> <div>
<input type="button" value="Switch Light / Dark Theme" onClick="switchTheme()"> <input type="button" value="Switch Light / Dark Theme" onClick="switchTheme()">
</div> </div>
<? <?php
$hidename = isset($_COOKIE['hideNameOnMobile']) && $_COOKIE['hideNameOnMobile'] === 'true'; $hidename = isset($_COOKIE['hideNameOnMobile']) && $_COOKIE['hideNameOnMobile'] === 'true';
$monthlyprice = isset($_COOKIE['showMonthlyPrice']) && $_COOKIE['showMonthlyPrice'] === 'true'; $monthlyprice = isset($_COOKIE['showMonthlyPrice']) && $_COOKIE['showMonthlyPrice'] === 'true';
$convertcurrency = isset($_COOKIE['convertCurrency']) && $_COOKIE['convertCurrency'] === 'true'; $convertcurrency = isset($_COOKIE['convertCurrency']) && $_COOKIE['convertCurrency'] === 'true';
@ -447,13 +447,13 @@
</div> </div>
<div> <div>
<div class="form-group-inline"> <div class="form-group-inline">
<input type="checkbox" id="monthlyprice" name="monthlyprice" onChange="setShowMonthlyPriceCookie()" <? if ($monthlyprice) echo 'checked'; ?>> <input type="checkbox" id="monthlyprice" name="monthlyprice" onChange="setShowMonthlyPriceCookie()" <?php if ($monthlyprice) echo 'checked'; ?>>
<label for="monthlyprice">Calculate and show monthly price for all subscriptions</label> <label for="monthlyprice">Calculate and show monthly price for all subscriptions</label>
</div> </div>
</div> </div>
<div> <div>
<div class="form-group-inline"> <div class="form-group-inline">
<input type="checkbox" id="convertcurrency" name="convertcurrency" onChange="setConvertCurrencyCookie()" <? if ($convertcurrency) echo 'checked'; ?>> <input type="checkbox" id="convertcurrency" name="convertcurrency" onChange="setConvertCurrencyCookie()" <?php if ($convertcurrency) echo 'checked'; ?>>
<label for="convertcurrency">Always convert and show prices on my main currency (slower).</label> <label for="convertcurrency">Always convert and show prices on my main currency (slower).</label>
</div> </div>
</div> </div>
@ -467,7 +467,7 @@
<div class="account-settings-list"> <div class="account-settings-list">
<div> <div>
<div class="form-group-inline"> <div class="form-group-inline">
<input type="checkbox" id="removebackground" name="removebackground" onChange="setRemoveBackgroundCookie()" <? if ($removebackground) echo 'checked'; ?>> <input type="checkbox" id="removebackground" name="removebackground" onChange="setRemoveBackgroundCookie()" <?php if ($removebackground) echo 'checked'; ?>>
<label for="removebackground">Attempt to remove background of logos from image search (experimental).</label> <label for="removebackground">Attempt to remove background of logos from image search (experimental).</label>
</div> </div>
</div> </div>
@ -489,7 +489,7 @@
foreach ($payments as $payment) { foreach ($payments as $payment) {
?> ?>
<div class="payments-payment"> <div class="payments-payment">
<img src="/images/uploads/icons/<?= $payment['icon'] ?>" alt="Logo" /> <img src="images/uploads/icons/<?= $payment['icon'] ?>" alt="Logo" />
<span class="payment-name"> <span class="payment-name">
<?= $payment['name'] ?> <?= $payment['name'] ?>
</span> </span>