# elementor/4.3.2/modules/atomic-widgets/elements/atomic-image/atomic-image.html.twig

Elementor Website Builder – more than just a page builder, version 4.3.2. 20 lines.

- Page: https://pluginprobe.com/plugins/elementor/4.3.2/code/modules/atomic-widgets/elements/atomic-image/atomic-image.html.twig
- Raw: https://pluginprobe.com/plugins/elementor/4.3.2/raw/modules/atomic-widgets/elements/atomic-image/atomic-image.html.twig
- Modified: 2026-09-01T11:47:36+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/elementor/4.3.2/code/modules/atomic-widgets/elements/atomic-image/atomic-image.html.twig#L10-L20`.

```twig
{% import 'elementor/macros' as m %}
{%- set has_link = settings.link is defined and settings.link.href is defined and settings.link.href is not empty -%}
{%- set link_tag = settings.link.tag | default('a') -%}
{%- if has_link -%}
	<{{ link_tag | e('html_tag') }}
		{{- m.render_link_attributes(settings.link) }} class="{{ base_styles['link-base'] }} {{ m.default_tag_class(link_tag) }}" data-interaction-id="{{ interaction_id }}"
	>
{%- endif %}
<img class="{{ base_styles['base'] }} {{ m.default_tag_class('img') }} {{ settings.classes | join(' ') }}"
	{%- if not has_link %} data-interaction-id="{{ interaction_id }}"{% endif -%}
	{{- m.render_custom_attributes(settings) }}
	{%- for attr, value in settings.image -%}
		{%- if attr == 'src' %} src="{{ value | e('full_url') }}"
		{%- else %} {{ attr | e('html_attr') }}="{{ value }}"{% endif -%}
	{%- endfor %}
/>
{%- if has_link %}
	</{{ settings.link.tag | default('a') | e('html_tag') }}>
{%- endif %}

```
