Commit 8402304f authored by m26lebla's avatar m26lebla
Browse files

removal of the preprocess html and the previous code comments for dashboards

parent 1b60dd42
......@@ -99,30 +99,6 @@ function uw_sites_all_page_attachments(array &$page) {
return;
}
// Commented out until we work on dashboards presentation layer.
// 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