templates/page/office/show/show.html.twig line 1

Open in your IDE?
  1. {% extends 'layout/base.html.twig' %}
  2. {% block title %}{{ location.getCompany() }} – {{ parent() }}{% endblock %}
  3. {% block seo_en %}{{ url('office_show', { 'location': location|lower }) }}{% endblock %}
  4. {% block seo_hu %}{{ url('office_show', { 'location': location|lower, 'lang': 'hu'}) }}{% endblock %}
  5. {% block seo_x %}{{ url('office_show', { 'location': location|lower }) }}{% endblock %}
  6. {% set isBudapest = location|lower == 'budapest' %}
  7. {% block body_classes %}locations-single {% if isBudapest %}budapest{% endif %}{% endblock %}
  8. {% block location %}{{ location }}{% endblock %}
  9. {% block content %}
  10.     <div class="location-details-page">
  11.         {% include 'page/office/show/components/map.html.twig' with { location: location|lower } only %}
  12.         {% if isBudapest %}
  13.             {% include 'page/office/show/components/budapest/budapest_nav.html.twig' %}
  14.         {% endif %}
  15.         {% include 'page/office/show/components/info.html.twig' with { data: location } only %}
  16.         {% if isBudapest %}
  17.             {% include 'page/office/show/components/budapest/budapest_about_us.html.twig' %}
  18.             {% include 'page/office/show/components/budapest/budapest_positions.html.twig' with { items: jobs } only %}
  19.             {% include 'page/office/show/components/budapest/budapest_application.html.twig' %}
  20.         {% endif %}
  21.         {% include 'common/components/contact_form.html.twig'
  22.             with { theme: 'light', location: location} only %}
  23.         {% include 'common/components/jobs.html.twig' with { items: jobs } only %}
  24.     </div>
  25. {% endblock %}
  26. {% block javascripts %}
  27.     {{ parent() }}
  28.     <script
  29.         type='text/javascript'
  30.         src='https://maps.googleapis.com/maps/api/js?key={{ google_maps_api_key }}&callback=map_init&ver=0.2.0'
  31.         id='google-maps-js'></script>
  32.     {% if isBudapest %}
  33.         <script>
  34.             const players = document.querySelectorAll('lottie-player');
  35.             for (const player of players) {
  36.                 if (scrollFollowingLotties.includes(player.id)) continue;
  37.                 const observer = new IntersectionObserver((entries) => {
  38.                     if (entries[0].intersectionRatio > 0) {
  39.                         player.play();
  40.                     }
  41.                 }, {
  42.                     root: null,
  43.                     rootMargin: '0px',
  44.                     threshold: 1.0
  45.                 });
  46.                 observer.observe(player);
  47.             }
  48.         </script>
  49.     {% endif %}
  50. {% endblock %}