{% if app.request.get('elastic_document_indexing') or (elastic_document_indexing is defined and elastic_document_indexing) %}
	{{ block('content') }}
{% else %}
<!DOCTYPE html>
<!--[if lt IE 8 ]><html lang="{{ language }}" class="no-js ie ie7"> <![endif]-->
<!--[if lt IE 9 ]><html lang="{{ language }}" class="no-js ie ie8"> <![endif]-->
<!--[if lt IE 10 ]><html lang="{{ language }}" class="no-js ie ie9"> <![endif]-->
<!--[if (gte IE 10)|!(IE)]><!--><html lang="{{ language }}" class="no-js"> <!--<![endif]-->
	<head>
		<!-- META -->
		{{ include('snippet/meta.html.twig') }}

		<!-- CSS -->
		{% block stylesheets %}
			{{ encore_entry_link_tags('styles') }}
		{% endblock %}

	</head>
	<body>
		<div id="flash-messages">
			{% include('snippet/flashMessages.html.twig') %}
		</div>

		<div id="wrap">
			{% include('snippet/header.html.twig') %}

			<div class="container">
				<div class="row">
					<div class="col-12 pb-5">
						{% include('snippet/breadcrumbs.html.twig') %}

						{{ block('content') }}
					</div>
				</div>
			</div>

		</div>

		{% include('snippet/footer.html.twig') %}

		<!-- JS -->
		{% block javascripts %}
			{{ encore_entry_script_tags('scripts') }}
		{% endblock %}

		{% block inlinescripts deferred %}
			{{ pimcore_inline_script() }}
		{% endblock %}

		<div class="loader-overlay"><div class="loader-box"><div class="loader"></div></div></div>
	</body>
</html>
{% endif %}