$L->g('Manage pages'), 'icon'=>'folder')); echo ' '.$L->g('Add a new page').''; echo ' '; foreach($pagesParents[NO_PARENT_CHAR] as $key=>$db) { // Parent page $Page = $pages[$key]; $friendlyURL = Text::isEmpty($Url->filters('page')) ? '/'.$Page->key() : '/'.$Url->filters('page').'/'.$Page->key(); echo ''; echo ''; echo ''; echo ''; echo ''; // If the page has children if(isset($pagesParents[$Page->key()])) { // Get the children $children = $pagesParents[$Page->key()]; foreach($children as $keyChildren=>$dbChildren) { // Parent page $Page = $pages[$keyChildren]; $friendlyURL = Text::isEmpty($Url->filters('page')) ? '/'.$Page->key() : '/'.$Url->filters('page').'/'.$Page->key(); echo ''; echo ''; echo ''; echo ''; echo ''; } } } echo '
'.$L->g('Title').' '.$L->g('Position').' '.$L->g('Friendly URL').'
'; echo ''.($Page->published()?'':''.$Language->g('Draft').' ').($Page->title()?$Page->title():''.$Language->g('Empty title').' ').''; echo ''.$Page->position().''.$friendlyURL.'
'; echo ''.($Page->published()?'':''.$Language->g('Draft').' ').($Page->title()?$Page->title():''.$Language->g('Empty title').' ').''; echo ''.$Page->position().''.$friendlyURL.'
';