-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Close #3861 Change scope of spaceless filter from all elements to AZ …
…Person headings (#3867) Co-authored-by: Brian Berndt <[email protected]>
- Loading branch information
1 parent
ea1f778
commit a5e2043
Showing
4 changed files
with
74 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
4 changes: 2 additions & 2 deletions
4
..._group/field-group-html-element.html.twig → ...ml-element--node--az-person--h1.html.twig
This file contains 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
29 changes: 29 additions & 0 deletions
29
modules/custom/az_person/templates/field-group-html-element--node--az-person--h2.html.twig
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{# | ||
/** | ||
* @file | ||
* Theme override for a fieldgroup html element. | ||
* | ||
* Available variables: | ||
* - title: Title of the group. | ||
* - title_element: Element to wrap the title. | ||
* - children: The children of the group. | ||
* - wrapper_element: The html element to use. | ||
* - attributes: A list of HTML attributes for the group wrapper. | ||
* | ||
* @see template_preprocess_field_group_html_element() | ||
* | ||
* @ingroup themeable | ||
*/ | ||
#} | ||
<{{ wrapper_element }} {{ attributes }}> | ||
{% if title %} | ||
<{{ title_element }}{{ title_attributes }}>{{ title }}</{{ title_element }}> | ||
{% endif %} | ||
{% if collapsible %} | ||
<div class="field-group-wrapper"> | ||
{% endif %} | ||
{% apply spaceless %}{{children}}{% endapply %} | ||
{% if collapsible %} | ||
</div> | ||
{% endif %} | ||
</{{ wrapper_element }}> |
29 changes: 29 additions & 0 deletions
29
modules/custom/az_person/templates/field-group-html-element--node--az-person--h3.html.twig
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{# | ||
/** | ||
* @file | ||
* Theme override for a fieldgroup html element. | ||
* | ||
* Available variables: | ||
* - title: Title of the group. | ||
* - title_element: Element to wrap the title. | ||
* - children: The children of the group. | ||
* - wrapper_element: The html element to use. | ||
* - attributes: A list of HTML attributes for the group wrapper. | ||
* | ||
* @see template_preprocess_field_group_html_element() | ||
* | ||
* @ingroup themeable | ||
*/ | ||
#} | ||
<{{ wrapper_element }} {{ attributes }}> | ||
{% if title %} | ||
<{{ title_element }}{{ title_attributes }}>{{ title }}</{{ title_element }}> | ||
{% endif %} | ||
{% if collapsible %} | ||
<div class="field-group-wrapper"> | ||
{% endif %} | ||
{% apply spaceless %}{{children}}{% endapply %} | ||
{% if collapsible %} | ||
</div> | ||
{% endif %} | ||
</{{ wrapper_element }}> |