bludit/bl-themes/alternative/php/navbar.php

35 lines
1.3 KiB
PHP
Raw Normal View History

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">
<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-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>
<?php endforeach; ?>
2018-01-31 20:19:53 +01:00
2018-01-27 20:34:26 +01:00
</ul>
2018-01-27 20:34:26 +01:00
</div>
</div>
2018-02-24 22:39:39 +01:00
</nav>