-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage-.php
38 lines (38 loc) · 1.09 KB
/
page-.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php $view = isset($state->x->view); ?>
<header class="page-header">
<?php if ($site->has('page') && $site->has('parent')): ?>
<p class="page-meta">
<time class="page-time" datetime="<?= eat($page->time->format('c')); ?>">
<?= $page->time('%A, %B %d, %Y'); ?>
<?= $view ? ' · ' . $page->view : ""; ?>
</time>
</p>
<?php endif; ?>
<h2 class="page-title">
<span class="a">
<?= $page->title; ?>
</span>
</h2>
</header>
<div class="page-body">
<div class="page-content">
<?= $page->content; ?>
</div>
<?php if ($page->link): ?>
<p>
<a class="button page-link" href="<?= eat($page->link); ?>">
<?= i('Direct Link'); ?>
</a>
</p>
<?php endif; ?>
</div>
<?php if ($site->has('page') && $site->has('parent')): ?>
<footer class="page-footer p">
<div>
<?= i('Posted by %s at %s', [self::get('page.author', $lot), '<time datetime="' . $page->time->format('c') . '">' . $page->time('%r') . '</time>']); ?>
</div>
<div>
<?= self::get('page.tags', $lot); ?>
</div>
</footer>
<?php endif; ?>