-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathprofile.html.php
More file actions
33 lines (33 loc) · 1.25 KB
/
Copy pathprofile.html.php
File metadata and controls
33 lines (33 loc) · 1.25 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
28
29
30
31
32
33
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
<div class="post profile entry">
<div class="entry-header">
<h1 class="entry-title"><?php echo $name ?></h1>
</div>
<div class="entry-content">
<article>
<?php echo $about; ?>
<h2 class="post-index"><?php echo i18n("Post_by_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> -
<span><?php echo format_date($p->date); ?></span> - <?php echo i18n("Posted_in");?> <span><?php echo $p->category; ?></span>
</li>
<?php endforeach; ?>
</ul>
<?php } else {
echo 'No posts found!';
} ?>
</article>
</div>
</div>
<?php if (!empty($posts)) { ?>
<?php if (!empty($pagination['prev']) || !empty($pagination['next'])): ?>
<div class="loop-pagination-container">
<nav class="pagination loop-pagination">
<?php echo $pagination['html'];?>
</nav>
</div>
<?php endif; ?>
<?php } ?>