From d6cfe59983a1828bc9244dc1a16d349978e4317e Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Sat, 18 Jan 2025 15:11:02 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20(admin):=20rework=20contents=20p?= =?UTF-8?q?age?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bl-kernel/admin/views/content.php | 50 ++++++++++++++++--------------- 1 file changed, 26 insertions(+), 24 deletions(-) diff --git a/bl-kernel/admin/views/content.php b/bl-kernel/admin/views/content.php index 27dc9581..0815a6c7 100644 --- a/bl-kernel/admin/views/content.php +++ b/bl-kernel/admin/views/content.php @@ -15,7 +15,7 @@ function table($type) { if ($type=='published') { $list = $published; if (empty($list)) { - echo '

'; + echo '

'; echo $L->g('There are no pages at this moment.'); echo '

'; return false; @@ -23,7 +23,7 @@ function table($type) { } elseif ($type=='draft') { $list = $drafts; if (empty($list)) { - echo '

'; + echo '

'; echo $L->g('There are no draft pages at this moment.'); echo '

'; return false; @@ -31,7 +31,7 @@ function table($type) { } elseif ($type=='scheduled') { $list = $scheduled; if (empty($list)) { - echo '

'; + echo '

'; echo $L->g('There are no scheduled pages at this moment.'); echo '

'; return false; @@ -39,7 +39,7 @@ function table($type) { } elseif ($type=='static') { $list = $static; if (empty($list)) { - echo '

'; + echo '

'; echo $L->g('There are no static pages at this moment.'); echo '

'; return false; @@ -47,7 +47,7 @@ function table($type) { } elseif ($type=='sticky') { $list = $sticky; if (empty($list)) { - echo '

'; + echo '

'; echo $L->g('There are no sticky pages at this moment.'); echo '

'; return false; @@ -57,9 +57,10 @@ function table($type) { } echo ' - +
+
- + '; @@ -67,7 +68,7 @@ function table($type) { echo ''; } - echo ' + echo ' @@ -78,7 +79,7 @@ function table($type) { try { $page = new Page($pageKey); if (!$page->isChild()) { - echo ' + echo ''; } - echo ''; @@ -107,7 +108,7 @@ function table($type) { foreach ($page->children() as $child) { //if ($child->published()) { - echo ' + echo ''; } - echo ''; echo ''; @@ -144,7 +145,7 @@ function table($type) { foreach ($list as $pageKey) { try { $page = new Page($pageKey); - echo ''; + echo ''; echo ''; } - echo ''; @@ -181,13 +182,14 @@ function table($type) { echo '
'.$L->g('Title').''.$L->g('URL').''.$L->g('Actions').''.$L->g('Actions').'
'.$friendlyURL.''.PHP_EOL; - echo ''.$L->g('View').''.PHP_EOL; - echo ''.$L->g('Edit').''.PHP_EOL; + echo ''.PHP_EOL; + echo ''.$L->g('View').''.PHP_EOL; + echo ''.$L->g('Edit').''.PHP_EOL; if (count($page->children())==0) { - echo ''.$L->g('Delete').''.PHP_EOL; + echo ''.$L->g('Delete').''.PHP_EOL; } echo '
'.$friendlyURL.''.PHP_EOL; + echo ''.PHP_EOL; if ($type=='published' || $type=='static' || $type=='sticky') { - echo ''.$L->g('View').''.PHP_EOL; + echo ''.$L->g('View').''.PHP_EOL; } - echo ''.$L->g('Edit').''.PHP_EOL; - echo ''.$L->g('Delete').''.PHP_EOL; + echo ''.$L->g('Edit').''.PHP_EOL; + echo ''.$L->g('Delete').''.PHP_EOL; echo '
'.$friendlyURL.''.PHP_EOL; + echo ''.PHP_EOL; if ($type=='published' || $type=='static' || $type=='sticky') { - echo ''.$L->g('View').''.PHP_EOL; + echo ''.$L->g('View').''.PHP_EOL; } - echo ''.$L->g('Edit').''.PHP_EOL; + echo ''.$L->g('Edit').''.PHP_EOL; if (count($page->children())==0) { - echo ''.$L->g('Delete').''.PHP_EOL; + echo ''.$L->g('Delete').''.PHP_EOL; } echo '
+ '; } ?> -