$L->g('Content'), 'icon'=>'layers')); function table($type) { global $url; global $L; global $published; global $drafts; global $scheduled; global $static; global $sticky; if ($type=='published') { $list = $published; if (empty($list)) { echo '
'; 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 ''.$L->g('Title').' | '.$L->g('URL').' | '.$L->g('Actions').' |
---|---|---|
' .($page->title()?$page->title():''.$L->g('Empty title').' ') .' | '; $friendlyURL = Text::isEmpty($url->filters('page')) ? '/'.$page->key() : '/'.$url->filters('page').'/'.$page->key(); echo ''.$friendlyURL.' | '; echo ''.$page->position().' | '; echo '
' .($child->title()?$child->title():''.$L->g('Empty title').' ') .' | '; $friendlyURL = Text::isEmpty($url->filters('page')) ? '/'.$child->key() : '/'.$url->filters('page').'/'.$child->key(); echo ''.$friendlyURL.' | '; echo ''.$child->position().' | '; echo '
'.( ((ORDER_BY=='position') || ($type!='published'))?'Position: '.$page->position():$page->relativeTime() ).' | ';
$friendlyURL = Text::isEmpty($url->filters('page')) ? '/'.$page->key() : '/'.$url->filters('page').'/'.$page->key();
echo ''.$friendlyURL.' | '; echo ''.PHP_EOL; echo ' '.$L->g('Edit').''.PHP_EOL; echo ''.PHP_EOL; echo ' | '; echo '