feat: add new notification methods (telegram, webhooks, gotify) (#295)

This commit is contained in:
Miguel Ribeiro
2024-05-06 00:15:44 +02:00
committed by GitHub
parent 5fff7c59eb
commit a408031ef8
37 changed files with 1658 additions and 234 deletions
-16
View File
@@ -26,16 +26,6 @@
}
}
$notificationsEnabled = false;
$query = "SELECT enabled FROM notifications WHERE id = 1";
$result = $db->query($query);
if ($result) {
$row = $result->fetchArray(SQLITE3_ASSOC);
if ($row) {
$notificationsEnabled = $row['enabled'];
}
}
$headerClass = count($subscriptions) > 0 ? "main-actions" : "main-actions hidden";
$defaultLogo = $theme == "light" ? "images/siteicons/" . $colorTheme . "/wallos.png" : "images/siteicons/" . $colorTheme . "/walloswhite.png";
?>
@@ -285,16 +275,10 @@
</div>
</div>
<?php
if ($notificationsEnabled) {
?>
<div class="form-group-inline">
<input type="checkbox" id="notifications" name="notifications">
<label for="notifications"><?= translate('enable_notifications', $i18n) ?></label>
</div>
<?php
}
?>
<div class="form-group">
<label for="payment_method"><?= translate('payment_method', $i18n) ?></label>