123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- {%
- set classes = [
- 'field',
- 'field--name-' ~ field_name|clean_class,
- 'field--type-' ~ field_type|clean_class,
- 'field--label-' ~ label_display,
- 'comment-wrapper',
- ]
- %}
- {%
- set title_classes = [
- 'title',
- label_display == 'visually_hidden' ? 'visually-hidden',
- ]
- %}
- <section{{ attributes.addClass(classes) }}>
- {% if comments and not label_hidden %}
- {{ title_prefix }}
- <h2{{ title_attributes.addClass(title_classes) }}>{{ label }}</h2>
- {{ title_suffix }}
- {% endif %}
- {{ comments }}
- {% if comment_form %}
- <h2 class="title comment-form__title">{{ 'Add new comment'|t }}</h2>
- {{ comment_form }}
- {% endif %}
- </section>
|