Release v1.5.1

This commit is contained in:
AudioCore Bot
2026-04-01 14:12:17 +00:00
parent dc53051358
commit 9deabe1ec9
50 changed files with 10775 additions and 5637 deletions

View File

@@ -21,6 +21,9 @@ ob_start();
$key = (string)($item['key'] ?? '');
$title = (string)($item['title'] ?? 'Item');
$coverUrl = (string)($item['cover_url'] ?? '');
$itemType = (string)($item['item_type'] ?? 'track');
$releaseCount = (int)($item['release_count'] ?? 0);
$trackCount = (int)($item['track_count'] ?? 0);
$qty = max(1, (int)($item['qty'] ?? 1));
$price = (float)($item['price'] ?? 0);
$currency = (string)($item['currency'] ?? ($totals['currency'] ?? 'GBP'));
@@ -35,6 +38,18 @@ ob_start();
</div>
<div style="min-width:0;">
<div style="font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;"><?= htmlspecialchars($title, ENT_QUOTES, 'UTF-8') ?></div>
<?php if ($itemType === 'bundle' && ($releaseCount > 0 || $trackCount > 0)): ?>
<div style="font-size:12px; color:var(--muted); margin-top:4px;">
Includes
<?php if ($releaseCount > 0): ?>
<?= $releaseCount ?> release<?= $releaseCount === 1 ? '' : 's' ?>
<?php endif; ?>
<?php if ($releaseCount > 0 && $trackCount > 0): ?> · <?php endif; ?>
<?php if ($trackCount > 0): ?>
<?= $trackCount ?> track<?= $trackCount === 1 ? '' : 's' ?>
<?php endif; ?>
</div>
<?php endif; ?>
<div style="font-size:12px; color:var(--muted); margin-top:4px;"><?= htmlspecialchars($currency, ENT_QUOTES, 'UTF-8') ?> <?= number_format($price, 2) ?> x <?= $qty ?></div>
</div>
<div style="font-weight:700;"><?= htmlspecialchars($currency, ENT_QUOTES, 'UTF-8') ?> <?= number_format($price * $qty, 2) ?></div>