details style
This commit is contained in:
parent
94d14d70c1
commit
af9785e436
23 changed files with 95 additions and 31 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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()?>">
|
||||
|
|
|
|||
|
|
@ -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() ?>">
|
||||
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
@ -99,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>
|
||||
|
|
@ -112,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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue