Projet

Général

Profil

Paste
Télécharger (619 octets) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / themes / bootstrap / theme / menu / menu-tree.func.php @ 87dbc3bf

1
<?php
2
/**
3
 * @file
4
 * menu-tree.func.php
5
 */
6

    
7
/**
8
 * Overrides theme_menu_tree().
9
 */
10
function bootstrap_menu_tree(&$variables) {
11
  return '<ul class="menu nav">' . $variables['tree'] . '</ul>';
12
}
13

    
14
/**
15
 * Bootstrap theme wrapper function for the primary menu links.
16
 */
17
function bootstrap_menu_tree__primary(&$variables) {
18
  return '<ul class="menu nav navbar-nav">' . $variables['tree'] . '</ul>';
19
}
20

    
21
/**
22
 * Bootstrap theme wrapper function for the secondary menu links.
23
 */
24
function bootstrap_menu_tree__secondary(&$variables) {
25
  return '<ul class="menu nav navbar-nav secondary">' . $variables['tree'] . '</ul>';
26
}