Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • wcms/uw_sites_all
1 result
Show changes
Commits on Source (3)
......@@ -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';
}
}
/**
......