portfolio iyo bissek
This commit is contained in:
parent
fc85403e3a
commit
044ce3f76b
147 changed files with 218 additions and 38 deletions
|
|
@ -35,6 +35,17 @@
|
|||
<span class="nav-author"><?= $chapitre->author()->html()->smartypants() ?></span>
|
||||
<span class="nav-title"><?= $chapitre->title()->html()->smartypants() ?></span>
|
||||
|
||||
<!-- Image avant le titre -->
|
||||
<?php $avantTitre = $chapitre->avant_titre()->toObject(); ?>
|
||||
<?php if ($avantTitre->image()->isNotEmpty() && ($img = $avantTitre->image()->toFile())): ?>
|
||||
<figure class="intro-portfolio <?= $avantTitre->doublepage()->toBool() ? 'double-page' : '' ?>">
|
||||
<img src="<?= $img->url() ?>" alt="">
|
||||
<?php if ($avantTitre->caption()->isNotEmpty()): ?>
|
||||
<figcaption><?= $avantTitre->caption()->html() ?></figcaption>
|
||||
<?php endif ?>
|
||||
</figure>
|
||||
<?php endif ?>
|
||||
|
||||
<!-- Entrées des chapitres -->
|
||||
<div class="chapter-header">
|
||||
|
||||
|
|
@ -83,8 +94,9 @@
|
|||
|
||||
|
||||
<div class="chapter-content">
|
||||
<?php $GLOBALS['figCount'] = 0; ?>
|
||||
<?php foreach ($chapitre->text()->toBlocks() as $block): ?>
|
||||
<div id="<?= $block->id() ?>" class="block block-type-<?= $block->type() ?>">
|
||||
<div id="<?= $block->id() ?>" class="block block-type-<?= $block->type() ?><?= $block->classes()->isNotEmpty() ? ' ' . implode(' ', $block->classes()->split(',')) : '' ?>">
|
||||
<?= $block ?>
|
||||
</div>
|
||||
<?php endforeach ?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue