Projet

Général

Profil

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

root / drupal7 / sites / all / themes / bootstrap / theme / system / breadcrumb.func.php @ 87dbc3bf

1
<?php
2
/**
3
 * @file
4
 * breadcrumb.func.php
5
 */
6

    
7
/**
8
 * Overrides theme_breadcrumb().
9
 *
10
 * Print breadcrumbs as an ordered list.
11
 */
12
function bootstrap_breadcrumb($variables) {
13
  $output = '';
14
  $breadcrumb = $variables['breadcrumb'];
15

    
16
  // Determine if we are to display the breadcrumb.
17
  $bootstrap_breadcrumb = theme_get_setting('bootstrap_breadcrumb');
18
  if (($bootstrap_breadcrumb == 1 || ($bootstrap_breadcrumb == 2 && arg(0) == 'admin')) && !empty($breadcrumb)) {
19
    $output = theme('item_list', array(
20
      'attributes' => array(
21
        'class' => array('breadcrumb'),
22
      ),
23
      'items' => $breadcrumb,
24
      'type' => 'ol',
25
    ));
26
  }
27
  return $output;
28
}