{% extends "Layout/default.html.twig" %}
{% block content %}
{{ include('Navigation/breadcrumb.html.twig') }}
{{ include('Includes/main-title-block-editable.html.twig', {
styleModifier: 'container-sm text-center'
}) }}
{{ include('Includes/areablock.html.twig') }}
<div class="container container-sm content-block">
<div class="row vertical-gutter--4 justify-content-center">
{% for webcam in webcams %}
{% if webcam.webcamType in ['Panomax', 'Panocloud', 'iFrame'] %}
{% set url = webcam.iFrameUrl %}
{% else %}
{% set url = "https://webtv.feratel.com/webtv/?design=v5" ~ ( not webcam.feratelRemovePGParam ? "&pg=63EC2CEF-349C-4921-B13D-6C0600312A71" : '') ~ "&cam=" ~ webcam.fid %}
{% endif %}
<div class="col-md-{{ webcam.webcamType in ['Panomax', 'Panocloud'] ? '12' : '6'}} vertical-gutter__item">
<section class="lightbox-teaser cursor-pointer teaser-animation js-lightbox" data-lightbox-video="false"> {#{{ isLightbox ? 'js-lightbox' : ''}}#}
{# {% if webcam.webcamType == 'Panomax' %}#}
<div class="js-lightbox__item" data-sub-html='' data-iframe="true" data-src="{{ url }}">
{% set previewImage = webcam.image_override ?: webcam.image %}
{% if webcam.webcamType in ['Panomax', 'Panocloud'] %}
{{ _self.content("15by4 embed-responsive-20by11-xs", "lightbox-teaser-lg", webcam.region.name, webcam.name, previewImage) }}
{% else %}
{{ _self.content("20by11", "lightbox-teaser", webcam.region.name, webcam.name, previewImage) }}
{% endif %}
</div>
{# {% else %}#}
{# <a href="{{ url }}" target="_blank">#}
{# {{ _self.content("20by11", "lightbox-teaser", webcam.region.name, webcam.name) }}#}
{# </a>#}
{# {% endif %}#}
</section>
{% macro content(aspectRatio, thumbnail, subtitle, title, image) %}
<div class="embed-responsive embed-responsive-{{ aspectRatio }}">
{{ image.thumbnail(thumbnail).html({
imgAttributes: {
class: 'embed-responsive-item js-lazy-img teaser-animation__img'
},
lowQualityPlaceholder: true
})|raw }}
</div>
<button type="button" class="btn btn-white icon-btn icon-btn--lg icon-btn--centered"><span class="icon icon-webcams icon-btn__icon" aria-label="open lightbox" title="open lightbox"></span></button>
<div class="lightbox-teaser__content">
{{ subtitle }}
<h3 class="mt-1 mb-0 lightbox-teaser__content__title">{{ title }}</h3>
</div>
{% endmacro %}
</div>
{% endfor %}
</div>
</div>
{{ include('Includes/areablock.html.twig', {'areaName': 'bottomContent'}) }}
{% endblock %}
{% block javascripts %}
{% if not app.request.get('onlyInlineCss') %}
{{ include('Layout/includes/encore.html.twig', {
'staticDebugMode': staticDebugMode,
'file': 'js/webcams'
}) }}
{% endif %}
{% endblock %}