developpement piste finale
This commit is contained in:
parent
221d5abf9a
commit
341b64d33f
122 changed files with 499 additions and 5228 deletions
|
|
@ -56,6 +56,30 @@ columns:
|
|||
fieldsets:
|
||||
- break
|
||||
- blank
|
||||
portfolio:
|
||||
label: Portfolio
|
||||
type: structure
|
||||
fields:
|
||||
spread:
|
||||
label: Image en double page
|
||||
type: files
|
||||
multiple: false
|
||||
imageontop:
|
||||
label: Image superposée
|
||||
type: files
|
||||
multiple: false
|
||||
position:
|
||||
label: Position de l'image superposée
|
||||
type: select
|
||||
options:
|
||||
center: centrée
|
||||
topleft: En haut à gauche
|
||||
topright: En haut à droite
|
||||
bottomleft: En bas à gauche
|
||||
bottomright: En bas à droite
|
||||
largeur:
|
||||
label: Largeur de l'image superposée (en cm)
|
||||
type: number
|
||||
sidebar:
|
||||
width: 1/3
|
||||
sections:
|
||||
|
|
|
|||
|
|
@ -12,8 +12,10 @@
|
|||
<h1><?= $site->title()->html()?></h1>
|
||||
</section>
|
||||
|
||||
<div class="blank-page"></div>
|
||||
|
||||
<section class="toc">
|
||||
<h2>Sommaire</h2>
|
||||
<h2>Sommaire =></h2>
|
||||
<article id="table-of-contents"></article>
|
||||
</section>
|
||||
|
||||
|
|
@ -43,7 +45,7 @@
|
|||
</div> -->
|
||||
<div class="hgroup">
|
||||
<!-- <div class="title-before">++--------------------------+</div> -->
|
||||
<div class="title-before">/////////// ESSAI ///////////<br>/////////////////////////////</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>
|
||||
|
|
@ -53,20 +55,62 @@
|
|||
<!-- <div class="hgroup-after">+<br>++<br>+++<br>++++<br>+++<br>++<br>+<br></div> -->
|
||||
</div>
|
||||
|
||||
<div class="chapter-bio">
|
||||
<?= $chapitre->bio()->kt()?>
|
||||
</div>
|
||||
|
||||
<div class="chapter-content">
|
||||
<?php foreach ($chapitre->text()->toBlocks() as $block): ?>
|
||||
<div id="<?= $block->id() ?>" class="block block-type-<?= $block->type() ?>">
|
||||
<?= $block ?>
|
||||
</div>
|
||||
<?php endforeach ?>
|
||||
<?php foreach ($chapitre->text()->toBlocks() as $block): ?>
|
||||
<div id="<?= $block->id() ?>" class="block block-type-<?= $block->type() ?>">
|
||||
<?= $block ?>
|
||||
</div>
|
||||
<?php endforeach ?>
|
||||
<!-- Pour les portfolios -->
|
||||
<?php if($chapitre->portfolio()->isNotEmpty()):?>
|
||||
<?php
|
||||
$portfolio = $chapitre->portfolio()->toStructure();
|
||||
$counter = 0;
|
||||
?>
|
||||
<?php foreach($portfolio as $portfolioEl): ?>
|
||||
<?php $counter ++?>
|
||||
<?php if($spread = $portfolioEl->spread()->toFile()):?>
|
||||
<div class="spread">
|
||||
<div class="spread-inner">
|
||||
<figure class="spread__left">
|
||||
<div class="spread-content">
|
||||
<img src="<?= $spread->url() ?>">
|
||||
</div>
|
||||
</figure>
|
||||
<?php if($portfolioEl->position() == "topleft" || $portfolioEl->position() == "bottomleft"):?>
|
||||
<?php if($image = $portfolioEl->imageontop()->toFile()):?>
|
||||
<div class="image__top <?= $portfolioEl->position()?>" style="width: <?= $portfolioEl->largeur() ?>cm">
|
||||
<img src="<?= $image->url() ?>">
|
||||
</div>
|
||||
<?php endif;?>
|
||||
<?php endif;?>
|
||||
<div class="pagebreak"></div>
|
||||
<figure class="spread__right">
|
||||
<div class="spread-content">
|
||||
<img src="<?= $spread->url() ?>">
|
||||
</div>
|
||||
</figure>
|
||||
<?php if($portfolioEl->position() == "topright" || $portfolioEl->position() == "bottomright" || $portfolioEl->position() == "center"):?>
|
||||
<?php if($image = $portfolioEl->imageontop()->toFile()):?>
|
||||
<div class="image__top <?= $portfolioEl->position()?>" style="width: <?= $portfolioEl->largeur() ?>cm">
|
||||
<img src="<?= $image->url() ?>">
|
||||
</div>
|
||||
<?php endif;?>
|
||||
<?php endif;?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="pagebreak"></div>
|
||||
<?php endif;?>
|
||||
|
||||
<?php endforeach ?>
|
||||
<?php endif;?>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
<?php endforeach;?>
|
||||
|
||||
</template>
|
||||
<?php snippet('footer');?>
|
||||
<?php snippet('footer');?>
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue