-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathmain.html.php
More file actions
45 lines (45 loc) · 2.01 KB
/
Copy pathmain.html.php
File metadata and controls
45 lines (45 loc) · 2.01 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
42
43
44
45
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
<!-- Main Content -->
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
<?php if (config('category.info') === 'true'):?>
<?php if (!empty($category)): ?>
<div class="category-info">
<blockquote class="category">
<?php echo $category->body; ?>
</blockquote>
<hr>
</div>
<?php endif; ?>
<?php endif; ?>
<?php foreach ($posts as $p): ?>
<div class="post-preview">
<a href="<?php echo $p->url; ?>">
<h2 class="post-title">
<?php echo $p->title; ?>
</h2>
</a>
<p class="post-meta"><?php echo i18n('Posted_in');?> <?php echo $p->category; ?> <?php echo i18n('by');?> <a href="<?php echo $p->authorUrl; ?>"><?php echo $p->authorName; ?></a> - <?php echo format_date($p->date); ?></p>
<?php echo get_teaser($p->body, $p->url); ?>
</div>
<hr>
<?php endforeach; ?>
<?php if (!empty($pagination['prev']) || !empty($pagination['next'])): ?>
<!-- Pager -->
<ul class="pager">
<?php if (!empty($pagination['prev'])): ?>
<li class="prev pull-left">
<a class="prev page-numbers" href="?page=<?php echo $page - 1 ?>" rel="prev">← <?php echo i18n('Newer');?></a>
</li>
<?php endif;?>
<?php if (!empty($pagination['next'])): ?>
<li class="next pull-right">
<a class="next page-numbers" href="?page=<?php echo $page + 1 ?>" rel="next"><?php echo i18n('Older');?> →</a>
</li>
<?php endif;?>
</ul>
<?php endif; ?>
</div>
</div>
</div>