-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage.php
37 lines (37 loc) · 856 Bytes
/
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
<?= self::enter(); ?>
<article>
<?php if ($page->exist): ?>
<header>
<?= self::get('page.tags', ['tags' => $page->tags]); ?>
<h1>
<?= $page->title; ?>
</h1>
<?php if ($site->has('parent')): ?>
<time datetime="<?= eat($page->time->format('c')); ?>">
<?= $page->time($site->y->contrast->{'date-format'}); ?>
</time>
<?php endif; ?>
</header>
<div>
<?= $page->content; ?>
</div>
<?php if ($site->has('parent') && !empty($state->x->comment)): ?>
<hr>
<div>
<?= self::comments(); ?>
</div>
<?php endif; ?>
<?php else: ?>
<header>
<h1>
<?= i('Error'); ?>
</h1>
</header>
<div>
<p>
<?= i('%s does not exist.', 'Page'); ?>
</p>
</div>
<?php endif; ?>
</article>
<?= self::exit(); ?>