Commit 57e9a31b authored by Chris Shantz's avatar Chris Shantz
Browse files

Merge branch '1.0.x' into prod/1.0.x

parents 6d7e4926 b9d48ad8
{% if site_footer %}
{% include "@layouts/site-footer/site-footer.twig" with {
"body": site_footer.content,
"logo_link": site_footer.logo_link,
"logo_url": site_footer.logo_url,
"site_name": site_footer.site_name,
"logo_alt_text": site_footer.logo_alt_text,
"social_media": site_footer.social_media,
"social_media_placement": "local-site-footer",
"primary": site_footer.primary
} %}
{% endif %}
{% if site_footer %}
{% include "@layouts/site-footer/site-footer.twig" with {
"body": site_footer.content,
"logo_link": site_footer.logo_link,
"logo_url": site_footer.logo_url,
"site_name": site_footer.site_name,
"logo_alt_text": site_footer.logo_alt_text,
"social_media": site_footer.social_media,
"social_media_placement": "local-site-footer",
"primary": site_footer.primary,
'home_link': site_footer.home_link
} %}
{% endif %}
......@@ -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';
}
}
/**
......
Supports Markdown
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