$L->g('Manage content'), 'icon'=>'folder'));
echo ' '.$L->g('Add new content').'';
// Fixed page list
echo '
'.$L->g('Title').' |
';
echo ''.( (ORDER_BY=='date') ? $L->g('Date') : $L->g('Position') ).' | ';
echo '
'.$L->g('URL').' |
';
function table($status, $icon='arrow-circle-o-down') {
global $pages;
global $Url;
global $Language;
$showLegend = true;
foreach ($pages as $key=>$page) {
if ($page->status()==$status) {
if ($showLegend) {
$showLegend = false;
echo '
'.$status.' |
|
|
';
}
unset($pages[$key]);
echo '';
echo '
'
.($page->title()?$page->title():''.$Language->g('Empty title').' ')
.'
| ';
echo ''.( (ORDER_BY=='date') ? $page->dateRaw() : $page->position() ).' | ';
$friendlyURL = Text::isEmpty($Url->filters('page')) ? '/'.$page->key() : '/'.$Url->filters('page').'/'.$page->key();
echo ''.$friendlyURL.' | ';
echo '
';
}
}
}
table('draft', 'spinner');
table('scheduled', 'clock-o');
table('fixed', 'thumb-tack');
table('sticky', 'sticky-note-o');
table('published', 'check');
echo '
';
?>
Previous';
}
for($i=1; $i<=Paginator::amountOfPages(); $i++) {
echo '- '.$i.'
';
}
// Show next page link
if(Paginator::showNext()) {
echo '- Next
';
}
?>