Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
uw_fdsu_theme_resp
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WCMS
uw_fdsu_theme_resp
Commits
26a3480c
Commit
26a3480c
authored
9 months ago
by
Eric Bremner
Browse files
Options
Downloads
Patches
Plain Diff
ISTWCMS-6910: using new service to get out menus
parent
46493481
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!128
ISTWCMS-6062: modifying admin label to include publications on reference...
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
templates/regions/region--footer.html.twig
+1
-3
1 addition, 3 deletions
templates/regions/region--footer.html.twig
uw_fdsu_theme_resp.theme
+18
-2
18 additions, 2 deletions
uw_fdsu_theme_resp.theme
with
19 additions
and
5 deletions
templates/regions/region--footer.html.twig
+
1
−
3
View file @
26a3480c
...
@@ -12,13 +12,11 @@
...
@@ -12,13 +12,11 @@
* @see template_preprocess_region()
* @see template_preprocess_region()
*/
*/
#}
#}
{%
set
social_media
=
simplify_menu
(
'uw-menu-global-social-media'
)
%}
{%
set
footer_menu
=
simplify_menu
(
'uw-menu-global-footer'
)
%}
{%
embed
'@layouts/footer/footer.twig'
with
{
{%
embed
'@layouts/footer/footer.twig'
with
{
"social_media"
:
social_media
,
"social_media"
:
social_media
,
"social_media_placement"
:
"global-site-footer"
,
"social_media_placement"
:
"global-site-footer"
,
"footer_menu"
:
footer_menu
.menu_tree
"footer_menu"
:
footer_menu
}
%}
}
%}
{%
block
content
%}
{%
block
content
%}
...
...
This diff is collapsed.
Click to expand it.
uw_fdsu_theme_resp.theme
+
18
−
2
View file @
26a3480c
...
@@ -192,10 +192,10 @@ function uw_fdsu_theme_resp_preprocess_region(&$variables) {
...
@@ -192,10 +192,10 @@ function uw_fdsu_theme_resp_preprocess_region(&$variables) {
$variables
[
'home_link'
]
=
Url
::
fromRoute
(
'<front>'
)
->
setAbsolute
()
->
toString
();
$variables
[
'home_link'
]
=
Url
::
fromRoute
(
'<front>'
)
->
setAbsolute
()
->
toString
();
// Set the main menu variable.
// Set the main menu variable.
$variables
[
'main_menu'
]
=
\Drupal
::
service
(
'uw_cfg_common.uw_
service
'
)
->
uwG
etMenu
(
'main'
,
TRUE
,
TRUE
);
$variables
[
'main_menu'
]
=
\Drupal
::
service
(
'uw_cfg_common.uw_
menu_items
'
)
->
g
etMenu
Tree
(
'main'
,
TRUE
,
TRUE
);
// Set the secondary menu variable.
// Set the secondary menu variable.
$variables
[
'secondary_menu'
]
=
\Drupal
::
service
(
'uw_cfg_common.uw_
service
'
)
->
uwG
etMenu
(
'uw-menu-audience-menu'
,
TRUE
,
TRUE
);
$variables
[
'secondary_menu'
]
=
\Drupal
::
service
(
'uw_cfg_common.uw_
menu_items
'
)
->
g
etMenu
Tree
(
'uw-menu-audience-menu'
,
TRUE
,
TRUE
);
// The class that is used for the header.
// The class that is used for the header.
$variables
[
'classes'
][]
=
'uw-header'
;
$variables
[
'classes'
][]
=
'uw-header'
;
...
@@ -249,6 +249,22 @@ function uw_fdsu_theme_resp_preprocess_region(&$variables) {
...
@@ -249,6 +249,22 @@ function uw_fdsu_theme_resp_preprocess_region(&$variables) {
$variables
[
'classes'
][]
=
'uw-contained-width'
;
$variables
[
'classes'
][]
=
'uw-contained-width'
;
}
}
}
}
if
(
$region
==
'footer'
)
{
$variables
[
'social_media'
]
=
\Drupal
::
service
(
'uw_cfg_common.uw_menu_items'
)
->
getMenuTree
(
'uw-menu-global-social-media'
,
FALSE
);
$variables
[
'footer_menu'
]
=
\Drupal
::
service
(
'uw_cfg_common.uw_menu_items'
)
->
getMenuTree
(
'uw-menu-global-footer'
,
FALSE
);
$test
=
''
;
}
$variables
[
'language'
]
=
\Drupal
::
languageManager
()
->
getCurrentLanguage
();
$variables
[
'language'
]
=
\Drupal
::
languageManager
()
->
getCurrentLanguage
();
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment