-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pages-.php
47 lines (45 loc) · 1.12 KB
/
pages-.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
39
40
41
42
43
44
45
46
47
<?php
$page = $lot['page'];
$view = isset($state->x->view);
?>
<header class="page-header">
<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>
<h4 class="page-title">
<?php if ($page->link): ?>
<a class="page-link" href="<?= eat($page->link); ?>" target="_blank">
<?= $page->title; ?>
</a>
<?php elseif ($page->url): ?>
<a class="page-url" href="<?= eat($page->url); ?>">
<?= $page->title; ?>
</a>
<?php else: ?>
<span class="a">
<?= $page->title; ?>
</span>
<?php endif; ?>
</h4>
</header>
<div class="page-body">
<?php if ($excerpt = $page->excerpt): ?>
<div class="page-excerpt">
<?= $excerpt; ?>
<p role="group">
<a href="<?= eat($page->url . '#next:' . $page->id); ?>">
<?= i('Continue'); ?>
</a>
</p>
</div>
<?php else: ?>
<div class="page-description">
<p>
<?= $page->description; ?>
</p>
</div>
<?php endif; ?>
</div>