2018-01-28 23:33:50 +01:00
|
|
|
<nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark text-uppercase">
|
2018-01-27 20:34:26 +01:00
|
|
|
<div class="container">
|
2018-10-03 00:19:19 +02:00
|
|
|
<a class="navbar-brand" href="<?php echo Theme::siteUrl(); ?>">
|
2018-03-05 23:46:52 +01:00
|
|
|
<span class="text-white"><?php echo $site->title(); ?></span>
|
2018-01-27 20:34:26 +01:00
|
|
|
</a>
|
|
|
|
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
|
|
|
|
<span class="navbar-toggler-icon"></span>
|
|
|
|
</button>
|
|
|
|
<div class="collapse navbar-collapse" id="navbarResponsive">
|
2018-10-03 00:19:19 +02:00
|
|
|
|
2018-01-27 20:34:26 +01:00
|
|
|
<ul class="navbar-nav ml-auto">
|
2018-01-31 20:19:53 +01:00
|
|
|
|
|
|
|
<!-- Static pages -->
|
2018-01-27 20:34:26 +01:00
|
|
|
<?php foreach ($staticContent as $staticPage): ?>
|
|
|
|
<li class="nav-item">
|
2018-03-05 23:46:52 +01:00
|
|
|
<a class="nav-link" href="<?php echo $staticPage->permalink(); ?>"><?php echo $staticPage->title(); ?></a>
|
2018-01-27 20:34:26 +01:00
|
|
|
</li>
|
|
|
|
<?php endforeach ?>
|
2018-01-31 20:19:53 +01:00
|
|
|
|
|
|
|
<!-- Social Networks -->
|
2018-11-09 00:59:06 +01:00
|
|
|
<?php foreach (Theme::socialNetworks() as $key=>$label): ?>
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="<?php echo $site->{$key}(); ?>" target="_blank">
|
|
|
|
<img class="d-none d-sm-block nav-svg-icon" src="<?php echo DOMAIN_THEME.'img/'.$key.'.svg' ?>" alt="<?php echo $label ?>" />
|
|
|
|
<span class="d-inline d-sm-none"><?php echo $label; ?></span>
|
|
|
|
</a>
|
|
|
|
</li>
|
2018-08-19 17:45:49 +02:00
|
|
|
<?php endforeach; ?>
|
2018-01-31 20:19:53 +01:00
|
|
|
|
2018-01-27 20:34:26 +01:00
|
|
|
</ul>
|
2018-10-03 00:19:19 +02:00
|
|
|
|
2018-01-27 20:34:26 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-02-24 22:39:39 +01:00
|
|
|
</nav>
|