-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pages.php
27 lines (27 loc) · 799 Bytes
/
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
<?= self::enter(); ?>
<?php if ($page->exist): ?>
<?php if ($pages->count): ?>
<?php foreach ($pages as $page): ?>
<article class="page type:<?= c2f($page->type); ?>" id="page:<?= $page->id; ?>">
<?= self::get('pages-', ['page' => $page]); ?>
</article>
<?php endforeach; ?>
<?php else: ?>
<article class="page">
<div class="page-body">
<div class="page-content">
<p role="status">
<?php if ($site->has('part')): ?>
<?= i('No more %s to show.', ['posts']); ?>
<?php else: ?>
<?= i('No %s yet.', ['posts']); ?>
<?php endif; ?>
</p>
</div>
</div>
</article>
<?php endif; ?>
<?php else: ?>
<?php endif; ?>
<?= self::pager(); ?>
<?= self::exit(); ?>