Show notes to subscriptions list on the dashboard
This commit is contained in:
parent
323679e771
commit
f53f2535d0
@ -55,6 +55,7 @@
|
||||
$print[$id]['payer_user_id'] = $subscription['payer_user_id'];
|
||||
$print[$id]['price'] = floatval($subscription['price']);
|
||||
$print[$id]['url'] = $subscription['url'];
|
||||
$print[$id]['notes'] = $subscription['notes'];
|
||||
|
||||
if (isset($_COOKIE['convertCurrency']) && $_COOKIE['convertCurrency'] === 'true' && $currencyId != $mainCurrencyId) {
|
||||
$print[$id]['price'] = getPriceConverted($print[$id]['price'], $currencyId, $db);
|
||||
|
||||
BIN
images/siteicons/notes.png
Normal file
BIN
images/siteicons/notes.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 846 B |
@ -124,6 +124,18 @@
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
if ($subscription['notes'] != "") {
|
||||
?>
|
||||
<div class="subscription-notes">
|
||||
<span class="notes">
|
||||
<img src="images/siteicons/notes.png" alt="<?= translate('notes', $i18n) ?>" />
|
||||
<?= $subscription['notes'] ?>
|
||||
</span>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
<?php
|
||||
$version = "v1.2.4";
|
||||
$version = "v1.2.5";
|
||||
?>
|
||||
@ -88,6 +88,7 @@
|
||||
$print[$id]['payer_user_id'] = $subscription['payer_user_id'];
|
||||
$print[$id]['price'] = floatval($subscription['price']);
|
||||
$print[$id]['url'] = $subscription['url'];
|
||||
$print[$id]['notes'] = $subscription['notes'];
|
||||
|
||||
if (isset($_COOKIE['convertCurrency']) && $_COOKIE['convertCurrency'] === 'true' && $currencyId != $mainCurrencyId) {
|
||||
$print[$id]['price'] = getPriceConverted($print[$id]['price'], $currencyId, $db);
|
||||
|
||||
@ -218,6 +218,13 @@ main > .contain {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.subscription-notes {
|
||||
display: none;
|
||||
flex-direction: row;
|
||||
padding: 6px 5px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.subscription-main > span,
|
||||
.subscription-secondary > span {
|
||||
display: flex;
|
||||
@ -294,6 +301,12 @@ main > .contain {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.subscription-notes > span {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.subscription-main > .name {
|
||||
display: none;
|
||||
@ -316,11 +329,13 @@ main > .contain {
|
||||
}
|
||||
}
|
||||
|
||||
.subscription.is-open .subscription-secondary {
|
||||
.subscription.is-open .subscription-secondary,
|
||||
.subscription.is-open .subscription-notes {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.subscription-secondary img {
|
||||
.subscription-secondary img,
|
||||
.subscription-notes img {
|
||||
height: 20px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user