V1.4.8
This commit is contained in:
parent
3b2871e0a5
commit
4e6b10f0bc
@ -1344,12 +1344,10 @@ $current_session_user = $_SESSION['user'] ?? '';
|
||||
<img src="https://cstone.space/uifimages/<?php echo htmlspecialchars($item['cl_scobjs_uuid'], ENT_QUOTES, 'UTF-8'); ?>.png" class="item-preview" alt="">
|
||||
<div>
|
||||
<?php $item_rarity_class = scitemcustom_rarity_class($item['cl_scobjs_rarity'] ?? ''); ?>
|
||||
<?php $item_rarity_label = scitemcustom_rarity_label($item['cl_scobjs_rarity'] ?? ''); ?>
|
||||
<strong class="item-name <?php echo htmlspecialchars($item_rarity_class, ENT_QUOTES, 'UTF-8'); ?>"><?php echo htmlspecialchars($item['cl_scobjs_name'], ENT_QUOTES, 'UTF-8'); ?></strong>
|
||||
<div class="item-submeta">
|
||||
<?php echo htmlspecialchars($item['cl_scobjs_type'], ENT_QUOTES, 'UTF-8'); ?>
|
||||
<?php if (!empty($item['cl_scobjs_subtype'])): ?> / <?php echo htmlspecialchars($item['cl_scobjs_subtype'], ENT_QUOTES, 'UTF-8'); ?><?php endif; ?>
|
||||
<?php if ($item_rarity_label !== ''): ?> — Rareté : <?php echo htmlspecialchars($item_rarity_label, ENT_QUOTES, 'UTF-8'); ?><?php endif; ?><br>
|
||||
<?php if (!empty($item['cl_scobjs_subtype'])): ?> / <?php echo htmlspecialchars($item['cl_scobjs_subtype'], ENT_QUOTES, 'UTF-8'); ?><?php endif; ?><br>
|
||||
UUID: <?php echo htmlspecialchars($item['cl_scobjs_uuid'], ENT_QUOTES, 'UTF-8'); ?>
|
||||
</div>
|
||||
</div>
|
||||
@ -1615,9 +1613,6 @@ $current_session_user = $_SESSION['user'] ?? '';
|
||||
if (selectedItem.uuid) {
|
||||
meta += (meta ? ' — ' : '') + selectedItem.uuid;
|
||||
}
|
||||
if (selectedItem.rarityLabel) {
|
||||
meta += (meta ? ' — ' : '') + 'Rareté : ' + selectedItem.rarityLabel;
|
||||
}
|
||||
addSelectionMeta.textContent = meta;
|
||||
|
||||
if (selectedItem.uuid) {
|
||||
@ -1650,9 +1645,6 @@ $current_session_user = $_SESSION['user'] ?? '';
|
||||
|
||||
var rarityClass = item.rarity_class || '';
|
||||
var rarityLabel = item.rarity_label || '';
|
||||
if (rarityLabel) {
|
||||
meta += (meta ? ' — ' : '') + 'Rareté : ' + escapeHtml(rarityLabel);
|
||||
}
|
||||
|
||||
return '' +
|
||||
'<button type="button" class="item-picker-option' + (index === 0 ? ' is-active' : '') + '" role="option" data-item-id="' + escapeHtml(item.id) + '" data-item-name="' + escapeHtml(item.name) + '" data-item-type="' + escapeHtml(item.type || '') + '" data-item-subtype="' + escapeHtml(item.subtype || '') + '" data-item-uuid="' + escapeHtml(item.uuid || '') + '" data-item-rarity="' + escapeHtml(item.rarity || '') + '" data-item-rarity-class="' + escapeHtml(rarityClass) + '" data-item-rarity-label="' + escapeHtml(rarityLabel) + '">' +
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user