bludit/admin/views/manage-posts.php

27 lines
621 B
PHP
Raw Normal View History

2015-05-05 03:00:01 +02:00
<h2 class="title"><i class="fa fa-file-text-o"></i> Manage Posts</h2>
<?php makeNavbar('manage'); ?>
<table class="table-bordered table-stripped">
<thead>
<tr>
<th>Title</th>
<th>Published date</th>
<th>Modified date</th>
</tr>
</thead>
<tbody>
<?php
foreach($posts as $Post)
{
echo '<tr>';
2015-05-15 00:07:45 +02:00
echo '<td><a href="'.HTML_PATH_ADMIN_ROOT.'edit-post/'.$Post->key().'">'.($Post->published()?'':'[DRAFT] ').($Post->title()?$Post->title():'[Empty title] ').'</a></td>';
2015-05-19 01:22:05 +02:00
echo '<td>'.$Post->dateCreated().'</td>';
2015-05-05 03:00:01 +02:00
echo '<td>'.$Post->timeago().'</td>';
echo '</tr>';
}
?>
</tbody>
2015-06-27 03:47:12 +02:00
</table>