From 2647b27f32ec15447a8c9ba3ba8932abe9c95b70 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Thu, 25 Nov 2021 18:59:14 +0000 Subject: [PATCH] chore: remove old Twig templates Refs: #441 --- ...ck--inline-block--recommendation.html.twig | 28 ----- ...ock--opdavies-blog-related-posts.html.twig | 37 ------ .../block--system-branding-block.html.twig | 44 ------- .../block/block--system-menu-block.html.twig | 51 -------- .../opdavies/templates/block/block.html.twig | 39 ------ .../templates/field/field--body.html.twig | 68 ---------- .../field/field--media--video.html.twig | 73 ----------- .../field--node--field-events--talk.html.twig | 57 --------- .../field--node--field-slides--talk.html.twig | 70 ----------- .../field--node--field-video--talk.html.twig | 70 ----------- ...ld--paragraph--field-date--event.html.twig | 70 ----------- ...paragraph--field-location--event.html.twig | 70 ----------- ...ld--paragraph--field-name--event.html.twig | 70 ----------- .../opdavies/templates/layout/page.html.twig | 119 ------------------ .../layout/region--content.html.twig | 19 --- .../templates/menu/menu--main.html.twig | 58 --------- .../templates/menu/menu-local-tasks.html.twig | 24 ---- .../templates/node/node--talk.html.twig | 97 -------------- .../opdavies/templates/node/node.html.twig | 97 -------------- .../paragraph/paragraph--event.html.twig | 83 ------------ .../view/views-view--blog-posts.html.twig | 71 ----------- .../view/views-view--talks.html.twig | 71 ----------- .../views-view-list--blog-posts.html.twig | 38 ------ 23 files changed, 1424 deletions(-) delete mode 100644 web/themes/custom/opdavies/templates/block/block--inline-block--recommendation.html.twig delete mode 100644 web/themes/custom/opdavies/templates/block/block--opdavies-blog-related-posts.html.twig delete mode 100644 web/themes/custom/opdavies/templates/block/block--system-branding-block.html.twig delete mode 100644 web/themes/custom/opdavies/templates/block/block--system-menu-block.html.twig delete mode 100644 web/themes/custom/opdavies/templates/block/block.html.twig delete mode 100644 web/themes/custom/opdavies/templates/field/field--body.html.twig delete mode 100644 web/themes/custom/opdavies/templates/field/field--media--video.html.twig delete mode 100644 web/themes/custom/opdavies/templates/field/field--node--field-events--talk.html.twig delete mode 100644 web/themes/custom/opdavies/templates/field/field--node--field-slides--talk.html.twig delete mode 100644 web/themes/custom/opdavies/templates/field/field--node--field-video--talk.html.twig delete mode 100644 web/themes/custom/opdavies/templates/field/field--paragraph--field-date--event.html.twig delete mode 100644 web/themes/custom/opdavies/templates/field/field--paragraph--field-location--event.html.twig delete mode 100644 web/themes/custom/opdavies/templates/field/field--paragraph--field-name--event.html.twig delete mode 100644 web/themes/custom/opdavies/templates/layout/page.html.twig delete mode 100644 web/themes/custom/opdavies/templates/layout/region--content.html.twig delete mode 100644 web/themes/custom/opdavies/templates/menu/menu--main.html.twig delete mode 100644 web/themes/custom/opdavies/templates/menu/menu-local-tasks.html.twig delete mode 100644 web/themes/custom/opdavies/templates/node/node--talk.html.twig delete mode 100644 web/themes/custom/opdavies/templates/node/node.html.twig delete mode 100644 web/themes/custom/opdavies/templates/paragraph/paragraph--event.html.twig delete mode 100644 web/themes/custom/opdavies/templates/view/views-view--blog-posts.html.twig delete mode 100644 web/themes/custom/opdavies/templates/view/views-view--talks.html.twig delete mode 100644 web/themes/custom/opdavies/templates/view/views-view-list--blog-posts.html.twig diff --git a/web/themes/custom/opdavies/templates/block/block--inline-block--recommendation.html.twig b/web/themes/custom/opdavies/templates/block/block--inline-block--recommendation.html.twig deleted file mode 100644 index 6dc9a83..0000000 --- a/web/themes/custom/opdavies/templates/block/block--inline-block--recommendation.html.twig +++ /dev/null @@ -1,28 +0,0 @@ - - {{ title_prefix }} -

{{ label }}

- {{ title_suffix }} - -
-
-
- {{ content.field_role }} -
- -
- {{ content|without('field_company', 'field_role', 'field_photo') }} -
-
- - {% if content.field_photo %} -
- {{ content.field_photo }} -
- {% endif %} -
- diff --git a/web/themes/custom/opdavies/templates/block/block--opdavies-blog-related-posts.html.twig b/web/themes/custom/opdavies/templates/block/block--opdavies-blog-related-posts.html.twig deleted file mode 100644 index 3adcb67..0000000 --- a/web/themes/custom/opdavies/templates/block/block--opdavies-blog-related-posts.html.twig +++ /dev/null @@ -1,37 +0,0 @@ -{# -/** - * @file - * Theme override to display a block. - * - * Available variables: - * - plugin_id: The ID of the block implementation. - * - label: The configured label of the block if visible. - * - configuration: A list of the block's configuration values. - * - label: The configured label for the block. - * - label_display: The display settings for the label. - * - provider: The module or other provider that provided this block plugin. - * - Block plugin specific settings will also be stored here. - * - content: The content of this block. - * - attributes: array of HTML attributes populated by modules, intended to - * be added to the main container tag of this template. - * - id: A valid HTML ID and guaranteed unique. - * - title_attributes: Same as attributes, except applied to the main title - * tag that appears in the template. - * - title_prefix: Additional output populated by modules, intended to be - * displayed in front of the main title tag that appears in the template. - * - title_suffix: Additional output populated by modules, intended to be - * displayed after the main title tag that appears in the template. - * - * @see template_preprocess_block() - */ -#} - - {{ title_prefix }} - {% if label %} - {{ label }} - {% endif %} - {{ title_suffix }} - {% block content %} - {{ content }} - {% endblock %} - diff --git a/web/themes/custom/opdavies/templates/block/block--system-branding-block.html.twig b/web/themes/custom/opdavies/templates/block/block--system-branding-block.html.twig deleted file mode 100644 index a2d7a93..0000000 --- a/web/themes/custom/opdavies/templates/block/block--system-branding-block.html.twig +++ /dev/null @@ -1,44 +0,0 @@ -{% extends "block.html.twig" %} -{# -/** - * @file - * Theme override for a branding block. - * - * Each branding element variable (logo, name, slogan) is only available if - * enabled in the block configuration. - * - * Available variables: - * - site_logo: Logo for site as defined in Appearance or theme settings. - * - site_name: Name for site as defined in Site information settings. - * - site_slogan: Slogan for site as defined in Site information settings. - */ -#} -{% block content %} -
- {% if site_logo %} - - {{ 'Home'|t }} - - {% endif %} - {% if site_name %} - - {% endif %} - {% if site_slogan %} -
{{ site_slogan }}
- {% endif %} -
-{% endblock %} diff --git a/web/themes/custom/opdavies/templates/block/block--system-menu-block.html.twig b/web/themes/custom/opdavies/templates/block/block--system-menu-block.html.twig deleted file mode 100644 index 3e9b731..0000000 --- a/web/themes/custom/opdavies/templates/block/block--system-menu-block.html.twig +++ /dev/null @@ -1,51 +0,0 @@ -{# -/** - * @file - * Theme override for a menu block. - * - * Available variables: - * - plugin_id: The ID of the block implementation. - * - label: The configured label of the block if visible. - * - configuration: A list of the block's configuration values. - * - label: The configured label for the block. - * - label_display: The display settings for the label. - * - provider: The module or other provider that provided this block plugin. - * - Block plugin specific settings will also be stored here. - * - content: The content of this block. - * - attributes: HTML attributes for the containing element. - * - id: A valid HTML ID and guaranteed unique. - * - title_attributes: HTML attributes for the title element. - * - content_attributes: HTML attributes for the content element. - * - title_prefix: Additional output populated by modules, intended to be - * displayed in front of the main title tag that appears in the template. - * - title_suffix: Additional output populated by modules, intended to be - * displayed after the main title tag that appears in the template. - * - * Headings should be used on navigation menus that consistently appear on - * multiple pages. When this menu block's label is configured to not be - * displayed, it is automatically made invisible using the 'visually-hidden' CSS - * class, which still keeps it visible for screen-readers and assistive - * technology. Headings allow screen-reader and keyboard only users to navigate - * to or skip the links. - * See http://juicystudio.com/article/screen-readers-display-none.php and - * http://www.w3.org/TR/WCAG-TECHS/H42.html for more information. - */ -#} -{% set heading_id = attributes.id ~ '-menu'|clean_id %} - diff --git a/web/themes/custom/opdavies/templates/block/block.html.twig b/web/themes/custom/opdavies/templates/block/block.html.twig deleted file mode 100644 index c77f88f..0000000 --- a/web/themes/custom/opdavies/templates/block/block.html.twig +++ /dev/null @@ -1,39 +0,0 @@ -{# -/** - * @file - * Theme override to display a block. - * - * Available variables: - * - plugin_id: The ID of the block implementation. - * - label: The configured label of the block if visible. - * - configuration: A list of the block's configuration values. - * - label: The configured label for the block. - * - label_display: The display settings for the label. - * - provider: The module or other provider that provided this block plugin. - * - Block plugin specific settings will also be stored here. - * - content: The content of this block. - * - attributes: array of HTML attributes populated by modules, intended to - * be added to the main container tag of this template. - * - id: A valid HTML ID and guaranteed unique. - * - title_attributes: Same as attributes, except applied to the main title - * tag that appears in the template. - * - title_prefix: Additional output populated by modules, intended to be - * displayed in front of the main title tag that appears in the template. - * - title_suffix: Additional output populated by modules, intended to be - * displayed after the main title tag that appears in the template. - * - * @see template_preprocess_block() - */ -#} - - {{ title_prefix }} - {% if label %} - - {{ label }} - - {% endif %} - {{ title_suffix }} - {% block content %} - {{ content }} - {% endblock %} - diff --git a/web/themes/custom/opdavies/templates/field/field--body.html.twig b/web/themes/custom/opdavies/templates/field/field--body.html.twig deleted file mode 100644 index 0842d18..0000000 --- a/web/themes/custom/opdavies/templates/field/field--body.html.twig +++ /dev/null @@ -1,68 +0,0 @@ -{# -/** - * @file - * Theme override for a field. - * - * To override output, copy the "field.html.twig" from the templates directory - * to your theme's directory and customize it, just like customizing other - * Drupal templates such as page.html.twig or node.html.twig. - * - * Instead of overriding the theming for all fields, you can also just override - * theming for a subset of fields using - * @link themeable Theme hook suggestions. @endlink For example, - * here are some theme hook suggestions that can be used for a field_foo field - * on an article node type: - * - field--node--field-foo--article.html.twig - * - field--node--field-foo.html.twig - * - field--node--article.html.twig - * - field--field-foo.html.twig - * - field--text-with-summary.html.twig - * - field.html.twig - * - * Available variables: - * - attributes: HTML attributes for the containing element. - * - label_hidden: Whether to show the field label or not. - * - title_attributes: HTML attributes for the title. - * - label: The label for the field. - * - multiple: TRUE if a field can contain multiple items. - * - items: List of all the field items. Each item contains: - * - attributes: List of HTML attributes for each item. - * - content: The field item's content. - * - entity_type: The entity type to which the field belongs. - * - field_name: The name of the field. - * - field_type: The type of the field. - * - label_display: The display settings for the label. - * - * @see template_preprocess_field() - */ -#} -{% set title_classes = [ - label_display == 'visually_hidden' ? 'visually-hidden', -] %} - -{% if label_hidden %} - {% if multiple %} - - {% for item in items %} - {{ item.content }} - {% endfor %} - - {% else %} - {% for item in items %} - {{ item.content }} - {% endfor %} - {% endif %} -{% else %} - - {{ label }} - {% if multiple %} -
- {% endif %} - {% for item in items %} - {{ item.content }}
- {% endfor %} - {% if multiple %} - - {% endif %} - -{% endif %} diff --git a/web/themes/custom/opdavies/templates/field/field--media--video.html.twig b/web/themes/custom/opdavies/templates/field/field--media--video.html.twig deleted file mode 100644 index c4c38a4..0000000 --- a/web/themes/custom/opdavies/templates/field/field--media--video.html.twig +++ /dev/null @@ -1,73 +0,0 @@ -{# -/** - * @file - * Theme override for a field. - * - * To override output, copy the "field.html.twig" from the templates directory - * to your theme's directory and customize it, just like customizing other - * Drupal templates such as page.html.twig or node.html.twig. - * - * Instead of overriding the theming for all fields, you can also just override - * theming for a subset of fields using - * @link themeable Theme hook suggestions. @endlink For example, - * here are some theme hook suggestions that can be used for a field_foo field - * on an article node type: - * - field--node--field-foo--article.html.twig - * - field--node--field-foo.html.twig - * - field--node--article.html.twig - * - field--field-foo.html.twig - * - field--text-with-summary.html.twig - * - field.html.twig - * - * Available variables: - * - attributes: HTML attributes for the containing element. - * - label_hidden: Whether to show the field label or not. - * - title_attributes: HTML attributes for the title. - * - label: The label for the field. - * - multiple: TRUE if a field can contain multiple items. - * - items: List of all the field items. Each item contains: - * - attributes: List of HTML attributes for each item. - * - content: The field item's content. - * - entity_type: The entity type to which the field belongs. - * - field_name: The name of the field. - * - field_type: The type of the field. - * - label_display: The display settings for the label. - * - * @see template_preprocess_field() - */ -#} -{% set title_classes = [ - label_display == 'visually_hidden' ? 'visually-hidden', -] %} - -{% set video_classes = [ - 'aspect-h-9', - 'aspect-w-16', -] %} - -{% if label_hidden %} - {% if multiple %} - - {% for item in items %} - {{ item.content }} - {% endfor %} - - {% else %} - {% for item in items %} - {{ item.content }} - {% endfor %} - {% endif %} -{% else %} - - {{ label }} - {% if multiple %} -
- {% endif %} - {% for item in items %} - {{ item.content }}
- {% endfor %} - {% if multiple %} - - {% endif %} - -{% endif %} diff --git a/web/themes/custom/opdavies/templates/field/field--node--field-events--talk.html.twig b/web/themes/custom/opdavies/templates/field/field--node--field-events--talk.html.twig deleted file mode 100644 index 7858944..0000000 --- a/web/themes/custom/opdavies/templates/field/field--node--field-events--talk.html.twig +++ /dev/null @@ -1,57 +0,0 @@ -{# -/** - * @file - * Theme override for a field. - * - * To override output, copy the "field.html.twig" from the templates directory - * to your theme's directory and customize it, just like customizing other - * Drupal templates such as page.html.twig or node.html.twig. - * - * Instead of overriding the theming for all fields, you can also just override - * theming for a subset of fields using - * @link themeable Theme hook suggestions. @endlink For example, - * here are some theme hook suggestions that can be used for a field_foo field - * on an article node type: - * - field--node--field-foo--article.html.twig - * - field--node--field-foo.html.twig - * - field--node--article.html.twig - * - field--field-foo.html.twig - * - field--text-with-summary.html.twig - * - field.html.twig - * - * Available variables: - * - attributes: HTML attributes for the containing element. - * - label_hidden: Whether to show the field label or not. - * - title_attributes: HTML attributes for the title. - * - label: The label for the field. - * - multiple: TRUE if a field can contain multiple items. - * - items: List of all the field items. Each item contains: - * - attributes: List of HTML attributes for each item. - * - content: The field item's content. - * - entity_type: The entity type to which the field belongs. - * - field_name: The name of the field. - * - field_type: The type of the field. - * - label_display: The display settings for the label. - * - * @see template_preprocess_field() - */ -#} -{% - set title_classes = [ - label_display == 'visually_hidden' ? 'visually-hidden', - ] -%} - - - - {{ label }} - - -
    - {% for item in items|reverse %} - - {{ item.content }} - - {% endfor %} -
- diff --git a/web/themes/custom/opdavies/templates/field/field--node--field-slides--talk.html.twig b/web/themes/custom/opdavies/templates/field/field--node--field-slides--talk.html.twig deleted file mode 100644 index a02ace7..0000000 --- a/web/themes/custom/opdavies/templates/field/field--node--field-slides--talk.html.twig +++ /dev/null @@ -1,70 +0,0 @@ -{# -/** - * @file - * Theme override for a field. - * - * To override output, copy the "field.html.twig" from the templates directory - * to your theme's directory and customize it, just like customizing other - * Drupal templates such as page.html.twig or node.html.twig. - * - * Instead of overriding the theming for all fields, you can also just override - * theming for a subset of fields using - * @link themeable Theme hook suggestions. @endlink For example, - * here are some theme hook suggestions that can be used for a field_foo field - * on an article node type: - * - field--node--field-foo--article.html.twig - * - field--node--field-foo.html.twig - * - field--node--article.html.twig - * - field--field-foo.html.twig - * - field--text-with-summary.html.twig - * - field.html.twig - * - * Available variables: - * - attributes: HTML attributes for the containing element. - * - label_hidden: Whether to show the field label or not. - * - title_attributes: HTML attributes for the title. - * - label: The label for the field. - * - multiple: TRUE if a field can contain multiple items. - * - items: List of all the field items. Each item contains: - * - attributes: List of HTML attributes for each item. - * - content: The field item's content. - * - entity_type: The entity type to which the field belongs. - * - field_name: The name of the field. - * - field_type: The type of the field. - * - label_display: The display settings for the label. - * - * @see template_preprocess_field() - */ -#} -{% - set title_classes = [ - label_display == 'visually_hidden' ? 'visually-hidden', - ] -%} - -{% if label_hidden %} - {% if multiple %} - - {% for item in items %} - {{ item.content }} - {% endfor %} - - {% else %} - {% for item in items %} - {{ item.content }} - {% endfor %} - {% endif %} -{% else %} - - {{ label }} - {% if multiple %} -
- {% endif %} - {% for item in items %} - {{ item.content }}
- {% endfor %} - {% if multiple %} - - {% endif %} - -{% endif %} diff --git a/web/themes/custom/opdavies/templates/field/field--node--field-video--talk.html.twig b/web/themes/custom/opdavies/templates/field/field--node--field-video--talk.html.twig deleted file mode 100644 index a02ace7..0000000 --- a/web/themes/custom/opdavies/templates/field/field--node--field-video--talk.html.twig +++ /dev/null @@ -1,70 +0,0 @@ -{# -/** - * @file - * Theme override for a field. - * - * To override output, copy the "field.html.twig" from the templates directory - * to your theme's directory and customize it, just like customizing other - * Drupal templates such as page.html.twig or node.html.twig. - * - * Instead of overriding the theming for all fields, you can also just override - * theming for a subset of fields using - * @link themeable Theme hook suggestions. @endlink For example, - * here are some theme hook suggestions that can be used for a field_foo field - * on an article node type: - * - field--node--field-foo--article.html.twig - * - field--node--field-foo.html.twig - * - field--node--article.html.twig - * - field--field-foo.html.twig - * - field--text-with-summary.html.twig - * - field.html.twig - * - * Available variables: - * - attributes: HTML attributes for the containing element. - * - label_hidden: Whether to show the field label or not. - * - title_attributes: HTML attributes for the title. - * - label: The label for the field. - * - multiple: TRUE if a field can contain multiple items. - * - items: List of all the field items. Each item contains: - * - attributes: List of HTML attributes for each item. - * - content: The field item's content. - * - entity_type: The entity type to which the field belongs. - * - field_name: The name of the field. - * - field_type: The type of the field. - * - label_display: The display settings for the label. - * - * @see template_preprocess_field() - */ -#} -{% - set title_classes = [ - label_display == 'visually_hidden' ? 'visually-hidden', - ] -%} - -{% if label_hidden %} - {% if multiple %} - - {% for item in items %} - {{ item.content }} - {% endfor %} - - {% else %} - {% for item in items %} - {{ item.content }} - {% endfor %} - {% endif %} -{% else %} - - {{ label }} - {% if multiple %} -
- {% endif %} - {% for item in items %} - {{ item.content }}
- {% endfor %} - {% if multiple %} - - {% endif %} - -{% endif %} diff --git a/web/themes/custom/opdavies/templates/field/field--paragraph--field-date--event.html.twig b/web/themes/custom/opdavies/templates/field/field--paragraph--field-date--event.html.twig deleted file mode 100644 index 248ae59..0000000 --- a/web/themes/custom/opdavies/templates/field/field--paragraph--field-date--event.html.twig +++ /dev/null @@ -1,70 +0,0 @@ -{# -/** - * @file - * Theme override for a field. - * - * To override output, copy the "field.html.twig" from the templates directory - * to your theme's directory and customize it, just like customizing other - * Drupal templates such as page.html.twig or node.html.twig. - * - * Instead of overriding the theming for all fields, you can also just override - * theming for a subset of fields using - * @link themeable Theme hook suggestions. @endlink For example, - * here are some theme hook suggestions that can be used for a field_foo field - * on an article node type: - * - field--node--field-foo--article.html.twig - * - field--node--field-foo.html.twig - * - field--node--article.html.twig - * - field--field-foo.html.twig - * - field--text-with-summary.html.twig - * - field.html.twig - * - * Available variables: - * - attributes: HTML attributes for the containing element. - * - label_hidden: Whether to show the field label or not. - * - title_attributes: HTML attributes for the title. - * - label: The label for the field. - * - multiple: TRUE if a field can contain multiple items. - * - items: List of all the field items. Each item contains: - * - attributes: List of HTML attributes for each item. - * - content: The field item's content. - * - entity_type: The entity type to which the field belongs. - * - field_name: The name of the field. - * - field_type: The type of the field. - * - label_display: The display settings for the label. - * - * @see template_preprocess_field() - */ -#} -{% - set title_classes = [ - label_display == 'visually_hidden' ? 'visually-hidden', - ] -%} - -{% if label_hidden %} - {% if multiple %} - - {% for item in items %} - {{ item.content }} - {% endfor %} - - {% else %} - {% for item in items %} - {{ item.content }} - {% endfor %} - {% endif %} -{% else %} - - {{ label }} - {% if multiple %} - - {% endif %} - {% for item in items %} - {{ item.content }} - {% endfor %} - {% if multiple %} - - {% endif %} - -{% endif %} diff --git a/web/themes/custom/opdavies/templates/field/field--paragraph--field-location--event.html.twig b/web/themes/custom/opdavies/templates/field/field--paragraph--field-location--event.html.twig deleted file mode 100644 index 248ae59..0000000 --- a/web/themes/custom/opdavies/templates/field/field--paragraph--field-location--event.html.twig +++ /dev/null @@ -1,70 +0,0 @@ -{# -/** - * @file - * Theme override for a field. - * - * To override output, copy the "field.html.twig" from the templates directory - * to your theme's directory and customize it, just like customizing other - * Drupal templates such as page.html.twig or node.html.twig. - * - * Instead of overriding the theming for all fields, you can also just override - * theming for a subset of fields using - * @link themeable Theme hook suggestions. @endlink For example, - * here are some theme hook suggestions that can be used for a field_foo field - * on an article node type: - * - field--node--field-foo--article.html.twig - * - field--node--field-foo.html.twig - * - field--node--article.html.twig - * - field--field-foo.html.twig - * - field--text-with-summary.html.twig - * - field.html.twig - * - * Available variables: - * - attributes: HTML attributes for the containing element. - * - label_hidden: Whether to show the field label or not. - * - title_attributes: HTML attributes for the title. - * - label: The label for the field. - * - multiple: TRUE if a field can contain multiple items. - * - items: List of all the field items. Each item contains: - * - attributes: List of HTML attributes for each item. - * - content: The field item's content. - * - entity_type: The entity type to which the field belongs. - * - field_name: The name of the field. - * - field_type: The type of the field. - * - label_display: The display settings for the label. - * - * @see template_preprocess_field() - */ -#} -{% - set title_classes = [ - label_display == 'visually_hidden' ? 'visually-hidden', - ] -%} - -{% if label_hidden %} - {% if multiple %} - - {% for item in items %} - {{ item.content }} - {% endfor %} - - {% else %} - {% for item in items %} - {{ item.content }} - {% endfor %} - {% endif %} -{% else %} - - {{ label }} - {% if multiple %} - - {% endif %} - {% for item in items %} - {{ item.content }} - {% endfor %} - {% if multiple %} - - {% endif %} - -{% endif %} diff --git a/web/themes/custom/opdavies/templates/field/field--paragraph--field-name--event.html.twig b/web/themes/custom/opdavies/templates/field/field--paragraph--field-name--event.html.twig deleted file mode 100644 index 248ae59..0000000 --- a/web/themes/custom/opdavies/templates/field/field--paragraph--field-name--event.html.twig +++ /dev/null @@ -1,70 +0,0 @@ -{# -/** - * @file - * Theme override for a field. - * - * To override output, copy the "field.html.twig" from the templates directory - * to your theme's directory and customize it, just like customizing other - * Drupal templates such as page.html.twig or node.html.twig. - * - * Instead of overriding the theming for all fields, you can also just override - * theming for a subset of fields using - * @link themeable Theme hook suggestions. @endlink For example, - * here are some theme hook suggestions that can be used for a field_foo field - * on an article node type: - * - field--node--field-foo--article.html.twig - * - field--node--field-foo.html.twig - * - field--node--article.html.twig - * - field--field-foo.html.twig - * - field--text-with-summary.html.twig - * - field.html.twig - * - * Available variables: - * - attributes: HTML attributes for the containing element. - * - label_hidden: Whether to show the field label or not. - * - title_attributes: HTML attributes for the title. - * - label: The label for the field. - * - multiple: TRUE if a field can contain multiple items. - * - items: List of all the field items. Each item contains: - * - attributes: List of HTML attributes for each item. - * - content: The field item's content. - * - entity_type: The entity type to which the field belongs. - * - field_name: The name of the field. - * - field_type: The type of the field. - * - label_display: The display settings for the label. - * - * @see template_preprocess_field() - */ -#} -{% - set title_classes = [ - label_display == 'visually_hidden' ? 'visually-hidden', - ] -%} - -{% if label_hidden %} - {% if multiple %} - - {% for item in items %} - {{ item.content }} - {% endfor %} - - {% else %} - {% for item in items %} - {{ item.content }} - {% endfor %} - {% endif %} -{% else %} - - {{ label }} - {% if multiple %} - - {% endif %} - {% for item in items %} - {{ item.content }} - {% endfor %} - {% if multiple %} - - {% endif %} - -{% endif %} diff --git a/web/themes/custom/opdavies/templates/layout/page.html.twig b/web/themes/custom/opdavies/templates/layout/page.html.twig deleted file mode 100644 index 1ac529c..0000000 --- a/web/themes/custom/opdavies/templates/layout/page.html.twig +++ /dev/null @@ -1,119 +0,0 @@ -{# -/** - * @file - * Default theme implementation to display a single page. - * - * The doctype, html, head and body tags are not in this template. Instead they - * can be found in the html.html.twig template in this directory. - * - * Available variables: - * - * General utility variables: - * - base_path: The base URL path of the Drupal installation. Will usually be - * "/" unless you have installed Drupal in a sub-directory. - * - is_front: A flag indicating if the current page is the front page. - * - logged_in: A flag indicating if the user is registered and signed in. - * - is_admin: A flag indicating if the user has permission to access - * administration pages. - * - * Site identity: - * - front_page: The URL of the front page. Use this instead of base_path when - * linking to the front page. This includes the language domain or prefix. - * - * Page content (in order of occurrence in the default page.html.twig): - * - messages: Status and error messages. Should be displayed prominently. - * - node: Fully loaded node, if there is an automatically-loaded node - * associated with the page and the node ID is the second argument in the - * page's path (e.g. node/12345 and node/12345/revisions, but not - * comment/reply/12345). - * - * Regions: - * - page.header: Items for the header region. - * - page.primary_menu: Items for the primary menu region. - * - page.secondary_menu: Items for the secondary menu region. - * - page.highlighted: Items for the highlighted content region. - * - page.help: Dynamic help text, mostly for admin pages. - * - page.content: The main content of the current page. - * - page.sidebar_first: Items for the first sidebar. - * - page.sidebar_second: Items for the second sidebar. - * - page.footer: Items for the footer region. - * - page.breadcrumb: Items for the breadcrumb region. - * - * @see template_preprocess_page() - * @see html.html.twig - * - * @ingroup themeable - */ -#} -
-
- -
- {{ page.secondary_menu }} - - {{ page.breadcrumb }} - - {{ page.highlighted }} - - {{ page.help }} - -
- {# link is in html.html.twig #} - -
-
-
- {{ page.content }} -
-
{# /.layout-content #} - - {% if page.sidebar_second %} - - {% endif %} -
-
-
{# /.layout-container #} - - {% if page.footer %} -
-
-
- {{ page.footer }} -
-
-
- {% endif %} -
-
diff --git a/web/themes/custom/opdavies/templates/layout/region--content.html.twig b/web/themes/custom/opdavies/templates/layout/region--content.html.twig deleted file mode 100644 index e5e36d0..0000000 --- a/web/themes/custom/opdavies/templates/layout/region--content.html.twig +++ /dev/null @@ -1,19 +0,0 @@ -{# -/** - * @file - * Theme override to display a region. - * - * Available variables: - * - content: The content for this region, typically blocks. - * - attributes: HTML attributes for the region
. - * - region: The name of the region variable as defined in the theme's - * .info.yml file. - * - * @see template_preprocess_region() - */ -#} -{% if content %} - - {{ content }} -
-{% endif %} diff --git a/web/themes/custom/opdavies/templates/menu/menu--main.html.twig b/web/themes/custom/opdavies/templates/menu/menu--main.html.twig deleted file mode 100644 index 5e0d14b..0000000 --- a/web/themes/custom/opdavies/templates/menu/menu--main.html.twig +++ /dev/null @@ -1,58 +0,0 @@ -{# -/** - * @file - * Theme override to display a menu. - * - * Available variables: - * - menu_name: The machine name of the menu. - * - items: A nested list of menu items. Each menu item contains: - * - attributes: HTML attributes for the menu item. - * - below: The menu item child items. - * - title: The menu link title. - * - url: The menu link url, instance of \Drupal\Core\Url - * - localized_options: Menu link localized options. - * - is_expanded: TRUE if the link has visible children within the current - * menu tree. - * - is_collapsed: TRUE if the link has children within the current menu tree - * that are not currently visible. - * - in_active_trail: TRUE if the link is in the active trail. - */ -#} -{% import _self as menus %} - -{# - We call a macro which calls itself to render the full tree. - @see https://twig.symfony.com/doc/1.x/tags/macro.html -#} -{{ menus.menu_links(items, attributes, 0) }} - -{% macro menu_links(items, attributes, menu_level) %} - {% import _self as menus %} - - {% if items %} -
- {% if menu_level == 0 %} - - {% else %} -
    - {% endif %} - {% for item in items %} - - {% set linkClasses = ['w-full flex items-center mx-4 mt-1 -mb-px py-3 px-4 block rounded text-base text-white no-underline hover:underline focus:outline-none focus:underline md:py-1 md:px-2 md:mx-2 md:mt-0 md:mr-0'] %} - {% if item.in_active_trail %} - {% set linkClasses = linkClasses|merge(['cursor-default bg-blue-700 hover:border-blue-600 hover:no-underline md:bg-blue-700']) %} - {% endif %} - {{ link(item.title, item.url, { class: linkClasses|join(' ') }) }} - {% if item.below %} - {{ menus.menu_links(item.below, attributes, menu_level + 1) }} - {% endif %} - - {% endfor %} -
-
- {% endif %} -{% endmacro %} diff --git a/web/themes/custom/opdavies/templates/menu/menu-local-tasks.html.twig b/web/themes/custom/opdavies/templates/menu/menu-local-tasks.html.twig deleted file mode 100644 index 8b2528c..0000000 --- a/web/themes/custom/opdavies/templates/menu/menu-local-tasks.html.twig +++ /dev/null @@ -1,24 +0,0 @@ -{# -/** - * @file - * Theme override to display primary and secondary local tasks. - * - * Available variables: - * - primary: HTML list items representing primary tasks. - * - secondary: HTML list items representing primary tasks. - * - * Each item in these variables (primary and secondary) can be individually - * themed in menu-local-task.html.twig. - */ -#} -{% set listClasses = 'list-disc list-inside' %} - -{% if primary %} -

{{ 'Primary tabs'|t }}

-
    {{ primary }}
-{% endif %} - -{% if secondary %} -

{{ 'Secondary tabs'|t }}

-
    {{ secondary }}
-{% endif %} diff --git a/web/themes/custom/opdavies/templates/node/node--talk.html.twig b/web/themes/custom/opdavies/templates/node/node--talk.html.twig deleted file mode 100644 index 5f29446..0000000 --- a/web/themes/custom/opdavies/templates/node/node--talk.html.twig +++ /dev/null @@ -1,97 +0,0 @@ -{# -/** - * @file - * Theme override to display a node. - * - * Available variables: - * - node: The node entity with limited access to object properties and methods. - * Only method names starting with "get", "has", or "is" and a few common - * methods such as "id", "label", and "bundle" are available. For example: - * - node.getCreatedTime() will return the node creation timestamp. - * - node.hasField('field_example') returns TRUE if the node bundle includes - * field_example. (This does not indicate the presence of a value in this - * field.) - * - node.isPublished() will return whether the node is published or not. - * Calling other methods, such as node.delete(), will result in an exception. - * See \Drupal\node\Entity\Node for a full list of public properties and - * methods for the node object. - * - label: The title of the node. - * - content: All node items. Use {{ content }} to print them all, - * or print a subset such as {{ content.field_example }}. Use - * {{ content|without('field_example') }} to temporarily suppress the printing - * of a given child element. - * - author_picture: The node author user entity, rendered using the "compact" - * view mode. - * - metadata: Metadata for this node. - * - date: Themed creation date field. - * - author_name: Themed author name field. - * - url: Direct URL of the current node. - * - display_submitted: Whether submission information should be displayed. - * - attributes: HTML attributes for the containing element. - * The attributes.class element may contain one or more of the following - * classes: - * - node: The current template type (also known as a "theming hook"). - * - node--type-[type]: The current node type. For example, if the node is an - * "Article" it would result in "node--type-article". Note that the machine - * name will often be in a short form of the human readable label. - * - node--view-mode-[view_mode]: The View Mode of the node; for example, a - * teaser would result in: "node--view-mode-teaser", and - * full: "node--view-mode-full". - * The following are controlled through the node publishing options. - * - node--promoted: Appears on nodes promoted to the front page. - * - node--sticky: Appears on nodes ordered above other non-sticky nodes in - * teaser listings. - * - node--unpublished: Appears on unpublished nodes visible only to site - * admins. - * - title_attributes: Same as attributes, except applied to the main title - * tag that appears in the template. - * - content_attributes: Same as attributes, except applied to the main - * content tag that appears in the template. - * - author_attributes: Same as attributes, except applied to the author of - * the node tag that appears in the template. - * - title_prefix: Additional output populated by modules, intended to be - * displayed in front of the main title tag that appears in the template. - * - title_suffix: Additional output populated by modules, intended to be - * displayed after the main title tag that appears in the template. - * - view_mode: View mode; for example, "teaser" or "full". - * - teaser: Flag for the teaser state. Will be true if view_mode is 'teaser'. - * - page: Flag for the full page state. Will be true if view_mode is 'full'. - * - readmore: Flag for more state. Will be true if the teaser content of the - * node cannot hold the main body content. - * - logged_in: Flag for authenticated user status. Will be true when the - * current user is a logged-in member. - * - is_admin: Flag for admin user status. Will be true when the current user - * is an administrator. - * - * @see template_preprocess_node() - * - * @todo Remove the id attribute (or make it a class), because if that gets - * rendered twice on a page this is invalid CSS for example: two lists - * in different view modes. - */ -#} - - - {{ title_prefix }} - {% if not page %} - - {{ label }} - - {% endif %} - {{ title_suffix }} - - {% if display_submitted %} -
- {{ author_picture }} - - {% trans %}Submitted by {{ author_name }} on {{ date }}{% endtrans %} - {{ metadata }} - -
- {% endif %} - - - {{ content }} - - - diff --git a/web/themes/custom/opdavies/templates/node/node.html.twig b/web/themes/custom/opdavies/templates/node/node.html.twig deleted file mode 100644 index 1e85bac..0000000 --- a/web/themes/custom/opdavies/templates/node/node.html.twig +++ /dev/null @@ -1,97 +0,0 @@ -{# -/** - * @file - * Theme override to display a node. - * - * Available variables: - * - node: The node entity with limited access to object properties and methods. - * Only method names starting with "get", "has", or "is" and a few common - * methods such as "id", "label", and "bundle" are available. For example: - * - node.getCreatedTime() will return the node creation timestamp. - * - node.hasField('field_example') returns TRUE if the node bundle includes - * field_example. (This does not indicate the presence of a value in this - * field.) - * - node.isPublished() will return whether the node is published or not. - * Calling other methods, such as node.delete(), will result in an exception. - * See \Drupal\node\Entity\Node for a full list of public properties and - * methods for the node object. - * - label: The title of the node. - * - content: All node items. Use {{ content }} to print them all, - * or print a subset such as {{ content.field_example }}. Use - * {{ content|without('field_example') }} to temporarily suppress the printing - * of a given child element. - * - author_picture: The node author user entity, rendered using the "compact" - * view mode. - * - metadata: Metadata for this node. - * - date: Themed creation date field. - * - author_name: Themed author name field. - * - url: Direct URL of the current node. - * - display_submitted: Whether submission information should be displayed. - * - attributes: HTML attributes for the containing element. - * The attributes.class element may contain one or more of the following - * classes: - * - node: The current template type (also known as a "theming hook"). - * - node--type-[type]: The current node type. For example, if the node is an - * "Article" it would result in "node--type-article". Note that the machine - * name will often be in a short form of the human readable label. - * - node--view-mode-[view_mode]: The View Mode of the node; for example, a - * teaser would result in: "node--view-mode-teaser", and - * full: "node--view-mode-full". - * The following are controlled through the node publishing options. - * - node--promoted: Appears on nodes promoted to the front page. - * - node--sticky: Appears on nodes ordered above other non-sticky nodes in - * teaser listings. - * - node--unpublished: Appears on unpublished nodes visible only to site - * admins. - * - title_attributes: Same as attributes, except applied to the main title - * tag that appears in the template. - * - content_attributes: Same as attributes, except applied to the main - * content tag that appears in the template. - * - author_attributes: Same as attributes, except applied to the author of - * the node tag that appears in the template. - * - title_prefix: Additional output populated by modules, intended to be - * displayed in front of the main title tag that appears in the template. - * - title_suffix: Additional output populated by modules, intended to be - * displayed after the main title tag that appears in the template. - * - view_mode: View mode; for example, "teaser" or "full". - * - teaser: Flag for the teaser state. Will be true if view_mode is 'teaser'. - * - page: Flag for the full page state. Will be true if view_mode is 'full'. - * - readmore: Flag for more state. Will be true if the teaser content of the - * node cannot hold the main body content. - * - logged_in: Flag for authenticated user status. Will be true when the - * current user is a logged-in member. - * - is_admin: Flag for admin user status. Will be true when the current user - * is an administrator. - * - * @see template_preprocess_node() - * - * @todo Remove the id attribute (or make it a class), because if that gets - * rendered twice on a page this is invalid CSS for example: two lists - * in different view modes. - */ -#} - - - {{ title_prefix }} - {% if not page %} - - {{ label }} - - {% endif %} - {{ title_suffix }} - - {% if display_submitted and view_mode == 'full' %} -
- {{ author_picture }} - - {% trans %}Posted on {{ date }}{% endtrans %} - {{ metadata }} - -
- {% endif %} - - - {{ content }} - - - diff --git a/web/themes/custom/opdavies/templates/paragraph/paragraph--event.html.twig b/web/themes/custom/opdavies/templates/paragraph/paragraph--event.html.twig deleted file mode 100644 index 9f2e990..0000000 --- a/web/themes/custom/opdavies/templates/paragraph/paragraph--event.html.twig +++ /dev/null @@ -1,83 +0,0 @@ -{# -/** - * @file - * Default theme implementation to display a paragraph. - * - * Available variables: - * - paragraph: Full paragraph entity. - * Only method names starting with "get", "has", or "is" and a few common - * methods such as "id", "label", and "bundle" are available. For example: - * - paragraph.getCreatedTime() will return the paragraph creation timestamp. - * - paragraph.id(): The paragraph ID. - * - paragraph.bundle(): The type of the paragraph, for example, "image" or "text". - * - paragraph.getOwnerId(): The user ID of the paragraph author. - * See Drupal\paragraphs\Entity\Paragraph for a full list of public properties - * and methods for the paragraph object. - * - content: All paragraph items. Use {{ content }} to print them all, - * or print a subset such as {{ content.field_example }}. Use - * {{ content|without('field_example') }} to temporarily suppress the printing - * of a given child element. - * - attributes: HTML attributes for the containing element. - * The attributes.class element may contain one or more of the following - * classes: - * - paragraphs: The current template type (also known as a "theming hook"). - * - paragraphs--type-[type]: The current paragraphs type. For example, if the paragraph is an - * "Image" it would result in "paragraphs--type--image". Note that the machine - * name will often be in a short form of the human readable label. - * - paragraphs--view-mode--[view_mode]: The View Mode of the paragraph; for example, a - * preview would result in: "paragraphs--view-mode--preview", and - * default: "paragraphs--view-mode--default". - * - view_mode: View mode; for example, "preview" or "full". - * - logged_in: Flag for authenticated user status. Will be true when the - * current user is a logged-in member. - * - is_admin: Flag for admin user status. Will be true when the current user - * is an administrator. - * - * @see template_preprocess_paragraph() - * - * @ingroup themeable - */ -#} -{% - set classes = [ - 'paragraph', - 'paragraph--type--' ~ paragraph.bundle|clean_class, - view_mode ? 'paragraph--view-mode--' ~ view_mode|clean_class, - not paragraph.isPublished() ? 'paragraph--unpublished' -] -%} -{% block paragraph %} - {% set date = paragraph.field_date.0.value %} - {% set is_online = paragraph.field_is_online.0.value %} - {% set is_remote = paragraph.field_remote.0.value %} - {% set location = paragraph.field_location.0.value %} - {% set name = paragraph.field_name.0.value %} - {% set url = paragraph.field_link.0.url %} - - - {% block content %} - {% if url %} - {{ link(name, url) -}} - {% else %} - {{ name -}} - {% endif -%} - - {%- if location is not empty %} - {{ 'in'|t }} - {{ location }} - {%- endif %} - - {% if is_online %} - {{ '(Online)'|t }} - {% endif %} - - {% if is_remote %} - {{ '(Remote)'|t }} - {% endif %} - - - {{ date|date('jS F Y') }} - - {{ content.without('field_remote') }} - {% endblock %} - -{% endblock paragraph %} diff --git a/web/themes/custom/opdavies/templates/view/views-view--blog-posts.html.twig b/web/themes/custom/opdavies/templates/view/views-view--blog-posts.html.twig deleted file mode 100644 index 5232730..0000000 --- a/web/themes/custom/opdavies/templates/view/views-view--blog-posts.html.twig +++ /dev/null @@ -1,71 +0,0 @@ -{# -/** - * @file - * Theme override for main view template. - * - * Available variables: - * - attributes: Remaining HTML attributes for the element. - * - css_name: A CSS-safe version of the view name. - * - css_class: The user-specified classes names, if any. - * - header: The optional header. - * - footer: The optional footer. - * - rows: The results of the view query, if any. - * - empty: The content to display if there are no rows. - * - pager: The optional pager next/prev links to display. - * - exposed: Exposed widget form/info to display. - * - feed_icons: Optional feed icons to display. - * - more: An optional link to the next page of results. - * - title: Title of the view, only used when displaying in the admin preview. - * - title_prefix: Additional output populated by modules, intended to be - * displayed in front of the view title. - * - title_suffix: Additional output populated by modules, intended to be - * displayed after the view title. - * - attachment_before: An optional attachment view to be displayed before the - * view content. - * - attachment_after: An optional attachment view to be displayed after the - * view content. - * - dom_id: Unique id for every view being printed to give unique class for - * Javascript. - * - * @see template_preprocess_views_view() - */ -#} -{% - set classes = [ - dom_id ? 'js-view-dom-id-' ~ dom_id, - ] -%} - - {{ title_prefix }} - {{ title }} - {{ title_suffix }} - - {% if header %} -
- {{ header }} -
- {% endif %} - - {{ exposed }} - {{ attachment_before }} - -
- {% if rows -%} - {{ rows }} - {% elseif empty -%} - {{ empty }} - {% endif %} - {{ pager }} -
- - {{ attachment_after }} - {{ more }} - - {% if footer %} -
- {{ footer }} -
- {% endif %} - - {{ feed_icons }} - diff --git a/web/themes/custom/opdavies/templates/view/views-view--talks.html.twig b/web/themes/custom/opdavies/templates/view/views-view--talks.html.twig deleted file mode 100644 index f460baa..0000000 --- a/web/themes/custom/opdavies/templates/view/views-view--talks.html.twig +++ /dev/null @@ -1,71 +0,0 @@ -{# -/** - * @file - * Theme override for main view template. - * - * Available variables: - * - attributes: Remaining HTML attributes for the element. - * - css_name: A CSS-safe version of the view name. - * - css_class: The user-specified classes names, if any. - * - header: The optional header. - * - footer: The optional footer. - * - rows: The results of the view query, if any. - * - empty: The content to display if there are no rows. - * - pager: The optional pager next/prev links to display. - * - exposed: Exposed widget form/info to display. - * - feed_icons: Optional feed icons to display. - * - more: An optional link to the next page of results. - * - title: Title of the view, only used when displaying in the admin preview. - * - title_prefix: Additional output populated by modules, intended to be - * displayed in front of the view title. - * - title_suffix: Additional output populated by modules, intended to be - * displayed after the view title. - * - attachment_before: An optional attachment view to be displayed before the - * view content. - * - attachment_after: An optional attachment view to be displayed after the - * view content. - * - dom_id: Unique id for every view being printed to give unique class for - * Javascript. - * - * @see template_preprocess_views_view() - */ -#} -{% - set classes = [ - dom_id ? 'js-view-dom-id-' ~ dom_id, - ] -%} - - {{ title_prefix }} - {{ title }} - {{ title_suffix }} - - {% if header %} -
- {{ header }} -
- {% endif %} - - {{ exposed }} - {{ attachment_before }} - -
- {% if rows -%} - {{ rows }} - {% elseif empty -%} - {{ empty }} - {% endif %} - {{ pager }} -
- - {{ attachment_after }} - {{ more }} - - {% if footer %} -
- {{ footer }} -
- {% endif %} - - {{ feed_icons }} - diff --git a/web/themes/custom/opdavies/templates/view/views-view-list--blog-posts.html.twig b/web/themes/custom/opdavies/templates/view/views-view-list--blog-posts.html.twig deleted file mode 100644 index e862c4a..0000000 --- a/web/themes/custom/opdavies/templates/view/views-view-list--blog-posts.html.twig +++ /dev/null @@ -1,38 +0,0 @@ -{# -/** - * @file - * Theme override 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() - */ -#} -{% if attributes.addClass('min-w-full prose dark:prose-dark') -%} - -{% endif %} - {% if title %} -

{{ title }}

- {% endif %} - - <{{ list.type }}{{ list.attributes }}> - - {% for row in rows %} - - {{- row.content -}} - - {% endfor %} - - - -{% if attributes -%} - -{% endif %}