design article title and add author virtual page
This commit is contained in:
parent
6fe73efbcf
commit
2114fbbb8e
12 changed files with 129 additions and 25 deletions
24
site/templates/author.php
Normal file
24
site/templates/author.php
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
<?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()
|
||||
]
|
||||
]) ?>
|
||||
</article>
|
||||
</main>
|
||||
|
|
@ -8,13 +8,18 @@
|
|||
</div>
|
||||
</header>
|
||||
<main id="<?= $page->template() ?>">
|
||||
<article>
|
||||
<div class="article-header">
|
||||
<h1 class="main-title title-center <?= setTitleFontSizeClass($page->title()) ?>"><?= $page->title() ?></h1>
|
||||
<p>Par <a href="/auteur/<?= 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()
|
||||
]
|
||||
]) ?>
|
||||
<h1 class="title-center"><?= $page->title() ?></h1>
|
||||
</article>
|
||||
</main>
|
||||
|
||||
<?php snippet('footer') ?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue