Préparer la version 1.0.0-rc.4
This commit is contained in:
parent
0a482afe9d
commit
6e3beea211
38 changed files with 388 additions and 56 deletions
|
|
@ -5,7 +5,7 @@ $obfuscate = static fn (string$value): string => implode('', array_reverse(mb_st
|
|||
<div class="wrap">
|
||||
<div class="content-card">
|
||||
<h1 class="page-title"><?= h(t('public_site.contact')) ?></h1>
|
||||
<p><?= nl2br(h($settings['public_site_contact_text'])) ?></p>
|
||||
<div><?= PublicContentFormatter::render($settings['public_site_contact_text']) ?></div>
|
||||
<div class="contact-list"><?php if ($fullAddress !== ''): ?><div class="contact-item">📍
|
||||
<?= h($fullAddress) ?></div><?php endif; ?><?php if ($settings['association_phone']): ?><div
|
||||
class="contact-item">☎ <span
|
||||
|
|
@ -13,11 +13,13 @@ $obfuscate = static fn (string$value): string => implode('', array_reverse(mb_st
|
|||
<?php endif; ?><?php if ($settings['association_email']): ?><div class="contact-item">✉ <span
|
||||
class="contact-obfuscated"><?= h($obfuscate($settings['association_email'])) ?></span></div>
|
||||
<?php endif; ?></div>
|
||||
<div class="chips" style="margin-top:25px"><?php if ($settings['public_site_facebook_url']): ?><a
|
||||
class="button secondary" href="<?= h($settings['public_site_facebook_url']) ?>"
|
||||
rel="noopener noreferrer">Facebook</a><?php endif; ?><?php if ($settings['public_site_instagram_url']): ?><a
|
||||
class="button secondary" href="<?= h($settings['public_site_instagram_url']) ?>"
|
||||
rel="noopener noreferrer">Instagram</a><?php endif; ?></div>
|
||||
<div class="chips" style="margin-top:25px">
|
||||
<?php foreach (['facebook' => 'Facebook','instagram' => 'Instagram','mastodon' => 'Mastodon','youtube' => 'YouTube','tiktok' => 'TikTok','bluesky' => 'Bluesky'] as $network => $label):
|
||||
$url = trim((string)($settings['public_site_' . $network . '_url'] ?? ''));
|
||||
if ($url === '') continue; ?>
|
||||
<a class="button secondary" href="<?= h($url) ?>" rel="noopener noreferrer"><?= h($label) ?></a>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php if ($lat !== null && $lng !== null): ?><h2 style="margin-top:35px">
|
||||
<?= h(t('public_site.map_title')) ?></h2>
|
||||
<div id="association-map" class="contact-map" aria-label="<?= h(t('public_site.map_title')) ?>"></div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue