Skip to content
Snippets Groups Projects
Commit c2cde8f5 authored by Angie Byron's avatar Angie Byron
Browse files

Issue #2377393 by alexpott: Seven seven_preprocess_html adds unused classes

parent 87b2e6e2
No related branches found
No related tags found
No related merge requests found
......@@ -13,15 +13,6 @@
* Implements hook_preprocess_HOOK() for HTML document templates.
*/
function seven_preprocess_html(&$variables) {
// Add information about the number of sidebars.
if (!empty($variables['page']['sidebar_first'])) {
$variables['attributes']['class'][] = 'one-sidebar';
$variables['attributes']['class'][] = 'sidebar-first';
}
else {
$variables['attributes']['class'][] = 'no-sidebars';
}
// If on a node add or edit page, add a node-layout class.
$path_args = explode('/', \Drupal::request()->getPathInfo());
if ($suggestions = theme_get_suggestions($path_args, 'page', '-')) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment