<?php





?>
<div class="sidebar">

    <ul class="topnav">

        <?php
        if (!empty($_SESSION['adminId']) && isset($adminuser)) {
            ?>
            <li class="siteNavigation p" data-section-id="section-site-nav">
                <span class="sectionHeader">
                    Navigation
                    <i class="fa fa-chevron-right sidebar-toggle-icon"></i>
                </span>
                <ul>
                    <li>
                        <a href="/admin/" title="Go to <?= config('app.name') ?> Admin home">
                            <i class="fa fa-home"></i>
                            Dashboard
                        </a>
                    </li>
                    <li>
                        <a href="/" title="Go to <?= config('app.name') ?>" target="_blank">
                            <i class="fa fa-globe"></i>
                            Homepage
                        </a>
                    </li>
                    <li>
                        <a href="/admin/logout.php">
                            <i class="fa fa-sign-out"></i>
                            Logout
                        </a>
                    </li>
                </ul>
            </li>
            <?php
        }
        ?>

        <?= $twig->render('admin/favourite_links.twig', [ 'admin_user' => $adminuser ]) ?>

        <?= $twig->render('admin/nav.twig'); ?>
    </ul>

</div><!-- end of left navigationc column -->

<div class="el rightcol">
