This commit is contained in:
sarahgarcin1 2026-04-09 18:20:12 +02:00
commit 76dc174fca
389 changed files with 9678 additions and 1597 deletions

View file

@ -17,7 +17,7 @@ if ($block->location() == 'web') {
<?php if ($src): ?>
<div class="full-bleed-image full-page">
<figure class="<?= $fullWidth ? 'full-width' : '' ?>">
<figure id="<?= $block->id() ?>" class="<?= $fullWidth ? 'full-width' : '' ?>">
<img src="<?= $src ?>" alt="<?= $alt->esc() ?>">
<?php if ($caption->isNotEmpty()): ?>
<figcaption><?= $caption ?></figcaption>

View file

@ -4,7 +4,7 @@ $caption = $block->caption();
$crop = $block->crop()->isTrue();
$ratio = $block->ratio()->or('auto');
?>
<figure<?= Html::attr(['data-ratio' => $ratio, 'data-crop' => $crop], null, ' ') ?>>
<figure id="<?= $block->id() ?>"<?= Html::attr(['data-ratio' => $ratio, 'data-crop' => $crop], null, ' ') ?>>
<ul>
<?php foreach ($block->images()->toFiles() as $image): ?>
<li class="<?= $image->taille()->esc()?> <?= $image->orientation()?>">

View file

@ -8,7 +8,7 @@ $src = $block->image()->toFile()->url();
?>
<?php if ($src): ?>
<figure class="print-image full-page <?= $block->taille()->esc() ?>">
<figure id="<?= $block->id() ?>" class="print-image full-page <?= $block->taille()->esc() ?>">
<img src="<?= $src ?>" alt="<?= $alt->esc() ?>">

View file

@ -8,7 +8,7 @@ $src = $block->image()->toFile()->url();
?>
<?php if ($src): ?>
<figure class="float-image">
<figure id="<?= $block->id() ?>" class="float-image">
<img src="<?= $src ?>" alt="<?= $alt->esc() ?>">
<?php if ($caption->isNotEmpty()): ?>
<figcaption>

View file

@ -17,7 +17,7 @@ if ($block->location() == 'web') {
<?php if ($src): ?>
<div class="spread-image">
<figure class="<?= $fullWidth ? 'full-width' : '' ?>">
<figure id="<?= $block->id() ?>" class="<?= $fullWidth ? 'full-width' : '' ?>">
<img src="<?= $src ?>" alt="<?= $alt->esc() ?>">
<?php if ($caption->isNotEmpty()): ?>
<figcaption><?= $caption ?></figcaption>

View file

@ -23,7 +23,7 @@
<!-- Interpage chapitre -->
<?php if($cover = $chapitre->cover()->toFile()):?>
<div class="interpage full-bleed-image">
<figure>
<figure id="cover-<?= $chapitre->uid() ?>">
<img src="<?= $cover->url() ?>" alt="">
</figure>
</div>
@ -37,22 +37,48 @@
<!-- Entrées des chapitres -->
<div class="chapter-header">
<p class="type"><?= $chapitre->typeof()?></p>
<!-- <div class="hgroup-before">////<br>/////<br>///<br>//<br>
/<br>/<br>/<br>/<br>/<br>/<br>
///<br>//<br>/<br>/<br>
/<br><br>/<br>//<br>/<br>
</div> -->
<div class="hgroup">
<!-- <div class="title-before">++--------------------------+</div> -->
<div class="title-before">/////////// <?= $chapitre->typeof()->html()?> ///////////<br>/////////////////////////////</div>
<h2><span><?= $chapitre->title()->html()->smartypants() ?></span></h2>
<div class="title-between">/</div>
<p class="author"><span><?= $chapitre->author()->html()->smartypants() ?></span></p>
<!-- <div class="title-after">//////////////////////<br>//////////////////////</div> -->
<!-- <div class="title-after">+--------------------------++</div> -->
</div>
<!-- <div class="hgroup-after">+<br>++<br>+++<br>++++<br>+++<br>++<br>+<br></div> -->
<?php
$type = $chapitre->typeof()->value();
switch ($type) {
case 'entretien':
$symbol = '@';
$before = '@/////////';
$after = '/////////@';
$separator = '@///////////////////////////@';
break;
case 'portfolio':
$symbol = '+';
$before = '+/////////';
$after = '/////////+';
$separator = '+///////////////////////////+';
break;
default:
$symbol = '*';
$before = '*//////////';
$after = '//////////*';
$separator = '*///////////////////////////*';
break;
}
?>
<div class="hgroup">
<div class="type-container">
<div class="before"><?= $before ?></div>
<div class="type"><?= $chapitre->typeof()->html() ?></div>
<div class="after"><?= $after ?></div>
</div>
<div class="type-separator"><?= $separator ?></div>
<h2><span><?= $chapitre->title()->html()->smartypants() ?></span></h2>
<div class="title-between">/ / </div>
<p class="author"><span><?= $chapitre->author()->html()->smartypants() ?></span></p>
<div class="title-after">/ / / / / / </div>
</div>
</div>
@ -73,7 +99,7 @@
<?php if($spread = $portfolioEl->spread()->toFile()):?>
<div class="spread">
<div class="spread-inner">
<figure class="spread__left">
<figure id="spread-<?= $counter ?>-left" class="spread__left">
<div class="spread-content">
<img src="<?= $spread->url() ?>">
</div>
@ -86,7 +112,7 @@
<?php endif;?>
<?php endif;?>
<!-- <div class="pagebreak"></div> -->
<figure class="spread__right">
<figure id="spread-<?= $counter ?>-right" class="spread__right">
<div class="spread-content">
<img src="<?= $spread->url() ?>">
</div>