Projet

Général

Profil

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

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

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

    
7
/**
8
 * Overrides theme_menu_local_tasks().
9
 */
10
function bootstrap_menu_local_tasks(&$variables) {
11
  $output = '';
12

    
13
  if (!empty($variables['primary'])) {
14
    $variables['primary']['#prefix'] = '<h2 class="element-invisible">' . t('Primary tabs') . '</h2>';
15
    $variables['primary']['#prefix'] .= '<ul class="tabs--primary nav nav-tabs">';
16
    $variables['primary']['#suffix'] = '</ul>';
17
    $output .= drupal_render($variables['primary']);
18
  }
19

    
20
  if (!empty($variables['secondary'])) {
21
    $variables['secondary']['#prefix'] = '<h2 class="element-invisible">' . t('Secondary tabs') . '</h2>';
22
    $variables['secondary']['#prefix'] .= '<ul class="tabs--secondary pagination pagination-sm">';
23
    $variables['secondary']['#suffix'] = '</ul>';
24
    $output .= drupal_render($variables['secondary']);
25
  }
26

    
27
  return $output;
28
}