Improves on Manage Content view

This commit is contained in:
Diego Najar 2018-01-21 23:31:58 +01:00
parent e17bc50bf2
commit 0de1f00d29
1 changed files with 12 additions and 12 deletions

View File

@ -52,7 +52,6 @@ function table($status, $icon='arrow-circle-o-down') {
foreach ($list as $pageKey) {
$page = buildPage($pageKey);
if ($page) {
if ($page->isParent()) {
echo '<tr>
<td>
<a href="'.HTML_PATH_ADMIN_ROOT.'edit-content/'.$page->key().'"><i class="fa fa-'.$icon.'"></i> '
@ -65,6 +64,7 @@ function table($status, $icon='arrow-circle-o-down') {
echo '<td><a target="_blank" href="'.$page->permalink().'">'.$friendlyURL.'</a></td>';
echo '</tr>';
if ($page->isParent()) {
foreach ($page->children() as $childKey) {
$child = buildPage($childKey);
echo '<tr>