socialbase-1.1.0/templates/comment/details--comment.html.twig

templates/comment/details--comment.html.twig
{#
/**
 * @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 aria-hidden="true" class="details__open-icon" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
        <title>{% trans %}Collapse in{% endtrans %}</title>
        <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 aria-hidden="true" class="details__close-icon" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
        <title>{% trans %}Collapse out{% endtrans %}</title>
        <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>

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc