9 | {% endblock %}
--------------------------------------------------------------------------------
/templates/block/block--system-menu-block.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override for a menu block.
5 | *
6 | * Available variables:
7 | * - plugin_id: The ID of the block implementation.
8 | * - label: The configured label of the block if visible.
9 | * - configuration: A list of the block's configuration values.
10 | * - label: The configured label for the block.
11 | * - label_display: The display settings for the label.
12 | * - provider: The module or other provider that provided this block plugin.
13 | * - Block plugin specific settings will also be stored here.
14 | * - content: The content of this block.
15 | * - attributes: HTML attributes for the containing element.
16 | * - id: A valid HTML ID and guaranteed unique.
17 | * - title_attributes: HTML attributes for the title element.
18 | * - content_attributes: HTML attributes for the content element.
19 | * - title_prefix: Additional output populated by modules, intended to be
20 | * displayed in front of the main title tag that appears in the template.
21 | * - title_suffix: Additional output populated by modules, intended to be
22 | * displayed after the main title tag that appears in the template.
23 | *
24 | * Headings should be used on navigation menus that consistently appear on
25 | * multiple pages. When this menu block's label is configured to not be
26 | * displayed, it is automatically made invisible using the 'visually-hidden' CSS
27 | * class, which still keeps it visible for screen-readers and assistive
28 | * technology. Headings allow screen-reader and keyboard only users to navigate
29 | * to or skip the links.
30 | * See http://juicystudio.com/article/screen-readers-display-none.php and
31 | * http://www.w3.org/TR/WCAG-TECHS/H42.html for more information.
32 | */
33 | #}
34 | {%
35 | set classes = [
36 | 'block',
37 | 'block-menu',
38 | 'navigation',
39 | 'menu--' ~ derivative_plugin_id|clean_class,
40 | ]
41 | %}
42 | {% set heading_id = attributes.id ~ '-menu'|clean_id %}
43 |
56 |
--------------------------------------------------------------------------------
/templates/block/block.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override to display a block.
5 | *
6 | * Available variables:
7 | * - plugin_id: The ID of the block implementation.
8 | * - label: The configured label of the block if visible.
9 | * - configuration: A list of the block's configuration values.
10 | * - label: The configured label for the block.
11 | * - label_display: The display settings for the label.
12 | * - provider: The module or other provider that provided this block plugin.
13 | * - Block plugin specific settings will also be stored here.
14 | * - content: The content of this block.
15 | * - attributes: array of HTML attributes populated by modules, intended to
16 | * be added to the main container tag of this template.
17 | * - id: A valid HTML ID and guaranteed unique.
18 | * - title_attributes: Same as attributes, except applied to the main title
19 | * tag that appears in the template.
20 | * - title_prefix: Additional output populated by modules, intended to be
21 | * displayed in front of the main title tag that appears in the template.
22 | * - title_suffix: Additional output populated by modules, intended to be
23 | * displayed after the main title tag that appears in the template.
24 | *
25 | * @see template_preprocess_block()
26 | */
27 | #}
28 | {%
29 | set classes = [
30 | 'block',
31 | 'block-' ~ configuration.provider|clean_class,
32 | 'block-' ~ plugin_id|clean_class,
33 | ]
34 | %}
35 |
36 |
51 |
--------------------------------------------------------------------------------
/templates/content-edit/filter-guidelines.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override for guidelines for a text format.
5 | *
6 | * Available variables:
7 | * - format: Contains information about the current text format, including the
8 | * following:
9 | * - name: The name of the text format, potentially unsafe and needs to be
10 | * escaped.
11 | * - format: The machine name of the text format, e.g. 'basic_html'.
12 | * - attributes: HTML attributes for the containing element.
13 | * - tips: Descriptions and a CSS ID in the form of 'module-name/filter-id'
14 | * (only used when 'long' is TRUE) for each filter in one or more text
15 | * formats.
16 | *
17 | * @see template_preprocess_filter_tips()
18 | */
19 | #}
20 | {% set tips = tips|render %}
21 |
22 | {% if tips|striptags|trim %}
23 |
24 |
{{ format.label }}
25 | {{ tips }}
26 |
27 | {% endif %}
28 |
--------------------------------------------------------------------------------
/templates/content/page-title.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override for page titles.
5 | *
6 | * Available variables:
7 | * - title_attributes: HTML attributes for the page title element.
8 | * - title_prefix: Additional output populated by modules, intended to be
9 | * displayed in front of the main title tag that appears in the template.
10 | * - title: The page title, for use in the actual content.
11 | * - title_suffix: Additional output populated by modules, intended to be
12 | * displayed after the main title tag that appears in the template.
13 | */
14 | #}
15 | {{ title_prefix }}
16 | {% if title %}
17 |
{{ title }}
18 | {% endif %}
19 | {{ title_suffix }}
20 |
--------------------------------------------------------------------------------
/templates/dataset/item-list.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override for an item list.
5 | *
6 | * Available variables:
7 | * - items: A list of items. Each item contains:
8 | * - attributes: HTML attributes to be applied to each list item.
9 | * - value: The content of the list element.
10 | * - title: The title of the list.
11 | * - list_type: The tag for list element ("ul" or "ol").
12 | * - wrapper_attributes: HTML attributes to be applied to the list wrapper.
13 | * - attributes: HTML attributes to be applied to the list.
14 | * - empty: A message to display when there are no items. Allowed value is a
15 | * string or render array.
16 | * - context: A list of contextual data associated with the list. May contain:
17 | * - list_style: The custom list style.
18 | *
19 | * @see template_preprocess_item_list()
20 | */
21 | #}
22 | {% if context.list_style %}
23 | {%- set attributes = attributes.addClass('item-list__' ~ context.list_style) %}
24 | {% endif %}
25 | {% if items or empty %}
26 | {%- if title is not empty -%}
27 |
{{ title }}
28 | {%- endif -%}
29 |
30 | {%- if items -%}
31 | <{{ list_type }}{{ attributes.addClass('list-group') }}>
32 | {%- for item in items -%}
33 |
tag.
9 | * - colgroups: Column groups. Each group contains the following properties:
10 | * - attributes: HTML attributes to apply to the
tag.
11 | * Note: Drupal currently supports only one table header row, see
12 | * https://www.drupal.org/node/893530 and
13 | * http://api.drupal.org/api/drupal/includes!theme.inc/function/theme_table/7#comment-5109.
14 | * - header: Table header cells. Each cell contains the following properties:
15 | * - tag: The HTML tag name to use; either 'th' or 'td'.
16 | * - attributes: HTML attributes to apply to the tag.
17 | * - content: A localized string for the title of the column.
18 | * - field: Field name (required for column sorting).
19 | * - sort: Default sort order for this column ("asc" or "desc").
20 | * - sticky: A flag indicating whether to use a "sticky" table header.
21 | * - rows: Table rows. Each row contains the following properties:
22 | * - attributes: HTML attributes to apply to the
tag.
23 | * - data: Table cells.
24 | * - no_striping: A flag indicating that the row should receive no
25 | * 'even / odd' styling. Defaults to FALSE.
26 | * - cells: Table cells of the row. Each cell contains the following keys:
27 | * - tag: The HTML tag name to use; either 'th' or 'td'.
28 | * - attributes: Any HTML attributes, such as "colspan", to apply to the
29 | * table cell.
30 | * - content: The string to display in the table cell.
31 | * - active_table_sort: A boolean indicating whether the cell is the active
32 | table sort.
33 | * - footer: Table footer rows, in the same format as the rows variable.
34 | * - empty: The message to display in an extra row if table does not have
35 | * any rows.
36 | * - no_striping: A boolean indicating that the row should receive no striping.
37 | * - header_columns: The number of columns in the header.
38 | *
39 | * @see template_preprocess_table()
40 | */
41 | #}
42 |
43 |
44 | {% if caption %}
45 |
{{ caption }}
46 | {% endif %}
47 |
48 | {% for colgroup in colgroups %}
49 | {% if colgroup.cols %}
50 |
--------------------------------------------------------------------------------
/templates/field-group/field-group-accordion-item.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Default theme implementation for a fieldgroup accordion item.
5 | *
6 | * Available variables:
7 | * - title: Title of the group.
8 | * - children: The children of the group.
9 | * - label_attributes: A list of HTML attributes for the label.
10 | * - attributes: A list of HTML attributes for the group wrapper.
11 | *
12 | * @see template_preprocess_field_group_accordion()
13 | *
14 | * @ingroup themeable
15 | */
16 | #}
17 |
18 | {% set id = element['#group_name'] %}
19 |
20 |
75 | {% endif %}
76 | {% for item in items %}
77 |
{{ item.content }}
78 | {% endfor %}
79 | {% if multiple %}
80 |
81 | {% endif %}
82 |
83 | {% endif %}
84 | {% endblock %}
--------------------------------------------------------------------------------
/templates/field/image.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override of an image.
5 | *
6 | * Available variables:
7 | * - attributes: HTML attributes for the img tag.
8 | * - style_name: (optional) The name of the image style applied.
9 | *
10 | * @see template_preprocess_image()
11 | */
12 | #}
13 |
14 |
--------------------------------------------------------------------------------
/templates/form/container--actions.html.twig:
--------------------------------------------------------------------------------
1 | {% extends 'container.html.twig' %}
2 |
3 | {%
4 | set classes = [
5 | has_parent ? 'd-flex',
6 | has_parent ? 'gap-3',
7 | has_parent ? 'align-items-center',
8 | ]
9 | %}
10 |
11 | {% do attributes.addClass(classes) %}
12 |
--------------------------------------------------------------------------------
/templates/form/container--media-library-widget-selection.html.twig:
--------------------------------------------------------------------------------
1 | {% extends 'container.html.twig' %}
2 |
3 | {%
4 | set classes = [
5 | 'row',
6 | 'row-cols-2',
7 | 'row-cols-lg-3',
8 | 'row-cols-xl-4',
9 | 'gy-4',
10 | ]
11 | %}
12 |
13 | {% do attributes.addClass(classes) %}
14 |
--------------------------------------------------------------------------------
/templates/form/container--text-format-filter-guidelines.html.twig:
--------------------------------------------------------------------------------
1 | {% extends 'container.html.twig' %}
2 |
3 | {%
4 | set classes = [
5 | 'filter-guidelines',
6 | ]
7 | %}
8 |
9 | {% do attributes.addClass(classes) %}
10 |
--------------------------------------------------------------------------------
/templates/form/container--text-format-filter-help.html.twig:
--------------------------------------------------------------------------------
1 | {% extends 'container.html.twig' %}
2 |
3 | {%
4 | set classes = [
5 | 'filter-help',
6 | 'float-sm-end',
7 | 'small',
8 | 'ms-sm-2',
9 | 'mb-2',
10 | ]
11 | %}
12 |
13 | {% do attributes.addClass(classes) %}
14 |
--------------------------------------------------------------------------------
/templates/form/container--text-format-filter-wrapper.html.twig:
--------------------------------------------------------------------------------
1 | {% extends 'container.html.twig' %}
2 |
3 | {%
4 | set classes = [
5 | 'filter-wrapper',
6 | ]
7 | %}
8 |
9 | {% do attributes.addClass(classes) %}
10 |
--------------------------------------------------------------------------------
/templates/form/container.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override of a container used to wrap child elements.
5 | *
6 | * Used for grouped form items. Can also be used as a theme wrapper for any
7 | * renderable element, to surround it with a
and HTML attributes.
8 | * See the @link forms_api_reference.html Form API reference @endlink for more
9 | * information on the #theme_wrappers render array property.
10 | *
11 | * Available variables:
12 | * - attributes: HTML attributes for the containing element.
13 | * - children: The rendered child elements of the container.
14 | * - has_parent: A flag to indicate that the container has one or more parent
15 | containers.
16 | *
17 | * @see template_preprocess_container()
18 | */
19 | #}
20 |
21 | {%
22 | set classes = [
23 | has_parent ? 'js-form-wrapper',
24 | has_parent ? 'form-wrapper',
25 | ]
26 | %}
27 |
28 | {# Webform, take the wheel. #}
29 | {% if has_parent and attributes.hasClass('webform') and not attributes.hasClass('webform-flexbox') %}
30 | {% set inline = attributes.hasClass('container-inline') %}
31 | {%
32 | set classes = classes|merge([
33 | inline ? 'd-flex',
34 | inline ? 'align-items-center',
35 | not inline ? 'd-grid',
36 | 'gap-3',
37 | ])
38 | %}
39 | {% endif %}
40 |
41 | {# Developer note: With twig debug on, this will always have something in it. #}
42 | {% if children %}
43 |
{{ children }}
44 | {% endif %}
--------------------------------------------------------------------------------
/templates/form/datetime-form.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override of a datetime form element.
5 | *
6 | * Available variables:
7 | * - attributes: HTML attributes for the datetime form element.
8 | * - content: The datelist form element to be output.
9 | *
10 | * @see template_preprocess_datetime_form()
11 | */
12 | #}
13 |
14 | {{ content }}
15 |
16 |
--------------------------------------------------------------------------------
/templates/form/datetime-wrapper.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override of a datetime form wrapper.
5 | *
6 | * Available variables:
7 | * - content: The form element to be output, usually a datelist, or datetime.
8 | * - title: The title of the form element.
9 | * - title_attributes: HTML attributes for the title wrapper.
10 | * - description: Description text for the form element.
11 | * - required: An indicator for whether the associated form element is required.
12 | *
13 | * @see template_preprocess_datetime_wrapper()
14 | */
15 | #}
16 | {%
17 | set title_classes = [
18 | 'form-label',
19 | required ? 'js-form-required',
20 | required ? 'form-required',
21 | ]
22 | %}
23 |
24 | {% if title %}
25 |
26 | {% endif %}
27 |
28 | {{ content }}
29 |
30 | {% if errors %}
31 |
--------------------------------------------------------------------------------
/templates/form/details.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override for a details element.
5 | *
6 | * Available variables
7 | * - attributes: A list of HTML attributes for the details element.
8 | * - errors: (optional) Any errors for this details element, may not be set.
9 | * - title: (optional) The title of the element, may not be set.
10 | * - summary_attributes: A list of HTML attributes for the summary element.
11 | * - description: (optional) The description of the element, may not be set.
12 | * - children: (optional) The children of the element, may not be set.
13 | * - value: (optional) The value of the element, may not be set.
14 | *
15 | * @see template_preprocess_details()
16 | */
17 | #}
18 |
19 | {%- if title -%}
20 | {%
21 | set summary_classes = [
22 | required ? 'js-form-required',
23 | required ? 'form-required',
24 | 'form-label',
25 | 'card-header',
26 | ]
27 | %}
28 |
29 | {{ title }}
30 |
31 |
32 | {%- endif -%}
33 |
34 |
35 | {%- if description -%}
36 |
{{ description }}
37 | {%- endif -%}
38 |
39 | {%- if children -%}
40 | {{ children }}
41 | {%- endif -%}
42 |
43 | {%- if value -%}
44 | {{ value }}
45 | {%- endif -%}
46 |
47 |
48 | {% if errors %}
49 |
{{ errors }}
50 | {% endif %}
51 |
52 |
53 |
--------------------------------------------------------------------------------
/templates/form/field-multiple-value-form.html.twig:
--------------------------------------------------------------------------------
1 | {#
2 | /**
3 | * @file
4 | * Theme override for an individual form element.
5 | *
6 | * Available variables for all fields:
7 | * - multiple: Whether there are multiple instances of the field.
8 | *
9 | * Available variables for single cardinality fields:
10 | * - elements: Form elements to be rendered.
11 | *
12 | * Available variables when there are multiple fields.
13 | * - table: Table of field items.
14 | * - description: The description element containing the following properties:
15 | * - content: The description content of the form element.
16 | * - attributes: HTML attributes to apply to the description container.
17 | * - button: "Add another item" button.
18 | *
19 | * @see template_preprocess_field_multiple_value_form()
20 | */
21 | #}
22 | {% if multiple %}
23 | {%
24 | set classes = [
25 | 'js-form-item',
26 | 'form-item',
27 | 'border',
28 | 'rounded',
29 | 'p-3',
30 | ]
31 | %}
32 |