Conditions | 5 |
Paths | 16 |
Total Lines | 32 |
Code Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | function one_preprocess_page(&$variables) { |
||
8 | |||
9 | // Set container for Meta Header |
||
10 | if (theme_get_setting('meta_header_full_width')) { |
||
11 | $variables['meta_header_width'] = 'container-fluid'; |
||
12 | } |
||
13 | else { |
||
14 | $variables['meta_header_width'] = 'container'; |
||
15 | } |
||
16 | |||
17 | // Set container for Navbar |
||
18 | if (theme_get_setting('navbar_full_width')) { |
||
19 | $variables['navbar_width'] = 'container-fluid'; |
||
20 | } |
||
21 | else { |
||
22 | $variables['navbar_width'] = 'container'; |
||
23 | } |
||
24 | |||
25 | // Set container for Header |
||
26 | if (theme_get_setting('header_full_width')) { |
||
27 | $variables['header_width'] = 'container-fluid'; |
||
28 | } |
||
29 | else { |
||
30 | $variables['header_width'] = 'container'; |
||
31 | } |
||
32 | |||
33 | // Set container for Footer |
||
34 | if (theme_get_setting('footer_full_width')) { |
||
35 | $variables['footer_width'] = 'container-fluid'; |
||
36 | } |
||
37 | else { |
||
38 | $variables['footer_width'] = 'container'; |
||
39 | } |
||
41 |