Skip to content

Commit

Permalink
Merge pull request #689 from XD9527/tags-style
Browse files Browse the repository at this point in the history
Update tag style , Let tag list look like tag/label by @XD9527
  • Loading branch information
danpros committed Feb 26, 2024
2 parents 4c33059 + 04fc5de commit 1c15ddd
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions system/admin/views/main.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
if (config("views.counter") == "true")
echo '<td>' . $p->views . '</td>';
echo '<td><a href="' . str_replace('category', 'admin/categories', $p->categoryUrl) . '">'. strip_tags($p->category) .'</a></td>';
echo '<td>' . $p->tag . '</td>';
echo '<td>' . str_replace("rel=\"tag\"", "rel=\"tag\" class=\"badge badge-light text-primary font-weight-normal\"", $p->tag) . '</td>';
echo '<td><a class="btn btn-primary btn-xs" href="' . $p->url . '/edit?destination=admin">' . i18n('Edit') . '</a> <a class="btn btn-danger btn-xs" href="' . $p->url . '/delete?destination=admin">' . i18n('Delete') . '</a></td>';
echo '</tr>';
}
echo '</table>';
}
}

?>
?>
4 changes: 2 additions & 2 deletions system/admin/views/popular-posts.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<td><?php echo get_views('post_' . $p->slug); ?></td><?php endif; ?>
<td><a target="_blank" href="<?php echo $p->authorUrl ?>"><?php echo $p->author ?></a></td>
<td><a href="<?php echo str_replace('category', 'admin/categories', $p->categoryUrl); ?>"><?php echo strip_tags($p->category);?></a></td>
<td><?php echo $p->tag ?></td>
<td><?php echo str_replace('rel="tag"', 'rel="tag" class="badge badge-light text-primary font-weight-normal"', $p->tag); ?></td>
<td><a class="btn btn-primary btn-xs" href="<?php echo $p->url ?>/edit?destination=admin/posts"><?php echo i18n('Edit');?></a> <a
class="btn btn-danger btn-xs" href="<?php echo $p->url ?>/delete?destination=admin/posts"><?php echo i18n('Delete');?></a></td>
</tr>
Expand All @@ -34,4 +34,4 @@ class="btn btn-danger btn-xs" href="<?php echo $p->url ?>/delete?destination=adm
</table>
<?php } else {
echo i18n('No_posts_found') . '!';
} ?>
} ?>
2 changes: 1 addition & 1 deletion system/admin/views/posts-list.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<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 href="<?php echo str_replace('category', 'admin/categories', $p->categoryUrl); ?>"><?php echo strip_tags($p->category);?></a></td>
<td><?php echo $p->tag ?></td>
<td><?php echo str_replace('rel="tag"', 'rel="tag" class="badge badge-light text-primary font-weight-normal"', $p->tag); ?></td>
<td><a class="btn btn-primary btn-xs" href="<?php echo $p->url ?>/edit?destination=admin/posts"><?php echo i18n('Edit');?></a> <a
class="btn btn-danger btn-xs" href="<?php echo $p->url ?>/delete?destination=admin/posts"><?php echo i18n('Delete');?></a></td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion system/admin/views/scheduled.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<td><?php echo $p->title ?></td>
<td><?php echo format_date($p->date, 'd F Y, H:i:s') ?></td>
<td><a href="<?php echo str_replace('category', 'admin/categories', $p->categoryUrl); ?>"><?php echo strip_tags($p->category);?></a></td>
<td><?php echo $p->tag ?></td>
<td><?php echo str_replace('rel="tag"', 'rel="tag" class="badge badge-light text-primary font-weight-normal"', $p->tag); ?></td>
<td><a class="btn btn-primary btn-xs" href="<?php echo $p->url ?>/edit?destination=admin/scheduled"><?php echo i18n('Edit');?></a> <a class="btn btn-danger btn-xs" href="<?php echo $p->url ?>/delete?destination=admin/scheduled"><?php echo i18n('Delete');?></a></td>
</tr>
<?php endforeach; ?>
Expand Down
4 changes: 2 additions & 2 deletions system/admin/views/user-draft.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<td><?php echo $p->title ?></td>
<td><?php echo format_date($p->date) ?></td>
<td><a href="<?php echo str_replace('category', 'admin/categories', $p->categoryUrl); ?>"><?php echo strip_tags($p->category);?></a></td>
<td><?php echo $p->tag ?></td>
<td><?php echo str_replace('rel="tag"', 'rel="tag" class="badge badge-light text-primary font-weight-normal"', $p->tag); ?></td>
<td><a class="btn btn-primary btn-xs" href="<?php echo $p->url ?>/edit?destination=admin/draft"><?php echo i18n('Edit');?></a> <a class="btn btn-danger btn-xs" href="<?php echo $p->url ?>/delete?destination=admin/draft"><?php echo i18n('Delete');?></a></td>
</tr>
<?php endforeach; ?>
Expand Down Expand Up @@ -90,4 +90,4 @@
</tr>
<?php endforeach; ?>
</table>
<?php endif;?>
<?php endif;?>
4 changes: 2 additions & 2 deletions system/admin/views/user-posts.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<td><?php echo $p->views ?></td>
<?php endif; ?>
<td><a href="<?php echo str_replace('category', 'admin/categories', $p->categoryUrl); ?>"><?php echo strip_tags($p->category);?></a></td>
<td><?php echo $p->tag ?></td>
<td><?php echo str_replace('rel="tag"', 'rel="tag" class="badge badge-light text-primary font-weight-normal"', $p->tag); ?></td>
<td><a class="btn btn-primary btn-xs" href="<?php echo $p->url ?>/edit?destination=admin/mine"><?php echo i18n('Edit');?></a> <a class="btn btn-danger btn-xs" href="<?php echo $p->url ?>/delete?destination=admin/mine"><?php echo i18n('Delete');?></a></td>
</tr>
<?php endforeach; ?>
Expand All @@ -52,4 +52,4 @@
<?php endif; ?>
<?php } else {
echo i18n('No_posts_found') . '!';
} ?>
} ?>

0 comments on commit 1c15ddd

Please sign in to comment.