2017-07-09 22:59:54 +02:00
|
|
|
<div class="sidebar-content">
|
|
|
|
<h1 class="title"><?php echo $Site->title() ?></h1>
|
|
|
|
|
|
|
|
<?php
|
|
|
|
|
|
|
|
$html = '<div class="plugin plugin-pages">';
|
|
|
|
$html .= '<div class="plugin-content">';
|
2017-07-10 23:40:46 +02:00
|
|
|
$html .= '<ul class="parent">';
|
|
|
|
|
|
|
|
foreach($pagesByParent[PARENT] as $parent) {
|
|
|
|
$html .= '<li class="parent">';
|
|
|
|
$html .= '<span class="parent">'.$parent->title().'</span>';
|
|
|
|
|
|
|
|
if(!empty($pagesByParent[$parent->key()])) {
|
|
|
|
$html .= '<ul class="child">';
|
|
|
|
foreach($pagesByParent[$parent->key()] as $child) {
|
|
|
|
$html .= '<li class="child">';
|
|
|
|
$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>
|