Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
WCMS
uw_fdsu_theme_resp
Commits
57e9a31b
Commit
57e9a31b
authored
May 02, 2022
by
Chris Shantz
Browse files
Merge branch '1.0.x' into prod/1.0.x
parents
6d7e4926
b9d48ad8
Changes
2
Hide whitespace changes
Inline
Side-by-side
templates/site-footer/uw-site-footer.html.twig
View file @
57e9a31b
{%
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
%}
uw_fdsu_theme_resp.theme
View file @
57e9a31b
...
...
@@ -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'
;
}
}
/**
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment