root / drupal7 / sites / all / themes / bootstrap / theme / system / html.vars.php @ 87dbc3bf
1 |
<?php
|
---|---|
2 |
/**
|
3 |
* @file
|
4 |
* html.vars.php
|
5 |
*
|
6 |
* @see html.tpl.php
|
7 |
*/
|
8 |
|
9 |
/**
|
10 |
* Implements hook_preprocess_html().
|
11 |
*/
|
12 |
function bootstrap_preprocess_html(&$variables) { |
13 |
switch (theme_get_setting('bootstrap_navbar_position')) { |
14 |
case 'fixed-top': |
15 |
$variables['classes_array'][] = 'navbar-is-fixed-top'; |
16 |
break;
|
17 |
|
18 |
case 'fixed-bottom': |
19 |
$variables['classes_array'][] = 'navbar-is-fixed-bottom'; |
20 |
break;
|
21 |
|
22 |
case 'static-top': |
23 |
$variables['classes_array'][] = 'navbar-is-static-top'; |
24 |
break;
|
25 |
} |
26 |
} |