{#% if app.request.get('elastic_document_indexing') or (elastic_document_indexing is defined and elastic_document_indexing) %}
	{{ block('content') }}
{% else %#}
<!DOCTYPE html>
<html lang="{{ language }}">
	<head>
		{#{ include('snippet/meta.html.twig') }#}

		{% block stylesheets %}
			{# TODO inline critical styles #}
			{#{ encore_entry_styles_inline('styles-critical') }#}
			{{ encore_entry_link_tags('styles') }}
			<noscript>
				{{ encore_entry_link_tags('styles-noscript') }}
			</noscript>

			{#{ ux_controller_link_tags() }#}
		{% endblock %}

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

		<a href="#main-content" class="skip-link" title="Přeskočit na hlavní obsah" target="_self">
			Přeskočit na hlavní obsah
		</a>

		{% include('layout/header.html.twig') %}

		{% if (breadcrumb is defined and breadcrumb) and not (hideBreadcrumb is defined and hideBreadcrumb) %}
			{% include('layout/breadcrumb.html.twig') with breadcrumb %}
		{% endif %}

		<div id="main-content">
			{{ block('content') }}
		</div>

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

		{% block javascripts %}
			{{ encore_entry_script_tags('scripts') }}
		{% endblock %}

		{% block inlinescripts %}
			{#{ pimcore_inline_script() }#}
		{% endblock %}
	</body>
</html>
{#% endif %#}