Your IP : 216.73.216.168


Current Path : /home/poliximo/public_html/templates/yoo_aurora/layouts/
Upload File :
Current File : /home/poliximo/public_html/templates/yoo_aurora/layouts/theme.php

<?php
/**
* @package   yoo_aurora
* @author    YOOtheme http://www.yootheme.com
* @copyright Copyright (C) YOOtheme GmbH
* @license   http://www.gnu.org/licenses/gpl.html GNU/GPL
*/

// get theme configuration
include($this['path']->path('layouts:theme.config.php'));

?>
<!DOCTYPE HTML>
<html lang="<?php echo $this['config']->get('language'); ?>" dir="<?php echo $this['config']->get('direction'); ?>"  data-config='<?php echo $this['config']->get('body_config','{}'); ?>'>

<head>
<?php echo $this['template']->render('head'); ?>
</head>

<body class="<?php echo $this['config']->get('body_classes'); ?>">

<div class="uk-grid tm-wrapper" data-uk-grid-match>

    <?php if ($this['widgets']->count('sidebar-main + sidebar-menu + sidebar-logo')) : ?>
    <div class="uk-width-1-1 tm-sidebar-wrapper uk-hidden-medium uk-hidden-small">

        <?php if ($this['widgets']->count('sidebar-menu + sidebar-logo')) : ?>
        <div class="tm-sidebar-menu-container" <?php echo $this['config']->get('sticky_navbar') ? 'data-uk-sticky' : ''; ?>>

            <?php if ($this['widgets']->count('sidebar-logo')) : ?>
            <a class="tm-sidebar-logo" href="<?php echo $this['config']->get('site_url'); ?>"><?php echo $this['widgets']->render('sidebar-logo'); ?></a>
            <?php endif; ?>

            <?php if ($this['widgets']->count('sidebar-menu')) : ?>
            <nav class="tm-sidebar-nav">
                <?php echo $this['widgets']->render('sidebar-menu'); ?>
            </nav>
            <?php endif; ?>

        </div>
        <?php endif; ?>

        <?php if ($this['widgets']->count('sidebar-main + sidebar-social')) : ?>
        <div class="tm-sidebar-widget-container">

            <?php if ($this['widgets']->count('sidebar-main')) : ?>
            <div class="tm-sidebar-main">
                <?php echo $this['widgets']->render('sidebar-main'); ?>
            </div>
            <?php endif; ?>

            <?php if ($this['widgets']->count('sidebar-social')) : ?>
            <div class="tm-sidebar-social uk-flex uk-flex-middle uk-flex-center">
                <?php echo $this['widgets']->render('sidebar-social'); ?>
            </div>
            <?php endif; ?>

        </div>
        <?php endif; ?>

    </div>
    <?php endif; ?>

    <div class="uk-width-1-1 tm-content-wrapper<?php echo (($this['widgets']->count('footer-menu')) || $this['config']->get('totop_scroller', true)) ? ' tm-footer-true' : '' ?>">

    <?php if ($this['widgets']->count('toolbar + search')) : ?>
        <div class="tm-toolbar uk-flex uk-flex-middle uk-flex-space-between uk-hidden-small uk-hidden-medium">

            <?php if ($this['widgets']->count('toolbar')) : ?>
                <div><?php echo $this['widgets']->render('toolbar'); ?></div>
            <?php endif; ?>

            <?php if ($this['widgets']->count('search')) : ?>
                <div class="tm-search uk-text-right">
                    <?php echo $this['widgets']->render('search'); ?>
                </div>
            <?php endif; ?>

        </div>
    <?php endif; ?>

    <?php if ($this['widgets']->count('offcanvas + logo-small')) : ?>
        <nav class="tm-navbar uk-navbar uk-hidden-large">

            <?php if ($this['widgets']->count('offcanvas')) : ?>
                <a href="#offcanvas" class="uk-navbar-toggle" data-uk-offcanvas></a>
            <?php endif; ?>

            <?php if ($this['widgets']->count('logo-small')) : ?>
                <div class="uk-navbar-content uk-navbar-center"><a class="tm-logo-small" href="<?php echo $this['config']->get('site_url'); ?>"><?php echo $this['widgets']->render('logo-small'); ?></a></div>
            <?php endif; ?>

        </nav>
    <?php endif; ?>

        <?php if ($this['widgets']->count('content-top')) : ?>
        <div class="tm-block-content-top">
            <section class="<?php echo $grid_classes['content-top']; echo $display_classes['content-top']; ?>" data-uk-grid-match="{target:'> div > .uk-panel'}" data-uk-grid-margin><?php echo $this['widgets']->render('content-top', array('layout'=>$this['config']->get('grid.content-top.layout'))); ?></section>
        </div>
        <?php endif; ?>

        <div class="tm-content-container">

            <?php if ($this['widgets']->count('top-a')) : ?>
            <section class="<?php echo $grid_classes['top-a']; echo $display_classes['top-a']; ?>" data-uk-grid-match="{target:'> div > .uk-panel'}" data-uk-grid-margin><?php echo $this['widgets']->render('top-a', array('layout'=>$this['config']->get('grid.top-a.layout'))); ?></section>
            <?php endif; ?>

            <?php if ($this['widgets']->count('top-b')) : ?>
            <hr class="tm-grid-divider">
            <section class="<?php echo $grid_classes['top-b']; echo $display_classes['top-b']; ?>" data-uk-grid-match="{target:'> div > .uk-panel'}" data-uk-grid-margin><?php echo $this['widgets']->render('top-b', array('layout'=>$this['config']->get('grid.top-b.layout'))); ?></section>
            <?php endif; ?>

            <?php if ($this['widgets']->count('top-c')) : ?>
                <hr class="tm-grid-divider">
            <section class="<?php echo $grid_classes['top-c']; echo $display_classes['top-c']; ?>" data-uk-grid-match="{target:'> div > .uk-panel'}" data-uk-grid-margin><?php echo $this['widgets']->render('top-c', array('layout'=>$this['config']->get('grid.top-c.layout'))); ?></section>
            <?php endif; ?>

            <?php if ($this['widgets']->count('top-d')) : ?>
                <hr class="tm-grid-divider">
            <section class="<?php echo $grid_classes['top-d']; echo $display_classes['top-d']; ?>" data-uk-grid-match="{target:'> div > .uk-panel'}" data-uk-grid-margin><?php echo $this['widgets']->render('top-d', array('layout'=>$this['config']->get('grid.top-d.layout'))); ?></section>
            <?php endif; ?>

            <?php if ($this['widgets']->count('main-top + main-bottom + sidebar-a + sidebar-b') || $this['config']->get('system_output', true)) : ?>
            <hr class="tm-grid-divider">
            <div class="tm-middle uk-grid" data-uk-grid-match data-uk-grid-margin>

                <?php if ($this['widgets']->count('main-top + main-bottom') || $this['config']->get('system_output', true)) : ?>
                <div class="<?php echo $columns['main']['class'] ?>">

                    <?php if ($this['widgets']->count('main-top')) : ?>
                    <section class="<?php echo $grid_classes['main-top']; echo $display_classes['main-top']; ?>" data-uk-grid-match="{target:'> div > .uk-panel'}" data-uk-grid-margin><?php echo $this['widgets']->render('main-top', array('layout'=>$this['config']->get('grid.main-top.layout'))); ?></section>
                    <?php endif; ?>

                    <?php if ($this['config']->get('system_output', true)) : ?>
                    <main class="tm-content">

                        <?php if ($this['widgets']->count('breadcrumbs')) : ?>
                        <?php echo $this['widgets']->render('breadcrumbs'); ?>
                        <?php endif; ?>

                        <?php echo $this['template']->render('content'); ?>

                    </main>
                    <?php endif; ?>

                    <?php if ($this['widgets']->count('main-bottom')) : ?>
                    <section class="<?php echo $grid_classes['main-bottom']; echo $display_classes['main-bottom']; ?>" data-uk-grid-match="{target:'> div > .uk-panel'}" data-uk-grid-margin><?php echo $this['widgets']->render('main-bottom', array('layout'=>$this['config']->get('grid.main-bottom.layout'))); ?></section>
                    <?php endif; ?>

                </div>
                <?php endif; ?>

                <?php foreach($columns as $name => &$column) : ?>
                <?php if ($name != 'main' && $this['widgets']->count($name)) : ?>
                <aside class="<?php echo $column['class'] ?>"><?php echo $this['widgets']->render($name) ?></aside>
                <?php endif ?>
                <?php endforeach ?>

            </div>
            <?php endif; ?>

            <?php if ($this['widgets']->count('bottom-a')) : ?>
            <hr class="tm-grid-divider">
            <section class="<?php echo $grid_classes['bottom-a']; echo $display_classes['bottom-a']; ?>" data-uk-grid-match="{target:'> div > .uk-panel'}" data-uk-grid-margin><?php echo $this['widgets']->render('bottom-a', array('layout'=>$this['config']->get('grid.bottom-a.layout'))); ?></section>
            <?php endif; ?>

            <?php if ($this['widgets']->count('bottom-b')) : ?>
            <hr class="tm-grid-divider">
            <section class="<?php echo $grid_classes['bottom-b']; echo $display_classes['bottom-b']; ?>" data-uk-grid-match="{target:'> div > .uk-panel'}" data-uk-grid-margin><?php echo $this['widgets']->render('bottom-b', array('layout'=>$this['config']->get('grid.bottom-b.layout'))); ?></section>
            <?php endif; ?>

            <?php if ($this['widgets']->count('bottom-c')) : ?>
            <hr class="tm-grid-divider">
            <section class="<?php echo $grid_classes['bottom-c']; echo $display_classes['bottom-c']; ?>" data-uk-grid-match="{target:'> div > .uk-panel'}" data-uk-grid-margin><?php echo $this['widgets']->render('bottom-c', array('layout'=>$this['config']->get('grid.bottom-c.layout'))); ?></section>
            <?php endif; ?>

            <?php if ($this['widgets']->count('bottom-d')) : ?>
            <hr class="tm-grid-divider">
            <section class="<?php echo $grid_classes['bottom-d']; echo $display_classes['bottom-d']; ?>" data-uk-grid-match="{target:'> div > .uk-panel'}" data-uk-grid-margin><?php echo $this['widgets']->render('bottom-d', array('layout'=>$this['config']->get('grid.bottom-d.layout'))); ?></section>
            <?php endif; ?>


        </div>

        <?php if ($this['widgets']->count('content-bottom')) : ?>
        <div class="tm-block-content-bottom">
            <section class="<?php echo $grid_classes['content-bottom']; echo $display_classes['content-bottom']; ?>" data-uk-grid-match="{target:'> div > .uk-panel'}" data-uk-grid-margin><?php echo $this['widgets']->render('content-bottom', array('layout'=>$this['config']->get('grid.content-bottom.layout'))); ?></section>
        </div>
        <?php endif; ?>

        <?php if ($this['widgets']->count('footer + debug') || $this['config']->get('warp_branding', true)) : ?>
        <div class="tm-block-footer uk-text-center uk-text-muted">

            <?php
            echo $this['widgets']->render('footer');
            $this->output('warp_branding');
            echo $this['widgets']->render('debug');
            ?>

        </div>
        <?php endif; ?>

        <?php if ($this['widgets']->count('footer-menu') || $this['config']->get('totop_scroller', true)) : ?>
        <footer class="tm-footer uk-flex uk-flex-middle uk-flex-center">

            <?php if ($this['config']->get('totop_scroller', true)) : ?>
            <a class="tm-totop-scroller" data-uk-smooth-scroll href="#"></a>
            <?php endif; ?>

            <?php echo $this['widgets']->render('footer-menu'); ?>

        </footer>
        <?php endif; ?>

    </div>

</div>

<?php echo $this->render('footer'); ?>

<?php if ($this['widgets']->count('offcanvas')) : ?>
<div id="offcanvas" class="uk-offcanvas">
    <div class="uk-offcanvas-bar"><?php echo $this['widgets']->render('offcanvas'); ?></div>
</div>
<?php endif; ?>

</body>
</html>