-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprofile.html.php
More file actions
41 lines (39 loc) · 1.61 KB
/
profile.html.php
File metadata and controls
41 lines (39 loc) · 1.61 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
34
35
36
37
38
39
40
41
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
<style>
.tags-p a:after {content:','}
.tags-p a:last-child:after {content:'';}
</style>
<article class="post post--text">
<header class="post__header">
<h1 class="post__title" style="margin-bottom:20px;"><?php echo $name ?></h1>
</header>
<div class="post__content">
<div class="page-header">
<?php echo $about ?>
</div>
<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> on
<span><?php echo format_date($p->date) ?></span>. <?php echo i18n('Posted_in');?> <span class="tags-p"><?php echo $p->category;?></span>
</li>
<?php endforeach; ?>
</ul>
<?php } else {
echo i18n('No_posts_found') . '!';
} ?>
</div>
</article>
<?php if (!empty($pagination['prev']) || !empty($pagination['next'])): ?>
<nav class="pagination">
<?php if (!empty($pagination['prev'])): ?>
<a href="?page=<?php echo $page - 1 ?>" class="pagination__item pagination__item--previous"><?php echo i18n('Next');?></a>
<?php endif; ?>
<?php if (!empty($pagination['next'])): ?>
<a href="?page=<?php echo $page + 1 ?>" class="pagination__item pagination__item--next"><?php echo i18n('Prev');?></a>
<?php endif; ?>
<span class="pagination__stats"><?php echo $pagination['pagenum'];?></span>
</nav>
<?php endif; ?>