Skip to content

Commit

Permalink
Merge pull request #265 from Bixal/feature/BSD-264-contact-h1
Browse files Browse the repository at this point in the history
Feature/bsd 264 contact h1
  • Loading branch information
mattsqd authored Aug 5, 2024
2 parents 2be287b + 9ec1f67 commit 9b355cf
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 42 deletions.
2 changes: 2 additions & 0 deletions .lando.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ services:
EMAIL_PASSWORD: ''
# Used to enable recaptcha.
RECAPTCHA_SECRET_KEY: ''
# Show the contact form in the footer.
SHOW_CONTACT_FORM_IN_FOOTER: 1
cache:
type: 'redis:6'
node:
Expand Down
1 change: 1 addition & 0 deletions config/sync/config_ignore.settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ ignored_config_entities:
- 'contact.form.site_wide:redirect'
- 'contact.form.site_wide:reply'
- contact.settings
- core.menu.static_menu_link_overrides
- 'google_tag.*'
- 'pathauto.*'
- recaptcha.settings
Expand Down
8 changes: 1 addition & 7 deletions config/sync/core.menu.static_menu_link_overrides.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
_core:
default_config_hash: jdY7AU0tU-QsjmiOw3W8vwpYMb-By--_MSFgbqKUTYM
definitions:
contact__site_page:
enabled: true
menu_name: footer
parent: ''
expanded: false
weight: 0
definitions: { }
2 changes: 1 addition & 1 deletion config/sync/update.settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ fetch:
timeout: 30
notification:
emails:
- [email protected]
- ''
threshold: all

This file was deleted.

7 changes: 7 additions & 0 deletions web/themes/custom/bixal_uswds/php-includes/form.inc
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,13 @@ function bixal_uswds_theme_suggestions_form_alter(array &$suggestions, array $va
$suggestions[] = $vars['theme_hook_original'] . '__' . $vars['element']['#form_id'];
}

/**
* Implements hook_preprocess_form_element().
*/
function bixal_uswds_preprocess_form__contact_message_site_wide_form(&$vars): void {
$vars['on_full_form_page'] = \Drupal::routeMatch()->getRouteName() === 'contact.site_page';
}

/**
* Implements hook_preprocess_form_element().
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<div class="bix-container">
<div class="bix-contact__content">
<div class="contact__overview">
<div class="bix-title-prefix"><h1>Contact</h1></div>
<div class="bix-title-prefix">{% if on_full_form_page %}<h1>{% endif %}Contact{% if on_full_form_page %}</h1>{% endif %}</div>
<h2>
{{ 'How can we help?'|t }}<br />
{{ 'We\'d love to hear from you.'|t }}
Expand Down

0 comments on commit 9b355cf

Please sign in to comment.