|
|
@ -1,7 +1,7 @@ |
|
|
<h2 class="post-index"><?php echo $heading?></h2>
|
|
|
<h2 class="post-index"><?php echo $heading?></h2>
|
|
|
<?php if(!empty($posts)) {?>
|
|
|
<?php if(!empty($posts)) {?>
|
|
|
<table class="post-list"> |
|
|
<table class="post-list"> |
|
|
<tr class="head"><th>Title</th><th>Published</th><th>Views</th><th>Tag</th><th>Operations</th></tr> |
|
|
|
|
|
|
|
|
<tr class="head"><th>Title</th><th>Published</th><?php if(config("views.counter") == "true"):?><th>Views</th><?php endif; ?><th>Tag</th><th>Operations</th></tr>
|
|
|
<?php $i = 0; $len = count($posts);?>
|
|
|
<?php $i = 0; $len = count($posts);?>
|
|
|
<?php foreach($posts as $p):?>
|
|
|
<?php foreach($posts as $p):?>
|
|
|
<?php |
|
|
<?php |
|
|
@ -19,7 +19,7 @@ |
|
|
<tr class="<?php echo $class ?>"> |
|
|
<tr class="<?php echo $class ?>"> |
|
|
<td><a target="_blank" href="<?php echo $p->url ?>"><?php echo $p->title ?></a></td>
|
|
|
<td><a target="_blank" href="<?php echo $p->url ?>"><?php echo $p->title ?></a></td>
|
|
|
<td><?php echo date('d F Y', $p->date) ?></td>
|
|
|
<td><?php echo date('d F Y', $p->date) ?></td>
|
|
|
<td><?php echo $p->views ?></td>
|
|
|
|
|
|
|
|
|
<?php if(config("views.counter") == "true"):?><td><?php echo $p->views ?></td><?php endif;?>
|
|
|
<td><?php echo $p->tag ?></td>
|
|
|
<td><?php echo $p->tag ?></td>
|
|
|
<td><a href="<?php echo $p->url ?>/edit?destination=admin/mine">Edit</a> <a href="<?php echo $p->url ?>/delete?destination=admin/mine">Delete</a></td> |
|
|
<td><a href="<?php echo $p->url ?>/edit?destination=admin/mine">Edit</a> <a href="<?php echo $p->url ?>/delete?destination=admin/mine">Delete</a></td> |
|
|
</tr> |
|
|
</tr> |
|
|
|