templates/Webcam/overview.html.twig line 1

Open in your IDE?
  1. {% extends "Layout/default.html.twig" %}
  2. {% block content %}
  3.     {{ include('Navigation/breadcrumb.html.twig') }}
  4.     {{ include('Includes/main-title-block-editable.html.twig', {
  5.         styleModifier: 'container-sm text-center'
  6.     }) }}
  7.     {{ include('Includes/areablock.html.twig') }}
  8.     <div class="container container-sm content-block">
  9.         <div class="row vertical-gutter--4 justify-content-center">
  10.             {% set currRegion = 0 %}
  11.             {% for webcam in webcams %}
  12.                 {% if webcam.region.id != currRegion %}
  13.                     {% set previewImage = webcam.image_override ?: webcam.image %}
  14.                     {% if previewImage %}
  15.                         <div class="col-md-6 vertical-gutter__item">
  16.                             <section class="webcam-teaser teaser-animation">
  17.                                 <div class="embed-responsive embed-responsive-20by11">
  18.                                     {{ previewImage.thumbnail('webcam-teaser').html({
  19.                                         imgAttributes: {
  20.                                             class: 'embed-responsive-item js-lazy-img teaser-animation__img'
  21.                                         },
  22.                                         lowQualityPlaceholder: true
  23.                                     })|raw }}
  24.                                 </div>
  25.                                 <div class="webcam-teaser__content text-center d-flex flex-column justify-content-end">
  26.                                     <h3 class="h5 font-decorative text-uppercase my-auto webcam-teaser__content__title"><a href="{{ webcam.region.siteConfig.webcamOverview }}">{{ webcam.region ? webcam.region.name : '' }}</a></h3>
  27.                                     <a href="{{ webcam.region.siteConfig.webcamOverview }}" class="btn btn-block btn-outline-white stretched-link">{{ 'webcam-overview.Alle Webcams'|trans }}</a>
  28.                                 </div>
  29.                             </section>
  30.                         </div>
  31.                         {% set currRegion = webcam.region.id %}
  32.                     {% endif %}
  33.                 {% endif %}
  34.             {% endfor %}
  35.         </div>
  36.     </div>
  37.     {{ include('Includes/areablock.html.twig', {'areaName': 'bottomContent'}) }}
  38. {% endblock %}
  39. {% block javascripts %}
  40.     {% if not app.request.get('onlyInlineCss') %}
  41.     {{ include('Layout/includes/encore.html.twig', {
  42.         'staticDebugMode': staticDebugMode,
  43.         'file': 'js/webcams'
  44.     }) }}
  45.     {% endif %}
  46. {% endblock %}