Release v1.5.1
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user