Navigation

Creating basic navigation.

<ul class="navbar-nav">
<?php foreach(Entries::getEntries('', 'slug') as $entry): ?>
    <?php if($entry['slug'] !== '404' && !(isset($entry['visibility']) && ($entry['visibility'] === 'draft' || $entry['visibility'] === 'hidden'))): ?>
        <a class="<?php if(Http::getUriString() == $entry['slug']): ?> active <?php endif ?>" href="<?= $entry['base_url'].'/'.$entry['slug']; ?>"><?= $entry['title']; ?></a>
    <?php endif ?>
<?php endforeach ?>
</ul>