scanjko of Lab UK
2/20/2015 - 9:25 AM

drupal main navigation render in page.tpl

drupal main navigation render in page.tpl

<nav class="navbar navbar-default">
              <div class="container-fluid">
                  <!-- Brand and toggle get grouped for better mobile display -->
                  <div class="navbar-header">
                      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                          <span class="sr-only">Toggle navigation</span>
                          <span class="icon-bar"></span>
                          <span class="icon-bar"></span>
                          <span class="icon-bar"></span>
                      </button>
                  </div>
                  <div class="collapse navbar-collapse text-uppercase" id="bs-example-navbar-collapse-1">
                      <?php
                      $main_menu = variable_get('menu_main_links_source', 'main-menu');
                      $tree = menu_tree($main_menu);
                      print drupal_render($tree);?>
<!--                      --><?php //endif; ?>
                  </div>
              </div>
              <div class="logo hidden-sm">
                  <?php if ($logo): ?>
                      <a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home" id="logo">
<!--                          <img src="--><?php //print $logo; ?><!--" alt="--><?php //print t('Home'); ?><!--" />-->
                      </a>
                  <?php endif; ?>
              </div>
          </nav>