{% include this.frameworkBaseDir() ~ 'includes/title_anchor.twig.html' %}

{% set Show_A = Background_Image_Attributes or Image_Link_Href %}

{% if Show_A %}
	<a
		{{Background_Image_Attributes}}
		{{Image_Link_Href}}{{Target_Blank}}
		{% if External_Url_Class %} class="{{External_Url_Class|e}}" {% endif %}
	>
{% endif %}

<div class="banner_wrap"><div class="banner_wrap_outer"><div class="banner_wrap_inner" {{Wrap}}>
	{% include this.frameworkBaseDir() ~ 'includes/privacy_warning.twig.html' %}

	{% if Background_Image_Attributes %}
		<div {{Background_Image_Attributes}}>
	{% else %}
		<div class="banner_image">
	{% endif %}
			{{Image_HTML}}

			{% if Enlarge_Image %}
				<span class="banner_image_zoom" title="{{'Enlarge this image'|trans}}">{{"Enlarge this image"|trans}}</span>
			{% endif %}

			{% if Image_Credit_1 %}
				<span class="banner_image_credit {{Image_Credit_1_CSS|e}}">{{Image_Credit_1_Text|e}}</span>
			{% endif %}

			{% if Image_Credit_2 %}
				<span class="banner_image_credit {{Image_Credit_2_CSS|e}}">{{Image_Credit_2_Text|e}}</span>
			{% endif %}
		</div>
	
	{% if (Title or Text or More_Link_Text) %}
		<div class="banner_content">
			{% if Title %}
				<div class="banner_title">
					{% if Title %}
						<{{Title_Tags}}>
							{{Title}}
						</{{Title_Tags_Close}}>
					{% endif %}
				</div>
			{% endif %}
	
			{% include this.frameworkBaseDir() ~ 'includes/banner_text.twig.html' %}

			{% if More_Link_Text %}
				<div class="banner_more">
					{{More_Link_Text}}
				</div>
			{% endif %}
		</div>
	{% endif %}
</div></div></div>

{% if Show_A %}
	</a>
{% endif %}