$L->g('Content'), 'icon'=>'layers')); function table($type) { global $url; global $Language; global $published; global $drafts; global $scheduled; global $static; global $sticky; if ($type=='published') { $list = $published; if (empty($list)) { echo '

'; echo $Language->g('There are not pages in this moment.'); echo '

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

'; echo $Language->g('There are not draft pages in this moment.'); echo '

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

'; echo $Language->g('There are not scheduled pages in this moment.'); echo '

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

'; echo $Language->g('There are not static pages in this moment.'); echo '

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

'; echo $Language->g('There are not sticky pages in this moment.'); echo '

'; return false; } } echo ' '; if (ORDER_BY=='position') { foreach ($list as $pageKey) { try { $page = new PageX($pageKey); if (!$page->isChild() || $type!='published') { echo ''; $friendlyURL = Text::isEmpty($url->filters('page')) ? '/'.$page->key() : '/'.$url->filters('page').'/'.$page->key(); echo ''; echo ''; echo ''; foreach ($page->children() as $child) { if ($child->published()) { echo ''; $friendlyURL = Text::isEmpty($url->filters('page')) ? '/'.$child->key() : '/'.$url->filters('page').'/'.$child->key(); echo ''; echo ''; echo ''; } } } } catch (Exception $e) { // Continue } } } else { foreach ($list as $pageKey) { try { $page = new PageX($pageKey); echo ''; echo ''; $friendlyURL = Text::isEmpty($url->filters('page')) ? '/'.$page->key() : '/'.$url->filters('page').'/'.$page->key(); echo ''; echo ''; echo ''; } catch (Exception $e) { // Continue } } } echo '
'.$Language->g('Title').' '.$Language->g('URL').' Actions
' .($page->title()?$page->title():''.$Language->g('Empty title').' ') .' '.$friendlyURL.''.$page->position().'
' .($child->title()?$child->title():''.$Language->g('Empty title').' ') .' '.$friendlyURL.''.$child->position().'
' .($page->title()?$page->title():''.$Language->g('Empty title').' ') .'

'.( ((ORDER_BY=='position') || ($type!='published'))?'Position: '.$page->position():$page->relativeTime() ).'

'.$friendlyURL.''.PHP_EOL; echo 'Edit'.PHP_EOL; echo ''.PHP_EOL; echo '
'; } ?>
1): ?>
'jsdeletePageModal', 'modalTitle'=>'Delete content', 'modalText'=>'Are you sure you ?', 'buttonPrimary'=>'Delete', 'buttonPrimaryClass'=>'deletePageModalAcceptButton', 'buttonSecondary'=>'Cancel', 'buttonSecondaryClass'=>'' )); ?>