diff options
author | oskkw | 2019-07-03 17:36:49 +0530 |
---|---|---|
committer | oskkw | 2019-07-03 17:36:49 +0530 |
commit | f71a4f5fe7d1f3536e85759740d7779825f9c306 (patch) | |
tree | 1190969ee46fea123b8c9cd16b57d22cecfab5a8 /themes/kalpesh/acadmix_subtheme/templates/responsive-image-formatter.html.twig | |
parent | 973ac75b1994043360b8e62cd0c83461310ee728 (diff) | |
download | acadmix_distribution-f71a4f5fe7d1f3536e85759740d7779825f9c306.tar.gz acadmix_distribution-f71a4f5fe7d1f3536e85759740d7779825f9c306.tar.bz2 acadmix_distribution-f71a4f5fe7d1f3536e85759740d7779825f9c306.zip |
Theme is added
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 %} |