diff options
Diffstat (limited to 'themes/kalpesh/acadmix_subtheme/templates/responsive-image-formatter.html.twig')
-rw-r--r-- | themes/kalpesh/acadmix_subtheme/templates/responsive-image-formatter.html.twig | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/themes/kalpesh/acadmix_subtheme/templates/responsive-image-formatter.html.twig b/themes/kalpesh/acadmix_subtheme/templates/responsive-image-formatter.html.twig new file mode 100644 index 0000000..93caba8 --- /dev/null +++ b/themes/kalpesh/acadmix_subtheme/templates/responsive-image-formatter.html.twig @@ -0,0 +1,19 @@ +{# +/** + * @file + * Default theme implementation to display a formatted responsive image field. + * + * Available variables: + * - responsive_image: A collection of responsive image data. + * - url: An optional URL the image can be linked to. + * + * @see template_preprocess_responsive_image_formatter() + * + * @ingroup themeable + */ +#} +{% if url %} + <a href="{{ url }}">{{ responsive_image }}</a> +{% else %} + {{ responsive_image }} +{% endif %} |