p('Content') ?>

p('Add a new page') ?>
'; echo $L->g('There are no pages at this moment.'); echo '

'; return false; } } elseif ($type == 'draft') { $list = $drafts; if (empty($list)) { echo '

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

'; return false; } } elseif ($type == 'scheduled') { $list = $scheduled; if (empty($list)) { echo '

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

'; return false; } } elseif ($type == 'static') { $list = $static; if (empty($list)) { echo '

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

'; return false; } } elseif ($type == 'sticky') { $list = $sticky; if (empty($list)) { echo '

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

'; return false; } } echo ''; if ((ORDER_BY == 'position') || $type == 'static') { foreach ($list as $pageKey) { try { $page = new Page($pageKey); if (!$page->isChild()) { echo ''; echo ''; echo ''; echo ''; echo ''; foreach ($page->children() as $child) { echo ''; echo ''; echo ''; echo ''; echo ''; } } } catch (Exception $e) { // Continue } } } else { foreach ($list as $pageKey) { try { $page = new Page($pageKey); echo ''; echo ''; echo ''; echo ''; echo ''; } catch (Exception $e) { // Continue } } } echo '
' . ($page->title() ? $page->title() : '' . $L->g('Empty title') . ' ') . '
' . $L->g('View') . ' ' . $L->g('Edit') . ' '; if (count($page->children()) == 0) { echo 'Delete'; } echo '
' . $L->get('Category') . ': ' . ($page->category() ? $page->category() : $L->get('uncategorized')) . '' . (((ORDER_BY == 'position') || ($type != 'published')) ? $L->g('Position') . ': ' . $page->position() : $page->date(MANAGE_CONTENT_DATE_FORMAT)) . '
' . ($child->title() ? $child->title() : '' . $L->g('Empty title') . ' ') . '
' . $L->get('Category') . ': ' . ($child->category() ? $child->category() : $L->get('uncategorized')) . '' . (((ORDER_BY == 'position') || ($type != 'published')) ? $L->g('Position') . ': ' . $child->position() : $child->date(MANAGE_CONTENT_DATE_FORMAT)) . '
' . ($page->title() ? $page->title() : '' . $L->g('Empty title') . ' ') . '
' . $L->get('Category') . ': ' . ($page->category() ? $page->category() : $L->get('uncategorized')) . ' ' . (((ORDER_BY == 'position') || ($type != 'published')) ? $L->g('Position') . ': ' . $page->position() : $page->date(MANAGE_CONTENT_DATE_FORMAT)) . '
'; } ?>
1) : ?>