rdrew
2 years ago
1 changed files with 0 additions and 24 deletions
@ -1,24 +0,0 @@
|
||||
<?php |
||||
|
||||
function rooms_preprocess_html(&$variables) { |
||||
// Add information about the number of sidebars. |
||||
if (!empty($variables['page']['sidebar_left']) && !empty($variables['page']['sidebar_right'])) { |
||||
$variables['attributes']['class'][] = 'layout-two-sidebars'; |
||||
} |
||||
elseif (!empty($variables['page']['sidebar_left'])) { |
||||
$variables['attributes']['class'][] = 'layout-one-sidebar'; |
||||
$variables['attributes']['class'][] = 'layout-sidebar-left'; |
||||
} |
||||
elseif (!empty($variables['page']['sidebar_right'])) { |
||||
$variables['attributes']['class'][] = 'layout-one-sidebar'; |
||||
$variables['attributes']['class'][] = 'layout-sidebar-right'; |
||||
} |
||||
else { |
||||
$variables['attributes']['class'][] = 'layout-no-sidebars'; |
||||
} |
||||
|
||||
if (!empty($variables['page']['featured_top'])) { |
||||
// $variables['attributes']['class'][] = 'has-featured-top'; |
||||
} |
||||
|
||||
} |
Loading…
Reference in new issue