bludit/bl-themes/log/index.php

92 lines
1.9 KiB
PHP
Raw Normal View History

<!DOCTYPE HTML>
<html>
<head>
<!-- Include HTML meta tags -->
<?php include(THEME_DIR_PHP.'head.php') ?>
</head>
<body>
<div id="wrapper">
<!-- Header -->
<header id="header">
2017-07-23 23:31:39 +02:00
<h1><a href="<?php echo Theme::siteUrl() ?>"><?php echo Theme::title() ?></a></h1>
<nav class="links">
<ul>
<?php
2017-07-23 23:31:39 +02:00
// Print all pages parents
foreach($pagesByParent[PARENT] as $pageParent) {
echo '<li><a href="'.$pageParent->permalink().'">'.$pageParent->title().'</a></li>';
}
?>
</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
2017-07-23 23:31:39 +02:00
foreach($pagesByParent[PARENT] as $pageParent) {
echo '<li>';
2017-07-23 23:31:39 +02:00
echo '<a href="'.$pageParent->permalink().'">
<h3>'.$pageParent->title().'</h3>
<p>'.$pageParent->description().'</p>
</a>';
echo '</li>';
}
?>
</ul>
</section>
<!-- Actions -->
<section>
<ul class="actions vertical">
2017-07-23 23:31:39 +02:00
<li><a href="<?php echo Theme::adminUrl() ?>" class="button big fit"><?php $L->p('Login') ?></a></li>
</ul>
</section>
</section>
2016-09-21 04:17:45 +02:00
<!-- Main -->
<div id="main">
2016-09-21 04:17:45 +02:00
<?php
2017-07-23 23:31:39 +02:00
if($WHERE_AM_I=='page') {
2016-09-21 04:17:45 +02:00
include(THEME_DIR_PHP.'page.php');
2017-07-23 23:31:39 +02:00
} else {
2017-05-04 21:32:18 +02:00
include(THEME_DIR_PHP.'home.php');
}
2016-09-21 04:17:45 +02:00
?>
</div>
<!-- Sidebar -->
<section id="sidebar">
2016-09-21 04:17:45 +02:00
<?php
include(THEME_DIR_PHP.'sidebar.php');
?>
</section>
</div>
<!-- Scripts -->
2016-09-21 04:17:45 +02:00
<?php
2017-07-23 23:31:39 +02:00
echo Theme::jquery();
echo Theme::js('assets/js/skel.min.js');
echo Theme::js('assets/js/util.js');
echo '<!--[if lt IE 8]>';
echo Theme::js('assets/js/ie/respond.min.js');
echo '<![endif]-->';
echo Theme::js('assets/js/main.js');
2016-09-21 04:17:45 +02:00
Theme::plugins('siteBodyEnd');
?>
</body>
</html>