Initial commit
This commit is contained in:
commit
388079e6bb
1108 changed files with 330121 additions and 0 deletions
15
site/templates/default.php
Normal file
15
site/templates/default.php
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<?php snippet('head') ?>
|
||||
<?php snippet('header') ?>
|
||||
|
||||
<main class="default__page" id="fade">
|
||||
<div class="default__page__wrapper">
|
||||
<h1><?= $page->title()->html()->smartypants()?></h1>
|
||||
<?php foreach ($page->text()->toBlocks() as $block): ?>
|
||||
<div id="<?= $block->id() ?>" class="block block-type-<?= $block->type() ?>">
|
||||
<?= $block ?>
|
||||
</div>
|
||||
<?php endforeach ?>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<?php snippet('footer');?>
|
||||
23
site/templates/home.php
Normal file
23
site/templates/home.php
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
<?php snippet('head') ?>
|
||||
<?php snippet('header') ?>
|
||||
|
||||
<?php $sizes = "(min-width: 1200px) 25vw,
|
||||
(min-width: 900px) 33vw,
|
||||
(min-width: 600px) 50vw,
|
||||
100vw";
|
||||
?>
|
||||
|
||||
<main class="home" id="fade">
|
||||
<section>
|
||||
|
||||
<?php foreach($site->index()->filterBy('intendedTemplate', 'chapitre') as $chapitre):?>
|
||||
<article>
|
||||
<h2><?= $chapitre->title()->html() ?></h2>
|
||||
<?= $chapitre->text()->toBlocks() ?>
|
||||
</article>
|
||||
<?php endforeach;?>
|
||||
</section>
|
||||
|
||||
</main>
|
||||
|
||||
<?php snippet('footer');?>
|
||||
35
site/templates/print.php
Normal file
35
site/templates/print.php
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
<?php snippet('head') ?>
|
||||
|
||||
|
||||
<?php $sizes = "(min-width: 1200px) 25vw,
|
||||
(min-width: 900px) 33vw,
|
||||
(min-width: 600px) 50vw,
|
||||
100vw";
|
||||
?>
|
||||
|
||||
<header id="interface-header" w3-include-html="assets/pagedjs/interface.html"></header>
|
||||
|
||||
<div id="render-book"></div>
|
||||
|
||||
<template id="book-content">
|
||||
<section class="cover">
|
||||
<h1><?= $site->title()->html()?></h1>
|
||||
</section>
|
||||
<section class="toc">
|
||||
<h2>Sommaire</h2>
|
||||
<article id="table-of-contents"></article>
|
||||
</section>
|
||||
|
||||
<?php foreach($site->index()->filterBy('intendedTemplate', 'chapitre') as $chapitre):?>
|
||||
<section class="chapter">
|
||||
<h2><?= $chapitre->title()->html()->smartypants() ?></h2>
|
||||
<?php foreach ($chapitre->text()->toBlocks() as $block): ?>
|
||||
<div id="<?= $block->id() ?>" class="block block-type-<?= $block->type() ?>">
|
||||
<?= $block ?>
|
||||
</div>
|
||||
<?php endforeach ?>
|
||||
</section>
|
||||
<?php endforeach;?>
|
||||
</template>
|
||||
|
||||
<?php snippet('footer');?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue