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

Merge branch 'feature/ISTWCMS-4487-ebremner-relocate-gesso' into '8.x-1.x'

Feature/istwcms 4487 ebremner relocate gesso

See merge request !9
parents d21341f2 7f448d5a
......@@ -134,6 +134,7 @@ dependencies:
- uw_custom_blocks
- uw_dashboard
- uw_media
- uw_wcms_gesso
- views
- views_autocomplete_filters
- views_block_placement_exposed_form_defaults
......
......@@ -98,6 +98,30 @@ function uw_sites_all_page_attachments(array &$page) {
$page['#attached']['library'][] = 'uw_sites_all/uw-sites-all-adminimal';
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