<nav id="navigation" class="main-header navbar navbar-light bg-faded navbar-full navbar-expand-lg">
  <div class="container">

    <div class="navbar-header">
      <?php if ($logo): ?>
      <a class="logo navbar-btn pull-left" href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>">
        <img src="<?php print $logo; ?>" alt="<?php print t('Home'); ?>" />
      </a>
      <?php endif; ?>

      <div class="logo-wrapper">
        <span class="logo-text"><?php print variable_get('site_name') ?></span>
        <div class="text-muted text-xs hidden-xs-down">
          <?php print variable_get('site_slogan') ?>
        </div>
      </div>
    </div>

    <div class="collapse navbar-collapse" id="navbar-collapse">
      <?php
          if (!empty($primary_nav)):
            print render($primary_nav);
          endif;
          ?>

      <?php
          if (!empty($secondary_nav)):
            print render($secondary_nav);
          endif;
          ?>

      <?php if (!user_is_logged_in()): ?>
      <ul class="navbar-nav mr-md-auto mr-lg-0">
        <li class="leaf nav-item">
          <a href="/user/login" class="nav-link">Login</a>
        </li>
        <li class="leaf nav-item">
          <a href="/user/register" class="nav-link">Register</a>
        </li>
      </ul>
      <?php endif; ?>
    </div>
  </div>
</nav> <!-- /.section, /#navigation -->
