-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprofile.html.php
35 lines (33 loc) · 1.39 KB
/
profile.html.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
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
<header>
<h1 class="post-title"><?php echo $name;?></h1>
</header>
<section class="post-content">
<?php echo $about; ?>
<h2 class="post-index">Posts by this author</h2>
<?php if (!empty($posts)) { ?>
<ul class="post-list">
<?php foreach ($posts as $p): ?>
<li class="item">
<span><a href="<?php echo $p->url ?>"><?php echo $p->title ?></a></span> on
<span><?php echo format_date($p->date); ?></span> - Posted in <span class="tag"><?php echo $p->category; ?></span>
</li>
<?php endforeach; ?>
</ul>
<?php } else {
echo 'No posts found!';
} ?>
</section>
<?php if (!empty($posts)) { ?>
<?php if (!empty($pagination['prev']) || !empty($pagination['next'])): ?>
<nav class="pagination" role="pagination">
<?php if (!empty($pagination['prev'])): ?>
<a class="newer-posts" href="?page=<?php echo $page - 1 ?>"><i class="fa fa-chevron-circle-left"></i> Newer</a>
<?php endif; ?>
<?php echo $pagination['pagenum'];?>
<?php if (!empty($pagination['next'])): ?>
<a class="older-posts" href="?page=<?php echo $page + 1 ?>">Older <i class="fa fa-chevron-circle-right"></i></a>
<?php endif; ?>
</nav>
<?php endif; ?>
<?php } ?>