modifs version web, demande alexandre
All checks were successful
Deploy / Build and Deploy to Production (push) Successful in 27s

This commit is contained in:
sarahgarcin1 2026-03-12 10:18:08 +01:00
parent 1f3649fc14
commit df5e2e495c
6 changed files with 91 additions and 87 deletions

View file

@ -123,19 +123,15 @@ foreach ($subpages as $subpage) {
<?php if ($original->author()->isNotEmpty()): ?>
<p class="nw-hero__author">Par <span><?= html($original->author()) ?></span></p>
<?php endif ?>
<!-- Introduction -->
<?php if ($original->intro()->isNotEmpty()): ?>
<div class="nw-introduction__body nw-container--narrow">
<?= $original->intro() ?>
</div>
<?php endif ?>
</div>
</header>
<!-- Introduction -->
<?php if ($original->intro()->isNotEmpty()): ?>
<section class="nw-introduction">
<div class="nw-container nw-container--narrow">
<div class="nw-introduction__body">
<?= $original->intro() ?>
</div>
</div>
</section>
<?php endif ?>
<!-- ═══════════════════════════════════════════
SOUS-PAGES
@ -150,45 +146,47 @@ foreach ($subpages as $subpage) {
───────────────────────────────────────── -->
<?php if ($tpl === 'map'): ?>
<section class="nw-section nw-section--map" id="section-<?= $subpage->uid() ?>">
<div class="nw-container">
<header class="nw-section__header">
<h2 class="nw-section__title"><?= html($subpage->title()) ?></h2>
<?php if ($subpage->tags()->isNotEmpty()): ?>
<div class="nw-tags">
<?php foreach ($subpage->tags()->split(',') as $tag): ?>
<span class="nw-tag"><?= html(trim($tag)) ?></span>
<?php endforeach ?>
</div>
<div class="nw-section--map__wrapper">
<div class="nw-container nw-section__header__wrapper">
<header class="nw-section__header">
<h2 class="nw-section__title"><?= html($subpage->title()) ?></h2>
<?php if ($subpage->tags()->isNotEmpty()): ?>
<div class="nw-tags">
<?php foreach ($subpage->tags()->split(',') as $tag): ?>
<span class="nw-tag"><?= html(trim($tag)) ?></span>
<?php endforeach ?>
</div>
<?php endif ?>
</header>
<?php if ($subpage->intro()->isNotEmpty()): ?>
<div class="nw-prose"><?= $subpage->intro() ?></div>
<?php endif ?>
</header>
<?php if ($subpage->intro()->isNotEmpty()): ?>
<div class="nw-prose"><?= $subpage->intro() ?></div>
<?php endif ?>
</div>
<!-- Carte MapLibre inline -->
<?php
$markers = $subpage->children()->listed()->filterBy('intendedTemplate', 'marker');
$mapId = 'map-' . $subpage->uid();
?>
<div class="nw-map-wrap">
<div id="<?= $mapId ?>" class="nw-map"></div>
</div>
<!-- Fichiers de la carte -->
<?php if ($subpage->files()->isNotEmpty()): ?>
<div class="nw-container">
<div class="nw-files">
<?php foreach ($subpage->files() as $file): ?>
<a href="<?= $file->url() ?>" class="nw-file" target="_blank">
<span class="nw-file__icon"></span>
<span class="nw-file__name"><?= html($file->filename()) ?></span>
</a>
<?php endforeach ?>
</div>
</div>
<?php endif ?>
<!-- Carte MapLibre inline -->
<?php
$markers = $subpage->children()->listed()->filterBy('intendedTemplate', 'marker');
$mapId = 'map-' . $subpage->uid();
?>
<div class="nw-map-part">
<div class="nw-map-wrap">
<div id="<?= $mapId ?>" class="nw-map"></div>
</div>
<!-- Fichiers de la carte -->
<?php if ($subpage->files()->isNotEmpty()): ?>
<div class="nw-files">
<?php foreach ($subpage->files() as $file): ?>
<a href="<?= $file->url() ?>" class="nw-file" target="_blank">
<span class="nw-file__icon"></span>
<span class="nw-file__name"><?= html($file->filename()) ?></span>
</a>
<?php endforeach ?>
</div>
<?php endif ?>
</div>
</div>
<!-- ── Liste des marqueurs sous la carte ── -->
<?php if ($markers->isNotEmpty()): ?>