$L->g('Manage content'), 'icon'=>'folder')); echo ' '.$L->g('Add new content').''; echo ' '; echo ''; echo ' '; function table($status, $icon='arrow-circle-o-down') { global $Url; global $Language; global $published; global $drafts; global $scheduled; global $static; if ($status=='published') { $list = $published; } elseif ($status=='draft') { $list = $drafts; } elseif ($status=='scheduled') { $list = $scheduled; } elseif ($status=='static') { $list = $static; } if (!empty($list)) { echo ''; } if (ORDER_BY=='position') { foreach ($list as $pageKey) { $page = buildPage($pageKey); if ($page) { if ($page->isParent() || $status!='published') { echo ''; $friendlyURL = Text::isEmpty($Url->filters('page')) ? '/'.$page->key() : '/'.$Url->filters('page').'/'.$page->key(); echo ''; echo ''; foreach ($page->children() as $childKey) { $child = buildPage($childKey); if ($child->published()) { echo ''; $friendlyURL = Text::isEmpty($Url->filters('page')) ? '/'.$child->key() : '/'.$Url->filters('page').'/'.$child->key(); echo ''; echo ''; } } } } } } else { foreach ($list as $pageKey) { $page = buildPage($pageKey); if ($page) { echo ''; echo ''; echo ''; $friendlyURL = Text::isEmpty($Url->filters('page')) ? '/'.$page->key() : '/'.$Url->filters('page').'/'.$page->key(); echo ''; echo ''; } } } } if ($Url->pageNumber()==1) { table('draft', 'spinner'); table('scheduled', 'clock-o'); table('static', 'thumb-tack'); } table('published', 'circle-o'); echo '
'.$L->g('Title').''.( (ORDER_BY=='date') ? $L->g('Date') : $L->g('Position') ).''.$L->g('URL').'
'.$Language->g($status).'
' .($page->title()?$page->title():''.$Language->g('Empty title').' ') .' '.$page->position().''.$friendlyURL.'
' .($child->title()?$child->title():''.$Language->g('Empty title').' ') .' '.$child->position().''.$friendlyURL.'
' .($page->title()?$page->title():''.$Language->g('Empty title').' ') .' '.( (ORDER_BY=='date') ? $page->dateRaw(ADMIN_PANEL_DATE_FORMAT) : $page->position() ).''.$friendlyURL.'
'; ?>