Improved comments file naming, handled corresponding markdown file rename and delete. Introduced pagination in admin comments list. Capability to show comments in posts, static, authors.

This commit is contained in:
Emidio Reggiani 2025-11-25 18:41:15 +01:00
commit 6d3e33ceb7
8 changed files with 456 additions and 84 deletions

View file

@ -159,7 +159,7 @@ if (isset($author[0])) {
<?php
$pendingCount = getPendingCommentsCount();
if ($pendingCount > 0): ?>
<span class="badge badge-warning right"><?php echo $pendingCount; ?></span>
<span class="badge badge-warning right" style="margin-right: 15px;"><?php echo $pendingCount; ?></span><br>
<?php endif; ?>
<i class="right fa fa-angle-left"></i>
</p>
@ -177,7 +177,7 @@ if (isset($author[0])) {
<p>
<?php echo i18n('Pending_Moderation'); ?>
<?php if ($pendingCount > 0): ?>
<span class="badge badge-warning right"><?php echo $pendingCount; ?></span>
<span class="badge badge-warning right" style="margin-right: 15px;"><?php echo $pendingCount; ?></span>
<?php endif; ?>
</p>
</a>