Allow to disable notifications
This commit is contained in:
@@ -33,6 +33,7 @@ $i18n = [
|
||||
'last_added' => "Zuletzt hinzugefügt",
|
||||
'price' => "Preis",
|
||||
'next_payment' => "Nächste Zahlung",
|
||||
'inactive' => "Deaktiviertes Abonnement",
|
||||
'member' => "Mitglied",
|
||||
'category' => "Kategorie",
|
||||
'payment_method' => "Zahlungsmethode",
|
||||
@@ -70,6 +71,7 @@ $i18n = [
|
||||
// Statistics page
|
||||
'general_statistics' => "Allgemeine Statistiken",
|
||||
'active_subscriptions' => "Aktive Abonnements",
|
||||
'inactive_subscriptions' => "Inaktive Abonnements",
|
||||
'monthly_cost' => "Monatliche Kosten",
|
||||
'yearly_cost' => "Jährliche Kosten",
|
||||
'average_monthly' => "Durchschnittliche monatliche Kosten",
|
||||
|
||||
@@ -33,6 +33,7 @@ $i18n = [
|
||||
'last_added' => "Τελευταία προσθήκη",
|
||||
'price' => "Τιμή",
|
||||
'next_payment' => "Επόμενη πληρωμή",
|
||||
'inactive' => "Ανενεργή συνδρομή",
|
||||
'member' => "Χρήστης",
|
||||
'category' => "Κατηγορία",
|
||||
'payment_method' => "Τρόπος πληρωμής",
|
||||
@@ -70,6 +71,7 @@ $i18n = [
|
||||
// Statistics page
|
||||
'general_statistics' => "Γενικές στατιστικές",
|
||||
'active_subscriptions' => "Ενεργές συνδρομές",
|
||||
'inactive_subscriptions' => "Ανενεργές συνδρομές",
|
||||
'monthly_cost' => "Μηνιαίο κόστος",
|
||||
'yearly_cost' => "Ετήσιο κόστος",
|
||||
'average_monthly' => "Μέσο μηνιαίο κόστος συνδρομής",
|
||||
|
||||
@@ -33,6 +33,7 @@ $i18n = [
|
||||
'last_added' => "Last Added",
|
||||
'price' => "Price",
|
||||
'next_payment' => "Next Payment",
|
||||
'inactive' => "Disabled Subscription",
|
||||
'member' => "Member",
|
||||
'category' => "Category",
|
||||
'payment_method' => "Payment Method",
|
||||
@@ -70,6 +71,7 @@ $i18n = [
|
||||
// Statistics page
|
||||
'general_statistics' => "General Statistics",
|
||||
'active_subscriptions' => "Active Subscriptions",
|
||||
'inactive_subscriptions' => "Inactive Subscriptions",
|
||||
'monthly_cost' => "Monthly Cost",
|
||||
'yearly_cost' => "Yearly Cost",
|
||||
'average_monthly' => "Average Monthly Subscription Cost",
|
||||
|
||||
@@ -33,6 +33,7 @@ $i18n = [
|
||||
'last_added' => "Última Añadida",
|
||||
'price' => "Precio",
|
||||
'next_payment' => "Próximo Pago",
|
||||
'inactive' => "Suscripción desactivada",
|
||||
'member' => "Miembro",
|
||||
'category' => "Categoría",
|
||||
'payment_method' => "Método de Pago",
|
||||
@@ -70,6 +71,7 @@ $i18n = [
|
||||
// Statistics page
|
||||
'general_statistics' => "Estadísticas Generales",
|
||||
'active_subscriptions' => "Suscripciones Activas",
|
||||
'inactive_subscriptions' => "Suscripciones inactivas",
|
||||
'monthly_cost' => "Costo Mensual",
|
||||
'yearly_cost' => "Costo Anual",
|
||||
'average_monthly' => "Costo Promedio Mensual de Suscripción",
|
||||
|
||||
@@ -33,6 +33,7 @@ $i18n = [
|
||||
'last_added' => "Dernier ajouté",
|
||||
'price' => "Prix",
|
||||
'next_payment' => "Prochain paiement",
|
||||
'inactive' => "Abonnement désactivé",
|
||||
'member' => "Membre",
|
||||
'category' => "Catégorie",
|
||||
'payment_method' => "Méthode de paiement",
|
||||
@@ -70,6 +71,7 @@ $i18n = [
|
||||
// Page de statistiques
|
||||
'general_statistics' => "Statistiques générales",
|
||||
'active_subscriptions' => "Abonnements actifs",
|
||||
'inactive_subscriptions' => "Abonnements inactifs",
|
||||
'monthly_cost' => "Coût mensuel",
|
||||
'yearly_cost' => "Coût annuel",
|
||||
'average_monthly' => "Coût moyen mensuel de l'abonnement",
|
||||
|
||||
@@ -33,6 +33,7 @@ $i18n = [
|
||||
'last_added' => "最終追加日",
|
||||
'price' => "金額",
|
||||
'next_payment' => "次回支払い",
|
||||
'inactive' => "無効なサブスクリプション",
|
||||
'member' => "メンバー",
|
||||
'category' => "カテゴリ",
|
||||
'payment_method' => "支払い方法",
|
||||
@@ -70,6 +71,7 @@ $i18n = [
|
||||
// Statistics page
|
||||
'general_statistics' => "一般統計",
|
||||
'active_subscriptions' => "アクティブな定期購入",
|
||||
'inactive_subscriptions' => "非アクティブなサブスクリプション",
|
||||
'monthly_cost' => "月間費用",
|
||||
'yearly_cost' => "年間費用",
|
||||
'average_monthly' => "月額平均費用",
|
||||
|
||||
@@ -33,6 +33,7 @@ $i18n = [
|
||||
'last_added' => "Última Adicionada",
|
||||
'price' => "Preço",
|
||||
'next_payment' => "Próximo Pagamento",
|
||||
'inactive' => "Subscrição desactivada",
|
||||
'member' => "Membro",
|
||||
'category' => "Categoria",
|
||||
'payment_method' => "Metodo de Pagamento",
|
||||
@@ -70,6 +71,7 @@ $i18n = [
|
||||
// Statistics page
|
||||
'general_statistics' => "Estatísticas Gerais",
|
||||
'active_subscriptions' => "Subscrições Activas",
|
||||
'inactive_subscriptions' => "Subscrições inactivas",
|
||||
'monthly_cost' => "Custo Mensal",
|
||||
'yearly_cost' => "Custo Anual",
|
||||
'average_monthly' => "Custo Mensal Médio das Subscrições",
|
||||
|
||||
@@ -36,6 +36,7 @@ $i18n = [
|
||||
'last_added' => "创建时间",
|
||||
'price' => "价格",
|
||||
'next_payment' => "下次支付时间",
|
||||
'inactive' => "禁用订阅",
|
||||
'member' => "成员",
|
||||
'category' => "分类",
|
||||
'payment_method' => "支付方式",
|
||||
@@ -75,6 +76,7 @@ $i18n = [
|
||||
// 统计页面
|
||||
'general_statistics' => "总体统计",
|
||||
'active_subscriptions' => "活跃订阅",
|
||||
'inactive_subscriptions' => "非活动订阅",
|
||||
'monthly_cost' => "月费用",
|
||||
'yearly_cost' => "年费用",
|
||||
'average_monthly' => "平均每月订阅费用",
|
||||
|
||||
@@ -63,6 +63,13 @@
|
||||
});
|
||||
}
|
||||
|
||||
usort($subscriptions, function ($a, $b) {
|
||||
if ($a['inactive'] == $b['inactive']) {
|
||||
return 0;
|
||||
}
|
||||
return $a['inactive'] ? 1 : -1;
|
||||
});
|
||||
|
||||
$currentCategory = 0;
|
||||
$currentPayerUserId = 0;
|
||||
$currentPaymentMethodId = 0;
|
||||
@@ -98,7 +105,7 @@
|
||||
$currentPaymentMethodId = $subscription['payment_method_id'];
|
||||
}
|
||||
?>
|
||||
<div class="subscription" onClick="toggleOpenSubscription(<?= $subscription['id'] ?>)" data-id="<?= $subscription['id'] ?>">
|
||||
<div class="subscription<?= $subscription['inactive'] ? ' inactive' : '' ?>" onClick="toggleOpenSubscription(<?= $subscription['id'] ?>)" data-id="<?= $subscription['id'] ?>">
|
||||
<div class="subscription-main">
|
||||
<span class="logo"><img src="<?= $subscription['logo'] ?>"></span>
|
||||
<span class="name"><?= $subscription['name'] ?></span>
|
||||
|
||||
Reference in New Issue
Block a user