Browse Source

add category column for view posts tables, each post can have multiplt tags so table column header "Tags"

pull/431/head
sean1138 4 years ago
parent
commit
c48290f4e5
4 changed files with 12 additions and 4 deletions
  1. +3
    -1
      system/admin/views/popular-posts.html.php
  2. +3
    -1
      system/admin/views/posts-list.html.php
  3. +3
    -1
      system/admin/views/user-draft.html.php
  4. +3
    -1
      system/admin/views/user-posts.html.php

+ 3
- 1
system/admin/views/popular-posts.html.php View File

@ -6,7 +6,8 @@
<th><?php echo i18n('Published');?></th><?php if (config("views.counter") == "true"): ?> <th><?php echo i18n('Published');?></th><?php if (config("views.counter") == "true"): ?>
<th><?php echo i18n('Views');?></th><?php endif; ?> <th><?php echo i18n('Views');?></th><?php endif; ?>
<th><?php echo i18n('Author');?></th> <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> <th><?php echo i18n('Operations');?></th>
</tr> </tr>
<?php $i = 0; <?php $i = 0;
@ -28,6 +29,7 @@
<?php if (config("views.counter") == "true"): ?> <?php if (config("views.counter") == "true"): ?>
<td><?php echo $p->views ?></td><?php endif; ?> <td><?php echo $p->views ?></td><?php endif; ?>
<td><a target="_blank" href="<?php echo $p->authorUrl ?>"><?php echo $p->author ?></a></td> <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><?php echo $p->tag ?></td>
<td><a href="<?php echo $p->url ?>/edit?destination=admin/posts">Edit</a> <a <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> href="<?php echo $p->url ?>/delete?destination=admin/posts">Delete</a></td>


+ 3
- 1
system/admin/views/posts-list.html.php View File

@ -6,7 +6,8 @@
<th><?php echo i18n('Published');?></th><?php if (config("views.counter") == "true"): ?> <th><?php echo i18n('Published');?></th><?php if (config("views.counter") == "true"): ?>
<th>Views</th><?php endif; ?> <th>Views</th><?php endif; ?>
<th><?php echo i18n('Author');?></th> <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> <th><?php echo i18n('Operations');?></th>
</tr> </tr>
<?php $i = 0; <?php $i = 0;
@ -28,6 +29,7 @@
<?php if (config("views.counter") == "true"): ?> <?php if (config("views.counter") == "true"): ?>
<td><?php echo $p->views ?></td><?php endif; ?> <td><?php echo $p->views ?></td><?php endif; ?>
<td><a target="_blank" href="<?php echo $p->authorUrl ?>"><?php echo $p->author ?></a></td> <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><?php echo $p->tag ?></td>
<td><a href="<?php echo $p->url ?>/edit?destination=admin/posts"><?php echo i18n('Edit');?></a> <a <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> href="<?php echo $p->url ?>/delete?destination=admin/posts"><?php echo i18n('Delete');?></a></td>


+ 3
- 1
system/admin/views/user-draft.html.php View File

@ -4,7 +4,8 @@
<tr class="head"> <tr class="head">
<th><?php echo i18n('Title');?></th> <th><?php echo i18n('Title');?></th>
<th><?php echo i18n('Created');?></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> <th><?php echo i18n('Operations');?></th>
</tr> </tr>
<?php $i = 0; <?php $i = 0;
@ -23,6 +24,7 @@
<tr class="<?php echo $class ?>"> <tr class="<?php echo $class ?>">
<td><?php echo $p->title ?></td> <td><?php echo $p->title ?></td>
<td><?php echo format_date($p->date) ?></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><?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> <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> </tr>


+ 3
- 1
system/admin/views/user-posts.html.php View File

@ -7,7 +7,8 @@
<?php if (config("views.counter") == "true"): ?> <?php if (config("views.counter") == "true"): ?>
<th>Views</th> <th>Views</th>
<?php endif; ?> <?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> <th><?php echo i18n('Operations');?></th>
</tr> </tr>
<?php $i = 0; <?php $i = 0;
@ -29,6 +30,7 @@
<?php if (config("views.counter") == "true"): ?> <?php if (config("views.counter") == "true"): ?>
<td><?php echo $p->views ?></td> <td><?php echo $p->views ?></td>
<?php endif; ?> <?php endif; ?>
<td><?php echo $p->category ?></td>
<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"><?php echo i18n('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"><?php echo i18n('Delete');?></a></td>
</tr> </tr>


Loading…
Cancel
Save