schleifengarten-website/bl-themes/schleifengarten/index.php

98 lines
2.1 KiB
PHP
Raw Normal View History

2022-08-29 19:19:13 +02:00
<!DOCTYPE HTML>
<html>
<head>
<!-- Include HTML meta tags -->
<?php include(THEME_DIR_PHP.'head.php') ?>
</head>
<body>
<?php Theme::plugins('siteBodyBegin') ?>
<div id="wrapper">
<!-- Header -->
<header id="header">
<h1><a href="<?php echo Theme::siteUrl() ?>"><?php echo Theme::title() ?></a></h1>
<nav class="links">
<ul>
<?php
foreach ($staticContent as $staticPage) {
echo '<li><a href="'.$staticPage->permalink().'">'.$staticPage->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
echo '<li>';
echo '<a href="'.$site->url().'">';
2022-08-29 19:40:59 +02:00
echo '<h3>'.$site->title().'</h3>';
echo '<p>'.$site->slogan().'</p>';
2022-08-29 19:19:13 +02:00
echo '</a>';
echo '</li>';
foreach ($staticPages as $staticPage) {
echo '<li>';
echo '<a href="'.$staticPage->permalink().'">';
echo '<h3>'.$staticPage->title().'</h3>';
echo '<p>'.$staticPage->description().'</p>';
echo '</a>';
echo '</li>';
}
?>
</ul>
</section>
<!-- Actions -->
<section>
<ul class="actions vertical">
<li><a href="<?php echo Theme::adminUrl() ?>" class="button big fit"><?php $L->p('Login') ?></a></li>
</ul>
</section>
</section>
<!-- Main -->
<div id="main">
<?php
if ($WHERE_AM_I=='page') {
include(THEME_DIR_PHP.'page.php');
} else {
include(THEME_DIR_PHP.'home.php');
}
?>
</div>
<!-- Sidebar -->
<section id="sidebar">
<?php include(THEME_DIR_PHP.'sidebar.php') ?>
</section>
</div>
<!-- Scripts -->
<?php
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');
?>
<?php Theme::plugins('siteBodyEnd') ?>
</body>
</html>