details--comment.html.twig in Open Social 8.9
Same filename and directory in other branches
- 8 themes/socialbase/templates/comment/details--comment.html.twig
- 8.2 themes/socialbase/templates/comment/details--comment.html.twig
- 8.3 themes/socialbase/templates/comment/details--comment.html.twig
- 8.4 themes/socialbase/templates/comment/details--comment.html.twig
- 8.5 themes/socialbase/templates/comment/details--comment.html.twig
- 8.6 themes/socialbase/templates/comment/details--comment.html.twig
- 8.7 themes/socialbase/templates/comment/details--comment.html.twig
- 8.8 themes/socialbase/templates/comment/details--comment.html.twig
Default theme implementation for a details element.
Available variables
- attributes: A list of HTML attributes for the details element.
- errors: (optional) Any errors for this details element, may not be set.
- title: (optional) The title of the element, may not be set.
- description: (optional) The description of the element, may not be set.
- children: (optional) The children of the element, may not be set.
- value: (optional) The value of the element, may not be set.
See also
File
themes/socialbase/templates/comment/details--comment.html.twigView source
- {#
- /**
- * @file
- * Default theme implementation for a details element.
- *
- * Available variables
- * - attributes: A list of HTML attributes for the details element.
- * - errors: (optional) Any errors for this details element, may not be set.
- * - title: (optional) The title of the element, may not be set.
- * - description: (optional) The description of the element, may not be set.
- * - children: (optional) The children of the element, may not be set.
- * - value: (optional) The value of the element, may not be set.
- *
- * @see template_preprocess_details()
- *
- * @ingroup themeable
- */
- #}
- <details{{ attributes }}>
- {%- if title -%}
- <summary{{ summary_attributes.addClass('btn btn-link btn-flat--gray') }}>{{ title }}
- <svg class="details__open-icon" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"/><path d="M0 0h24v24H0z" fill="none"/></svg>
- <svg class="details__close-icon" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"/><path d="M0 0h24v24H0z" fill="none"/></svg>
- </summary>
- {%- endif -%}
- {{ errors }}
- {{ description }}
- {{ children }}
- {{ value }}
- </details>