Beispiel #1
0
<?php

require_once 'core/autoload.php';
require_once 'core/config.php';
ae_Permalink::init();
$sb = new ae_SiteBuilder();
$sb->render('themes/' . THEME . '/index.php');
Beispiel #2
0
} else {
    if (!ae_Security::isValidArea($_GET['area'])) {
        $msg = sprintf('Area "%s" is not a valid area.', htmlspecialchars($_GET['area']));
        ae_Log::warning($msg);
    } else {
        $area = $_GET['area'];
    }
}
$sb = new ae_SiteBuilder();
include_once 'sb_params.php';
?>
<!DOCTYPE html>

<html>
<?php 
$sb->render('templates/head.php', $paramsHead);
?>
<body>

<?php 
$sb->render('templates/nav.php', $paramsNav);
?>

<section class="main-body">

	<?php 
$sb->render('templates/' . $area . '.php');
?>

</section>
Beispiel #3
0
define('IS_SINGLE_POST', $content == 'single-post');
define('POSTS_OFFSET', max(ae_Permalink::getPostOffset() - 1, 0));
define('POSTS_PER_PAGE', 5);
$sb = new ae_SiteBuilder();
$sb->setBasePath('themes/' . THEME);
?>
<!DOCTYPE html>

<html>
<?php 
include 'head.php';
?>
<body>

<?php 
$sb->render('header.php');
$sb->render('sidebar.php');
?>

<section class="main-body">
	<?php 
include 'body.php';
?>
</section>

<?php 
$sb->render('foot.php');
?>

</body>
</html>