This commit is contained in:
@@ -309,6 +309,10 @@ $sectionLinks = [
|
||||
</div>
|
||||
<div class="avatar-component-nav" role="tablist" aria-label="Avatar-Komponenten">
|
||||
<?php foreach (\App\Avatar\Lorelei::componentDefinitions() as $field => $meta): ?>
|
||||
<?php
|
||||
$componentOptions = $avatarOptions[$field] ?? [];
|
||||
$componentCount = count(array_filter(array_keys($componentOptions), static fn ($value): bool => (string) $value !== ''));
|
||||
?>
|
||||
<button
|
||||
type="button"
|
||||
class="avatar-component-nav__button <?= $field === 'avatar_lorelei_eyes_variant' ? 'is-active' : '' ?>"
|
||||
@@ -316,6 +320,7 @@ $sectionLinks = [
|
||||
aria-selected="<?= $field === 'avatar_lorelei_eyes_variant' ? 'true' : 'false' ?>"
|
||||
>
|
||||
<?= htmlspecialchars((string)$meta['label'], ENT_QUOTES) ?>
|
||||
<span class="muted small">(<?= $componentCount ?>)</span>
|
||||
</button>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
@@ -324,7 +329,7 @@ $sectionLinks = [
|
||||
<section class="avatar-component-panel avatar-component-panel--<?= htmlspecialchars(str_replace(['avatar_lorelei_', '_variant'], '', (string)$field), ENT_QUOTES) ?> <?= $field === 'avatar_lorelei_eyes_variant' ? 'is-active' : '' ?>" data-avatar-component-panel="<?= htmlspecialchars((string)$field, ENT_QUOTES) ?>">
|
||||
<div class="avatar-component-panel__head">
|
||||
<strong><?= htmlspecialchars((string)$meta['label'], ENT_QUOTES) ?></strong>
|
||||
<span class="muted small">Nur die jeweilige Komponente in groß</span>
|
||||
<span class="muted small">Gesamtes Profilbild zur sicheren Vorschau</span>
|
||||
</div>
|
||||
<div class="avatar-component-grid">
|
||||
<?php foreach (\App\Avatar\Lorelei::previewChoices($profile, $field) as $choice): ?>
|
||||
|
||||
Reference in New Issue
Block a user