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
25747d1f
Commit
25747d1f
authored
Feb 10, 2022
by
Chris Shantz
Browse files
Merge branch '1.0.x' into prod/1.0.x
parents
7b28cff5
1b84a82c
Changes
1
Hide whitespace changes
Inline
Side-by-side
uw_fdsu_theme_resp.theme
View file @
25747d1f
...
...
@@ -37,10 +37,25 @@ function uw_fdsu_theme_resp_preprocess_html(&$variables) {
_uw_fdsu_theme_resp_add_favicons
(
$variables
);
// Add Javascript only on the user login page.
$route_name
=
\
Drupal
::
routeMatch
()
->
getRouteName
();
if
(
$route_name
==
'user.login'
)
{
$variables
[
'#attached'
][
'library'
][]
=
'uw_fdsu_theme_resp/user.login'
;
switch
(
$route_name
)
{
// Add Javascript only on the user login page.
case
'user.login'
:
$variables
[
'#attached'
][
'library'
][]
=
'uw_fdsu_theme_resp/user.login'
;
break
;
// The header/page title on contributors listing page browser
// tab shows "Reference author: " in front of the author's name.
case
'entity.bibcite_contributor.canonical'
:
$variables
[
'head_title'
][
'title'
]
=
t
(
'Reference author:'
)
.
' '
.
$variables
[
'head_title'
][
'title'
];
break
;
// Teh header/page title on keywords listing page browser
// tab shows "Reference keyword: " in front of the keyword.
case
'entity.bibcite_keyword.canonical'
:
$variables
[
'head_title'
][
'title'
]
=
t
(
'Reference keyword:'
)
.
' '
.
$variables
[
'head_title'
][
'title'
];
break
;
}
}
...
...
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