diff --git a/core/modules/views/templates/views-exposed-form.html.twig b/core/modules/views/templates/views-exposed-form.html.twig index 5a34f2f..3fdc576 100644 --- a/core/modules/views/templates/views-exposed-form.html.twig +++ b/core/modules/views/templates/views-exposed-form.html.twig @@ -18,6 +18,6 @@ #} {{ q }} {% endif %} -
+
{{ form }}
diff --git a/core/modules/views/templates/views-mini-pager.html.twig b/core/modules/views/templates/views-mini-pager.html.twig index 5fd95dc..7be4d32 100644 --- a/core/modules/views/templates/views-mini-pager.html.twig +++ b/core/modules/views/templates/views-mini-pager.html.twig @@ -12,6 +12,6 @@ */ #} {% if items %} -

{{ 'Pages'|t }}

+

{{ 'Pages'|t }}

{{ items }} {% endif %} diff --git a/core/modules/views/templates/views-more.html.twig b/core/modules/views/templates/views-more.html.twig index b161a65..85725cb 100644 --- a/core/modules/views/templates/views-more.html.twig +++ b/core/modules/views/templates/views-more.html.twig @@ -11,4 +11,4 @@ * @ingroup themeable */ #} -{{ link_text }} +{{ link_text }} diff --git a/core/modules/views/templates/views-view-grouping.html.twig b/core/modules/views/templates/views-view-grouping.html.twig index f06e6b6..2418587 100644 --- a/core/modules/views/templates/views-view-grouping.html.twig +++ b/core/modules/views/templates/views-view-grouping.html.twig @@ -16,7 +16,7 @@ * @ingroup themeable */ #} -
-
{{ title }}
-
{{ content }}
+
+
{{ title }}
+
{{ content }}
diff --git a/core/modules/views/templates/views-view-summary-unformatted.html.twig b/core/modules/views/templates/views-view-summary-unformatted.html.twig index 9120dd4..7d41fcc 100644 --- a/core/modules/views/templates/views-view-summary-unformatted.html.twig +++ b/core/modules/views/templates/views-view-summary-unformatted.html.twig @@ -20,7 +20,7 @@ */ #} {% for row in rows %} - {{ options.inline ? ' + {{ options.inline ? ' {% if row.separator -%} {{ row.separator }} {%- endif %} diff --git a/core/modules/views/templates/views-view-summary.html.twig b/core/modules/views/templates/views-view-summary.html.twig index 4d8ed8f..3773a0d 100644 --- a/core/modules/views/templates/views-view-summary.html.twig +++ b/core/modules/views/templates/views-view-summary.html.twig @@ -19,8 +19,8 @@ * @ingroup themeable */ #} -
-
    +
    +
      {% for row in rows %}
    • {{ row.link }} {% if options.count %} diff --git a/core/modules/views/templates/views-view.html.twig b/core/modules/views/templates/views-view.html.twig index f839ef9..59b1b0e 100644 --- a/core/modules/views/templates/views-view.html.twig +++ b/core/modules/views/templates/views-view.html.twig @@ -44,27 +44,27 @@ {% endif %} {{ title_suffix }} {% if header %} -
      +
      {{ header }}
      {% endif %} {% if exposed %} -
      +
      {{ exposed }}
      {% endif %} {% if attachment_before %} -
      +
      {{ attachment_before }}
      {% endif %} {% if rows %} -
      +
      {{ rows }}
      {% elseif empty %} -
      +
      {{ empty }}
      {% endif %} @@ -73,7 +73,7 @@ {{ pager }} {% endif %} {% if attachment_after %} -
      +
      {{ attachment_after }}
      {% endif %} @@ -81,12 +81,12 @@ {{ more }} {% endif %} {% if footer %} - + {% endfor %} +{% else %} + {% for column in items %} + + {% for row in column.content %} + + {{ row.content }} +
      + {% endfor %} +
      + {% endfor %} +{% endif %} +
      diff --git a/core/modules/views/templates/views-view-grouping.html.twig b/core/themes/classy/templates/views-view-grouping.html.twig similarity index 100% copy from core/modules/views/templates/views-view-grouping.html.twig copy to core/themes/classy/templates/views-view-grouping.html.twig diff --git a/core/themes/classy/templates/views-view-list.html.twig b/core/themes/classy/templates/views-view-list.html.twig new file mode 100644 index 0000000..8de787c --- /dev/null +++ b/core/themes/classy/templates/views-view-list.html.twig @@ -0,0 +1,38 @@ +{# +/** + * @file + * Default theme implementation for a view template to display a list of rows. + * + * Available variables: + * - attributes: HTML attributes for the container. + * - rows: A list of rows for this list. + * - attributes: The row's HTML attributes. + * - content: The row's contents. + * - title: The title of this group of rows. May be empty. + * - list: @todo. + * - type: Starting tag will be either a ul or ol. + * - attributes: HTML attributes for the list element. + * + * @see template_preprocess_views_view_list() + * + * @ingroup themeable + */ +#} +{% if attributes -%} + +{% endif %} + {% if title %} +

      {{ title }}

      + {% endif %} + + <{{ list.type }}{{ list.attributes }}> + + {% for row in rows %} + {{ row.content }}
    • + {% endfor %} + + + +{% if attributes -%} +
    +{% endif %} diff --git a/core/themes/classy/templates/views-view-mapping-test.html.twig b/core/themes/classy/templates/views-view-mapping-test.html.twig new file mode 100644 index 0000000..eacaa84 --- /dev/null +++ b/core/themes/classy/templates/views-view-mapping-test.html.twig @@ -0,0 +1,14 @@ +{# +/** + * @file + * Default theme implementation for testing the mapping row style. + * + * Available variables: + * - element: The view content. + * + * @see template_preprocess_views_view_mapping_test() + * + * @ingroup themeable + */ +#} +{{ element }} diff --git a/core/themes/classy/templates/views-view-opml.html.twig b/core/themes/classy/templates/views-view-opml.html.twig new file mode 100644 index 0000000..0564bf6 --- /dev/null +++ b/core/themes/classy/templates/views-view-opml.html.twig @@ -0,0 +1,25 @@ +{# +/** + * @file + * Default template for feed displays that use the OPML style. + * + * Available variables: + * - title: The title of the feed (as set in the view). + * - updated: The modified date of the feed. + * - items: The feed items themselves. + * + * @see template_preprocess_views_view_opml() + * + * @ingroup themeable + */ +#} + + + + {{ title }} + {{ updated }} + + + {{ items }} + + diff --git a/core/themes/classy/templates/views-view-row-opml.html.twig b/core/themes/classy/templates/views-view-row-opml.html.twig new file mode 100644 index 0000000..431dc5c --- /dev/null +++ b/core/themes/classy/templates/views-view-row-opml.html.twig @@ -0,0 +1,14 @@ +{# +/** + * @file + * Default theme implementation to display an item in a views OPML feed. + * + * Available variables: + * - attributes: Attributes for outline element. + * + * @see template_preprocess_views_view_row_opml() + * + * @ingroup themeable + */ +#} + diff --git a/core/themes/classy/templates/views-view-row-rss.html.twig b/core/themes/classy/templates/views-view-row-rss.html.twig new file mode 100644 index 0000000..e07244c --- /dev/null +++ b/core/themes/classy/templates/views-view-row-rss.html.twig @@ -0,0 +1,22 @@ +{# +/** + * @file + * Default theme implementation to display an item in a views RSS feed. + * + * Available variables: + * - title: RSS item title. + * - link: RSS item link. + * - description: RSS body text. + * - item_elements: RSS item elements rendered as XML (pubDate, creator, guid). + * + * @see template_preprocess_views_view_row_rss() + * + * @ingroup themeable + */ +#} + + {{ title }} + {{ link }} + {{ description }} + {{ item_elements }} + diff --git a/core/themes/classy/templates/views-view-rss.html.twig b/core/themes/classy/templates/views-view-rss.html.twig new file mode 100644 index 0000000..19b5097 --- /dev/null +++ b/core/themes/classy/templates/views-view-rss.html.twig @@ -0,0 +1,30 @@ +{# +/** + * @file + * Default template for feed displays that use the RSS style. + * + * Available variables: + * - link: The link to the feed (the view path). + * - namespaces: The XML namespaces (added automatically). + * - title: The title of the feed (as set in the view). + * - description: The feed description (from feed settings). + * - langcode: The language encoding. + * - channel_elements: The formatted channel elements. + * - items: The feed items themselves. + * + * @see template_preprocess_views_view_rss() + * + * @ingroup themeable + */ +#} + + + + {{ title }} + {{ link }} + {{ description }} + {{ langcode }} + {{ channel_elements }} + {{ items }} + + diff --git a/core/modules/views/templates/views-view-summary-unformatted.html.twig b/core/themes/classy/templates/views-view-summary-unformatted.html.twig similarity index 100% copy from core/modules/views/templates/views-view-summary-unformatted.html.twig copy to core/themes/classy/templates/views-view-summary-unformatted.html.twig diff --git a/core/modules/views/templates/views-view-summary.html.twig b/core/themes/classy/templates/views-view-summary.html.twig similarity index 100% copy from core/modules/views/templates/views-view-summary.html.twig copy to core/themes/classy/templates/views-view-summary.html.twig diff --git a/core/themes/classy/templates/views-view-table.html.twig b/core/themes/classy/templates/views-view-table.html.twig new file mode 100644 index 0000000..6b0b26c --- /dev/null +++ b/core/themes/classy/templates/views-view-table.html.twig @@ -0,0 +1,71 @@ +{# +/** + * @file + * Default theme implementation for displaying a view as a table. + * + * Available variables: + * - attributes: Remaining HTML attributes for the element. + * - class: HTML classes that can be used to style contextually through CSS. + * - title : The title of this group of rows. + * - header: The table header columns. + * - attributes: Remaining HTML attributes for the element. + * - content: HTML classes to apply to each header cell, indexed by + * the header's key. + * - caption_needed: Is the caption tag needed. + * - caption: The caption for this table. + * - accessibility_description: Extended description for the table details. + * - accessibility_summary: Summary for the table details. + * - rows: Table row items. Rows are keyed by row number. + * - attributes: HTML classes to apply to each row. + * - columns: Row column items. Columns are keyed by column number. + * - attributes: HTML classes to apply to each column. + * - content: The column content. + * + * @see template_preprocess_views_view_table() + * + * @ingroup themeable + */ +#} + + {% if caption_needed %} + + {% if caption %} + {{ caption }} + {% else %} + {{ title }} + {% endif %} + {% if (summary is not empty) or (description is not empty) %} +
    + {% if summary is not empty %} + {{ summary }} + {% endif %} + {% if description is not empty %} + {{ description }} + {% endif %} +
    + {% endif %} + + {% endif %} + {% if header %} + + + {% for column in header %} + + {{ column.content }} + + {% endfor %} + + + {% endif %} + + {% for row in rows %} + + {% for column in row.columns %} + + {{ column.content }} + + {% endfor %} + + {% endfor %} + + diff --git a/core/themes/classy/templates/views-view-unformatted.html.twig b/core/themes/classy/templates/views-view-unformatted.html.twig new file mode 100644 index 0000000..e3fb2e3 --- /dev/null +++ b/core/themes/classy/templates/views-view-unformatted.html.twig @@ -0,0 +1,24 @@ +{# +/** + * @file + * Default theme implementation to display a view of unformatted rows. + * + * Available variables: + * - title: The title of this group of rows. May be empty. + * - rows: A list of the view's row items. + * - attributes: The row's HTML attributes. + * - content: The row's content. + * + * @see template_preprocess_views_view_unformatted() + * + * @ingroup themeable + */ +#} +{% if title %} +

    {{ title }}

    +{% endif %} +{% for row in rows %} + + {{ row.content }} +
+{% endfor %} diff --git a/core/modules/views/templates/views-view.html.twig b/core/themes/classy/templates/views-view.html.twig similarity index 100% copy from core/modules/views/templates/views-view.html.twig copy to core/themes/classy/templates/views-view.html.twig