sample files from a smithsonian project

This commit is contained in:
2024-05-22 00:26:01 -04:00
commit 265541edc3
76 changed files with 2140 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
{% set attributes = attributes.setAttribute('aria-label', name) %}
{% include "@components/media/media--audio.twig" with {
audio: content.field_media_audio_file|field_value,
thumbnail: content.field_media_image|field_value,
modifier_classes: attributes.class|join(' ')|trim,
drupal_attributes: attributes|without('class'),
}%}
@@ -0,0 +1 @@
{{ content.field_media_image|field_value }}
+7
View File
@@ -0,0 +1,7 @@
{% set attributes = attributes.setAttribute('aria-label', name) %}
{% include "@components/media/media--image.twig" with {
image: content.field_media_image|field_value,
modifier_classes: attributes.class|join(' ')|trim,
drupal_attributes: attributes|without('class'),
}%}
@@ -0,0 +1,18 @@
{#
/**
* @file
* Default theme implementation of a responsive image.
*
* Available variables:
* - sources: The attributes of the <source> tags for this <picture> tag.
* - img_element: The controlling image, with the fallback image in srcset.
* - output_image_tag: Whether or not to output an <img> tag instead of a
* <picture> tag.
*
* @see template_preprocess()
* @see template_preprocess_responsive_image()
*
* @ingroup themeable
*/
#}
{% include "@elements/images/image/responsive-image.twig" %}