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
d596a31e
Commit
d596a31e
authored
2 years ago
by
Eric Bremner
Committed by
Kevin Paxman
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
ISTWCMS-5880: adding logic for headers/title in contacts
parent
44674e35
No related branches found
No related tags found
1 merge request
!85
ISTWCMS-5880: adding logic for headers/title in contacts
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
templates/blocks/block--page-title-block.html.twig
+8
-1
8 additions, 1 deletion
templates/blocks/block--page-title-block.html.twig
uw_fdsu_theme_resp.theme
+6
-0
6 additions, 0 deletions
uw_fdsu_theme_resp.theme
with
14 additions
and
1 deletion
templates/blocks/block--page-title-block.html.twig
+
8
−
1
View file @
d596a31e
{%
if
media
==
'no'
%}
{%
set
show_title
=
TRUE
%}
{%
if
hide_page_title
%}
{%
set
show_title
=
FALSE
%}
{%
elseif
media
==
'yes'
%}
{%
set
show_title
=
FALSE
%}
{%
endif
%}
{%
if
show_title
%}
{%
{%
set
classes
=
[
set
classes
=
[
'block'
,
'block'
,
...
...
This diff is collapsed.
Click to expand it.
uw_fdsu_theme_resp.theme
+
6
−
0
View file @
d596a31e
...
@@ -506,6 +506,12 @@ function uw_fdsu_theme_resp_preprocess_block(&$variables) {
...
@@ -506,6 +506,12 @@ function uw_fdsu_theme_resp_preprocess_block(&$variables) {
// Load the node.
// Load the node.
$node
=
\Drupal
::
routeMatch
()
->
getParameter
(
'node'
);
$node
=
\Drupal
::
routeMatch
()
->
getParameter
(
'node'
);
if
(
$node
=
\Drupal
::
routeMatch
()
->
getParameter
(
'node'
))
{
if
(
$node
->
getType
()
==
'uw_ct_contact'
)
{
$variables
[
'hide_page_title'
]
=
TRUE
;
}
}
// ISTWCMS-4943: ensure that we get a node object.
// ISTWCMS-4943: ensure that we get a node object.
// If node is not object by this point, probably on
// If node is not object by this point, probably on
// a revision page where node is an integer, so load
// a revision page where node is an integer, so load
...
...
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