2015-10-19 00:45:58 +02:00
|
|
|
<?php
|
2015-05-05 03:00:01 +02:00
|
|
|
|
2015-10-19 00:45:58 +02:00
|
|
|
HTML::title(array('title'=>$L->g('Manage pages'), 'icon'=>'folder'));
|
2015-05-05 03:00:01 +02:00
|
|
|
|
2015-10-19 00:45:58 +02:00
|
|
|
echo '
|
|
|
|
<table class="uk-table uk-table-striped">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>'.$L->g('Title').'</th>
|
|
|
|
<th>'.$L->g('Parent').'</th>
|
|
|
|
<th class="uk-text-center">'.$L->g('Position').'</th>
|
|
|
|
<th>'.$L->g('Friendly URL').'</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
';
|
2015-05-05 03:00:01 +02:00
|
|
|
|
2015-10-19 00:45:58 +02:00
|
|
|
foreach($pagesParents as $parentKey=>$pageList)
|
|
|
|
{
|
|
|
|
foreach($pageList as $Page)
|
2015-05-05 03:00:01 +02:00
|
|
|
{
|
2015-10-19 00:45:58 +02:00
|
|
|
if($parentKey!==NO_PARENT_CHAR) {
|
|
|
|
$parentTitle = $pages[$Page->parentKey()]->title();
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
$parentTitle = '';
|
2015-05-05 03:00:01 +02:00
|
|
|
}
|
2015-10-19 00:45:58 +02:00
|
|
|
|
|
|
|
echo '<tr>';
|
2015-10-31 23:54:42 +01:00
|
|
|
echo '<td>'.($Page->parentKey()?'- ':'').'<a href="'.HTML_PATH_ADMIN_ROOT.'edit-page/'.$Page->key().'">'.($Page->published()?'':'<span class="label-draft">'.$Language->g('Draft').'</span> ').($Page->title()?$Page->title():'<span class="label-empty-title">'.$Language->g('Empty title').'</span> ').'</a></td>';
|
2015-10-19 00:45:58 +02:00
|
|
|
echo '<td>'.$parentTitle.'</td>';
|
|
|
|
echo '<td class="uk-text-center">'.$Page->position().'</td>';
|
|
|
|
echo '<td><a target="_blank" href="'.$Page->permalink().'">'.$Url->filters('page').'/'.$Page->key().'</a></td>';
|
|
|
|
echo '</tr>';
|
2015-05-05 03:00:01 +02:00
|
|
|
}
|
2015-10-19 00:45:58 +02:00
|
|
|
}
|
2015-05-05 03:00:01 +02:00
|
|
|
|
2015-10-19 00:45:58 +02:00
|
|
|
echo '
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2015-11-28 15:47:03 +01:00
|
|
|
';
|