Skip to content
Snippets Groups Projects
Commit d596a31e authored by Eric Bremner's avatar Eric Bremner Committed by Kevin Paxman
Browse files

ISTWCMS-5880: adding logic for headers/title in contacts

parent 44674e35
No related branches found
No related tags found
1 merge request!85ISTWCMS-5880: adding logic for headers/title in contacts
{% 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',
......
...@@ -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
......
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