2016-05-18 04:36:23 +02:00
|
|
|
<!DOCTYPE HTML>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<!-- Include HTML meta tags -->
|
|
|
|
<?php include(THEME_DIR_PHP.'head.php') ?>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div id="wrapper">
|
|
|
|
|
|
|
|
<!-- Header -->
|
|
|
|
<header id="header">
|
|
|
|
<h1><a href="<?php echo $Site->url() ?>"><?php echo $Site->title() ?></a></h1>
|
|
|
|
<nav class="links">
|
|
|
|
<ul>
|
|
|
|
<?php
|
2016-09-21 04:17:45 +02:00
|
|
|
foreach($parents as $Page) {
|
|
|
|
echo '<li><a href="'.$Page->permalink().'">'.$Page->title().'</a></li>';
|
2016-05-18 04:36:23 +02:00
|
|
|
}
|
|
|
|
?>
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
<nav class="main">
|
|
|
|
<ul>
|
|
|
|
<li class="menu"><a class="fa-bars" href="#menu">Menu</a></li>
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
</header>
|
|
|
|
|
|
|
|
<!-- Menu -->
|
|
|
|
<section id="menu">
|
|
|
|
|
|
|
|
<!-- Links -->
|
|
|
|
<section>
|
|
|
|
<ul class="links">
|
|
|
|
<?php
|
2016-09-21 04:17:45 +02:00
|
|
|
foreach($parents as $Page) {
|
2016-05-18 04:36:23 +02:00
|
|
|
echo '<li>';
|
2016-09-21 04:17:45 +02:00
|
|
|
echo '<a href="'.$Page->permalink().'">
|
|
|
|
<h3>'.$Page->title().'</h3>
|
|
|
|
<p>'.$Page->description().'</p>
|
2016-05-18 04:36:23 +02:00
|
|
|
</a>';
|
|
|
|
echo '</li>';
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</ul>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<!-- Actions -->
|
|
|
|
<section>
|
|
|
|
<ul class="actions vertical">
|
|
|
|
<li><a href="<?php echo $Site->url().'admin/' ?>" class="button big fit"><?php $L->p('Login') ?></a></li>
|
|
|
|
</ul>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
</section>
|
|
|
|
|
2016-09-21 04:17:45 +02:00
|
|
|
<!-- Main -->
|
2016-05-18 04:36:23 +02:00
|
|
|
<div id="main">
|
2016-09-21 04:17:45 +02:00
|
|
|
<?php
|
|
|
|
if( ($Url->whereAmI()=='home') || ($Url->whereAmI()=='tag') || ($Url->whereAmI()=='blog') ) {
|
|
|
|
include(THEME_DIR_PHP.'home.php');
|
|
|
|
}
|
|
|
|
elseif($Url->whereAmI()=='post') {
|
|
|
|
include(THEME_DIR_PHP.'post.php');
|
|
|
|
}
|
|
|
|
elseif($Url->whereAmI()=='page') {
|
|
|
|
include(THEME_DIR_PHP.'page.php');
|
|
|
|
}
|
|
|
|
?>
|
2016-05-18 04:36:23 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Sidebar -->
|
|
|
|
<section id="sidebar">
|
2016-09-21 04:17:45 +02:00
|
|
|
<?php
|
|
|
|
include(THEME_DIR_PHP.'sidebar.php');
|
|
|
|
?>
|
2016-05-18 04:36:23 +02:00
|
|
|
</section>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Scripts -->
|
2016-09-21 04:17:45 +02:00
|
|
|
<?php
|
|
|
|
// Local jQuery
|
|
|
|
Theme::jquery();
|
|
|
|
?>
|
|
|
|
|
2016-05-18 04:36:23 +02:00
|
|
|
<script src="<?php echo HTML_PATH_THEME ?>assets/js/skel.min.js"></script>
|
|
|
|
<script src="<?php echo HTML_PATH_THEME ?>assets/js/util.js"></script>
|
|
|
|
<!--[if lte IE 8]><script src="<?php echo HTML_PATH_THEME ?>assets/js/ie/respond.min.js"></script><![endif]-->
|
|
|
|
<script src="<?php echo HTML_PATH_THEME ?>assets/js/main.js"></script>
|
|
|
|
|
2016-09-21 04:17:45 +02:00
|
|
|
<?php
|
|
|
|
// Plugins, site body end
|
|
|
|
Theme::plugins('siteBodyEnd');
|
|
|
|
?>
|
2016-05-18 04:36:23 +02:00
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|