-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathstatic.html.php
More file actions
27 lines (25 loc) · 1.03 KB
/
static.html.php
File metadata and controls
27 lines (25 loc) · 1.03 KB
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
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
<article class="post-full post">
<header class="post-full-header">
<h1 class="post-full-title"><?php echo $p->title;?></h1>
<?php if (authorized($p)):?><a href="<?php echo $p->url;?>/edit?destination=post">Edit</a><?php endif;?>
</header>
<section class="post-full-content">
<div class="post-content">
<?php echo $p->body;?>
</div>
</section>
</article>
<style>
.pager {position: relative;text-align: center;width:100%;padding:20px;font-size:18px;}
</style>
<?php if (!empty($prev) || !empty($next)): ?>
<div class="pager">
<?php if (!empty($next)): ?>
<span class="older" style="padding-right:30px;"><a href="<?php echo($next['url']); ?>" rel="next">← <?php echo($next['title']); ?> </a></span>
<?php endif;?>
<?php if (!empty($prev)): ?>
<span class="newer" style="padding-left:30px;"><a href="<?php echo($prev['url']); ?>" rel="prev"><?php echo($prev['title']); ?> →</a></span>
<?php endif;?>
</div>
<?php endif; ?>