Browse Source

lots of details

master
rdrew 2 years ago
parent
commit
777a6859ef
  1. 24
      rooms.theme

24
rooms.theme

@ -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…
Cancel
Save