Révision eefc2ac0
Ajouté par Assos Assos il y a plus de 6 ans
drupal7/sites/all/themes/bootstrap/templates/system/page.vars.php | ||
---|---|---|
1 | 1 |
<?php |
2 |
|
|
2 | 3 |
/** |
3 | 4 |
* @file |
4 | 5 |
* Stub file for "page" theme hook [pre]process functions. |
... | ... | |
9 | 10 |
* |
10 | 11 |
* See template for list of available variables. |
11 | 12 |
* |
13 |
* @param array $variables |
|
14 |
* An associative array of variables, passed by reference. |
|
15 |
* |
|
12 | 16 |
* @see page.tpl.php |
13 | 17 |
* |
14 | 18 |
* @ingroup theme_preprocess |
15 | 19 |
*/ |
16 |
function bootstrap_preprocess_page(&$variables) { |
|
20 |
function bootstrap_preprocess_page(array &$variables) {
|
|
17 | 21 |
// Add information about the number of sidebars. |
18 | 22 |
if (!empty($variables['page']['sidebar_first']) && !empty($variables['page']['sidebar_second'])) { |
19 | 23 |
$variables['content_column_class'] = ' class="col-sm-6"'; |
... | ... | |
37 | 41 |
// Primary nav. |
38 | 42 |
$variables['primary_nav'] = FALSE; |
39 | 43 |
if ($variables['main_menu']) { |
40 |
// Load the tree |
|
44 |
// Load the tree.
|
|
41 | 45 |
$tree = menu_tree_page_data(variable_get('menu_main_links_source', 'main-menu')); |
42 | 46 |
|
43 | 47 |
// Localize the tree. |
... | ... | |
55 | 59 |
// Secondary nav. |
56 | 60 |
$variables['secondary_nav'] = FALSE; |
57 | 61 |
if ($variables['secondary_menu']) { |
58 |
// Load the tree |
|
62 |
// Load the tree.
|
|
59 | 63 |
$tree = menu_tree_page_data(variable_get('menu_secondary_links_source', 'user-menu')); |
60 | 64 |
|
61 | 65 |
// Localize the tree. |
... | ... | |
94 | 98 |
* |
95 | 99 |
* See template for list of available variables. |
96 | 100 |
* |
101 |
* @param array $variables |
|
102 |
* An associative array of variables, passed by reference. |
|
103 |
* |
|
97 | 104 |
* @see page.tpl.php |
98 | 105 |
* |
99 | 106 |
* @ingroup theme_process |
100 | 107 |
*/ |
101 |
function bootstrap_process_page(&$variables) { |
|
108 |
function bootstrap_process_page(array &$variables) {
|
|
102 | 109 |
$variables['navbar_classes'] = implode(' ', $variables['navbar_classes_array']); |
103 | 110 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules