{% extends 'layout/base.html.twig' %}
{% block title %}{{ location.getCompany() }} – {{ parent() }}{% endblock %}
{% block seo_en %}{{ url('office_show', { 'location': location|lower }) }}{% endblock %}
{% block seo_hu %}{{ url('office_show', { 'location': location|lower, 'lang': 'hu'}) }}{% endblock %}
{% block seo_x %}{{ url('office_show', { 'location': location|lower }) }}{% endblock %}
{% set isBudapest = location|lower == 'budapest' %}
{% block body_classes %}locations-single {% if isBudapest %}budapest{% endif %}{% endblock %}
{% block location %}{{ location }}{% endblock %}
{% block content %}
<div class="location-details-page">
{% include 'page/office/show/components/map.html.twig' with { location: location|lower } only %}
{% if isBudapest %}
{% include 'page/office/show/components/budapest/budapest_nav.html.twig' %}
{% endif %}
{% include 'page/office/show/components/info.html.twig' with { data: location } only %}
{% if isBudapest %}
{% include 'page/office/show/components/budapest/budapest_about_us.html.twig' %}
{% include 'page/office/show/components/budapest/budapest_positions.html.twig' with { items: jobs } only %}
{% include 'page/office/show/components/budapest/budapest_application.html.twig' %}
{% endif %}
{% include 'common/components/contact_form.html.twig'
with { theme: 'light', location: location} only %}
{% include 'common/components/jobs.html.twig' with { items: jobs } only %}
</div>
{% endblock %}
{% block javascripts %}
{{ parent() }}
<script
type='text/javascript'
src='https://maps.googleapis.com/maps/api/js?key={{ google_maps_api_key }}&callback=map_init&ver=0.2.0'
id='google-maps-js'></script>
{% if isBudapest %}
<script>
const players = document.querySelectorAll('lottie-player');
for (const player of players) {
if (scrollFollowingLotties.includes(player.id)) continue;
const observer = new IntersectionObserver((entries) => {
if (entries[0].intersectionRatio > 0) {
player.play();
}
}, {
root: null,
rootMargin: '0px',
threshold: 1.0
});
observer.observe(player);
}
</script>
{% endif %}
{% endblock %}