<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* @NotarisFrontend/news/detail.html.twig */
class __TwigTemplate_db894e808db3486bca87e19918426289 extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'extralinks' => [$this, 'block_extralinks'],
'extrameta' => [$this, 'block_extrameta'],
'body' => [$this, 'block_body'],
'extrajs' => [$this, 'block_extrajs'],
'extracss' => [$this, 'block_extracss'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "@NotarisFrontend/layout2017.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@NotarisFrontend/news/detail.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@NotarisFrontend/news/detail.html.twig"));
// line 12
$context["canonicalLink"] = ((((isset($context["url_scheme"]) || array_key_exists("url_scheme", $context) ? $context["url_scheme"] : (function () { throw new RuntimeError('Variable "url_scheme" does not exist.', 12, $this->source); })()) . "://www.") . twig_get_attribute($this->env, $this->source, $context, ("url_" . (isset($context["locale"]) || array_key_exists("locale", $context) ? $context["locale"] : (function () { throw new RuntimeError('Variable "locale" does not exist.', 12, $this->source); })())), [], "array", false, false, false, 12)) . $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("notaris_frontend_news_detail", ["slug" => twig_get_attribute($this->env, $this->source, (isset($context["newsitem"]) || array_key_exists("newsitem", $context) ? $context["newsitem"] : (function () { throw new RuntimeError('Variable "newsitem" does not exist.', 12, $this->source); })()), "slug", [], "any", false, false, false, 12)]));
// line 17
$context["linked_url_nl"] = ((isset($context["url_nl"]) || array_key_exists("url_nl", $context) ? $context["url_nl"] : (function () { throw new RuntimeError('Variable "url_nl" does not exist.', 17, $this->source); })()) . $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("notaris_frontend_news.nl"));
// line 18
$context["linked_url_fr"] = ((isset($context["url_fr"]) || array_key_exists("url_fr", $context) ? $context["url_fr"] : (function () { throw new RuntimeError('Variable "url_fr" does not exist.', 18, $this->source); })()) . $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("notaris_frontend_news.fr"));
// line 1
$this->parent = $this->loadTemplate("@NotarisFrontend/layout2017.html.twig", "@NotarisFrontend/news/detail.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 4
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
// line 5
echo " ";
if (array_key_exists("notaryId", $context)) {
// line 6
echo " <title>";
echo twig_escape_filter($this->env, twig_replace_filter(twig_get_attribute($this->env, $this->source, (isset($context["info"]) || array_key_exists("info", $context) ? $context["info"] : (function () { throw new RuntimeError('Variable "info" does not exist.', 6, $this->source); })()), "header1", [], "any", false, false, false, 6), ["<BR />" => " "]), "html", null, true);
echo " - ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["subsite"]) || array_key_exists("subsite", $context) ? $context["subsite"] : (function () { throw new RuntimeError('Variable "subsite" does not exist.', 6, $this->source); })()), "pageTitle", [], "any", false, false, false, 6), "html", null, true);
echo "</title>
";
} else {
// line 8
echo " <title>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["newsitem"]) || array_key_exists("newsitem", $context) ? $context["newsitem"] : (function () { throw new RuntimeError('Variable "newsitem" does not exist.', 8, $this->source); })()), "title", [], "any", false, false, false, 8), "html", null, true);
echo " | ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("alg_basetitle_nondash"), "html", null, true);
echo " - ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("mn_nieuws"), "html", null, true);
echo "</title>
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 13
public function block_extralinks($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "extralinks"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "extralinks"));
// line 14
echo " <link rel=\"canonical\" href=\"";
echo twig_escape_filter($this->env, (isset($context["canonicalLink"]) || array_key_exists("canonicalLink", $context) ? $context["canonicalLink"] : (function () { throw new RuntimeError('Variable "canonicalLink" does not exist.', 14, $this->source); })()), "html", null, true);
echo "\" />
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 20
public function block_extrameta($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "extrameta"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "extrameta"));
// line 21
echo " <meta name=\"keywords\" content=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["subsite"]) || array_key_exists("subsite", $context) ? $context["subsite"] : (function () { throw new RuntimeError('Variable "subsite" does not exist.', 21, $this->source); })()), "meta", [], "any", false, false, false, 21), "metaKeywords", [], "any", false, false, false, 21), "html", null, true);
echo "\"/>
<meta name=\"description\" lang=\"";
// line 22
echo twig_escape_filter($this->env, (isset($context["locale"]) || array_key_exists("locale", $context) ? $context["locale"] : (function () { throw new RuntimeError('Variable "locale" does not exist.', 22, $this->source); })()), "html", null, true);
echo "\" content=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["subsite"]) || array_key_exists("subsite", $context) ? $context["subsite"] : (function () { throw new RuntimeError('Variable "subsite" does not exist.', 22, $this->source); })()), "meta", [], "any", false, false, false, 22), "metaDescription", [], "any", false, false, false, 22), "html", null, true);
echo "\"/>
<meta property=\"og:title\" content=\"";
// line 24
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["newsitem"]) || array_key_exists("newsitem", $context) ? $context["newsitem"] : (function () { throw new RuntimeError('Variable "newsitem" does not exist.', 24, $this->source); })()), "meta", [], "any", false, false, false, 24), "ogTitle", [], "any", false, false, false, 24), "html", null, true);
echo "\"/>
<meta property=\"og:type\" content=\"article\"/>
<meta property=\"og:url\" content=\"";
// line 26
echo twig_escape_filter($this->env, (isset($context["canonicalLink"]) || array_key_exists("canonicalLink", $context) ? $context["canonicalLink"] : (function () { throw new RuntimeError('Variable "canonicalLink" does not exist.', 26, $this->source); })()), "html", null, true);
echo "\"/>
<meta property=\"og:description\" content=\"";
// line 28
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["newsitem"]) || array_key_exists("newsitem", $context) ? $context["newsitem"] : (function () { throw new RuntimeError('Variable "newsitem" does not exist.', 28, $this->source); })()), "meta", [], "any", false, false, false, 28), "ogDescription", [], "any", false, false, false, 28), "html", null, true);
echo "\"/>
";
// line 30
if ((isset($context["shareImage"]) || array_key_exists("shareImage", $context) ? $context["shareImage"] : (function () { throw new RuntimeError('Variable "shareImage" does not exist.', 30, $this->source); })())) {
// line 31
echo " <meta property=\"og:image\" content=\"";
echo twig_escape_filter($this->env, (isset($context["shareImage"]) || array_key_exists("shareImage", $context) ? $context["shareImage"] : (function () { throw new RuntimeError('Variable "shareImage" does not exist.', 31, $this->source); })()), "html", null, true);
echo "\" />
<meta property=\"og:image:width\" content=\"1200\" />
<meta property=\"og:image:height\" content=\"630\" />
";
} else {
// line 35
echo " ";
$this->displayParentBlock("extrameta", $context, $blocks);
echo "
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 39
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 40
echo "
<section class=\"content u-padding-top-large\">
";
// line 42
echo twig_include($this->env, $context, "@NotarisFrontend/module/sidenav.html.twig", ["subsite" => (isset($context["subsite"]) || array_key_exists("subsite", $context) ? $context["subsite"] : (function () { throw new RuntimeError('Variable "subsite" does not exist.', 42, $this->source); })())]);
echo "
";
// line 44
echo "
<div id=\"content-center\" class=\"content-center-large ";
// line 45
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["subsite"]) || array_key_exists("subsite", $context) ? $context["subsite"] : (function () { throw new RuntimeError('Variable "subsite" does not exist.', 45, $this->source); })()), "stylesheet", [], "any", false, false, false, 45), "html", null, true);
echo "\">
<div id=\"content-center-header\">
<div class=\"prevnext-pages border-bottom prevnext-pages-color\">
";
// line 48
if (((isset($context["subsiteslug"]) || array_key_exists("subsiteslug", $context) ? $context["subsiteslug"] : (function () { throw new RuntimeError('Variable "subsiteslug" does not exist.', 48, $this->source); })()) != "")) {
// line 49
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("notaris_frontend_subsite_news", ["subsiteslug" => (isset($context["subsiteslug"]) || array_key_exists("subsiteslug", $context) ? $context["subsiteslug"] : (function () { throw new RuntimeError('Variable "subsiteslug" does not exist.', 49, $this->source); })())]), "html", null, true);
echo "\"
title=\"";
// line 50
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("nw_volledigenieuwslijst"), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("nw_volledigenieuwslijst"), "html", null, true);
echo "</a>
";
} else {
// line 52
echo " <a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("notaris_frontend_news");
echo "\"
title=\"";
// line 53
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("nw_volledigenieuwslijst"), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("nw_volledigenieuwslijst"), "html", null, true);
echo "</a>
";
}
// line 55
echo " </div>
</div>
<section id=\"info\">
<div id=\"info-content\" class=\"niveau1 u-wysiwyg\">
";
// line 70
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["newsitem"]) || array_key_exists("newsitem", $context) ? $context["newsitem"] : (function () { throw new RuntimeError('Variable "newsitem" does not exist.', 70, $this->source); })()), "isPers", [], "any", false, false, false, 70)) {
// line 71
echo " <div class=\"c-tooltip c-tooltip--top c-tooltip--5-up u-text-inline s-ctsm-settpm u-display--inline\">
<span
class=\"";
// line 73
if (((isset($context["lastPart"]) || array_key_exists("lastPart", $context) ? $context["lastPart"] : (function () { throw new RuntimeError('Variable "lastPart" does not exist.', 73, $this->source); })()) == twig_get_attribute($this->env, $this->source, (isset($context["subsite"]) || array_key_exists("subsite", $context) ? $context["subsite"] : (function () { throw new RuntimeError('Variable "subsite" does not exist.', 73, $this->source); })()), "slug", [], "any", false, false, false, 73))) {
echo "u-bg-";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["subsite"]) || array_key_exists("subsite", $context) ? $context["subsite"] : (function () { throw new RuntimeError('Variable "subsite" does not exist.', 73, $this->source); })()), "stylesheet", [], "any", false, false, false, 73), "html", null, true);
echo " ";
} else {
echo "u-bg-primary ";
}
echo "u-color-white o-tabpannel__label\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("nw_pm"), "html", null, true);
echo "</span>
<p class=\"c-tooltip__news\">";
// line 74
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("nw_pm_meaning"), "html", null, true);
echo "</p>
</div>
";
}
// line 77
echo " <h1 class=\"u-h2 u-text-lineheight-normal u-display--inline\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["newsitem"]) || array_key_exists("newsitem", $context) ? $context["newsitem"] : (function () { throw new RuntimeError('Variable "newsitem" does not exist.', 77, $this->source); })()), "title", [], "any", false, false, false, 77), "html", null, true);
echo "</h1>
<p class=\"o-tabpannel__content__title__date u-padding-top-tiny u-margin-top-none\">";
// line 78
echo twig_escape_filter($this->env, $this->extensions['Notaris\FrontendBundle\Twig\DateExtension']->localdateFilter(twig_get_attribute($this->env, $this->source, (isset($context["newsitem"]) || array_key_exists("newsitem", $context) ? $context["newsitem"] : (function () { throw new RuntimeError('Variable "newsitem" does not exist.', 78, $this->source); })()), "publicationDate", [], "any", false, false, false, 78)), "html", null, true);
echo "</p>
";
// line 79
if ((twig_get_attribute($this->env, $this->source, (isset($context["newsitem"]) || array_key_exists("newsitem", $context) ? $context["newsitem"] : (function () { throw new RuntimeError('Variable "newsitem" does not exist.', 79, $this->source); })()), "introduction", [], "any", false, false, false, 79) != "")) {
// line 80
echo " <p>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["newsitem"]) || array_key_exists("newsitem", $context) ? $context["newsitem"] : (function () { throw new RuntimeError('Variable "newsitem" does not exist.', 80, $this->source); })()), "introduction", [], "any", false, false, false, 80), "html", null, true);
echo "</p>
";
}
// line 82
echo " ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["newsitem"]) || array_key_exists("newsitem", $context) ? $context["newsitem"] : (function () { throw new RuntimeError('Variable "newsitem" does not exist.', 82, $this->source); })()), "subtitle", [], "any", false, false, false, 82) != "")) {
// line 83
echo " <h2>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["newsitem"]) || array_key_exists("newsitem", $context) ? $context["newsitem"] : (function () { throw new RuntimeError('Variable "newsitem" does not exist.', 83, $this->source); })()), "subtitle", [], "any", false, false, false, 83), "html", null, true);
echo "</h2>
";
}
// line 85
echo "
";
// line 87
echo " ";
if ( !(null === twig_get_attribute($this->env, $this->source, (isset($context["newsitem"]) || array_key_exists("newsitem", $context) ? $context["newsitem"] : (function () { throw new RuntimeError('Variable "newsitem" does not exist.', 87, $this->source); })()), "asset", [], "any", false, false, false, 87))) {
// line 88
echo " ";
if ( !(null === twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["newsitem"]) || array_key_exists("newsitem", $context) ? $context["newsitem"] : (function () { throw new RuntimeError('Variable "newsitem" does not exist.', 88, $this->source); })()), "asset", [], "any", false, false, false, 88), "assetImages", [], "any", false, false, false, 88))) {
// line 89
echo " ";
if (((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["newsitem"]) || array_key_exists("newsitem", $context) ? $context["newsitem"] : (function () { throw new RuntimeError('Variable "newsitem" does not exist.', 89, $this->source); })()), "asset", [], "any", false, false, false, 89), "assetImages", [], "any", false, false, false, 89)) == 1) && (twig_get_attribute($this->env, $this->source, (isset($context["newsitem"]) || array_key_exists("newsitem", $context) ? $context["newsitem"] : (function () { throw new RuntimeError('Variable "newsitem" does not exist.', 89, $this->source); })()), "text", [], "any", false, false, false, 89) != ""))) {
// line 90
echo " ";
$context["image"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["newsitem"]) || array_key_exists("newsitem", $context) ? $context["newsitem"] : (function () { throw new RuntimeError('Variable "newsitem" does not exist.', 90, $this->source); })()), "asset", [], "any", false, false, false, 90), "assetImages", [], "any", false, false, false, 90), 0, [], "array", false, false, false, 90);
// line 91
echo " ";
$context["image_path"] = (("uploads/" . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 91, $this->source); })()), "image", [], "any", false, false, false, 91), "locale", [], "any", false, false, false, 91)) . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 91, $this->source); })()), "image", [], "any", false, false, false, 91), "filename", [], "any", false, false, false, 91));
// line 92
echo " <a href=\"/";
echo twig_escape_filter($this->env, (isset($context["image_path"]) || array_key_exists("image_path", $context) ? $context["image_path"] : (function () { throw new RuntimeError('Variable "image_path" does not exist.', 92, $this->source); })()), "html", null, true);
echo "\"
";
// line 93
if ( !(null === twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 93, $this->source); })()), "image", [], "any", false, false, false, 93), "caption", [], "any", false, false, false, 93))) {
echo "title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 93, $this->source); })()), "image", [], "any", false, false, false, 93), "caption", [], "any", false, false, false, 93), "html", null, true);
echo "\"
";
}
// line 94
echo "rel=\"js-fancybox-";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["newsitem"]) || array_key_exists("newsitem", $context) ? $context["newsitem"] : (function () { throw new RuntimeError('Variable "newsitem" does not exist.', 94, $this->source); })()), "id", [], "any", false, false, false, 94), "html", null, true);
echo "\"
class=\"o-tabpannel__content__imagelink js-fancybox\">
";
// line 96
echo $this->extensions['Notaris\FrontendBundle\Twig\ResponsiveImageExtension']->responsiveImageSourceFilter((isset($context["image_path"]) || array_key_exists("image_path", $context) ? $context["image_path"] : (function () { throw new RuntimeError('Variable "image_path" does not exist.', 96, $this->source); })()), [0 => 301, 1 => 238], ["filterset" => "responsive_article_image", "sizes" => "(min-width: 960px) 301px, (min-width: 768px and max-width: 960px) 238px", "alt" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 96, $this->source); })()), "image", [], "any", false, false, false, 96), "alt", [], "any", false, false, false, 96)]);
echo "
</a>
";
}
// line 99
echo " ";
}
// line 100
echo " ";
}
// line 101
echo " ";
if ( !(null === twig_get_attribute($this->env, $this->source, (isset($context["newsitem"]) || array_key_exists("newsitem", $context) ? $context["newsitem"] : (function () { throw new RuntimeError('Variable "newsitem" does not exist.', 101, $this->source); })()), "firstParagraphAsset", [], "any", false, false, false, 101))) {
// line 102
echo " ";
if ( !(null === twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["newsitem"]) || array_key_exists("newsitem", $context) ? $context["newsitem"] : (function () { throw new RuntimeError('Variable "newsitem" does not exist.', 102, $this->source); })()), "firstParagraphAsset", [], "any", false, false, false, 102), "assetImages", [], "any", false, false, false, 102))) {
// line 103
echo " ";
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["newsitem"]) || array_key_exists("newsitem", $context) ? $context["newsitem"] : (function () { throw new RuntimeError('Variable "newsitem" does not exist.', 103, $this->source); })()), "firstParagraphAsset", [], "any", false, false, false, 103), "assetImages", [], "any", false, false, false, 103)) == 1)) {
// line 104
echo " ";
$context["image"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["newsitem"]) || array_key_exists("newsitem", $context) ? $context["newsitem"] : (function () { throw new RuntimeError('Variable "newsitem" does not exist.', 104, $this->source); })()), "firstParagraphAsset", [], "any", false, false, false, 104), "assetImages", [], "any", false, false, false, 104), 0, [], "array", false, false, false, 104);
// line 105
echo " ";
$context["image_path"] = (("uploads/" . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 105, $this->source); })()), "image", [], "any", false, false, false, 105), "locale", [], "any", false, false, false, 105)) . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 105, $this->source); })()), "image", [], "any", false, false, false, 105), "filename", [], "any", false, false, false, 105));
// line 106
echo " <a href=\"/";
echo twig_escape_filter($this->env, (isset($context["image_path"]) || array_key_exists("image_path", $context) ? $context["image_path"] : (function () { throw new RuntimeError('Variable "image_path" does not exist.', 106, $this->source); })()), "html", null, true);
echo "\"
";
// line 107
if ( !(null === twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 107, $this->source); })()), "image", [], "any", false, false, false, 107), "caption", [], "any", false, false, false, 107))) {
echo "title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 107, $this->source); })()), "image", [], "any", false, false, false, 107), "caption", [], "any", false, false, false, 107), "html", null, true);
echo "\"
";
}
// line 108
echo "rel=\"js-fancybox-";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["newsitem"]) || array_key_exists("newsitem", $context) ? $context["newsitem"] : (function () { throw new RuntimeError('Variable "newsitem" does not exist.', 108, $this->source); })()), "id", [], "any", false, false, false, 108), "html", null, true);
echo "\"
class=\"o-tabpannel__content__imagelink js-fancybox\">
";
// line 110
echo $this->extensions['Notaris\FrontendBundle\Twig\ResponsiveImageExtension']->responsiveImageSourceFilter((isset($context["image_path"]) || array_key_exists("image_path", $context) ? $context["image_path"] : (function () { throw new RuntimeError('Variable "image_path" does not exist.', 110, $this->source); })()), [0 => 301, 1 => 238], ["filterset" => "responsive_article_image", "sizes" => "(min-width: 960px) 301px, (min-width: 768px and max-width: 960px) 238px", "alt" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 110, $this->source); })()), "image", [], "any", false, false, false, 110), "alt", [], "any", false, false, false, 110)]);
echo "
</a>
";
}
// line 113
echo " ";
}
// line 114
echo " ";
}
// line 115
echo "
";
// line 116
echo twig_get_attribute($this->env, $this->source, (isset($context["newsitem"]) || array_key_exists("newsitem", $context) ? $context["newsitem"] : (function () { throw new RuntimeError('Variable "newsitem" does not exist.', 116, $this->source); })()), "text", [], "any", false, false, false, 116);
echo "
<div style=\"clear: both\"></div>
";
// line 120
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_sort_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["newsitem"]) || array_key_exists("newsitem", $context) ? $context["newsitem"] : (function () { throw new RuntimeError('Variable "newsitem" does not exist.', 120, $this->source); })()), "paragraphs", [], "any", false, false, false, 120), function ($__a__, $__b__) use ($context, $macros) { $context["a"] = $__a__; $context["b"] = $__b__; return (twig_get_attribute($this->env, $this->source, (isset($context["a"]) || array_key_exists("a", $context) ? $context["a"] : (function () { throw new RuntimeError('Variable "a" does not exist.', 120, $this->source); })()), "number", [], "any", false, false, false, 120) <=> twig_get_attribute($this->env, $this->source, (isset($context["b"]) || array_key_exists("b", $context) ? $context["b"] : (function () { throw new RuntimeError('Variable "b" does not exist.', 120, $this->source); })()), "number", [], "any", false, false, false, 120)); }));
foreach ($context['_seq'] as $context["_key"] => $context["paragraph"]) {
// line 121
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["paragraph"], "subtitle", [], "any", false, false, false, 121) != "")) {
// line 122
echo " <h2>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["paragraph"], "subtitle", [], "any", false, false, false, 122), "html", null, true);
echo "</h2>
";
}
// line 124
echo " ";
if ( !(null === twig_get_attribute($this->env, $this->source, $context["paragraph"], "asset", [], "any", false, false, false, 124))) {
// line 125
echo " ";
if ( !(null === twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["paragraph"], "asset", [], "any", false, false, false, 125), "assetImages", [], "any", false, false, false, 125))) {
// line 126
echo " ";
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["paragraph"], "asset", [], "any", false, false, false, 126), "assetImages", [], "any", false, false, false, 126)) == 1)) {
// line 127
echo " ";
$context["image"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["paragraph"], "asset", [], "any", false, false, false, 127), "assetImages", [], "any", false, false, false, 127), 0, [], "array", false, false, false, 127);
// line 128
echo " ";
$context["image_path"] = (("uploads/" . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 128, $this->source); })()), "image", [], "any", false, false, false, 128), "locale", [], "any", false, false, false, 128)) . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 128, $this->source); })()), "image", [], "any", false, false, false, 128), "filename", [], "any", false, false, false, 128));
// line 129
echo " <a href=\"/";
echo twig_escape_filter($this->env, (isset($context["image_path"]) || array_key_exists("image_path", $context) ? $context["image_path"] : (function () { throw new RuntimeError('Variable "image_path" does not exist.', 129, $this->source); })()), "html", null, true);
echo "\"
";
// line 130
if ( !(null === twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 130, $this->source); })()), "image", [], "any", false, false, false, 130), "caption", [], "any", false, false, false, 130))) {
echo "title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 130, $this->source); })()), "image", [], "any", false, false, false, 130), "caption", [], "any", false, false, false, 130), "html", null, true);
echo "\"
";
}
// line 131
echo "rel=\"js-fancybox-";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["paragraph"], "id", [], "any", false, false, false, 131), "html", null, true);
echo "\"
class=\"o-tabpannel__content__imagelink js-fancybox";
// line 132
if (((twig_get_attribute($this->env, $this->source, $context["paragraph"], "text", [], "any", false, false, false, 132) == "") || (twig_get_attribute($this->env, $this->source, $context["paragraph"], "text", [], "any", false, false, false, 132) == null))) {
echo " img-full-width";
}
echo "\">
";
// line 133
if (((twig_get_attribute($this->env, $this->source, $context["paragraph"], "text", [], "any", false, false, false, 133) == "") || (twig_get_attribute($this->env, $this->source, $context["paragraph"], "text", [], "any", false, false, false, 133) == null))) {
// line 134
echo " <img src=\"/";
echo twig_escape_filter($this->env, (isset($context["image_path"]) || array_key_exists("image_path", $context) ? $context["image_path"] : (function () { throw new RuntimeError('Variable "image_path" does not exist.', 134, $this->source); })()), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 134, $this->source); })()), "image", [], "any", false, false, false, 134), "alt", [], "any", false, false, false, 134), "html", null, true);
echo "\">
";
} else {
// line 136
echo " ";
echo $this->extensions['Notaris\FrontendBundle\Twig\ResponsiveImageExtension']->responsiveImageSourceFilter((isset($context["image_path"]) || array_key_exists("image_path", $context) ? $context["image_path"] : (function () { throw new RuntimeError('Variable "image_path" does not exist.', 136, $this->source); })()), [0 => 301, 1 => 238], ["filterset" => "responsive_article_image", "sizes" => "(min-width: 960px) 301px, (min-width: 768px and max-width: 960px) 238px", "alt" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 136, $this->source); })()), "image", [], "any", false, false, false, 136), "alt", [], "any", false, false, false, 136)]);
echo "
";
}
// line 138
echo " </a>
";
}
// line 140
echo " ";
}
// line 141
echo " ";
}
// line 142
echo " ";
echo twig_get_attribute($this->env, $this->source, $context["paragraph"], "text", [], "any", false, false, false, 142);
echo "
<div style=\"clear: both\"></div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['paragraph'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 145
echo "
";
// line 147
echo " ";
if ( !(null === twig_get_attribute($this->env, $this->source, (isset($context["newsitem"]) || array_key_exists("newsitem", $context) ? $context["newsitem"] : (function () { throw new RuntimeError('Variable "newsitem" does not exist.', 147, $this->source); })()), "asset", [], "any", false, false, false, 147))) {
// line 148
echo " ";
if ( !(null === twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["newsitem"]) || array_key_exists("newsitem", $context) ? $context["newsitem"] : (function () { throw new RuntimeError('Variable "newsitem" does not exist.', 148, $this->source); })()), "asset", [], "any", false, false, false, 148), "assetImages", [], "any", false, false, false, 148))) {
// line 149
echo " ";
if ( !((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["newsitem"]) || array_key_exists("newsitem", $context) ? $context["newsitem"] : (function () { throw new RuntimeError('Variable "newsitem" does not exist.', 149, $this->source); })()), "asset", [], "any", false, false, false, 149), "assetImages", [], "any", false, false, false, 149)) == 1) && (twig_get_attribute($this->env, $this->source, (isset($context["newsitem"]) || array_key_exists("newsitem", $context) ? $context["newsitem"] : (function () { throw new RuntimeError('Variable "newsitem" does not exist.', 149, $this->source); })()), "text", [], "any", false, false, false, 149) != ""))) {
// line 150
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["newsitem"]) || array_key_exists("newsitem", $context) ? $context["newsitem"] : (function () { throw new RuntimeError('Variable "newsitem" does not exist.', 150, $this->source); })()), "asset", [], "any", false, false, false, 150), "assetImages", [], "any", false, false, false, 150));
foreach ($context['_seq'] as $context["_key"] => $context["image"]) {
// line 151
echo " ";
$context["image_path"] = (("uploads/" . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["image"], "image", [], "any", false, false, false, 151), "locale", [], "any", false, false, false, 151)) . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["image"], "image", [], "any", false, false, false, 151), "filename", [], "any", false, false, false, 151));
// line 152
echo " <a href=\"/";
echo twig_escape_filter($this->env, (isset($context["image_path"]) || array_key_exists("image_path", $context) ? $context["image_path"] : (function () { throw new RuntimeError('Variable "image_path" does not exist.', 152, $this->source); })()), "html", null, true);
echo "\"
";
// line 153
if ( !(null === twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["image"], "image", [], "any", false, false, false, 153), "caption", [], "any", false, false, false, 153))) {
echo "title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["image"], "image", [], "any", false, false, false, 153), "caption", [], "any", false, false, false, 153), "html", null, true);
echo "\"
";
}
// line 154
echo "rel=\"js-fancybox-";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["newsitem"]) || array_key_exists("newsitem", $context) ? $context["newsitem"] : (function () { throw new RuntimeError('Variable "newsitem" does not exist.', 154, $this->source); })()), "id", [], "any", false, false, false, 154), "html", null, true);
echo "\"
class=\"js-fancybox u-display--inlineblock u-margin-bottom-small\">
";
// line 156
echo $this->extensions['Notaris\FrontendBundle\Twig\ResponsiveImageExtension']->responsiveImageSourceFilter((isset($context["image_path"]) || array_key_exists("image_path", $context) ? $context["image_path"] : (function () { throw new RuntimeError('Variable "image_path" does not exist.', 156, $this->source); })()), [0 => 710, 1 => 477], ["filterset" => "responsive_article_image", "sizes" => "(min-width: 960px) 710px, (min-width: 768px and max-width: 960px) 477px", "alt" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["image"], "image", [], "any", false, false, false, 156), "alt", [], "any", false, false, false, 156)]);
echo "
";
// line 157
if ( !(null === twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["image"], "image", [], "any", false, false, false, 157), "caption", [], "any", false, false, false, 157))) {
// line 158
echo " <p class=\"u-margin-top-tiny\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["image"], "image", [], "any", false, false, false, 158), "caption", [], "any", false, false, false, 158), "html", null, true);
echo "</p>
";
}
// line 160
echo " </a>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['image'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 162
echo " ";
}
// line 163
echo " ";
}
// line 164
echo "
";
// line 165
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["newsitem"]) || array_key_exists("newsitem", $context) ? $context["newsitem"] : (function () { throw new RuntimeError('Variable "newsitem" does not exist.', 165, $this->source); })()), "asset", [], "any", false, false, false, 165), "assetVideoPaths", [], "any", false, false, false, 165)) > 0)) {
// line 166
echo " <div>
";
// line 167
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["newsitem"]) || array_key_exists("newsitem", $context) ? $context["newsitem"] : (function () { throw new RuntimeError('Variable "newsitem" does not exist.', 167, $this->source); })()), "asset", [], "any", false, false, false, 167), "assetVideoPaths", [], "any", false, false, false, 167));
foreach ($context['_seq'] as $context["_key"] => $context["video"]) {
// line 168
echo " ";
if (( !(null === twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["video"], "videoPath", [], "any", false, false, false, 168), "youtube", [], "any", false, false, false, 168)) && (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["video"], "videoPath", [], "any", false, false, false, 168), "youtube", [], "any", false, false, false, 168) != ""))) {
// line 169
echo " <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/";
// line 173
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["video"], "videoPath", [], "any", false, false, false, 173), "youtube", [], "any", false, false, false, 173), "html", null, true);
echo "?enablejsapi=1&widgetid=1\"
kwframeid=\"2\"></iframe>
";
}
// line 176
echo " ";
if (( !(null === twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["video"], "videoPath", [], "any", false, false, false, 176), "path", [], "any", false, false, false, 176)) && (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["video"], "videoPath", [], "any", false, false, false, 176), "path", [], "any", false, false, false, 176) != ""))) {
// line 177
echo " <video
class=\"o-tabpannel__content__video js-tabpannel-video u-margin-bottom-small\"
controls>
<source src=\"/video/";
// line 180
echo twig_escape_filter($this->env, (isset($context["locale"]) || array_key_exists("locale", $context) ? $context["locale"] : (function () { throw new RuntimeError('Variable "locale" does not exist.', 180, $this->source); })()), "html", null, true);
echo "/";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["video"], "videoPath", [], "any", false, false, false, 180), "path", [], "any", false, false, false, 180), "html", null, true);
echo "\">
</video>
";
}
// line 183
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['video'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 184
echo " </div>
";
}
// line 186
echo " ";
}
// line 187
echo "
";
// line 188
if ((twig_get_attribute($this->env, $this->source, (isset($context["newsitem"]) || array_key_exists("newsitem", $context) ? $context["newsitem"] : (function () { throw new RuntimeError('Variable "newsitem" does not exist.', 188, $this->source); })()), "asset", [], "any", false, false, false, 188) && ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["newsitem"]) || array_key_exists("newsitem", $context) ? $context["newsitem"] : (function () { throw new RuntimeError('Variable "newsitem" does not exist.', 188, $this->source); })()), "asset", [], "any", false, false, false, 188), "assetLinks", [], "any", false, false, false, 188)) > 0) || (twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["newsitem"]) || array_key_exists("newsitem", $context) ? $context["newsitem"] : (function () { throw new RuntimeError('Variable "newsitem" does not exist.', 188, $this->source); })()), "asset", [], "any", false, false, false, 188), "assetAttachments", [], "any", false, false, false, 188)) > 0)))) {
// line 189
echo " <ul class=\"u-margin-top-small\">
";
// line 190
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["newsitem"]) || array_key_exists("newsitem", $context) ? $context["newsitem"] : (function () { throw new RuntimeError('Variable "newsitem" does not exist.', 190, $this->source); })()), "asset", [], "any", false, false, false, 190), "assetLinks", [], "any", false, false, false, 190));
foreach ($context['_seq'] as $context["_key"] => $context["link"]) {
// line 191
echo " <li><a href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["link"], "link", [], "any", false, false, false, 191), "url", [], "any", false, false, false, 191), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["link"], "link", [], "any", false, false, false, 191), "title", [], "any", false, false, false, 191), "html", null, true);
echo "\"
";
// line 192
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["link"], "link", [], "any", false, false, false, 192), "newWindow", [], "any", false, false, false, 192)) {
echo "target=\"_blank\"";
}
echo ">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["link"], "link", [], "any", false, false, false, 192), "title", [], "any", false, false, false, 192), "html", null, true);
echo "</a>
</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['link'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 195
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["newsitem"]) || array_key_exists("newsitem", $context) ? $context["newsitem"] : (function () { throw new RuntimeError('Variable "newsitem" does not exist.', 195, $this->source); })()), "asset", [], "any", false, false, false, 195), "assetAttachments", [], "any", false, false, false, 195));
foreach ($context['_seq'] as $context["_key"] => $context["attachment"]) {
// line 196
echo " ";
$context["fileType"] = twig_split_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["attachment"], "attachment", [], "any", false, false, false, 196), "filename", [], "any", false, false, false, 196), ".");
// line 197
echo " ";
$context["fileType"] = twig_upper_filter($this->env, twig_last($this->env, (isset($context["fileType"]) || array_key_exists("fileType", $context) ? $context["fileType"] : (function () { throw new RuntimeError('Variable "fileType" does not exist.', 197, $this->source); })())));
// line 198
echo " ";
$context["title"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["attachment"], "attachment", [], "any", false, false, false, 198), "title", [], "any", false, false, false, 198);
// line 199
echo " ";
if (((isset($context["title"]) || array_key_exists("title", $context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.', 199, $this->source); })()) == "")) {
// line 200
echo " ";
$context["title"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["attachment"], "attachment", [], "any", false, false, false, 200), "originalFilename", [], "any", false, false, false, 200);
// line 201
echo " ";
}
// line 202
echo " ";
$context["foo"] = twig_split_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["attachment"], "attachment", [], "any", false, false, false, 202), "filename", [], "any", false, false, false, 202), "/", 2);
// line 203
echo " ";
if ((twig_length_filter($this->env, (isset($context["foo"]) || array_key_exists("foo", $context) ? $context["foo"] : (function () { throw new RuntimeError('Variable "foo" does not exist.', 203, $this->source); })())) >= 1)) {
$context["filename"] = twig_get_attribute($this->env, $this->source, (isset($context["foo"]) || array_key_exists("foo", $context) ? $context["foo"] : (function () { throw new RuntimeError('Variable "foo" does not exist.', 203, $this->source); })()), 1, [], "array", false, false, false, 203);
}
// line 204
echo " ";
if (array_key_exists("filename", $context)) {
// line 205
echo " <li>
<a href=\"/download/";
// line 206
echo twig_escape_filter($this->env, twig_urlencode_filter((isset($context["filename"]) || array_key_exists("filename", $context) ? $context["filename"] : (function () { throw new RuntimeError('Variable "filename" does not exist.', 206, $this->source); })())), "html", null, true);
echo "\"
title=\"";
// line 207
echo twig_escape_filter($this->env, (isset($context["title"]) || array_key_exists("title", $context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.', 207, $this->source); })()), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, (isset($context["title"]) || array_key_exists("title", $context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.', 207, $this->source); })()), "html", null, true);
echo "
(";
// line 208
echo twig_escape_filter($this->env, (isset($context["fileType"]) || array_key_exists("fileType", $context) ? $context["fileType"] : (function () { throw new RuntimeError('Variable "fileType" does not exist.', 208, $this->source); })()), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_replace_filter($this->extensions['Notaris\FrontendBundle\Twig\FormatBytesExtension']->format_bytes(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["attachment"], "attachment", [], "any", false, false, false, 208), "byte", [], "any", false, false, false, 208)), ["." => ","]), "html", null, true);
echo "
)</a></li>
";
}
// line 211
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['attachment'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 212
echo " </ul>
";
}
// line 214
echo "
";
// line 215
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["newsitem"]) || array_key_exists("newsitem", $context) ? $context["newsitem"] : (function () { throw new RuntimeError('Variable "newsitem" does not exist.', 215, $this->source); })()), "tags", [], "any", false, false, false, 215)) > 0)) {
// line 216
echo " <div class=\"c-tags u-margin-bottom-small js-tags\">
";
// line 217
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["newsitem"]) || array_key_exists("newsitem", $context) ? $context["newsitem"] : (function () { throw new RuntimeError('Variable "newsitem" does not exist.', 217, $this->source); })()), "tags", [], "any", false, false, false, 217));
foreach ($context['_seq'] as $context["_key"] => $context["tag"]) {
// line 218
echo " <a data-slug=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["tag"], "slug", [], "any", false, false, false, 218), "html", null, true);
echo "\"
data-tag-clicked=\"";
// line 219
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("notaris_frontend_tag_clicked");
echo "\"
href=\"";
// line 220
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("notaris_frontend_tag", ["tagSlug" => twig_get_attribute($this->env, $this->source, $context["tag"], "slug", [], "any", false, false, false, 220)]), "html", null, true);
echo "\"
title=\"";
// line 221
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["tag"], "name", [], "any", false, false, false, 221), "html", null, true);
echo "\" class=\"c-tags__item\"><small>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["tag"], "name", [], "any", false, false, false, 221), "html", null, true);
echo "</small></a>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['tag'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 223
echo " </div>
";
}
// line 225
echo "
";
// line 226
if ((twig_get_attribute($this->env, $this->source, (isset($context["newsitem"]) || array_key_exists("newsitem", $context) ? $context["newsitem"] : (function () { throw new RuntimeError('Variable "newsitem" does not exist.', 226, $this->source); })()), "source", [], "any", false, false, false, 226) != "")) {
// line 227
echo " <p class=\"u-margin-top-tiny\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("nw_bron"), "html", null, true);
echo ": ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["newsitem"]) || array_key_exists("newsitem", $context) ? $context["newsitem"] : (function () { throw new RuntimeError('Variable "newsitem" does not exist.', 227, $this->source); })()), "source", [], "any", false, false, false, 227), "html", null, true);
echo "</p>
";
}
// line 229
echo " ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["newsitem"]) || array_key_exists("newsitem", $context) ? $context["newsitem"] : (function () { throw new RuntimeError('Variable "newsitem" does not exist.', 229, $this->source); })()), "author", [], "any", false, false, false, 229) != "")) {
// line 230
echo " <p class=\"u-margin-top-tiny\">Auteur: ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["newsitem"]) || array_key_exists("newsitem", $context) ? $context["newsitem"] : (function () { throw new RuntimeError('Variable "newsitem" does not exist.', 230, $this->source); })()), "author", [], "any", false, false, false, 230), "html", null, true);
echo "</p>
";
}
// line 232
echo "
<article class=\"socialmedia border-bottom\">
<!-- linkedin -->
<a href=\"http://www.linkedin.com/shareArticle?url=";
// line 236
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 236, $this->source); })()), "request", [], "any", false, false, false, 236), "uri", [], "any", false, false, false, 236), "html", null, true);
echo "&title=";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["newsitem"]) || array_key_exists("newsitem", $context) ? $context["newsitem"] : (function () { throw new RuntimeError('Variable "newsitem" does not exist.', 236, $this->source); })()), "meta", [], "any", false, false, false, 236), "ogTitle", [], "any", false, false, false, 236), "html", null, true);
echo "&summary=";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["newsitem"]) || array_key_exists("newsitem", $context) ? $context["newsitem"] : (function () { throw new RuntimeError('Variable "newsitem" does not exist.', 236, $this->source); })()), "meta", [], "any", false, false, false, 236), "ogDescription", [], "any", false, false, false, 236), "html", null, true);
echo "\"
target=\"_blank\" class=\"share-btn linkedin\">
<img style=\"width:60px!important;height:20px;\" src=\"/images/linkedin.png\"/>
</a>
<div class=\"spacer\"> </div>
";
// line 244
echo " ";
// line 245
echo "
";
// line 247
echo "
";
// line 249
echo " ";
// line 250
echo " ";
// line 251
echo " ";
// line 252
echo "
";
// line 254
echo " ";
// line 255
echo " ";
// line 256
echo " ";
// line 257
echo " ";
// line 258
echo " ";
// line 259
echo "
<div class=\"fb-share-button\"
data-href=\"";
// line 261
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 261, $this->source); })()), "request", [], "any", false, false, false, 261), "attributes", [], "any", false, false, false, 261), "get", [0 => "_route"], "method", false, false, false, 261), twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 261, $this->source); })()), "request", [], "any", false, false, false, 261), "attributes", [], "any", false, false, false, 261), "get", [0 => "_route_params"], "method", false, false, false, 261)), "html", null, true);
echo "\"
data-layout=\"button\"></div>
<div class=\"spacer\"> </div>
<!-- twitter share -->
<a class=\"twitter-share-button\" target=\"_blank\"
href=\"https://twitter.com/intent/tweet?url=";
// line 269
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 269, $this->source); })()), "request", [], "any", false, false, false, 269), "uri", [], "any", false, false, false, 269), "html", null, true);
echo "\">
<div class=\"u-display--inlineblock\">
<div class=\"o-media__img u-margin-right-tiny\">
<img src=\"";
// line 272
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/assets/images/icons/social/x-share-button-icon-not.svg"), "html", null, true);
echo "\" 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\">
";
// line 292
if (((isset($context["subsiteslug"]) || array_key_exists("subsiteslug", $context) ? $context["subsiteslug"] : (function () { throw new RuntimeError('Variable "subsiteslug" does not exist.', 292, $this->source); })()) != "")) {
// line 293
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("notaris_frontend_subsite_news", ["subsiteslug" => (isset($context["subsiteslug"]) || array_key_exists("subsiteslug", $context) ? $context["subsiteslug"] : (function () { throw new RuntimeError('Variable "subsiteslug" does not exist.', 293, $this->source); })())]), "html", null, true);
echo "\"
title=\"";
// line 294
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("nw_terugnaarlijst"), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("nw_terugnaarlijst"), "html", null, true);
echo "</a>
";
} else {
// line 296
echo " <a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("notaris_frontend_news");
echo "\"
title=\"";
// line 297
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("nw_terugnaarlijst"), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("nw_terugnaarlijst"), "html", null, true);
echo "</a>
";
}
// line 299
echo " </div>
<!--<p><img src=\"/imgs/ic_pm.gif\" alt=\"officiële Persmededeling\" class=\"ic-pm\" /> = Persmededeling</p>-->
</article>
<div class=\"cleaner\"> </div>
</div>
</section>
";
// line 310
echo " ";
// line 311
echo "
</div>
<!-- #### CONTENT #### -->
";
// line 330
echo " ";
$this->loadTemplate("@NotarisFrontend/navigation/mobilesubnav.html.twig", "@NotarisFrontend/news/detail.html.twig", 330)->display(twig_array_merge($context, ["websiteSlug" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("slg_nieuws"), "isSven" => false, "isHome" => false, "subsite" => (isset($context["subsite"]) || array_key_exists("subsite", $context) ? $context["subsite"] : (function () { throw new RuntimeError('Variable "subsite" does not exist.', 330, $this->source); })())]));
// line 331
echo "
</section>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 338
public function block_extrajs($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "extrajs"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "extrajs"));
// line 339
echo " <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\": \"";
// line 347
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["newsitem"]) || array_key_exists("newsitem", $context) ? $context["newsitem"] : (function () { throw new RuntimeError('Variable "newsitem" does not exist.', 347, $this->source); })()), "title", [], "any", false, false, false, 347), "html", null, true);
echo "\",
";
// line 348
if ( !(null === twig_get_attribute($this->env, $this->source, (isset($context["newsitem"]) || array_key_exists("newsitem", $context) ? $context["newsitem"] : (function () { throw new RuntimeError('Variable "newsitem" does not exist.', 348, $this->source); })()), "asset", [], "any", false, false, false, 348))) {
// line 349
if ( !(null === twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["newsitem"]) || array_key_exists("newsitem", $context) ? $context["newsitem"] : (function () { throw new RuntimeError('Variable "newsitem" does not exist.', 349, $this->source); })()), "asset", [], "any", false, false, false, 349), "assetImages", [], "any", false, false, false, 349))) {
// line 350
if (((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["newsitem"]) || array_key_exists("newsitem", $context) ? $context["newsitem"] : (function () { throw new RuntimeError('Variable "newsitem" does not exist.', 350, $this->source); })()), "asset", [], "any", false, false, false, 350), "assetImages", [], "any", false, false, false, 350)) == 1) && (twig_get_attribute($this->env, $this->source, (isset($context["newsitem"]) || array_key_exists("newsitem", $context) ? $context["newsitem"] : (function () { throw new RuntimeError('Variable "newsitem" does not exist.', 350, $this->source); })()), "text", [], "any", false, false, false, 350) != ""))) {
// line 351
$context["image"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["newsitem"]) || array_key_exists("newsitem", $context) ? $context["newsitem"] : (function () { throw new RuntimeError('Variable "newsitem" does not exist.', 351, $this->source); })()), "asset", [], "any", false, false, false, 351), "assetImages", [], "any", false, false, false, 351), 0, [], "array", false, false, false, 351);
// line 352
$context["image_path"] = (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 352, $this->source); })()), "request", [], "any", false, false, false, 352), "schemeAndHttpHost", [], "any", false, false, false, 352) . "/uploads/") . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 352, $this->source); })()), "image", [], "any", false, false, false, 352), "locale", [], "any", false, false, false, 352)) . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 352, $this->source); })()), "image", [], "any", false, false, false, 352), "filename", [], "any", false, false, false, 352));
// line 353
echo "\"image\": [
\"";
// line 354
echo twig_escape_filter($this->env, (isset($context["image_path"]) || array_key_exists("image_path", $context) ? $context["image_path"] : (function () { throw new RuntimeError('Variable "image_path" does not exist.', 354, $this->source); })()), "html", null, true);
echo "\"
],
";
}
}
}
// line 359
echo "\"datePublished\": \"";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["newsitem"]) || array_key_exists("newsitem", $context) ? $context["newsitem"] : (function () { throw new RuntimeError('Variable "newsitem" does not exist.', 359, $this->source); })()), "publicationDate", [], "any", false, false, false, 359), "Y-m-d"), "html", null, true);
echo "\",
\"dateModified\": \"";
// line 360
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["newsitem"]) || array_key_exists("newsitem", $context) ? $context["newsitem"] : (function () { throw new RuntimeError('Variable "newsitem" does not exist.', 360, $this->source); })()), "publicationDate", [], "any", false, false, false, 360), "Y-m-d"), "html", null, true);
echo "\"
";
// line 361
if ((twig_get_attribute($this->env, $this->source, (isset($context["newsitem"]) || array_key_exists("newsitem", $context) ? $context["newsitem"] : (function () { throw new RuntimeError('Variable "newsitem" does not exist.', 361, $this->source); })()), "source", [], "any", false, false, false, 361) != "")) {
// line 362
echo ",\"author\": {
\"@type\": \"Organization\",
\"name\": \"";
// line 364
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["newsitem"]) || array_key_exists("newsitem", $context) ? $context["newsitem"] : (function () { throw new RuntimeError('Variable "newsitem" does not exist.', 364, $this->source); })()), "source", [], "any", false, false, false, 364), "html", null, true);
echo "\"
}
";
}
// line 367
echo "}
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 371
public function block_extracss($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "extracss"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "extracss"));
// line 372
echo " <style>
.img-full-width, .img-full-width img {
width: 100%;
}
</style>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@NotarisFrontend/news/detail.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 1013 => 372, 1003 => 371, 991 => 367, 985 => 364, 981 => 362, 979 => 361, 975 => 360, 970 => 359, 962 => 354, 959 => 353, 957 => 352, 955 => 351, 953 => 350, 951 => 349, 949 => 348, 945 => 347, 935 => 339, 925 => 338, 910 => 331, 907 => 330, 902 => 311, 900 => 310, 888 => 299, 881 => 297, 876 => 296, 869 => 294, 864 => 293, 862 => 292, 839 => 272, 833 => 269, 822 => 261, 818 => 259, 816 => 258, 814 => 257, 812 => 256, 810 => 255, 808 => 254, 805 => 252, 803 => 251, 801 => 250, 799 => 249, 796 => 247, 793 => 245, 791 => 244, 777 => 236, 771 => 232, 765 => 230, 762 => 229, 754 => 227, 752 => 226, 749 => 225, 745 => 223, 735 => 221, 731 => 220, 727 => 219, 722 => 218, 718 => 217, 715 => 216, 713 => 215, 710 => 214, 706 => 212, 700 => 211, 692 => 208, 686 => 207, 682 => 206, 679 => 205, 676 => 204, 671 => 203, 668 => 202, 665 => 201, 662 => 200, 659 => 199, 656 => 198, 653 => 197, 650 => 196, 645 => 195, 632 => 192, 625 => 191, 621 => 190, 618 => 189, 616 => 188, 613 => 187, 610 => 186, 606 => 184, 600 => 183, 592 => 180, 587 => 177, 584 => 176, 578 => 173, 572 => 169, 569 => 168, 565 => 167, 562 => 166, 560 => 165, 557 => 164, 554 => 163, 551 => 162, 544 => 160, 538 => 158, 536 => 157, 532 => 156, 526 => 154, 519 => 153, 514 => 152, 511 => 151, 506 => 150, 503 => 149, 500 => 148, 497 => 147, 494 => 145, 484 => 142, 481 => 141, 478 => 140, 474 => 138, 468 => 136, 460 => 134, 458 => 133, 452 => 132, 447 => 131, 440 => 130, 435 => 129, 432 => 128, 429 => 127, 426 => 126, 423 => 125, 420 => 124, 414 => 122, 411 => 121, 407 => 120, 400 => 116, 397 => 115, 394 => 114, 391 => 113, 385 => 110, 379 => 108, 372 => 107, 367 => 106, 364 => 105, 361 => 104, 358 => 103, 355 => 102, 352 => 101, 349 => 100, 346 => 99, 340 => 96, 334 => 94, 327 => 93, 322 => 92, 319 => 91, 316 => 90, 313 => 89, 310 => 88, 307 => 87, 304 => 85, 298 => 83, 295 => 82, 289 => 80, 287 => 79, 283 => 78, 278 => 77, 272 => 74, 260 => 73, 256 => 71, 253 => 70, 246 => 55, 239 => 53, 234 => 52, 227 => 50, 222 => 49, 220 => 48, 214 => 45, 211 => 44, 207 => 42, 203 => 40, 193 => 39, 179 => 35, 171 => 31, 169 => 30, 164 => 28, 159 => 26, 154 => 24, 147 => 22, 142 => 21, 132 => 20, 119 => 14, 109 => 13, 91 => 8, 83 => 6, 80 => 5, 70 => 4, 59 => 1, 57 => 18, 55 => 17, 53 => 12, 40 => 1,);
}
public function getSourceContext()
{
return new Source("{% 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 %}
", "@NotarisFrontend/news/detail.html.twig", "/data/sites/web/notarisdc-projectsbe/subsites/apps/default/releases/7/src/Notaris/FrontendBundle/Resources/views/news/detail.html.twig");
}
}