1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-10 23:24:04 +02:00

Admin Panel: Entries Manager - improved entries list navigation.

This commit is contained in:
Awilum
2018-12-28 13:06:25 +03:00
parent 149baa3993
commit bdda8e0f8f

View File

@@ -33,8 +33,8 @@
<?php foreach ($entries_list as $entry): ?>
<tr>
<td>
<a href="<?= Http::getBaseUrl() ?>/admin/entries/?entry=<?= $entry['slug'] ?>"><?= $entry['title'] ?></a>
<?php $count = count(Entries::getEntries($entry['slug'], 'slug', 'ASC')) ?>
<a href="<?php if ($count > 0): ?><?= Http::getBaseUrl() ?>/admin/entries/?entry=<?= $entry['slug'] ?><?php else: ?><?= Http::getBaseUrl() ?>/admin/entries/edit?entry=<?= $entry['slug'] ?><?php endif ?>"><?= $entry['title'] ?></a>
<?php if ($count > 0): ?>
(<?= $count ?>)
<?php endif ?>