csds
All checks were successful
Deploy / deploy (push) Successful in 54s

This commit is contained in:
2026-07-31 22:12:18 +02:00
parent 74c52a0705
commit 25a50ae0da
5 changed files with 24 additions and 60 deletions

View File

@@ -13,7 +13,6 @@ $allowNoKidsChecked = $editEvent ? ((int)$editEvent['allow_kids'] === 0) : false
$editingChild = isset($editChild) && $editChild !== null;
$childAction = $editingChild ? 'child_update' : 'child_add';
$childModalTitle = $editingChild ? 'Kind bearbeiten' : 'Kind hinzufügen';
$useCompactProfileSummary = true;
$sectionLinks = [
'profile' => 'Profil',
'children' => 'Kinder',
@@ -79,58 +78,30 @@ $sectionLinks = [
<button class="btn" type="button" data-modal-open="modalAvatar">Profilbild gestalten</button>
</div>
</div>
<?php if ($useCompactProfileSummary): ?>
<div class="profile-hero-summary">
<section class="profile-hero-summary__card">
<span class="profile-summary-card__eyebrow">Kontakt</span>
<strong><?= htmlspecialchars($profile['display_name'] ?: 'Nicht hinterlegt', ENT_QUOTES) ?></strong>
<p><?= htmlspecialchars($profile['email'] ?: 'Keine E-Mail hinterlegt', ENT_QUOTES) ?></p>
<p><?= htmlspecialchars($profile['contact_phone'] ?: 'Keine Telefonnummer hinterlegt', ENT_QUOTES) ?></p>
</section>
<section class="profile-hero-summary__card">
<span class="profile-summary-card__eyebrow">Standort</span>
<strong><?= htmlspecialchars($profile['city'] ?: 'Kein Ort hinterlegt', ENT_QUOTES) ?></strong>
<p><?= htmlspecialchars(trim(implode(', ', array_filter([(string)($profile['street'] ?? ''), trim((string)$profile['zip'] . ' ' . (string)$profile['city']), (string)($profile['region'] ?? '')]))) ?: 'Keine vollständige Adresse hinterlegt', ENT_QUOTES) ?></p>
</section>
<section class="profile-hero-summary__card">
<span class="profile-summary-card__eyebrow">Profil</span>
<strong><?= htmlspecialchars(trim($profile['first_name'] . ' ' . $profile['last_name']) ?: 'Kein Klarname hinterlegt', ENT_QUOTES) ?></strong>
<p><?= htmlspecialchars($profile['profession'] ?: 'Kein Beruf hinterlegt', ENT_QUOTES) ?></p>
<p><?= htmlspecialchars($profile['languages'] ?: 'Keine Sprachen hinterlegt', ENT_QUOTES) ?></p>
</section>
<div class="profile-summary-grid">
<section class="profile-summary-card">
<span class="profile-summary-card__eyebrow">Basis</span>
<dl class="account-kv account-kv--compact">
<div><dt>Anzeigename</dt><dd><?= htmlspecialchars($profile['display_name'] ?: 'Nicht hinterlegt', ENT_QUOTES) ?></dd></div>
<div><dt>Name</dt><dd><?= htmlspecialchars(trim($profile['first_name'] . ' ' . $profile['last_name']) ?: 'Nicht hinterlegt', ENT_QUOTES) ?></dd></div>
<div><dt>E-Mail</dt><dd><?= htmlspecialchars($profile['email'] ?: 'Nicht hinterlegt', ENT_QUOTES) ?></dd></div>
<div><dt>Telefon</dt><dd><?= htmlspecialchars($profile['contact_phone'] ?: 'Nicht hinterlegt', ENT_QUOTES) ?></dd></div>
</dl>
</section>
<section class="profile-summary-card">
<span class="profile-summary-card__eyebrow">Standort</span>
<dl class="account-kv account-kv--compact">
<div><dt>Adresse</dt><dd><?= htmlspecialchars(trim(implode(', ', array_filter([(string)($profile['street'] ?? ''), trim((string)$profile['zip'] . ' ' . (string)$profile['city']), (string)($profile['region'] ?? '')]))) ?: 'Nicht hinterlegt', ENT_QUOTES) ?></dd></div>
<div><dt>Sprachen</dt><dd><?= htmlspecialchars($profile['languages'] ?: 'Nicht hinterlegt', ENT_QUOTES) ?></dd></div>
<div><dt>Beruf</dt><dd><?= htmlspecialchars($profile['profession'] ?: 'Nicht hinterlegt', ENT_QUOTES) ?></dd></div>
</dl>
</section>
</div>
<?php if (trim((string)$profile['about']) !== ''): ?>
<div class="profile-about-card">
<strong>Über dich</strong>
<p><?= nl2br(htmlspecialchars((string)$profile['about'], ENT_QUOTES)) ?></p>
</div>
<?php if (trim((string)$profile['about']) !== ''): ?>
<div class="profile-about-card">
<strong>Über dich</strong>
<p><?= nl2br(htmlspecialchars((string)$profile['about'], ENT_QUOTES)) ?></p>
</div>
<?php endif; ?>
<?php else: ?>
<div class="profile-summary-grid">
<section class="profile-summary-card">
<span class="profile-summary-card__eyebrow">Basis</span>
<dl class="account-kv account-kv--compact">
<div><dt>Anzeigename</dt><dd><?= htmlspecialchars($profile['display_name'] ?: 'Nicht hinterlegt', ENT_QUOTES) ?></dd></div>
<div><dt>Name</dt><dd><?= htmlspecialchars(trim($profile['first_name'] . ' ' . $profile['last_name']) ?: 'Nicht hinterlegt', ENT_QUOTES) ?></dd></div>
<div><dt>E-Mail</dt><dd><?= htmlspecialchars($profile['email'] ?: 'Nicht hinterlegt', ENT_QUOTES) ?></dd></div>
<div><dt>Telefon</dt><dd><?= htmlspecialchars($profile['contact_phone'] ?: 'Nicht hinterlegt', ENT_QUOTES) ?></dd></div>
</dl>
</section>
<section class="profile-summary-card">
<span class="profile-summary-card__eyebrow">Standort</span>
<dl class="account-kv account-kv--compact">
<div><dt>Adresse</dt><dd><?= htmlspecialchars(trim(implode(', ', array_filter([(string)($profile['street'] ?? ''), trim((string)$profile['zip'] . ' ' . (string)$profile['city']), (string)($profile['region'] ?? '')]))) ?: 'Nicht hinterlegt', ENT_QUOTES) ?></dd></div>
<div><dt>Sprachen</dt><dd><?= htmlspecialchars($profile['languages'] ?: 'Nicht hinterlegt', ENT_QUOTES) ?></dd></div>
<div><dt>Beruf</dt><dd><?= htmlspecialchars($profile['profession'] ?: 'Nicht hinterlegt', ENT_QUOTES) ?></dd></div>
</dl>
</section>
</div>
<?php if (trim((string)$profile['about']) !== ''): ?>
<div class="profile-about-card">
<strong>Über dich</strong>
<p><?= nl2br(htmlspecialchars((string)$profile['about'], ENT_QUOTES)) ?></p>
</div>
<?php endif; ?>
<?php endif; ?>
<div class="flex gap-12" style="margin-top:18px;">
<button class="btn" type="button" data-modal-open="modalProfile">Profil bearbeiten</button>