save broken
This commit is contained in:
parent
94d404288f
commit
f04e9a66fb
17 changed files with 184 additions and 81 deletions
|
|
@ -1,25 +1,20 @@
|
|||
<?php snippet('header'); ?>
|
||||
<header id="header" class="minimized">
|
||||
<div id="logo" >
|
||||
<a href="/" class="no-line">
|
||||
<h2 id="actuel">actuel</h2>
|
||||
<h2 id="inactuel">inactuel</h2>
|
||||
</a>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main id="<?= $page->template() ?>">
|
||||
<article>
|
||||
<div class="article-header">
|
||||
<h1 class="main-title title-center <?= setTitleFontSizeClass($page->title()) ?>"><?= $page->title() ?></h1>
|
||||
<p></p>
|
||||
</div>
|
||||
<?php snippet('tabs', [
|
||||
'left' => [
|
||||
'label' => 'Présentation',
|
||||
'content' => $page->presentation()
|
||||
],
|
||||
'authorFilter' => $page->author()
|
||||
]) ?>
|
||||
<?php snippet('cover', slots: true) ?>
|
||||
<?php slot('title') ?>
|
||||
<h1 class="main-title title-center <?= setTitleFontSizeClass($page->title()) ?>"><?= $page->title() ?></h1>
|
||||
<?php endslot() ?>
|
||||
<?php slot('tabs') ?>
|
||||
<?php snippet('tabs', [
|
||||
'left' => [
|
||||
'label' => 'Présentation',
|
||||
'content' => $page->presentation()
|
||||
],
|
||||
'authorFilter' => $page->author()
|
||||
]) ?>
|
||||
<?php endslot() ?>
|
||||
<?php endsnippet() ?>
|
||||
</article>
|
||||
</main>
|
||||
|
|
@ -1,12 +1,4 @@
|
|||
<?php snippet('header') ?>
|
||||
<header id="main-header">
|
||||
<div id="logo">
|
||||
<a href="/" class="no-line">
|
||||
<h1 id="actuel">actuel</h1>
|
||||
<h1 id="inactuel">inactuel</h1>
|
||||
</a>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main id="<?= $page->template() ?>">
|
||||
<?php snippet('cover', slots: true) ?>
|
||||
|
|
|
|||
|
|
@ -1,18 +1,20 @@
|
|||
<?php snippet('header') ?>
|
||||
<header id="main-header" class="minimized">
|
||||
<div id="logo" >
|
||||
<a href="/" class="no-line">
|
||||
<h2 id="actuel">actuel</h2>
|
||||
<h2 id="inactuel">inactuel</h2>
|
||||
</a>
|
||||
</div>
|
||||
</header>
|
||||
<main id="<?= $page->template() ?>">
|
||||
<article>
|
||||
<?php snippet('cover', ['isOpen' => true], slots: true) ?>
|
||||
<?php slot('title') ?>
|
||||
<h1 class="main-title title-center <?= setTitleFontSizeClass($page->title()) ?>"><?= $page->title() ?></h1>
|
||||
<p><span class="opacity" style="--opacity:.5">par</span> <a class="author no-line" href="/auteurs/<?= Str::slug($page->author()->toUser()->name()) ?>" title="Voir les articles d'<?= $page->author()->toUser()->name() ?>"><?= $page->author()->toUser()->name() ?></a></p>
|
||||
<p>
|
||||
<span class="opacity" style="--opacity:.6">par </span>
|
||||
<a
|
||||
class="author"
|
||||
href="/auteurs/<?= Str::slug($page->author()->toUser()->name()) ?>"
|
||||
title="Voir les articles d'<?= $page->author()->toUser()->name() ?>"
|
||||
>
|
||||
<?= $page->author()->toUser()->name() ?>
|
||||
</a><br>
|
||||
<span class="opacity" style="--opacity:.6">le <?= $page->published()->toDate('d/m/Y') ?></span>
|
||||
</p>
|
||||
<?php endslot() ?>
|
||||
<?php slot('tabs') ?>
|
||||
<?php snippet('tabs', [
|
||||
|
|
@ -20,12 +22,9 @@
|
|||
'label' => 'édito ' . $page->parent()->title(),
|
||||
'content' => $page->parent()->edito()
|
||||
],
|
||||
'activeTab' => 'édito ' . $page->parent()->title()
|
||||
]) ?>
|
||||
<?php endslot() ?>
|
||||
<?php endsnippet() ?>
|
||||
<?= $page->body() ?>
|
||||
</article>
|
||||
</main>
|
||||
|
||||
<?php snippet('footer') ?>
|
||||
</main>
|
||||
Loading…
Add table
Add a link
Reference in a new issue