1 |
87dbc3bf
|
Benjamin Luce
|
<?php
|
2 |
|
|
|
3 |
|
|
|
4 |
|
|
|
5 |
|
|
|
6 |
|
|
|
7 |
|
|
|
8 |
|
|
|
9 |
|
|
|
10 |
|
|
|
11 |
|
|
|
12 |
|
|
function bootstrap_breadcrumb($variables) {
|
13 |
|
|
$output = '';
|
14 |
|
|
$breadcrumb = $variables['breadcrumb'];
|
15 |
|
|
|
16 |
|
|
|
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 |
|
|
} |