2020-05-16 21:08:54 +00:00
|
|
|
description = "Main Site Menu"
|
|
|
|
==
|
2020-05-16 21:14:47 +00:00
|
|
|
<?php
|
|
|
|
function onStart()
|
|
|
|
{
|
|
|
|
// Determine the acive section of the site in order to customize the navigation
|
|
|
|
$this['activeSection'] = explode('/', $_SERVER['REQUEST_URI'])[1];
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
==
|
2020-05-18 22:58:54 +00:00
|
|
|
<button class="navbar-toggler ml-auto" type="button" data-toggle="collapse" data-target=".navbars" aria-expanded="false" aria-label="Toggle navigation">
|
2020-05-16 21:08:54 +00:00
|
|
|
<span class="navbar-toggler-icon"></span>
|
|
|
|
</button>
|
|
|
|
|
2020-05-18 22:58:54 +00:00
|
|
|
<div class="collapse navbar-collapse navbars" id="brrp">
|
2020-05-16 21:08:54 +00:00
|
|
|
<ul class="navbar-nav ml-auto">
|
|
|
|
<li class="nav-item {% if activeSection == '' %}active{% endif %}">
|
|
|
|
<a class="nav-link" href="/">Home {% if activeSection == '' %}<span class="sr-only">(current)</span>{% endif %}</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item {% if activeSection == 'feed' %}active{% endif %}">
|
|
|
|
<a class="nav-link" href="/feed">Feed {% if activeSection == 'feed' %}<span class="sr-only">(current)</span>{% endif %}</a>
|
|
|
|
</li>
|
2020-05-18 22:58:54 +00:00
|
|
|
<li class="nav-item {% if activeSection == 'resume' %}active{% endif %}">
|
|
|
|
<a class="nav-link" href="/resume">Résumé</a>
|
|
|
|
</li>
|
2020-05-16 21:08:54 +00:00
|
|
|
</ul>
|
|
|
|
</div>
|