<!DOCTYPE html>
<html lang="<?php echo Theme::lang() ?>">
    <head>
        <?php include(THEME_DIR_PHP.'head.php'); ?>
    </head>

    <body>
        <?php Theme::plugins('siteBodyBegin'); ?>
        <div class="container-fluid text-left">
            <div class="row">
                <div class="col-md-1">&nbsp;</div>
                <div class="col-md-8">
                    <div class="title">
                        <h1><?php echo $site->title() ?></h1>
                        <h2><?php echo $site->slogan() ?></h2>
                    </div>
                </div>
                <div class="col-md-3">&nbsp;</div>
            </div>
            <div class="row">
                <div class="col-md-1">&nbsp;</div>
                <div class="col-md-8">
                    <?php
                        if ($WHERE_AM_I=='page') {
                            include(THEME_DIR_PHP.'page.php');
                        } else {
                            include(THEME_DIR_PHP.'home.php');
                        }
                    ?>
                </div>
                <div class="col-md-2"><?php include(THEME_DIR_PHP.'sidebar.php'); ?></div>
                <div class="col-md-1">&nbsp;</div>
            </div>  <!-- Row -->
        </div>  <!-- Container -->

        <!-- Footer -->
        <?php include(THEME_DIR_PHP.'footer.php'); ?>

        <?php Theme::plugins('siteBodyEnd'); ?>
    </body>
</html>
