2015-03-08 18:02:59 +01:00
|
|
|
<div class="header">
|
2015-05-05 03:00:01 +02:00
|
|
|
|
2015-05-19 01:22:05 +02:00
|
|
|
<h1><?php echo $Site->title() ?></h1>
|
|
|
|
<h2><?php echo $Site->slogan() ?></h2>
|
2015-05-05 03:00:01 +02:00
|
|
|
|
|
|
|
<?php
|
|
|
|
|
2015-05-19 01:22:05 +02:00
|
|
|
// Links
|
2015-05-05 03:00:01 +02:00
|
|
|
echo '<div class="links">';
|
|
|
|
echo '<a class="homelink" href="'.HTML_PATH_ROOT.'">Home</a>';
|
2015-05-31 03:06:55 +02:00
|
|
|
echo '<span> - </span>';
|
2015-05-05 03:00:01 +02:00
|
|
|
echo '<a class="homelink" href="'.HTML_PATH_ROOT.'">Twitter</a>';
|
|
|
|
echo '</div>';
|
|
|
|
|
2015-05-19 01:22:05 +02:00
|
|
|
// Pages
|
|
|
|
$parents = $pagesParents[NO_PARENT_CHAR];
|
2015-05-05 03:00:01 +02:00
|
|
|
|
2015-05-19 01:22:05 +02:00
|
|
|
foreach($parents as $parent)
|
2015-05-05 03:00:01 +02:00
|
|
|
{
|
2015-05-19 01:22:05 +02:00
|
|
|
// Print the parent
|
|
|
|
echo '<a class="parent" href="'.HTML_PATH_ROOT.$parent->key().'">'.$parent->title().'</a>';
|
2015-05-05 03:00:01 +02:00
|
|
|
|
2015-05-19 01:22:05 +02:00
|
|
|
// Check if the parent hash children
|
|
|
|
if(isset($pagesParents[$parent->key()]))
|
2015-05-05 03:00:01 +02:00
|
|
|
{
|
2015-05-19 01:22:05 +02:00
|
|
|
$children = $pagesParents[$parent->key()];
|
|
|
|
|
|
|
|
// Print the children
|
|
|
|
echo '<ul>';
|
|
|
|
foreach($children as $child)
|
|
|
|
{
|
2015-05-31 03:06:55 +02:00
|
|
|
echo '<li><a class="children" href="'.HTML_PATH_ROOT.$child->key().'">— '.$child->title().'</a></li>';
|
2015-05-19 01:22:05 +02:00
|
|
|
}
|
|
|
|
echo '</ul>';
|
2015-05-05 03:00:01 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|
|
|
|
|
2015-05-31 03:06:55 +02:00
|
|
|
</div>
|