navbar.inc.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <nav id="navigation" class="main-header navbar navbar-light bg-faded navbar-full navbar-expand-lg">
  2. <div class="container">
  3. <div class="navbar-header">
  4. <?php if ($logo): ?>
  5. <a class="logo navbar-btn pull-left" href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>">
  6. <img src="<?php print $logo; ?>" alt="<?php print t('Home'); ?>" />
  7. </a>
  8. <?php endif; ?>
  9. <div class="logo-wrapper">
  10. <span class="logo-text"><?php print variable_get('site_name') ?></span>
  11. <div class="text-muted text-xs hidden-xs-down">
  12. <?php print variable_get('site_slogan') ?>
  13. </div>
  14. </div>
  15. </div>
  16. <div class="collapse navbar-collapse" id="navbar-collapse">
  17. <?php
  18. if (!empty($primary_nav)):
  19. print render($primary_nav);
  20. endif;
  21. ?>
  22. <?php
  23. if (!empty($secondary_nav)):
  24. print render($secondary_nav);
  25. endif;
  26. ?>
  27. <?php if (!user_is_logged_in()): ?>
  28. <ul class="navbar-nav mr-md-auto mr-lg-0">
  29. <li class="leaf nav-item">
  30. <a href="/user/login" class="nav-link">Login</a>
  31. </li>
  32. <li class="leaf nav-item">
  33. <a href="/user/register" class="nav-link">Register</a>
  34. </li>
  35. </ul>
  36. <?php endif; ?>
  37. </div>
  38. </div>
  39. </nav> <!-- /.section, /#navigation -->