navbar.inc.php.bak 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <nav id="navigation"
  2. class="main-header navbar navbar-light bg-faded navbar-full navbar-expand-lg">
  3. <div class="container">
  4. <a class="navbar-brand" href="/">
  5. <span class="logo-icon"><i class="fa fa-leaf"></i></span>
  6. <div class="logo-wrapper">
  7. <span class="logo-text"><?php print variable_get('site_name') ?></span>
  8. <div class="text-muted text-xs hidden-xs-down">
  9. <?php print variable_get('site_slogan') ?>
  10. </div>
  11. </div>
  12. </a>
  13. <button class="navbar-toggler navbar-toggler-right"
  14. type="button"
  15. data-toggle="collapse"
  16. data-target="#navbar-collapse"
  17. aria-controls="navbarSupportedContent"
  18. aria-expanded="false"
  19. aria-label="Toggle navigation">
  20. <span class="navbar-toggler-icon"></span>
  21. </button>
  22. <div class="collapse navbar-collapse" id="navbar-collapse">
  23. <?php
  24. if (!empty($primary_nav)):
  25. print render($primary_nav);
  26. endif;
  27. ?>
  28. <?php
  29. if (!empty($secondary_nav)):
  30. print render($secondary_nav);
  31. endif;
  32. ?>
  33. <?php if (!user_is_logged_in()): ?>
  34. <ul class="navbar-nav mr-md-auto mr-lg-0">
  35. <li class="leaf nav-item">
  36. <a href="/user/login" class="nav-link">Login</a>
  37. </li>
  38. <li class="leaf nav-item">
  39. <a href="/user/register" class="nav-link">Register</a>
  40. </li>
  41. </ul>
  42. <?php endif; ?>
  43. </div>
  44. </div>
  45. </nav> <!-- /.section, /#navigation -->