Created
June 1, 2023 19:31
-
-
Save rvizena/8c81d17371fee48e280e4e9b9f529487 to your computer and use it in GitHub Desktop.
Twig Boolean for show/hide paragraphs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% if paragraph.field_hide_spotlight.value != 1 %} | |
<{{ outer_wrapper }}{{ attributes.addClass('ppl-spotlight-wrapper', 'ds-2col-stacked', 'clearfix') }}> | |
{{ title_suffix.contextual_links }} | |
<{{ header_wrapper }}{{ header_attributes.addClass('group-header') }}> | |
{{ header }} | |
</{{ header_wrapper }}> | |
<{{ left_wrapper }}{{ left_attributes.addClass('group-left') }}> | |
{{ left }} | |
</{{ left_wrapper }}> | |
<{{ right_wrapper }}{{ right_attributes.addClass('group-right') }}> | |
{{ right }} | |
</{{ right_wrapper }}> | |
<{{ footer_wrapper }}{{ footer_attributes.addClass('group-footer') }}> | |
{{ footer }} | |
</{{ footer_wrapper }}> | |
</{{ outer_wrapper }}> | |
{% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment