$L->g('Content'), 'icon'=>'cog')); function table($status) { global $Url; global $Language; global $published; global $drafts; global $scheduled; global $static; global $sticky; if ($status=='published') { $list = $published; if (empty($list)) { echo '
'; echo $Language->g('There are not pages in this moment.'); echo '
'; return false; } } elseif ($status=='draft') { $list = $drafts; if (empty($list)) { echo ''; echo $Language->g('There are not draft pages in this moment.'); echo '
'; return false; } } elseif ($status=='scheduled') { $list = $scheduled; if (empty($list)) { echo ''; echo $Language->g('There are not scheduled pages in this moment.'); echo '
'; return false; } } elseif ($status=='static') { $list = $static; if (empty($list)) { echo ''; echo $Language->g('There are not static pages in this moment.'); echo '
'; return false; } } elseif ($status=='sticky') { $list = $sticky; if (empty($list)) { echo ''; echo $Language->g('There are not sticky pages in this moment.'); echo '
'; return false; } } echo ''.$Language->g('Title').' | '.$Language->g('URL').' | '.( ((ORDER_BY=='position') || ($status!='published'))?$Language->g('Position'):$Language->g('Creation date')).' |
---|---|---|
' .($page->title()?$page->title():''.$Language->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():''.$Language->g('Empty title').' ') .' | '; $friendlyURL = Text::isEmpty($Url->filters('page')) ? '/'.$child->key() : '/'.$Url->filters('page').'/'.$child->key(); echo ''.$friendlyURL.' | '; echo ''.$child->position().' | '; echo '
' .($page->title()?$page->title():''.$Language->g('Empty title').' ') .' | '; $friendlyURL = Text::isEmpty($Url->filters('page')) ? '/'.$page->key() : '/'.$Url->filters('page').'/'.$page->key(); echo ''.$friendlyURL.' | '; echo ''.( ((ORDER_BY=='position') || ($status!='published'))?$page->position():$page->dateRaw(ADMIN_PANEL_DATE_FORMAT) ).' | '; echo '