mirror of
https://github.com/danpros/htmly.git
synced 2026-04-20 04:26:22 +05:30
Improve admin style
Improve admin style
This commit is contained in:
parent
b62f013588
commit
5389b38e4d
5 changed files with 41 additions and 19 deletions
|
|
@ -1,22 +1,22 @@
|
|||
<h2 class="post-index"><?php echo $heading?></h2>
|
||||
<?php if(!empty($posts)) {?>
|
||||
<table class="post-list">
|
||||
<tr><th>Title</th><th>Published</th><th>Author</th><th>Tag</th><th>Operations</th></tr>
|
||||
<tr class="head"><th>Title</th><th>Published</th><th>Author</th><th>Tag</th><th>Operations</th></tr>
|
||||
<?php $i = 0; $len = count($posts);?>
|
||||
<?php foreach($posts as $p):?>
|
||||
<?php
|
||||
if ($i == 0) {
|
||||
$class = 'first';
|
||||
$class = 'item first';
|
||||
}
|
||||
elseif ($i == $len - 1) {
|
||||
$class = 'last';
|
||||
$class = 'item last';
|
||||
}
|
||||
else {
|
||||
$class = '';
|
||||
$class = 'item';
|
||||
}
|
||||
$i++;
|
||||
?>
|
||||
<tr>
|
||||
<tr class="<?php echo $class ?>">
|
||||
<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><a target="_blank" href="<?php echo $p->authorurl ?>"><?php echo $p->author ?></a></td>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue