parent
111931b9b5
commit
2647b27f32
|
@ -1,28 +0,0 @@
|
||||||
<article{{ attributes.addClass('recommendation mt-12 first-of-type:mt-0') }}>
|
|
||||||
{{ title_prefix }}
|
|
||||||
<h2>{{ label }}</h2>
|
|
||||||
{{ title_suffix }}
|
|
||||||
|
|
||||||
<div
|
|
||||||
class="
|
|
||||||
mt-1 flex flex-col-reverse
|
|
||||||
sm:mt-0 sm:flex-row sm:space-y-0 sm:space-x-8
|
|
||||||
"
|
|
||||||
>
|
|
||||||
<div class="mt-4 flex-1 sm:mt-0">
|
|
||||||
<div class="text-gray-700 dark:text-gray-200">
|
|
||||||
{{ content.field_role }}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="mt-2 sm:mt-4">
|
|
||||||
{{ content|without('field_company', 'field_role', 'field_photo') }}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{% if content.field_photo %}
|
|
||||||
<div class="photo flex-shrink-0 flex justify-center">
|
|
||||||
{{ content.field_photo }}
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
</article>
|
|
|
@ -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()
|
|
||||||
*/
|
|
||||||
#}
|
|
||||||
<section{{ attributes.addClass('mt-4 max-w-none prose dark:prose-dark') }}>
|
|
||||||
{{ title_prefix }}
|
|
||||||
{% if label %}
|
|
||||||
<h2{{ title_attributes }}>{{ label }}</h2>
|
|
||||||
{% endif %}
|
|
||||||
{{ title_suffix }}
|
|
||||||
{% block content %}
|
|
||||||
{{ content }}
|
|
||||||
{% endblock %}
|
|
||||||
</section>
|
|
|
@ -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 %}
|
|
||||||
<div class="flex items-center leading-snug ">
|
|
||||||
{% if site_logo %}
|
|
||||||
<a
|
|
||||||
class="font-semibold text-xl text-white"
|
|
||||||
href="{{ path('<front>') }}"
|
|
||||||
rel="home"
|
|
||||||
title="{{ 'Home'|t }}"
|
|
||||||
>
|
|
||||||
<img src="{{ site_logo }}" alt="{{ 'Home'|t }}"/>
|
|
||||||
</a>
|
|
||||||
{% endif %}
|
|
||||||
{% if site_name %}
|
|
||||||
<div>
|
|
||||||
<a
|
|
||||||
class="text-lg text-white"
|
|
||||||
href="{{ path('<front>') }}"
|
|
||||||
rel="home"
|
|
||||||
title="{{ 'Home'|t }}"
|
|
||||||
>
|
|
||||||
{{ site_name }}
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
{% if site_slogan %}
|
|
||||||
<div class="site-slogan">{{ site_slogan }}</div>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
{% endblock %}
|
|
|
@ -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 %}
|
|
||||||
<nav
|
|
||||||
class="h-full flex items-center"
|
|
||||||
aria-labelledby="{{ heading_id }}"{{ attributes|without('role', 'aria-labelledby') }}
|
|
||||||
>
|
|
||||||
{# Label. If not displayed, we still provide it for screen readers. #}
|
|
||||||
{% if not configuration.label_display %}
|
|
||||||
{% set title_attributes = title_attributes.addClass('visually-hidden') %}
|
|
||||||
{% endif %}
|
|
||||||
{{ title_prefix }}
|
|
||||||
<h2{{ title_attributes.setAttribute('id', heading_id) }}>{{ configuration.label }}</h2>
|
|
||||||
{{ title_suffix }}
|
|
||||||
|
|
||||||
{# Menu. #}
|
|
||||||
{% block content %}
|
|
||||||
{{ content }}
|
|
||||||
{% endblock %}
|
|
||||||
</nav>
|
|
|
@ -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()
|
|
||||||
*/
|
|
||||||
#}
|
|
||||||
<div{{ attributes.addClass('block mt-6 first:mt-0') }}>
|
|
||||||
{{ title_prefix }}
|
|
||||||
{% if label %}
|
|
||||||
<h2{{ title_attributes.addClass('mb-3') }}>
|
|
||||||
{{ label }}
|
|
||||||
</h2>
|
|
||||||
{% endif %}
|
|
||||||
{{ title_suffix }}
|
|
||||||
{% block content %}
|
|
||||||
{{ content }}
|
|
||||||
{% endblock %}
|
|
||||||
</div>
|
|
|
@ -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 %}
|
|
||||||
<div{{ attributes }}>
|
|
||||||
{% for item in items %}
|
|
||||||
<div{{ item.attributes }}>{{ item.content }}</div>
|
|
||||||
{% endfor %}
|
|
||||||
</div>
|
|
||||||
{% else %}
|
|
||||||
{% for item in items %}
|
|
||||||
<div{{ attributes }}>{{ item.content }}</div>
|
|
||||||
{% endfor %}
|
|
||||||
{% endif %}
|
|
||||||
{% else %}
|
|
||||||
<div{{ attributes }}>
|
|
||||||
<div{{ title_attributes.addClass(title_classes) }}>{{ label }}</div>
|
|
||||||
{% if multiple %}
|
|
||||||
<div>
|
|
||||||
{% endif %}
|
|
||||||
{% for item in items %}
|
|
||||||
<div{{ item.attributes }}>{{ item.content }}</div>
|
|
||||||
{% endfor %}
|
|
||||||
{% if multiple %}
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
|
@ -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 %}
|
|
||||||
<div{{ attributes }}>
|
|
||||||
{% for item in items %}
|
|
||||||
<div{{ item.attributes.addClass(video_classes) }}>{{ item.content }}</div>
|
|
||||||
{% endfor %}
|
|
||||||
</div>
|
|
||||||
{% else %}
|
|
||||||
{% for item in items %}
|
|
||||||
<div{{ attributes.addClass(video_classes) }}>{{ item.content }}</div>
|
|
||||||
{% endfor %}
|
|
||||||
{% endif %}
|
|
||||||
{% else %}
|
|
||||||
<div{{ attributes }}>
|
|
||||||
<div{{ title_attributes.addClass(title_classes) }}>{{ label }}</div>
|
|
||||||
{% if multiple %}
|
|
||||||
<div>
|
|
||||||
{% endif %}
|
|
||||||
{% for item in items %}
|
|
||||||
<div{{ item.attributes.addClass(video_classes) }}>{{ item.content }}</div>
|
|
||||||
{% endfor %}
|
|
||||||
{% if multiple %}
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
|
@ -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',
|
|
||||||
]
|
|
||||||
%}
|
|
||||||
|
|
||||||
<div{{ attributes.addClass('prose dark:prose-dark max-w-none') }}>
|
|
||||||
<h2{{ title_attributes.addClass(title_classes) }}>
|
|
||||||
{{ label }}
|
|
||||||
</h2>
|
|
||||||
|
|
||||||
<ul>
|
|
||||||
{% for item in items|reverse %}
|
|
||||||
<li{{ item.attributes }}>
|
|
||||||
{{ item.content }}
|
|
||||||
</li>
|
|
||||||
{% endfor %}
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
|
@ -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 %}
|
|
||||||
<div{{ attributes }}>
|
|
||||||
{% for item in items %}
|
|
||||||
<div{{ item.attributes }}>{{ item.content }}</div>
|
|
||||||
{% endfor %}
|
|
||||||
</div>
|
|
||||||
{% else %}
|
|
||||||
{% for item in items %}
|
|
||||||
<div{{ attributes }}>{{ item.content }}</div>
|
|
||||||
{% endfor %}
|
|
||||||
{% endif %}
|
|
||||||
{% else %}
|
|
||||||
<div{{ attributes }}>
|
|
||||||
<h2{{ title_attributes.addClass(title_classes) }}>{{ label }}</h2>
|
|
||||||
{% if multiple %}
|
|
||||||
<div>
|
|
||||||
{% endif %}
|
|
||||||
{% for item in items %}
|
|
||||||
<div{{ item.attributes }}>{{ item.content }}</div>
|
|
||||||
{% endfor %}
|
|
||||||
{% if multiple %}
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
|
@ -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 %}
|
|
||||||
<div{{ attributes }}>
|
|
||||||
{% for item in items %}
|
|
||||||
<div{{ item.attributes }}>{{ item.content }}</div>
|
|
||||||
{% endfor %}
|
|
||||||
</div>
|
|
||||||
{% else %}
|
|
||||||
{% for item in items %}
|
|
||||||
<div{{ attributes }}>{{ item.content }}</div>
|
|
||||||
{% endfor %}
|
|
||||||
{% endif %}
|
|
||||||
{% else %}
|
|
||||||
<div{{ attributes }}>
|
|
||||||
<h2{{ title_attributes.addClass(title_classes) }}>{{ label }}</h2>
|
|
||||||
{% if multiple %}
|
|
||||||
<div>
|
|
||||||
{% endif %}
|
|
||||||
{% for item in items %}
|
|
||||||
<div{{ item.attributes }}>{{ item.content }}</div>
|
|
||||||
{% endfor %}
|
|
||||||
{% if multiple %}
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
|
@ -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 %}
|
|
||||||
<span{{ attributes }}>
|
|
||||||
{% for item in items %}
|
|
||||||
<span{{ item.attributes }}>{{ item.content }}</span>
|
|
||||||
{% endfor %}
|
|
||||||
</span>
|
|
||||||
{% else %}
|
|
||||||
{% for item in items %}
|
|
||||||
<span{{ attributes }}>{{ item.content }}</span>
|
|
||||||
{% endfor %}
|
|
||||||
{% endif %}
|
|
||||||
{% else %}
|
|
||||||
<span{{ attributes }}>
|
|
||||||
<span{{ title_attributes.addClass(title_classes) }}>{{ label }}</span>
|
|
||||||
{% if multiple %}
|
|
||||||
<span>
|
|
||||||
{% endif %}
|
|
||||||
{% for item in items %}
|
|
||||||
<span{{ item.attributes }}>{{ item.content }}</span>
|
|
||||||
{% endfor %}
|
|
||||||
{% if multiple %}
|
|
||||||
</span>
|
|
||||||
{% endif %}
|
|
||||||
</span>
|
|
||||||
{% endif %}
|
|
|
@ -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 %}
|
|
||||||
<span{{ attributes }}>
|
|
||||||
{% for item in items %}
|
|
||||||
<span{{ item.attributes }}>{{ item.content }}</span>
|
|
||||||
{% endfor %}
|
|
||||||
</span>
|
|
||||||
{% else %}
|
|
||||||
{% for item in items %}
|
|
||||||
<span{{ attributes }}>{{ item.content }}</span>
|
|
||||||
{% endfor %}
|
|
||||||
{% endif %}
|
|
||||||
{% else %}
|
|
||||||
<span{{ attributes }}>
|
|
||||||
<span{{ title_attributes.addClass(title_classes) }}>{{ label }}</span>
|
|
||||||
{% if multiple %}
|
|
||||||
<span>
|
|
||||||
{% endif %}
|
|
||||||
{% for item in items %}
|
|
||||||
<span{{ item.attributes }}>{{ item.content }}</span>
|
|
||||||
{% endfor %}
|
|
||||||
{% if multiple %}
|
|
||||||
</span>
|
|
||||||
{% endif %}
|
|
||||||
</span>
|
|
||||||
{% endif %}
|
|
|
@ -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 %}
|
|
||||||
<span{{ attributes }}>
|
|
||||||
{% for item in items %}
|
|
||||||
<span{{ item.attributes }}>{{ item.content }}</span>
|
|
||||||
{% endfor %}
|
|
||||||
</span>
|
|
||||||
{% else %}
|
|
||||||
{% for item in items %}
|
|
||||||
<span{{ attributes }}>{{ item.content }}</span>
|
|
||||||
{% endfor %}
|
|
||||||
{% endif %}
|
|
||||||
{% else %}
|
|
||||||
<span{{ attributes }}>
|
|
||||||
<span{{ title_attributes.addClass(title_classes) }}>{{ label }}</span>
|
|
||||||
{% if multiple %}
|
|
||||||
<span>
|
|
||||||
{% endif %}
|
|
||||||
{% for item in items %}
|
|
||||||
<span{{ item.attributes }}>{{ item.content }}</span>
|
|
||||||
{% endfor %}
|
|
||||||
{% if multiple %}
|
|
||||||
</span>
|
|
||||||
{% endif %}
|
|
||||||
</span>
|
|
||||||
{% endif %}
|
|
|
@ -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
|
|
||||||
*/
|
|
||||||
#}
|
|
||||||
<div class="antialiased font-sans leading-relaxed text-gray-800 dark:text-gray-100 dark:bg-gray-700">
|
|
||||||
<div class="min-h-screen flex flex-col">
|
|
||||||
<div id="nav" class="bg-blue-700">
|
|
||||||
<div class="container">
|
|
||||||
<div class="md:flex" x-data="{ isOpen: false }">
|
|
||||||
<div class="w-full flex items-center md:w-1/3 lg:w-1/4">
|
|
||||||
<div class="w-3/4 py-4">
|
|
||||||
<div>
|
|
||||||
{{ page.header }}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="w-1/4 text-right flex items-center justify-end md:hidden">
|
|
||||||
<button type="button" class="p-1 appearance-none text-white hover:text-gray-300 focus:outline-none border-2 border-transparent focus-visible:border-white"
|
|
||||||
aria-label="Toggle main menu" @click="isOpen = !isOpen" x-cloak>
|
|
||||||
<svg class="js-hidden fill-current text-inherit w-6 h-6" xmlns="http://www.w3.org/2000/svg"
|
|
||||||
viewBox="0 0 20 20">
|
|
||||||
<path x-show="!isOpen"
|
|
||||||
d="M16.4 9H3.6c-.552 0-.6.447-.6 1 0 .553.048 1 .6 1h12.8c.552 0 .6-.447.6-1 0-.553-.048-1-.6-1zm0 4H3.6c-.552 0-.6.447-.6 1 0 .553.048 1 .6 1h12.8c.552 0 .6-.447.6-1 0-.553-.048-1-.6-1zM3.6 7h12.8c.552 0 .6-.447.6-1 0-.553-.048-1-.6-1H3.6c-.552 0-.6.447-.6 1 0 .553.048 1 .6 1z"></path>
|
|
||||||
<path x-show="isOpen"
|
|
||||||
d="M10 8.586L2.929 1.515 1.515 2.929 8.585 10l-7.07 7.071 1.414 1.414L10 11.415l7.071 7.07 1.414-1.414L11.415 10l7.07-7.071-1.414-1.414L10 8.585z"
|
|
||||||
fill-rule="evenodd" style="display: none;"></path>
|
|
||||||
</svg>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="-mx-4 md:mt-0 md:mx-0 md:relative md:flex md:flex-wrap md:flex-1 md:justify-end">
|
|
||||||
{{ page.primary_menu }}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="w-full mx-auto p-4 space-y-8 {{ is_front ? 'max-w-5xl' : 'max-w-4xl' }}">
|
|
||||||
{{ page.secondary_menu }}
|
|
||||||
|
|
||||||
{{ page.breadcrumb }}
|
|
||||||
|
|
||||||
{{ page.highlighted }}
|
|
||||||
|
|
||||||
{{ page.help }}
|
|
||||||
|
|
||||||
<main>
|
|
||||||
<a id="main-content" tabindex="-1"></a>{# link is in html.html.twig #}
|
|
||||||
|
|
||||||
<div class="grid grid-cols-1 gap-y-8 md:grid-cols-12 md:gap-x-8">
|
|
||||||
<div class="{{ page.sidebar_second ? 'md:col-span-8' : 'md:col-span-12' }}">
|
|
||||||
<div>
|
|
||||||
{{ page.content }}
|
|
||||||
</div>
|
|
||||||
</div>{# /.layout-content #}
|
|
||||||
|
|
||||||
{% if page.sidebar_second %}
|
|
||||||
<aside class="sidebar col-span-12 md:col-span-4">
|
|
||||||
{{ page.sidebar_second }}
|
|
||||||
</aside>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
</main>
|
|
||||||
</div>{# /.layout-container #}
|
|
||||||
|
|
||||||
{% if page.footer %}
|
|
||||||
<div class="mt-auto">
|
|
||||||
<footer class="mt-10 py-8 bg-gray-700 text-center text-white">
|
|
||||||
<div class="container mx-auto-px-4">
|
|
||||||
{{ page.footer }}
|
|
||||||
</div>
|
|
||||||
</footer>
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
|
@ -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 <div>.
|
|
||||||
* - region: The name of the region variable as defined in the theme's
|
|
||||||
* .info.yml file.
|
|
||||||
*
|
|
||||||
* @see template_preprocess_region()
|
|
||||||
*/
|
|
||||||
#}
|
|
||||||
{% if content %}
|
|
||||||
<div{{ attributes }}>
|
|
||||||
{{ content }}
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
|
@ -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 %}
|
|
||||||
<div class="w-full md:block" :class="[ isOpen ? 'block' : 'hidden' ]" x-cloak>
|
|
||||||
{% if menu_level == 0 %}
|
|
||||||
<ul{{ attributes.addClass('
|
|
||||||
w-full h-full mt-2px py-4 bg-blue-700
|
|
||||||
md:mt-0 md:mx-0 md:relative md:flex md:flex-wrap md:flex-1 md:justify-end
|
|
||||||
md:bg-blue-700 md:border-b-0
|
|
||||||
') }}>
|
|
||||||
{% else %}
|
|
||||||
<ul>
|
|
||||||
{% endif %}
|
|
||||||
{% for item in items %}
|
|
||||||
<li{{ item.attributes.addClass('flex flex-1 justify-center') }}>
|
|
||||||
{% 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 %}
|
|
||||||
</li>
|
|
||||||
{% endfor %}
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
{% endmacro %}
|
|
|
@ -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 %}
|
|
||||||
<h2 class="visually-hidden">{{ 'Primary tabs'|t }}</h2>
|
|
||||||
<ul class="{{ listClasses }}">{{ primary }}</ul>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if secondary %}
|
|
||||||
<h2 class="visually-hidden">{{ 'Secondary tabs'|t }}</h2>
|
|
||||||
<ul class="{{ listClasses }}">{{ secondary }}</ul>
|
|
||||||
{% endif %}
|
|
|
@ -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.
|
|
||||||
*/
|
|
||||||
#}
|
|
||||||
<article{{ attributes.addClass('node') }}>
|
|
||||||
|
|
||||||
{{ title_prefix }}
|
|
||||||
{% if not page %}
|
|
||||||
<h2{{ title_attributes }}>
|
|
||||||
<a href="{{ url }}" rel="bookmark">{{ label }}</a>
|
|
||||||
</h2>
|
|
||||||
{% endif %}
|
|
||||||
{{ title_suffix }}
|
|
||||||
|
|
||||||
{% if display_submitted %}
|
|
||||||
<footer>
|
|
||||||
{{ author_picture }}
|
|
||||||
<div{{ author_attributes }}>
|
|
||||||
{% trans %}Submitted by {{ author_name }} on {{ date }}{% endtrans %}
|
|
||||||
{{ metadata }}
|
|
||||||
</div>
|
|
||||||
</footer>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
<div{{ content_attributes.addClass(['space-y-6', page ? 'prose dark:prose-dark max-w-none']) }}>
|
|
||||||
{{ content }}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</article>
|
|
|
@ -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.
|
|
||||||
*/
|
|
||||||
#}
|
|
||||||
<article{{ attributes.addClass('node min-w-full prose dark:prose-dark')|without('role') }}>
|
|
||||||
|
|
||||||
{{ title_prefix }}
|
|
||||||
{% if not page %}
|
|
||||||
<h2{{ title_attributes }}>
|
|
||||||
<a href="{{ url }}" rel="bookmark">{{ label }}</a>
|
|
||||||
</h2>
|
|
||||||
{% endif %}
|
|
||||||
{{ title_suffix }}
|
|
||||||
|
|
||||||
{% if display_submitted and view_mode == 'full' %}
|
|
||||||
<footer>
|
|
||||||
{{ author_picture }}
|
|
||||||
<div{{ author_attributes.addClass('mb-4') }}>
|
|
||||||
{% trans %}Posted on {{ date }}{% endtrans %}
|
|
||||||
{{ metadata }}
|
|
||||||
</div>
|
|
||||||
</footer>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
<div{{ content_attributes.addClass('node-content space-y-6') }}>
|
|
||||||
{{ content }}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</article>
|
|
|
@ -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 %}
|
|
||||||
|
|
||||||
<div{{ attributes.addClass(classes) }}>
|
|
||||||
{% 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 %}
|
|
||||||
|
|
||||||
<span>- {{ date|date('jS F Y') }}</span>
|
|
||||||
|
|
||||||
{{ content.without('field_remote') }}
|
|
||||||
{% endblock %}
|
|
||||||
</div>
|
|
||||||
{% endblock paragraph %}
|
|
|
@ -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,
|
|
||||||
]
|
|
||||||
%}
|
|
||||||
<div{{ attributes.addClass(classes) }}>
|
|
||||||
{{ title_prefix }}
|
|
||||||
{{ title }}
|
|
||||||
{{ title_suffix }}
|
|
||||||
|
|
||||||
{% if header %}
|
|
||||||
<header class="prose dark:prose-dark lg:prose-lg xl:prose-xl">
|
|
||||||
{{ header }}
|
|
||||||
</header>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{{ exposed }}
|
|
||||||
{{ attachment_before }}
|
|
||||||
|
|
||||||
<div class="mt-10 space-y-10">
|
|
||||||
{% if rows -%}
|
|
||||||
{{ rows }}
|
|
||||||
{% elseif empty -%}
|
|
||||||
{{ empty }}
|
|
||||||
{% endif %}
|
|
||||||
{{ pager }}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{{ attachment_after }}
|
|
||||||
{{ more }}
|
|
||||||
|
|
||||||
{% if footer %}
|
|
||||||
<footer>
|
|
||||||
{{ footer }}
|
|
||||||
</footer>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{{ feed_icons }}
|
|
||||||
</div>
|
|
|
@ -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,
|
|
||||||
]
|
|
||||||
%}
|
|
||||||
<div{{ attributes.addClass(classes) }}>
|
|
||||||
{{ title_prefix }}
|
|
||||||
{{ title }}
|
|
||||||
{{ title_suffix }}
|
|
||||||
|
|
||||||
{% if header %}
|
|
||||||
<header class="prose dark:prose-dark lg:prose-lg xl:prose-xl">
|
|
||||||
{{ header }}
|
|
||||||
</header>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{{ exposed }}
|
|
||||||
{{ attachment_before }}
|
|
||||||
|
|
||||||
<div class="mt-10">
|
|
||||||
{% if rows -%}
|
|
||||||
{{ rows }}
|
|
||||||
{% elseif empty -%}
|
|
||||||
{{ empty }}
|
|
||||||
{% endif %}
|
|
||||||
{{ pager }}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{{ attachment_after }}
|
|
||||||
{{ more }}
|
|
||||||
|
|
||||||
{% if footer %}
|
|
||||||
<footer>
|
|
||||||
{{ footer }}
|
|
||||||
</footer>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{{ feed_icons }}
|
|
||||||
</div>
|
|
|
@ -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') -%}
|
|
||||||
<div{{ attributes }}>
|
|
||||||
{% endif %}
|
|
||||||
{% if title %}
|
|
||||||
<h2 class="mb-4">{{ title }}</h2>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
<{{ list.type }}{{ list.attributes }}>
|
|
||||||
|
|
||||||
{% for row in rows %}
|
|
||||||
<li{{ row.attributes }}>
|
|
||||||
{{- row.content -}}
|
|
||||||
</li>
|
|
||||||
{% endfor %}
|
|
||||||
|
|
||||||
</{{ list.type }}>
|
|
||||||
|
|
||||||
{% if attributes -%}
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
Loading…
Reference in a new issue