Commit 6add1c8c authored by Eric Bremner's avatar Eric Bremner
Browse files

Merge branch 'feature/ISTWCMS-4531-ebremner-remove-theme-dashboard' into '8.x-1.x'

feature ISTWCMS-4531 ebremner-remove-theme-dashboard

See merge request !11
parents 6e2e5bd8 8402304f
......@@ -99,29 +99,6 @@ function uw_sites_all_page_attachments(array &$page) {
return;
}
// Get the arguments of the URL and separate into parts.
$args = explode('/', \Drupal::service('path.current')->getPath());
// If we are on the dashboard, add the stylings so that blocks
// appear correctly.
if (in_array('dashboard', $args)) {
$page['#attached']['library'][] = 'uw_fdsu_theme_resp/global';
}
}
/**
* Implements template_preprocess_html().
*/
function uw_sites_all_preprocess_html(&$variables) {
// Get the arguments of the URL and separate into parts.
$args = explode('/', \Drupal::service('path.current')->getPath());
// If the last argument is layout, we are on a layout page,
// so set the variable to true.
if (!in_array('dashboard', $args)) {
$variables['attributes']['class'][] = 'uw-page';
}
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment