Fix: P/Z-Badges komplett aus allen Welt-Views entfernt (SW by-v924)

- _renderJetzt: false,false statt f.pro/_isRoleBasedPro/f.role=breeder
- _openAllChips: P-Badge entfernt
- _isRoleBasedPro() nur noch als ungenutzte Funktion (bleibt für Kompatibilität)
This commit is contained in:
rene 2026-05-14 11:07:24 +02:00
parent 1081466704
commit a27b8ea5b4
4 changed files with 4 additions and 5 deletions

View file

@ -347,7 +347,6 @@ window.Worlds = (() => {
<div style="display:grid;grid-template-columns:repeat(4,1fr);gap:8px">
${chips.map(c => `
<button class="all-chip-btn w3-chip-btn" data-page="${c.page}" style="position:relative">
${c.pro && _isRoleBasedPro() ? `<span style="position:absolute;top:2px;left:3px;font-size:8px;font-weight:800;color:#fff;background:#92400e;border-radius:3px;padding:0 3px;line-height:14px">P</span>` : ''}
<svg class="ph-icon" style="width:1.4rem;height:1.4rem;color:var(--c-primary)">
<use href="/icons/phosphor.svg#${c.icon}"></use>
</svg>
@ -1159,7 +1158,7 @@ window.Worlds = (() => {
<div class="world-bottom">
<div class="world-section-label">Deine Bereiche</div>
<div class="world-chips-grid">
${features.map(f => _chip(f.icon, f.label, f.page, false, f.pro && _isRoleBasedPro(), f.role === 'breeder')).join('')}
${features.map(f => _chip(f.icon, f.label, f.page, false, false, false)).join('')}
</div>
<div class="world-footer-links">
<span data-wnav="impressum">Impressum</span>