This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
$app = app();
|
||||
$vm = \App\AccountPages::dashboard($app);
|
||||
extract($vm, EXTR_OVERWRITE);
|
||||
$avatarPlaceholder = 'data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 12 12%22%3E%3Crect width=%2212%22 height=%2212%22 fill=%22%23f7efe6%22/%3E%3C/svg%3E';
|
||||
$editing = isset($editEvent) && $editEvent !== null;
|
||||
$actionEvent = $editing ? 'event_update' : 'event_add';
|
||||
$startVal = $editEvent ? date('Y-m-d\TH:i', strtotime((string)$editEvent['starts_at'])) : '';
|
||||
@@ -325,15 +324,6 @@ $sectionLinks = [
|
||||
</button>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<div class="avatar-loader" data-avatar-loader hidden>
|
||||
<div class="avatar-loader__bar">
|
||||
<span class="avatar-loader__fill" data-avatar-loader-fill style="width:0%"></span>
|
||||
</div>
|
||||
<div class="avatar-loader__meta">
|
||||
<strong data-avatar-loader-label>Varianten werden geladen</strong>
|
||||
<span class="muted small" data-avatar-loader-progress>0%</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="avatar-component-panels">
|
||||
<?php foreach (\App\Avatar\Lorelei::componentDefinitions() as $field => $meta): ?>
|
||||
<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) ?>">
|
||||
@@ -353,14 +343,11 @@ $sectionLinks = [
|
||||
>
|
||||
<span class="avatar-component-card__thumb">
|
||||
<img
|
||||
src="<?= htmlspecialchars($avatarPlaceholder, ENT_QUOTES) ?>"
|
||||
src="<?= htmlspecialchars((string)$choice['image'], ENT_QUOTES) ?>"
|
||||
alt="<?= htmlspecialchars((string)$choice['label'], ENT_QUOTES) ?>"
|
||||
data-avatar-option-thumb
|
||||
data-avatar-option-src="<?= htmlspecialchars((string)$choice['image'], ENT_QUOTES) ?>"
|
||||
data-avatar-option-field="<?= htmlspecialchars((string)$field, ENT_QUOTES) ?>"
|
||||
data-avatar-option-value="<?= htmlspecialchars((string)$choice['value'], ENT_QUOTES) ?>"
|
||||
loading="lazy"
|
||||
decoding="async"
|
||||
>
|
||||
</span>
|
||||
<span class="avatar-component-card__label"><?= htmlspecialchars((string)$choice['label'], ENT_QUOTES) ?></span>
|
||||
@@ -608,7 +595,6 @@ $sectionLinks = [
|
||||
const modal = document.getElementById(id);
|
||||
if (modal) {
|
||||
modal.classList.add('open');
|
||||
document.dispatchEvent(new CustomEvent('pkt:modal-open', { detail: { id } }));
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -777,7 +763,6 @@ $sectionLinks = [
|
||||
const modal = document.getElementById('modalEvent');
|
||||
if (modal) {
|
||||
modal.classList.add('open');
|
||||
document.dispatchEvent(new CustomEvent('pkt:modal-open', { detail: { id: 'modalEvent' } }));
|
||||
}
|
||||
})();
|
||||
<?php endif; ?>
|
||||
|
||||
Reference in New Issue
Block a user