summaryrefslogtreecommitdiff
path: root/themes/kalpesh/acadmix_subtheme/templates/image.html.twig
diff options
context:
space:
mode:
Diffstat (limited to 'themes/kalpesh/acadmix_subtheme/templates/image.html.twig')
-rwxr-xr-xthemes/kalpesh/acadmix_subtheme/templates/image.html.twig19
1 files changed, 19 insertions, 0 deletions
diff --git a/themes/kalpesh/acadmix_subtheme/templates/image.html.twig b/themes/kalpesh/acadmix_subtheme/templates/image.html.twig
new file mode 100755
index 0000000..aac916c
--- /dev/null
+++ b/themes/kalpesh/acadmix_subtheme/templates/image.html.twig
@@ -0,0 +1,19 @@
+{#
+/**
+ * @file
+ * Default theme implementation of an image.
+ *
+ * Available variables:
+ * - attributes: HTML attributes for the img tag.
+ * - style_name: (optional) The name of the image style applied.
+ *
+ * @ingroup templates
+ *
+ * @see template_preprocess_image()
+ */
+#}
+{% set classes = [
+ theme.settings.image_shape ? theme.settings.image_shape,
+ theme.settings.image_responsive ? 'img-responsive',
+] %}
+<img{{ attributes.addClass(classes) }} />