Skip to content

Commit

Permalink
conditional rendering of data-widget-type div or full-width-banners b…
Browse files Browse the repository at this point in the history
…ased on CMS toggle
  • Loading branch information
eselkin committed Dec 6, 2024
1 parent 739689f commit 5c51eb2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
3 changes: 0 additions & 3 deletions src/site/components/banners.drupal.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
>{{ banner.body.processed }}</va-banner>
{% endfor %}

<!-- Situation Updates banner -->
<div data-widget-type="situation-updates-banner"></div>

<!-- Maintenance banner -->
<div data-widget-type="maintenance-banner"></div>

Expand Down
11 changes: 8 additions & 3 deletions src/site/includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,14 @@
{% include "src/site/components/banners.drupal.liquid" %}
</header>

<!-- Fullwidth banner alerts -->
{% include "src/site/components/fullwidth_banner_alerts.drupal.liquid" %}

{% if enabledFeatureFlags.FEATURE_BANNER_USE_ALTERNATIVE_BANNERS %}
<!-- Situation Updates banner -->
<div data-widget-type="situation-updates-banner"></div>
{% else %}
<!-- Fullwidth banner alerts -->
{% include "src/site/components/fullwidth_banner_alerts.drupal.liquid" %}
{% endif %}

<script nonce="**CSP_NONCE**" type="text/javascript">
{% include "src/site/assets/js/skip-link-focus.js" %}
</script>
Expand Down

0 comments on commit 5c51eb2

Please sign in to comment.