Issue #2152207 by steveoliver, joelpittet, gnuget, idflood, hussainweb, shanethehat, jenlampton, kpa, AnythonyR, EVIIILJ, kgoel, Cottser, dsdeiz, hanpersand: Convert theme_details() to Twig
2014-02-07 04:26:52 +00:00
|
|
|
{#
|
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* Default theme implementation for a details element.
|
|
|
|
*
|
|
|
|
* Available variables
|
|
|
|
* - attributes: A list of HTML attributes for the details element.
|
2015-09-14 21:31:12 +00:00
|
|
|
* - errors: (optional) Any errors for this details element, may not be set.
|
Issue #2152207 by steveoliver, joelpittet, gnuget, idflood, hussainweb, shanethehat, jenlampton, kpa, AnythonyR, EVIIILJ, kgoel, Cottser, dsdeiz, hanpersand: Convert theme_details() to Twig
2014-02-07 04:26:52 +00:00
|
|
|
* - 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 }}>{{ title }}</summary>
|
|
|
|
{%- endif -%}
|
2015-06-02 16:41:21 +00:00
|
|
|
|
2015-09-14 21:31:12 +00:00
|
|
|
{% if errors %}
|
|
|
|
<div>
|
|
|
|
{{ errors }}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
2015-06-02 16:41:21 +00:00
|
|
|
{{ description }}
|
|
|
|
{{ children }}
|
|
|
|
{{ value }}
|
Issue #2152207 by steveoliver, joelpittet, gnuget, idflood, hussainweb, shanethehat, jenlampton, kpa, AnythonyR, EVIIILJ, kgoel, Cottser, dsdeiz, hanpersand: Convert theme_details() to Twig
2014-02-07 04:26:52 +00:00
|
|
|
</details>
|