{% extends '@FoxHabbitBasis/Layout/layout.html.twig' %}
{% block content %}
<header
class="header-home header-box-right bg-white"
>
<div class="container-fluid">
<div class="row">
<div class="col-10 col-lg-5 offset-1 py-5 d-flex flex-column flex-nowrap justify-content-center order-1 order-lg-0">
<div class="text-uppercase mb-3">
{% for category in news.getCategories() %}
<span class="mark text-white mr-3">{{ category.getName() }}</span>
{% endfor %}
<small>
{{ news.getDate() | date(pimcore_website_config('newsDateFormat'))}}
</small>
</div>
<h1>
{{ news.getHeadline()}}
</h1>
</div>
<aside class="col-10 col-sm-9 col-md-8 col-lg-6 offset-2 offset-sm-3 offset-md-4 offset-lg-0">
<div class="parallax-box-wrapper">
<div class="parallax-box parallax-box-right">
<div class="parallax-box-background oversized-background embed-responsive embed-responsive-1by1 bg-primary text-white"></div>
<div class="parallax-box-item">
<figure class="figure w-100">
{% if news.getTeaserImage() %}
{{ news.getTeaserImage().getThumbnail('news-detail-header').getHtml({imgAttributes:{class:'img-fluid'}})|raw }}
{% endif %}
</figure>
</div>
</div>
</div>
</aside>
</div>
</div>
</header>
<div class="container-fluid section-connection">
<div class="row">
<div class="offset-9 col-1">
<div class="section-connection-right"></div>
</div>
</div>
</div>
<div class="section pb-0">
</div>
{{ pimcore_area('breadcrumb', {type:'basisbundle-breadcrumb'}) }}
<section class="section">
<div class="container-fluid">
<div class="inner-full row">
<div class="col-md-10 col-lg-8 offset-md-1">
<div class="lead">
{{ news.getIntro()|raw }}
</div>
<div>
{{ news.getContent()|raw }}
</div>
</div>
</div>
{% for content in news.getMoreContent() %}
{% include '@App/ObjectViews/include/' ~ content.getType() ~ '.html.twig' with { content: content } %}
{% endfor %}
</div>
</section>
{% set similarNews = app_news_get_siblings( news, 3, app.getUser()) %}
{% if similarNews %}
<div class="container-fluid section-connection">
<div class="row">
<div class="offset-1 col-1">
<div class="section-connection-left"></div>
</div>
</div>
</div>
<section class="section bg-gray1 bg-top-part">
<div class="container-fluid">
<div class="row">
<div class="col-md-10 col-lg-8 offset-md-1">
<h2>{{ 'news.details.other_news'|trans }}</h2>
</div>
</div>
<div class="row justify-content-center">
<div class="col-12 col-md-10">
<div class="row row-cols-1 row-cols-sm-2 row-cols-lg-3 news-list">
{% for news in similarNews %}
{% include '@App/AreaIncludes/news/teaser.html.twig' with { news: news} %}
{% endfor %}
</div>
</div>
</div>
{% if document.getProperty('newsDetailsPage') %}
<div class="row justify-content-center">
<div class="col-12 col-md-10">
<div class="linkmodul justify-content-center">
<a class="btn btn-secondary btn-swipe" href="{{ document.getProperty('newsDetailsPage').getFullPath() }}" role="button"><span>{{ 'news.details.show_all'|trans }}</span></a>
</div>
</div>
</div>
{% endif %}
</div>
</section>
{% endif %}
{% endblock %}