Skip to content

Commit

Permalink
Fix paths and tags
Browse files Browse the repository at this point in the history
  • Loading branch information
ellite committed Nov 14, 2023
1 parent d108784 commit 602387d
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 17 deletions.
2 changes: 1 addition & 1 deletion endpoints/subscriptions/get.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
Add First Subscription
</button>
</div>
<?
<?php
}
}

Expand Down
1 change: 0 additions & 1 deletion includes/connect.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@
die('Connection to the database failed.');
}

// $db->close();
?>
6 changes: 3 additions & 3 deletions login.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@
<div class="content">
<section class="container">
<header>
<?
<?php
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 {
?> <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>
Expand Down
6 changes: 3 additions & 3 deletions registration.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,11 @@
<div class="content">
<section class="container">
<header>
<?
<?php
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 {
?> <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>
Expand Down
4 changes: 2 additions & 2 deletions scripts/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function closeAvatarSelect() {
}

function changeAvatar(number) {
document.getElementById("avatarImg").src = "/images/avatars/" + number + ".svg";
document.getElementById("avatarImg").src = "images/avatars/" + number + ".svg";
document.getElementById("avatarUser").value = number;
closeAvatarSelect();
}
Expand Down Expand Up @@ -425,7 +425,7 @@ document.addEventListener('DOMContentLoaded', function() {
.then(data => {
if (data.success) {
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;
document.getElementById("user").textContent = newUsername;
showSuccessMessage("User details saved");
Expand Down
14 changes: 7 additions & 7 deletions settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
<div class="fields">
<div>
<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()">
<img src="/images/siteicons/editavatar.png" title="Change avatar" />
<img src="images/siteicons/editavatar.png" title="Change avatar" />
</span>
</div>

Expand Down Expand Up @@ -433,7 +433,7 @@
<div>
<input type="button" value="Switch Light / Dark Theme" onClick="switchTheme()">
</div>
<?
<?php
$hidename = isset($_COOKIE['hideNameOnMobile']) && $_COOKIE['hideNameOnMobile'] === 'true';
$monthlyprice = isset($_COOKIE['showMonthlyPrice']) && $_COOKIE['showMonthlyPrice'] === 'true';
$convertcurrency = isset($_COOKIE['convertCurrency']) && $_COOKIE['convertCurrency'] === 'true';
Expand All @@ -447,13 +447,13 @@
</div>
<div>
<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>
</div>
</div>
<div>
<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>
</div>
</div>
Expand All @@ -467,7 +467,7 @@
<div class="account-settings-list">
<div>
<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>
</div>
</div>
Expand All @@ -489,7 +489,7 @@
foreach ($payments as $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">
<?= $payment['name'] ?>
</span>
Expand Down

0 comments on commit 602387d

Please sign in to comment.