debut d'integration de la version terminal
This commit is contained in:
parent
00edad1729
commit
54ce5faf08
146 changed files with 2532 additions and 40285 deletions
9
site/blueprints/blocks/description.yml
Normal file
9
site/blueprints/blocks/description.yml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
name: Description
|
||||
icon: paragraph
|
||||
wysiwyg: true
|
||||
preview: text
|
||||
fields:
|
||||
text:
|
||||
type: writer
|
||||
nodes: true
|
||||
placeholder: field.blocks.text.placeholder
|
||||
|
|
@ -37,6 +37,7 @@ columns:
|
|||
fieldsets:
|
||||
- heading
|
||||
- text
|
||||
- description
|
||||
- list
|
||||
- quote
|
||||
- interview
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ columns:
|
|||
fieldsets:
|
||||
- heading
|
||||
- text
|
||||
- description
|
||||
- list
|
||||
- quote
|
||||
media:
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ Kirby::plugin('sarahgarcin/notes-tag', [
|
|||
'html' => function($tag) {
|
||||
$note = $tag->attr('note');
|
||||
|
||||
return '<span class="margin-note">'.$note.'</span>';
|
||||
return '<span class="inline-note">'.$note.'</span>';
|
||||
|
||||
}
|
||||
]
|
||||
|
|
|
|||
5
site/snippets/blocks/description.php
Normal file
5
site/snippets/blocks/description.php
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
<?php /** @var \Kirby\Cms\Block $block */ ?>
|
||||
|
||||
<div class="description-before">.............................</div>
|
||||
<div class="description"><?= $block->text()->kt()->smartypants();?></div>
|
||||
<div class="description-after">.............................</div>
|
||||
|
|
@ -8,7 +8,7 @@ $src = $block->image()->toFile()->url();
|
|||
?>
|
||||
|
||||
<?php if ($src): ?>
|
||||
<figure class="web-image">
|
||||
<figure class="print-image full-page <?= $block->taille()->esc() ?>">
|
||||
|
||||
<img src="<?= $src ?>" alt="<?= $alt->esc() ?>">
|
||||
|
||||
|
|
@ -18,29 +18,3 @@ $src = $block->image()->toFile()->url();
|
|||
</figcaption>
|
||||
<?php endif ?>
|
||||
</figure>
|
||||
|
||||
<figure class="print-image full-page <?= $block->taille()->esc() ?>" style="height:<?= $block->image()->toFile()->height()?>px">
|
||||
<?php if($srcred = $block->imagered()->toFile()):?>
|
||||
<div class="print-red red-layer">
|
||||
<img src="<?= $srcred->url() ?>" alt="<?= $alt->esc() ?>">
|
||||
</div>
|
||||
<?php endif ?>
|
||||
<?php if($srcgreen = $block->imagegreen()->toFile()):?>
|
||||
<div class="print-green green-layer">
|
||||
<img src="<?= $srcgreen->url() ?>" alt="<?= $alt->esc() ?>">
|
||||
</div>
|
||||
<?php endif ?>
|
||||
<?php if($srcblue = $block->imageblue()->toFile()):?>
|
||||
<div class="print-blue blue-layer">
|
||||
<img src="<?= $srcblue->url() ?>" alt="<?= $alt->esc() ?>">
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
|
||||
<?php if ($caption->isNotEmpty()): ?>
|
||||
<figcaption>
|
||||
<?= $caption->kt() ?>
|
||||
</figcaption>
|
||||
<?php endif ?>
|
||||
</figure>
|
||||
<?php endif ?>
|
||||
|
|
@ -8,10 +8,8 @@ $src = $block->image()->toFile()->url();
|
|||
?>
|
||||
|
||||
<?php if ($src): ?>
|
||||
<figure class="web-image">
|
||||
|
||||
<figure class="float-image">
|
||||
<img src="<?= $src ?>" alt="<?= $alt->esc() ?>">
|
||||
|
||||
<?php if ($caption->isNotEmpty()): ?>
|
||||
<figcaption>
|
||||
<?= $caption->kt() ?>
|
||||
|
|
@ -19,28 +17,4 @@ $src = $block->image()->toFile()->url();
|
|||
<?php endif ?>
|
||||
</figure>
|
||||
|
||||
<figure class="print-image float-image">
|
||||
<?php if($srcred = $block->imagered()->toFile()):?>
|
||||
<div class="print-red red-layer">
|
||||
<img src="<?= $srcred->url() ?>" alt="<?= $alt->esc() ?>">
|
||||
</div>
|
||||
<?php endif ?>
|
||||
<?php if($srcgreen = $block->imagegreen()->toFile()):?>
|
||||
<div class="print-green green-layer">
|
||||
<img src="<?= $srcgreen->url() ?>" alt="<?= $alt->esc() ?>">
|
||||
</div>
|
||||
<?php endif ?>
|
||||
<?php if($srcblue = $block->imageblue()->toFile()):?>
|
||||
<div class="print-blue blue-layer">
|
||||
<img src="<?= $srcblue->url() ?>" alt="<?= $alt->esc() ?>">
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
|
||||
<?php if ($caption->isNotEmpty()): ?>
|
||||
<figcaption>
|
||||
<?= $caption->kt() ?>
|
||||
</figcaption>
|
||||
<?php endif ?>
|
||||
</figure>
|
||||
<?php endif ?>
|
||||
|
|
@ -20,6 +20,9 @@
|
|||
'assets/css/reset.css',
|
||||
'assets/fonts/stylesheet.css',
|
||||
'assets/css/variables.css',
|
||||
'assets/css/portfolio.css',
|
||||
'assets/css/subtitles.css',
|
||||
'assets/css/text.css',
|
||||
'assets/css/main.css',
|
||||
'@auto'
|
||||
]) ?>
|
||||
|
|
@ -27,17 +30,6 @@
|
|||
<?php if($page->intendedTemplate() == "print"):?>
|
||||
<?= css("assets/pagedjs/interface-header.css")?>
|
||||
<?= css("assets/pagedjs/interface.css")?>
|
||||
<?php else: ?>
|
||||
<?= css([
|
||||
'assets/css/libs/flexboxgrid.css',
|
||||
'assets/css/libs/glightbox.min.css',
|
||||
'assets/css/web.css',
|
||||
'assets/css/responsive.css',
|
||||
'@auto'
|
||||
]) ?>
|
||||
<?php endif;?>
|
||||
|
||||
<?php if($page->intendedTemplate() == "print"):?>
|
||||
<?= js([
|
||||
"assets/pagedjs/paged.js",
|
||||
"assets/pagedjs/interface.js",
|
||||
|
|
@ -47,13 +39,23 @@
|
|||
"assets/js/plugins/fix-justif.js",
|
||||
"assets/js/plugins/fullpage.js",
|
||||
"assets/js/plugins/full-page.js",
|
||||
"assets/js/plugins/margin-notes.js",
|
||||
// "assets/js/plugins/margin-notes.js",
|
||||
"assets/js/plugins/followingNotes.js",
|
||||
"assets/js/plugins/decor-blockquote.js",
|
||||
"assets/js/plugins/decor-num-pages.js",
|
||||
"assets/js/plugins/decor-subtitles.js",
|
||||
"assets/js/plugins/toc.js",
|
||||
"assets/js/handlers.js",
|
||||
'@auto'
|
||||
]) ?>
|
||||
|
||||
<?php else:?>
|
||||
<?php else: ?>
|
||||
<?= css([
|
||||
'assets/css/libs/flexboxgrid.css',
|
||||
'assets/css/libs/glightbox.min.css',
|
||||
'assets/css/web.css',
|
||||
'assets/css/responsive.css',
|
||||
'@auto'
|
||||
]) ?>
|
||||
<?= js([
|
||||
'assets/js/glightbox.min.js',
|
||||
'assets/js/main.js',
|
||||
|
|
|
|||
|
|
@ -18,7 +18,14 @@
|
|||
</section>
|
||||
|
||||
<?php foreach($site->index()->filterBy('intendedTemplate', 'chapitre')->listed() as $chapitre):?>
|
||||
<section class="chapter <?= $chapitre->typeof()->esc()?>" id="<?= $chapitre->uid()?>">
|
||||
<section class="chapter <?= $chapitre->typeof()->esc()?>" data-chapter="<?= $chapitre->typeof()->esc()?>" id="<?= $chapitre->uid()?>">
|
||||
|
||||
<!-- titre courant -->
|
||||
<span class="nav-decor">D6cor</span>
|
||||
<span class="nav-author"><?= $chapitre->author()->html()->smartypants() ?></span>
|
||||
<span class="nav-title"><?= $chapitre->title()->html()->smartypants() ?></span>
|
||||
|
||||
<!-- Interpage chapitre -->
|
||||
<?php if($cover = $chapitre->cover()->toFile()):?>
|
||||
<div class="interpage full-bleed-image full-page">
|
||||
<figure>
|
||||
|
|
@ -26,10 +33,22 @@
|
|||
</figure>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
<div class="chapter-title">
|
||||
<p class="type"><?= $chapitre->typeof()?></p>
|
||||
<h2><?= $chapitre->title()->html()->smartypants() ?></h2>
|
||||
<h3><?= $chapitre->author()->html()->smartypants() ?></h3>
|
||||
|
||||
<!-- 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>
|
||||
<h2><span><?= $chapitre->title()->html()->smartypants() ?></span></h2>
|
||||
<p class="author"><span><?= $chapitre->author()->html()->smartypants() ?></span></p>
|
||||
<div class="title-after">+--------------------------++</div>
|
||||
</div>
|
||||
<div class="hgroup-after">+<br>++<br>+++<br>++++<br>+++<br>++<br>+<br></div>
|
||||
</div>
|
||||
|
||||
<div class="chapter-content">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue