{% extends '@NotarisFrontend/layout2017.html.twig' %}
{% block title %}
{% if notaryId is defined %}
<title>{{ info.header1 | replace({"<BR />":" "}) }} - {{ subsite.pageTitle }}</title>
{% else %}
<title>{{ newsitem.title }} | {{ 'alg_basetitle_nondash' | trans }} - {{ 'mn_nieuws' | trans }}</title>
{% endif %}
{% endblock %}
{% set canonicalLink = url_scheme ~ '://www.' ~ _context['url_' ~ locale] ~ path('notaris_frontend_news_detail', {slug: newsitem.slug}) %}
{% block extralinks %}
<link rel="canonical" href="{{ canonicalLink }}" />
{% endblock %}
{% set linked_url_nl = url_nl ~ path('notaris_frontend_news.nl') %}
{% set linked_url_fr = url_fr ~ path('notaris_frontend_news.fr') %}
{% block extrameta %}
<meta name="keywords" content="{{ subsite.meta.metaKeywords }}"/>
<meta name="description" lang="{{ locale }}" content="{{ subsite.meta.metaDescription }}"/>
<meta property="og:title" content="{{ newsitem.meta.ogTitle }}"/>
<meta property="og:type" content="article"/>
<meta property="og:url" content="{{ canonicalLink }}"/>
<meta property="og:description" content="{{ newsitem.meta.ogDescription }}"/>
{% if shareImage %}
<meta property="og:image" content="{{ shareImage }}" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
{% else %}
{{ parent() }}
{% endif %}
{% endblock %}
{% block body %}
<section class="content u-padding-top-large">
{{ include('@NotarisFrontend/module/sidenav.html.twig', {'subsite': subsite }) }}
{#{ include('@NotarisFrontend/News/_news_sidenav.html.twig', {'subsite': subsite }) }#}
<div id="content-center" class="content-center-large {{ subsite.stylesheet }}">
<div id="content-center-header">
<div class="prevnext-pages border-bottom prevnext-pages-color">
{% if subsiteslug != '' %}
<a href="{{ path('notaris_frontend_subsite_news', {'subsiteslug':subsiteslug}) }}"
title="{{ 'nw_volledigenieuwslijst' | trans }}">{{ 'nw_volledigenieuwslijst' | trans }}</a>
{% else %}
<a href="{{ path('notaris_frontend_news') }}"
title="{{ 'nw_volledigenieuwslijst' | trans }}">{{ 'nw_volledigenieuwslijst' | trans }}</a>
{% endif %}
</div>
</div>
<section id="info">
<div id="info-content" class="niveau1 u-wysiwyg">
{# <h3 class="u-h2 u-margin-bottom-tiny u-text-lineheight-normal u-margin-top-small u-wysiwyg__title"> @TODO IONEL: SEO h1
{% if newsitem.isPers %}
<div class="c-tooltip c-tooltip--top c-tooltip--5-up u-text-inline">
<span
class="{% if lastPart == subsite.slug %}u-bg-{{ subsite.stylesheet }} {% else %}u-bg-primary {% endif %}u-color-white o-tabpannel__label">{{ 'nw_pm' | trans }}</span>
<p class="c-tooltip__news">{{ 'nw_pm_meaning' | trans }}</p>
</div>
{% endif %}
{{ newsitem.title }}
</h3> #}
{% if newsitem.isPers %}
<div class="c-tooltip c-tooltip--top c-tooltip--5-up u-text-inline s-ctsm-settpm u-display--inline">
<span
class="{% if lastPart == subsite.slug %}u-bg-{{ subsite.stylesheet }} {% else %}u-bg-primary {% endif %}u-color-white o-tabpannel__label">{{ 'nw_pm' | trans }}</span>
<p class="c-tooltip__news">{{ 'nw_pm_meaning' | trans }}</p>
</div>
{% endif %}
<h1 class="u-h2 u-text-lineheight-normal u-display--inline">{{ newsitem.title }}</h1>
<p class="o-tabpannel__content__title__date u-padding-top-tiny u-margin-top-none">{{ newsitem.publicationDate | localdate }}</p>
{% if newsitem.introduction != '' %}
<p>{{ newsitem.introduction }}</p>
{% endif %}
{% if newsitem.subtitle != '' %}
<h2>{{ newsitem.subtitle }}</h2>
{% endif %}
{#1 afbeelding met tekst#}
{% if newsitem.asset is not null %}
{% if newsitem.asset.assetImages is not null %}
{% if newsitem.asset.assetImages | length == 1 and newsitem.text != '' %}
{% set image = newsitem.asset.assetImages[0] %}
{% set image_path = 'uploads/'~ image.image.locale ~ image.image.filename %}
<a href="/{{ image_path }}"
{% if image.image.caption is not null %}title="{{ image.image.caption }}"
{% endif %}rel="js-fancybox-{{ newsitem.id }}"
class="o-tabpannel__content__imagelink js-fancybox">
{{ image_path | responsive_image_source([301,238], {'filterset': 'responsive_article_image', 'sizes': '(min-width: 960px) 301px, (min-width: 768px and max-width: 960px) 238px', 'alt': image.image.alt}) }}
</a>
{% endif %}
{% endif %}
{% endif %}
{% if newsitem.firstParagraphAsset is not null %}
{% if newsitem.firstParagraphAsset.assetImages is not null %}
{% if newsitem.firstParagraphAsset.assetImages | length == 1 %}
{% set image = newsitem.firstParagraphAsset.assetImages[0] %}
{% set image_path = 'uploads/'~ image.image.locale ~ image.image.filename %}
<a href="/{{ image_path }}"
{% if image.image.caption is not null %}title="{{ image.image.caption }}"
{% endif %}rel="js-fancybox-{{ newsitem.id }}"
class="o-tabpannel__content__imagelink js-fancybox">
{{ image_path | responsive_image_source([301,238], {'filterset': 'responsive_article_image', 'sizes': '(min-width: 960px) 301px, (min-width: 768px and max-width: 960px) 238px', 'alt': image.image.alt}) }}
</a>
{% endif %}
{% endif %}
{% endif %}
{{ newsitem.text | raw }}
<div style="clear: both"></div>
{% for paragraph in newsitem.paragraphs|sort((a, b) => a.number <=> b.number) %}
{% if paragraph.subtitle != '' %}
<h2>{{ paragraph.subtitle }}</h2>
{% endif %}
{% if paragraph.asset is not null %}
{% if paragraph.asset.assetImages is not null %}
{% if paragraph.asset.assetImages | length == 1 %}
{% set image = paragraph.asset.assetImages[0] %}
{% set image_path = 'uploads/'~ image.image.locale ~ image.image.filename %}
<a href="/{{ image_path }}"
{% if image.image.caption is not null %}title="{{ image.image.caption }}"
{% endif %}rel="js-fancybox-{{ paragraph.id }}"
class="o-tabpannel__content__imagelink js-fancybox{% if paragraph.text == '' or paragraph.text == null %} img-full-width{% endif %}">
{% if paragraph.text == '' or paragraph.text == null %}
<img src="/{{ image_path }}" alt="{{ image.image.alt }}">
{% else %}
{{ image_path | responsive_image_source([301,238], {'filterset': 'responsive_article_image', 'sizes': '(min-width: 960px) 301px, (min-width: 768px and max-width: 960px) 238px', 'alt': image.image.alt}) }}
{% endif %}
</a>
{% endif %}
{% endif %}
{% endif %}
{{ paragraph.text | raw }}
<div style="clear: both"></div>
{% endfor %}
{#reeks afbeeldingen#}
{% if newsitem.asset is not null %}
{% if newsitem.asset.assetImages is not null %}
{% if not(newsitem.asset.assetImages | length == 1 and newsitem.text != '') %}
{% for image in newsitem.asset.assetImages %}
{% set image_path = 'uploads/'~ image.image.locale ~ image.image.filename %}
<a href="/{{ image_path }}"
{% if image.image.caption is not null %}title="{{ image.image.caption }}"
{% endif %}rel="js-fancybox-{{ newsitem.id }}"
class="js-fancybox u-display--inlineblock u-margin-bottom-small">
{{ image_path | responsive_image_source([710,477], {'filterset': 'responsive_article_image', 'sizes': '(min-width: 960px) 710px, (min-width: 768px and max-width: 960px) 477px', 'alt': image.image.alt}) }}
{% if image.image.caption is not null %}
<p class="u-margin-top-tiny">{{ image.image.caption }}</p>
{% endif %}
</a>
{% endfor %}
{% endif %}
{% endif %}
{% if newsitem.asset.assetVideoPaths | length > 0 %}
<div>
{% for video in newsitem.asset.assetVideoPaths %}
{% if video.videoPath.youtube is not null and video.videoPath.youtube != '' %}
<iframe
class="o-tabpannel__content__youtube js-tabpannel-youtube u-margin-bottom-small"
frameborder="0" allowfullscreen="1" title="YouTube video player" width="490"
height="280"
src="//www.youtube-nocookie.com/embed/{{ video.videoPath.youtube }}?enablejsapi=1&widgetid=1"
kwframeid="2"></iframe>
{% endif %}
{% if video.videoPath.path is not null and video.videoPath.path != '' %}
<video
class="o-tabpannel__content__video js-tabpannel-video u-margin-bottom-small"
controls>
<source src="/video/{{ locale }}/{{ video.videoPath.path }}">
</video>
{% endif %}
{% endfor %}
</div>
{% endif %}
{% endif %}
{% if newsitem.asset and (newsitem.asset.assetLinks | length > 0 or newsitem.asset.assetAttachments | length > 0) %}
<ul class="u-margin-top-small">
{% for link in newsitem.asset.assetLinks %}
<li><a href="{{ link.link.url }}" title="{{ link.link.title }}"
{% if link.link.newWindow %}target="_blank"{% endif %}>{{ link.link.title }}</a>
</li>
{% endfor %}
{% for attachment in newsitem.asset.assetAttachments %}
{% set fileType = attachment.attachment.filename | split('.') %}
{% set fileType = fileType | last | upper %}
{% set title = attachment.attachment.title %}
{% if title == '' %}
{% set title = attachment.attachment.originalFilename %}
{% endif %}
{% set foo = attachment.attachment.filename|split('/', 2) %}
{% if foo | length >= 1 %}{% set filename = foo[1] %}{% endif %}
{% if filename is defined %}
<li>
<a href="/download/{{ filename | url_encode }}"
title="{{ title }}">{{ title }}
({{ fileType }} {{ attachment.attachment.byte | bfos_format_bytes | replace({'.':','}) }}
)</a></li>
{% endif %}
{% endfor %}
</ul>
{% endif %}
{% if newsitem.tags | length > 0 %}
<div class="c-tags u-margin-bottom-small js-tags">
{% for tag in newsitem.tags %}
<a data-slug="{{ tag.slug }}"
data-tag-clicked="{{ path('notaris_frontend_tag_clicked') }}"
href="{{ path('notaris_frontend_tag', {'tagSlug': tag.slug}) }}"
title="{{ tag.name }}" class="c-tags__item"><small>{{ tag.name }}</small></a>
{% endfor %}
</div>
{% endif %}
{% if newsitem.source != '' %}
<p class="u-margin-top-tiny">{{ 'nw_bron' | trans }}: {{ newsitem.source }}</p>
{% endif %}
{% if newsitem.author != '' %}
<p class="u-margin-top-tiny">Auteur: {{ newsitem.author }}</p>
{% endif %}
<article class="socialmedia border-bottom">
<!-- linkedin -->
<a href="http://www.linkedin.com/shareArticle?url={{ app.request.uri }}&title={{ newsitem.meta.ogTitle }}&summary={{ newsitem.meta.ogDescription }}"
target="_blank" class="share-btn linkedin">
<img style="width:60px!important;height:20px;" src="/images/linkedin.png"/>
</a>
<div class="spacer"> </div>
{#<!-- facebook share -->#}
{#<a name="fb_share" type="button"></a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>#}
{#<div class="spacer"> </div>#}
{#<!-- google plus -->#}
{#<div class="g-plusone" data-size="small"></div>#}
{#<script type="text/javascript">#}
{#window.___gcfg = {lang: 'nl'};#}
{#(function() {#}
{#var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;#}
{#po.src = 'https://apis.google.com/js/platform.js';#}
{#var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);#}
{#})();#}
{#</script>#}
<div class="fb-share-button"
data-href="{{ path(app.request.attributes.get('_route'), app.request.attributes.get('_route_params')) }}"
data-layout="button"></div>
<div class="spacer"> </div>
<!-- twitter share -->
<a class="twitter-share-button" target="_blank"
href="https://twitter.com/intent/tweet?url={{ app.request.uri }}">
<div class="u-display--inlineblock">
<div class="o-media__img u-margin-right-tiny">
<img src="{{ asset('/assets/images/icons/social/x-share-button-icon-not.svg') }}" alt="X Share" title="X Share" height="25" width="64" class="c-social--color"/>
</div>
</div>
</a>
<div class="spacer"> </div>
<!-- google plus -->
<!-- Plaats deze tag waar je de +1 knop wilt weergeven. -->
<div class="g-plusone" data-annotation="inline" data-width="120"></div>
<div class="cleaner"> </div>
</article>
<article class="no-border">
<div class="prevnext-pages">
{% if subsiteslug != '' %}
<a href="{{ path('notaris_frontend_subsite_news', {'subsiteslug':subsiteslug}) }}"
title="{{ 'nw_terugnaarlijst' | trans }}">{{ 'nw_terugnaarlijst' | trans }}</a>
{% else %}
<a href="{{ path('notaris_frontend_news') }}"
title="{{ 'nw_terugnaarlijst' | trans }}">{{ 'nw_terugnaarlijst' | trans }}</a>
{% endif %}
</div>
<!--<p><img src="/imgs/ic_pm.gif" alt="officiële Persmededeling" class="ic-pm" /> = Persmededeling</p>-->
</article>
<div class="cleaner"> </div>
</div>
</section>
{# dynamische cms modules #}
{#{{ include('@NotarisFrontend/Module/mod_cms.html.twig', {'rightmodules': rightmodules }) }}#}
</div>
<!-- #### CONTENT #### -->
{#
<aside id="content-right">
{% if notaryId is defined %}
{{ include('@NotarisFrontend/Sven/_sven_address.html.twig') }}
{% else %}
{{ include('@NotarisFrontend/Module/notsearch_module.html.twig') }}
{% endif %}
<p id="persmededeling"><span class="pm-label">{{ 'nw_pm' | trans }}</span> {{ 'nw_persmed' | trans }}</p>
<div class="cleaner"> </div>
</aside>
#}
{% include '@NotarisFrontend/navigation/mobilesubnav.html.twig' with {'websiteSlug': 'slg_nieuws' | trans, 'isSven':false, 'isHome':false, 'subsite': subsite} %}
</section>
{% endblock %}
{% block extrajs %}
<script>
// $.cookie('cookie-settings-statistics') === 'true' && applyAnalyticsJs();
// $.cookie('cookie-settings-social') === 'true' && applySocialJs();
</script>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "NewsArticle",
"headline": "{{- newsitem.title -}}",
{% if newsitem.asset is not null -%}
{%- if newsitem.asset.assetImages is not null -%}
{%- if newsitem.asset.assetImages | length == 1 and newsitem.text != '' -%}
{%- set image = newsitem.asset.assetImages[0] -%}
{%- set image_path = app.request.schemeAndHttpHost ~ '/uploads/'~ image.image.locale ~ image.image.filename -%}
"image": [
"{{- image_path -}}"
],
{% endif -%}
{%- endif -%}
{%- endif -%}
"datePublished": "{{- newsitem.publicationDate | date('Y-m-d') -}}",
"dateModified": "{{ newsitem.publicationDate | date('Y-m-d') }}"
{% if newsitem.source != '' -%}
,"author": {
"@type": "Organization",
"name": "{{- newsitem.source -}}"
}
{% endif -%}
}
</script>
{% endblock %}
{% block extracss %}
<style>
.img-full-width, .img-full-width img {
width: 100%;
}
</style>
{% endblock %}