2017-07-09 22:59:54 +02:00
|
|
|
<div class="sidebar-content">
|
2017-07-13 00:44:39 +02:00
|
|
|
|
|
|
|
<div class="logo">
|
|
|
|
<img class="logo" src="<?php echo HTML_PATH_ADMIN_THEME ?>img/logo.svg" />
|
2017-07-09 22:59:54 +02:00
|
|
|
<h1 class="title"><?php echo $Site->title() ?></h1>
|
2017-07-13 00:44:39 +02:00
|
|
|
</div>
|
2017-07-09 22:59:54 +02:00
|
|
|
|
|
|
|
<?php
|
|
|
|
|
|
|
|
$html = '<div class="plugin plugin-pages">';
|
|
|
|
$html .= '<div class="plugin-content">';
|
2017-07-10 23:40:46 +02:00
|
|
|
$html .= '<ul class="parent">';
|
|
|
|
|
2017-08-26 12:19:33 +02:00
|
|
|
foreach ($pagesByParent[PARENT] as $parent) {
|
2017-07-10 23:40:46 +02:00
|
|
|
$html .= '<li class="parent">';
|
|
|
|
$html .= '<span class="parent">'.$parent->title().'</span>';
|
|
|
|
|
2017-08-26 12:19:33 +02:00
|
|
|
if (!empty($pagesByParent[$parent->key()])) {
|
2017-07-10 23:40:46 +02:00
|
|
|
$html .= '<ul class="child">';
|
2017-08-26 12:19:33 +02:00
|
|
|
foreach ($pagesByParent[$parent->key()] as $child) {
|
|
|
|
if ($child->key()==$page->key()) {
|
|
|
|
$html .= '<li class="child selected">';
|
|
|
|
} else {
|
|
|
|
$html .= '<li class="child">';
|
|
|
|
}
|
2017-07-10 23:40:46 +02:00
|
|
|
$html .= '<a class="child" href="'.$child->permalink().'">';
|
|
|
|
$html .= $child->title();
|
|
|
|
$html .= '</a>';
|
|
|
|
$html .= '</li>';
|
2017-07-09 22:59:54 +02:00
|
|
|
}
|
2017-07-10 23:40:46 +02:00
|
|
|
$html .= '</ul>';
|
2017-07-09 22:59:54 +02:00
|
|
|
}
|
2017-07-10 23:40:46 +02:00
|
|
|
$html .= '</li>';
|
2017-07-09 22:59:54 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
$html .= '</ul>';
|
|
|
|
$html .= '</div>';
|
|
|
|
$html .= '</div>';
|
|
|
|
|
|
|
|
echo $html;
|
|
|
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
</div>
|