Improves on Manage Content view
This commit is contained in:
parent
e17bc50bf2
commit
0de1f00d29
|
@ -52,19 +52,19 @@ function table($status, $icon='arrow-circle-o-down') {
|
||||||
foreach ($list as $pageKey) {
|
foreach ($list as $pageKey) {
|
||||||
$page = buildPage($pageKey);
|
$page = buildPage($pageKey);
|
||||||
if ($page) {
|
if ($page) {
|
||||||
|
echo '<tr>
|
||||||
|
<td>
|
||||||
|
<a href="'.HTML_PATH_ADMIN_ROOT.'edit-content/'.$page->key().'"><i class="fa fa-'.$icon.'"></i> '
|
||||||
|
.($page->title()?$page->title():'<span class="label-empty-title">'.$Language->g('Empty title').'</span> ')
|
||||||
|
.'</a>
|
||||||
|
</td>
|
||||||
|
<td class="uk-text-center">'.$page->position().'</td>';
|
||||||
|
|
||||||
|
$friendlyURL = Text::isEmpty($Url->filters('page')) ? '/'.$page->key() : '/'.$Url->filters('page').'/'.$page->key();
|
||||||
|
echo '<td><a target="_blank" href="'.$page->permalink().'">'.$friendlyURL.'</a></td>';
|
||||||
|
echo '</tr>';
|
||||||
|
|
||||||
if ($page->isParent()) {
|
if ($page->isParent()) {
|
||||||
echo '<tr>
|
|
||||||
<td>
|
|
||||||
<a href="'.HTML_PATH_ADMIN_ROOT.'edit-content/'.$page->key().'"><i class="fa fa-'.$icon.'"></i> '
|
|
||||||
.($page->title()?$page->title():'<span class="label-empty-title">'.$Language->g('Empty title').'</span> ')
|
|
||||||
.'</a>
|
|
||||||
</td>
|
|
||||||
<td class="uk-text-center">'.$page->position().'</td>';
|
|
||||||
|
|
||||||
$friendlyURL = Text::isEmpty($Url->filters('page')) ? '/'.$page->key() : '/'.$Url->filters('page').'/'.$page->key();
|
|
||||||
echo '<td><a target="_blank" href="'.$page->permalink().'">'.$friendlyURL.'</a></td>';
|
|
||||||
echo '</tr>';
|
|
||||||
|
|
||||||
foreach ($page->children() as $childKey) {
|
foreach ($page->children() as $childKey) {
|
||||||
$child = buildPage($childKey);
|
$child = buildPage($childKey);
|
||||||
echo '<tr>
|
echo '<tr>
|
||||||
|
|
Loading…
Reference in New Issue