save before move tabs outside from header
This commit is contained in:
parent
f9397935bd
commit
94d404288f
13 changed files with 116 additions and 64 deletions
|
|
@ -1,5 +1,5 @@
|
|||
<?php snippet('header') ?>
|
||||
<header id="header">
|
||||
<header id="main-header">
|
||||
<div id="logo">
|
||||
<a href="/" class="no-line">
|
||||
<h1 id="actuel">actuel</h1>
|
||||
|
|
@ -9,15 +9,22 @@
|
|||
</header>
|
||||
|
||||
<main id="<?= $page->template() ?>">
|
||||
<h3 class="title-center">
|
||||
critique des arts<br />
|
||||
et des techniques<br>
|
||||
</h3>
|
||||
<?php snippet('tabs', [
|
||||
'left' => [
|
||||
'label' => 'édito',
|
||||
'content' => $site->edito()
|
||||
]
|
||||
]) ?>
|
||||
<?php snippet('cover', slots: true) ?>
|
||||
<?php slot('title') ?>
|
||||
<h3 class="title-center">
|
||||
revue critique<br>
|
||||
des arts et des techniques<br>
|
||||
</h3>
|
||||
<?php endslot() ?>
|
||||
|
||||
<?php slot('tabs') ?>
|
||||
<?php snippet('tabs', [
|
||||
'left' => [
|
||||
'label' => 'édito',
|
||||
'content' => $site->edito()
|
||||
]
|
||||
]) ?>
|
||||
<?php endslot() ?>
|
||||
<?php endsnippet() ?>
|
||||
</main>
|
||||
<?php snippet('footer') ?>
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
<?php snippet('header') ?>
|
||||
<header id="header" class="minimized">
|
||||
<header id="main-header" class="minimized">
|
||||
<div id="logo" >
|
||||
<a href="/" class="no-line">
|
||||
<h2 id="actuel">actuel</h2>
|
||||
|
|
@ -9,16 +9,22 @@
|
|||
</header>
|
||||
<main id="<?= $page->template() ?>">
|
||||
<article>
|
||||
<div class="article-header">
|
||||
<?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>
|
||||
</div>
|
||||
<?php snippet('tabs', [
|
||||
'left' => [
|
||||
'label' => 'Édito ' . $page->parent()->title(),
|
||||
'content' => $page->parent()->edito()
|
||||
]
|
||||
]) ?>
|
||||
<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>
|
||||
<?php endslot() ?>
|
||||
<?php slot('tabs') ?>
|
||||
<?php snippet('tabs', [
|
||||
'left' => [
|
||||
'label' => 'édito ' . $page->parent()->title(),
|
||||
'content' => $page->parent()->edito()
|
||||
],
|
||||
'activeTab' => 'édito ' . $page->parent()->title()
|
||||
]) ?>
|
||||
<?php endslot() ?>
|
||||
<?php endsnippet() ?>
|
||||
<?= $page->body() ?>
|
||||
</article>
|
||||
</main>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue