Adding existing content to theme
This commit is contained in:
1 parent
4ec5e05ae2
commit
0665ab292b
26 files changed
+1247
-3
No files matched your search
@@ -0,0 +1,31 @@
|
||||
description = "Main Site Menu"
|
||||
==
|
||||
<?php
|
||||
function onStart()
|
||||
{
|
||||
// Determine the acive section of the site in order to customize the navigation
|
||||
$this['activeSection'] = explode('/', $_SERVER['REQUEST_URI'])[1];
|
||||
}
|
||||
?>
|
||||
==
|
||||
<button class="navbar-toggler ml-auto" type="button" data-toggle="collapse" data-target=".navbars" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
|
||||
<div class="collapse navbar-collapse navbars" id="brrp">
|
||||
<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>-->
|
||||
<li class="nav-item {% if activeSection == 'resume' %}active{% endif %}">
|
||||
<a class="nav-link" href="/resume">Résumé</a>
|
||||
</li>
|
||||
<li class="nav-item {% if activeSection == 'contact' %}active{% endif %}">
|
||||
<a class="nav-link" href="/contact">Contact Me</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
Reference in new issue
Block a user