mirror of
https://github.com/danpros/htmly.git
synced 2026-04-17 19:26:08 +05:30
add category column for view posts tables, each post can have multiplt tags so table column header "Tags"
This commit is contained in:
parent
0df2478879
commit
c48290f4e5
4 changed files with 12 additions and 4 deletions
|
|
@ -6,7 +6,8 @@
|
|||
<th><?php echo i18n('Published');?></th><?php if (config("views.counter") == "true"): ?>
|
||||
<th><?php echo i18n('Views');?></th><?php endif; ?>
|
||||
<th><?php echo i18n('Author');?></th>
|
||||
<th><?php echo i18n('Tag');?></th>
|
||||
<th><?php echo i18n('Category');?></th>
|
||||
<th><?php echo i18n('Tags');?></th>
|
||||
<th><?php echo i18n('Operations');?></th>
|
||||
</tr>
|
||||
<?php $i = 0;
|
||||
|
|
@ -28,6 +29,7 @@
|
|||
<?php if (config("views.counter") == "true"): ?>
|
||||
<td><?php echo $p->views ?></td><?php endif; ?>
|
||||
<td><a target="_blank" href="<?php echo $p->authorUrl ?>"><?php echo $p->author ?></a></td>
|
||||
<td><?php echo $p->category ?></td>
|
||||
<td><?php echo $p->tag ?></td>
|
||||
<td><a href="<?php echo $p->url ?>/edit?destination=admin/posts">Edit</a> <a
|
||||
href="<?php echo $p->url ?>/delete?destination=admin/posts">Delete</a></td>
|
||||
|
|
|
|||
|
|
@ -6,7 +6,8 @@
|
|||
<th><?php echo i18n('Published');?></th><?php if (config("views.counter") == "true"): ?>
|
||||
<th>Views</th><?php endif; ?>
|
||||
<th><?php echo i18n('Author');?></th>
|
||||
<th><?php echo i18n('Tag');?></th>
|
||||
<th><?php echo i18n('Category');?></th>
|
||||
<th><?php echo i18n('Tags');?></th>
|
||||
<th><?php echo i18n('Operations');?></th>
|
||||
</tr>
|
||||
<?php $i = 0;
|
||||
|
|
@ -28,6 +29,7 @@
|
|||
<?php if (config("views.counter") == "true"): ?>
|
||||
<td><?php echo $p->views ?></td><?php endif; ?>
|
||||
<td><a target="_blank" href="<?php echo $p->authorUrl ?>"><?php echo $p->author ?></a></td>
|
||||
<td><?php echo $p->category ?></td>
|
||||
<td><?php echo $p->tag ?></td>
|
||||
<td><a href="<?php echo $p->url ?>/edit?destination=admin/posts"><?php echo i18n('Edit');?></a> <a
|
||||
href="<?php echo $p->url ?>/delete?destination=admin/posts"><?php echo i18n('Delete');?></a></td>
|
||||
|
|
|
|||
|
|
@ -4,7 +4,8 @@
|
|||
<tr class="head">
|
||||
<th><?php echo i18n('Title');?></th>
|
||||
<th><?php echo i18n('Created');?></th>
|
||||
<th><?php echo i18n('Tag');?></th>
|
||||
<th><?php echo i18n('Category');?></th>
|
||||
<th><?php echo i18n('Tags');?></th>
|
||||
<th><?php echo i18n('Operations');?></th>
|
||||
</tr>
|
||||
<?php $i = 0;
|
||||
|
|
@ -23,6 +24,7 @@
|
|||
<tr class="<?php echo $class ?>">
|
||||
<td><?php echo $p->title ?></td>
|
||||
<td><?php echo format_date($p->date) ?></td>
|
||||
<td><?php echo strip_tags($p->category) ?></td>
|
||||
<td><?php echo strip_tags($p->tag) ?></td>
|
||||
<td><a href="<?php echo $p->url ?>/edit?destination=admin/draft"><?php echo i18n('Edit');?></a> <a href="<?php echo $p->url ?>/delete?destination=admin/draft"><?php echo i18n('Delete');?></a></td>
|
||||
</tr>
|
||||
|
|
|
|||
|
|
@ -7,7 +7,8 @@
|
|||
<?php if (config("views.counter") == "true"): ?>
|
||||
<th>Views</th>
|
||||
<?php endif; ?>
|
||||
<th><?php echo i18n('Tag');?></th>
|
||||
<th><?php echo i18n('Category');?></th>
|
||||
<th><?php echo i18n('Tags');?></th>
|
||||
<th><?php echo i18n('Operations');?></th>
|
||||
</tr>
|
||||
<?php $i = 0;
|
||||
|
|
@ -29,6 +30,7 @@
|
|||
<?php if (config("views.counter") == "true"): ?>
|
||||
<td><?php echo $p->views ?></td>
|
||||
<?php endif; ?>
|
||||
<td><?php echo $p->category ?></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"><?php echo i18n('Delete');?></a></td>
|
||||
</tr>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue