Skip to content
Snippets Groups Projects
Commit 55c15fc3 authored by Eric Bremner's avatar Eric Bremner
Browse files

ISTWCMS-3505: adding code for UW header

parent 3bc184fe
No related branches found
No related tags found
No related merge requests found
{% embed '@layouts/header/header.twig' %} {#
/**
{% block content %} * @file
{{ content }} * Theme override to display a region.
{% endblock %} *
* Available variables:
{% endembed %} * - content: The content for this region, typically blocks.
* - attributes: HTML attributes for the region div.
* - region: The name of the region variable as defined in the theme's
* .info.yml file.
*
* @see template_preprocess_region()
*/
#}
{% embed '@layouts/header/header.twig' with {
'classes': classes
}%}
{% block content %}
{{ content }}
{% endblock %}
{% endembed %}
...@@ -75,6 +75,9 @@ regions: ...@@ -75,6 +75,9 @@ regions:
# patterns folder = `$sourceDir` + `_patterns/` # patterns folder = `$sourceDir` + `_patterns/`
component-libraries: component-libraries:
global:
paths:
- uw_wcms_gesso/source/_patterns/01-global
base: base:
paths: paths:
- uw_wcms_gesso/source/_patterns/02-base - uw_wcms_gesso/source/_patterns/02-base
......
...@@ -23,10 +23,10 @@ function uw_fdsu_theme_resp_preprocess_region(&$variables) { ...@@ -23,10 +23,10 @@ function uw_fdsu_theme_resp_preprocess_region(&$variables) {
// (i.e. faculty colour and get the correct class here). // (i.e. faculty colour and get the correct class here).
if ($region == "header") { if ($region == "header") {
// The class that is used for the header. // The class that is used for the header.
$variables['attributes']['class'][] = 'header'; $variables['classes'][] = 'uw-header';
// The colour scheme to be used for the header. // The colour scheme to be used for the header.
$variables['attributes']['class'][] = 'default'; $variables['classes'][] = 'default';
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment