Skip to content
Snippets Groups Projects
Commit b9d48ad8 authored by Kevin Paxman's avatar Kevin Paxman
Browse files

Merge branch 'feature/ISTWCMS-4866-ebremner-clean-up' into '1.0.x'

ISTWCMS-4866: adding class to content section so that we can target non layout pages

See merge request !50
parents 3295c7ee b021bc19
No related branches found
No related tags found
1 merge request!50ISTWCMS-4866: adding class to content section so that we can target non layout pages
......@@ -57,6 +57,19 @@ function uw_fdsu_theme_resp_preprocess_html(&$variables) {
break;
}
// Get the current path.
$parts = explode('/', \Drupal::service('path.current')->getPath());
// If the last in the array parts is not layout,
// add a class so that we traget anything but
// the layout pages.
if (end($parts) !== 'layout') {
$variables['attributes']['class'][] = 'not-layout-page';
}
else {
$variables['attributes']['class'][] = 'layout-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