fix html
This commit is contained in:
parent
416d8e94b3
commit
8bdd63afe2
3 changed files with 32 additions and 3 deletions
|
|
@ -10,9 +10,14 @@ image:
|
|||
tabs:
|
||||
contentTab:
|
||||
fields:
|
||||
published:
|
||||
label: Date d'envoi
|
||||
type: date
|
||||
default: today
|
||||
width: 1/3
|
||||
help: Affichée dans la version web
|
||||
sendBtn:
|
||||
type: send-button
|
||||
body:
|
||||
label: Contenu
|
||||
type: writer
|
||||
sendBtn:
|
||||
type: send-button
|
||||
width: 1/4
|
||||
|
|
|
|||
23
site/templates/email.php
Normal file
23
site/templates/email.php
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
<?php snippet('header') ?>
|
||||
<main id="<?= $page->template() ?>">
|
||||
<article>
|
||||
<?php snippet('cover', array('isOpen' => true), slots: true) ?>
|
||||
<?php slot('title') ?>
|
||||
<h1 class="main-title"><?= $page->title() ?></h1>
|
||||
|
||||
<?php if ($page->published()->isNotEmpty()): ?>
|
||||
<p>
|
||||
<span class="light">envoyée le </span><?= $page->published()->toDate('d/m/Y') ?>
|
||||
</p>
|
||||
<?php endif ?>
|
||||
|
||||
<?php endslot() ?>
|
||||
<?php endsnippet() ?>
|
||||
|
||||
<div id="main-content">
|
||||
<?= $page->body() ?>
|
||||
</div>
|
||||
</article>
|
||||
</main>
|
||||
|
||||
<?php snippet('footer') ?>
|
||||
|
|
@ -50,6 +50,7 @@
|
|||
</div>
|
||||
</li>
|
||||
<?php endforeach ?>
|
||||
</ul>
|
||||
</div>
|
||||
</article>
|
||||
</main>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue