<?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;
/* news/detail.html.twig */
class __TwigTemplate_c2ea218cdb02a6af44b63e77ceecf1ca extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doGetParent(array $context)
{
// line 1
return $this->loadTemplate($this->extensions['App\Twig\Extension\WebsiteExtension']->getBaseLayout(), "news/detail.html.twig", 1);
}
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", "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", "news/detail.html.twig"));
$this->getParent($context)->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_content($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", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 4
echo " <div class=\"section\">
";
// line 8
if (( !(isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 8, $this->source); })()) && !twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "publicationHeader"), "isEmpty", [], "method", false, false, true, 8))) {
// line 9
echo " <div class=\"position-absolute start-0 top-0 w-100 area-col area-col-news\">
<div class=\"area-col-inner area-shape area-shape-news\">
<img src=\"";
// line 11
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "publicationHeader"), "getThumbnail", [0 => "newsthumb"], "method", false, false, true, 11), 11, $this->source), "html", null, true);
echo "\" class=\"img-fluid w-100\"></div>
";
// line 19
echo " <svg height=\"100%\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\">
<clipPath clipPathUnits=\"objectBoundingBox\" id=\"shapegrey\">
<path d=\"M0,0.001 v0.979 c0.085,0.012,0.215,0.004,0.431,0 c0,0,0.371,0.05,0.569,-0.007 V0 H0.003 C0.002,0,0.001,0.001,0,0.001 s0 t0 y, l0 e=", t0 r, a0 n, s0 l0 a0 t0 p, x,-195.0520782470703, p, s0 c0 a0 l0\"></path>
</clipPath>
</svg>
</div>
";
}
// line 29
echo "
<div class=\"container news-text mb-5\">
<div class=\"row justify-content-center area-col\">
<svg height=\"100%\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\">
<clipPath clipPathUnits=\"objectBoundingBox\" id=\"shapeyellow\">
<path d=\"M0.536,0.991 s-0.414,0.038,-0.47,-0.038 C0.013,0.879,-0.009,0.825,0.004,0.696 s0.013,-0.268,0.013,-0.376 C0.018,0.133,0.026,0.017,0.269,0.006 C0.512,-0.005,0.731,-0.001,0.854,0.023 c0.121,0.023,0.14,0.05,0.143,0.241 c0.003,0.192,0.017,0.613,-0.062,0.688 c-0.054,0.051,-0.125,0.042,-0.399,0.038\"></path>
</clipPath>
</svg>
<div class=\"col-10 col-lg-8 area-shape area-shape-default area-col-inner position-relative bg-white p-5\">
<div class=\"p-5\">
";
// line 43
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 43, $this->source); })())) {
// line 44
echo " <div class=\"alert alert-info\" role=\"alert\">
";
// line 45
$context["message"] = "Afbeelding";
// line 46
echo " ";
$this->loadTemplate("includes/basicBlocks/admin/message/tip.html.twig", "news/detail.html.twig", 46)->display(twig_array_merge($context, ["message" => (isset($context["message"]) || array_key_exists("message", $context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.', 46, $this->source); })()), "type" => "info"]));
// line 47
echo "
";
// line 48
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "publicationHeader", ["width" => 800, "height" => 200, "thumbnail" => "article_header", "class" => "img-fluid w-100"]);
// line 53
echo "
";
// line 60
echo " </div>
";
}
// line 62
echo "
<div class=\"row\">
<div class=\"col-8\">
";
// line 66
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 66, $this->source); })())) {
// line 67
echo " <div class=\"alert alert-info\" role=\"alert\">
";
// line 68
$context["message"] = "Publicatiedatum";
// line 69
echo " ";
$this->loadTemplate("includes/basicBlocks/admin/message/tip.html.twig", "news/detail.html.twig", 69)->display(twig_array_merge($context, ["message" => (isset($context["message"]) || array_key_exists("message", $context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.', 69, $this->source); })()), "type" => "info"]));
// line 70
echo "
";
// line 71
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "date", "publicationDate", ["format" => "d m Y", "outputFormat" => "%d.%m.%Y"]);
// line 74
echo "
</div>
";
}
// line 77
echo "
";
// line 78
if ( !(isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 78, $this->source); })())) {
// line 79
echo " <div class=\"my-3\">
<ul class=\"list-unstyled d-child-inline-block font-size-4 d-inline-block text-black py-2 text-gray after-bullet mt-3 mb-0 m-md-0\">
";
// line 81
if ( !twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "date", "publicationDate"), "isEmpty", [], "method", false, false, true, 81)) {
// line 82
echo " ";
$context["publicationDate"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "date", "publicationDate"), "getData", [], "method", false, false, true, 82);
// line 83
echo " <li>";
echo twig_escape_filter($this->env, $this->extensions['Twig\Extra\Intl\IntlExtension']->formatDate($this->env, $this->sandbox->ensureToStringAllowed((isset($context["publicationDate"]) || array_key_exists("publicationDate", $context) ? $context["publicationDate"] : (function () { throw new RuntimeError('Variable "publicationDate" does not exist.', 83, $this->source); })()), 83, $this->source), "none", "d MMMM Y", null, "gregorian", $this->sandbox->ensureToStringAllowed(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.', 83, $this->source); })()), "request", [], "any", false, false, true, 83), "locale", [], "any", false, false, true, 83), 83, $this->source)), "html", null, true);
echo "</li>
";
// line 85
echo " ";
// line 86
echo " ";
}
// line 87
echo " </ul>
</div>
";
}
// line 90
echo " </div>
</div>
<div class=\"row\">
<div class=\"col-12\">
<h1 class=\"text-uppercase font-size-9\">
";
// line 97
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "newsTitle");
echo "
</h1>
<div class=\"content py-2\">
";
// line 101
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 101, $this->source); })())) {
// line 102
echo " ";
$context["message"] = "Korte introtekst";
// line 103
echo " ";
$this->loadTemplate("includes/basicBlocks/admin/message/tip.html.twig", "news/detail.html.twig", 103)->display(twig_array_merge($context, ["message" => (isset($context["message"]) || array_key_exists("message", $context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.', 103, $this->source); })()), "type" => "info"]));
// line 104
echo " ";
}
// line 105
echo "
";
// line 106
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "wysiwyg", "newsContent");
echo "
</div>
</div>
</div>
<div class=\"row\">
<div class=\"col-12\">
";
// line 113
echo twig_include($this->env, $context, "includes/default-content.html.twig");
echo "
</div>
</div>
<div class=\"row\">
<div class=\"col-12 text-center\">
<a class=\"btn btn-outline-secondary\" href=\"";
// line 121
if ($this->extensions['App\Twig\Extension\CheckwebsiteSettingExtension']->getCheckWebsitesetting("news_document", "document")) {
echo twig_escape_filter($this->env, $this->extensions['MultilingualBundle\Twig\Extension\InotherlangExtension']->getInotherlang("LocalizedDocument", $this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("news_document")), "html", null, true);
}
echo "\">
<span class=\"material-icons-outlined md-18\">arrow_left</span> ";
// line 122
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Terug naar het overzicht"), "html", null, true);
echo "
</span>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "news/detail.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 249 => 122, 243 => 121, 232 => 113, 222 => 106, 219 => 105, 216 => 104, 213 => 103, 210 => 102, 208 => 101, 201 => 97, 192 => 90, 187 => 87, 184 => 86, 182 => 85, 177 => 83, 174 => 82, 172 => 81, 168 => 79, 166 => 78, 163 => 77, 158 => 74, 156 => 71, 153 => 70, 150 => 69, 148 => 68, 145 => 67, 143 => 66, 137 => 62, 133 => 60, 129 => 53, 127 => 48, 124 => 47, 121 => 46, 119 => 45, 116 => 44, 114 => 43, 98 => 29, 86 => 19, 81 => 11, 77 => 9, 75 => 8, 69 => 4, 59 => 3, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends base_layout() %}
{% block content %}
<div class=\"section\">
{% if not editmode and not pimcore_image('publicationHeader').isEmpty() %}
<div class=\"position-absolute start-0 top-0 w-100 area-col area-col-news\">
<div class=\"area-col-inner area-shape area-shape-news\">
<img src=\"{{ pimcore_image('publicationHeader').getThumbnail('newsthumb') }}\" class=\"img-fluid w-100\"></div>
{#
{% if not pimcore_input(\"publicationHeaderTitle\").isEmpty() %}
<div class=\"d-flex overlay text-center h-100\">
<span class=\"m-auto\">{{ pimcore_input(\"publicationHeaderTitle\") }}</span>
</div>
{% endif %} #}
<svg height=\"100%\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\">
<clipPath clipPathUnits=\"objectBoundingBox\" id=\"shapegrey\">
<path d=\"M0,0.001 v0.979 c0.085,0.012,0.215,0.004,0.431,0 c0,0,0.371,0.05,0.569,-0.007 V0 H0.003 C0.002,0,0.001,0.001,0,0.001 s0 t0 y, l0 e=", t0 r, a0 n, s0 l0 a0 t0 p, x,-195.0520782470703, p, s0 c0 a0 l0\"></path>
</clipPath>
</svg>
</div>
{% endif %}
<div class=\"container news-text mb-5\">
<div class=\"row justify-content-center area-col\">
<svg height=\"100%\" width=\"100%\" xmlns=\"http://www.w3.org/2000/svg\">
<clipPath clipPathUnits=\"objectBoundingBox\" id=\"shapeyellow\">
<path d=\"M0.536,0.991 s-0.414,0.038,-0.47,-0.038 C0.013,0.879,-0.009,0.825,0.004,0.696 s0.013,-0.268,0.013,-0.376 C0.018,0.133,0.026,0.017,0.269,0.006 C0.512,-0.005,0.731,-0.001,0.854,0.023 c0.121,0.023,0.14,0.05,0.143,0.241 c0.003,0.192,0.017,0.613,-0.062,0.688 c-0.054,0.051,-0.125,0.042,-0.399,0.038\"></path>
</clipPath>
</svg>
<div class=\"col-10 col-lg-8 area-shape area-shape-default area-col-inner position-relative bg-white p-5\">
<div class=\"p-5\">
{% if editmode %}
<div class=\"alert alert-info\" role=\"alert\">
{% set message = 'Afbeelding' %}
{% include 'includes/basicBlocks/admin/message/tip.html.twig' with {'message': message, 'type' : 'info'} %}
{{ pimcore_image('publicationHeader', {
\"width\": 800,
\"height\": 200,
\"thumbnail\": \"article_header\",
\"class\": \"img-fluid w-100\"
}) }}
{#
{% set message = 'Titel op afbeelding' %}
{% include 'includes/basicBlocks/admin/message/tip.html.twig' with {'message': message, 'type' : 'info'} %}
{{ pimcore_input(\"publicationHeaderTitle\") }}#}
</div>
{% endif %}
<div class=\"row\">
<div class=\"col-8\">
{% if editmode %}
<div class=\"alert alert-info\" role=\"alert\">
{% set message = 'Publicatiedatum' %}
{% include 'includes/basicBlocks/admin/message/tip.html.twig' with {'message': message, 'type' : 'info'} %}
{{ pimcore_date(\"publicationDate\", {
\"format\": \"d m Y\",
'outputFormat': \"%d.%m.%Y\"
}) }}
</div>
{% endif %}
{% if not editmode %}
<div class=\"my-3\">
<ul class=\"list-unstyled d-child-inline-block font-size-4 d-inline-block text-black py-2 text-gray after-bullet mt-3 mb-0 m-md-0\">
{% if not pimcore_date(\"publicationDate\").isEmpty() %}
{% set publicationDate = pimcore_date(\"publicationDate\").getData() %}
<li>{{ publicationDate|format_date('none', 'd MMMM Y', null, 'gregorian', app.request.locale) }}</li>
{# <li>{{ publicationDate.format('d') }} {{ publicationDate.format('F')|trans }}#}
{# {{ publicationDate.format('Y') }}</li>#}
{% endif %}
</ul>
</div>
{% endif %}
</div>
</div>
<div class=\"row\">
<div class=\"col-12\">
<h1 class=\"text-uppercase font-size-9\">
{{ pimcore_input('newsTitle') }}
</h1>
<div class=\"content py-2\">
{% if editmode %}
{% set message = 'Korte introtekst' %}
{% include 'includes/basicBlocks/admin/message/tip.html.twig' with {'message': message, 'type' : 'info'} %}
{% endif %}
{{ pimcore_wysiwyg('newsContent') }}
</div>
</div>
</div>
<div class=\"row\">
<div class=\"col-12\">
{{ include('includes/default-content.html.twig') }}
</div>
</div>
<div class=\"row\">
<div class=\"col-12 text-center\">
<a class=\"btn btn-outline-secondary\" href=\"{% if check_websitesetting('news_document', 'document') %}{{ inotherlang('LocalizedDocument', pimcore_website_config('news_document')) }}{% endif %}\">
<span class=\"material-icons-outlined md-18\">arrow_left</span> {{ 'Terug naar het overzicht'|trans }}
</span>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
{% endblock %}", "news/detail.html.twig", "/var/www/clients/client2/web42/web/pc/templates/news/detail.html.twig");
}
public function checkSecurity()
{
static $tags = array("if" => 8, "set" => 45, "include" => 46);
static $filters = array("escape" => 11, "format_date" => 83, "trans" => 122);
static $functions = array("pimcore_image" => 8, "pimcore_date" => 71, "pimcore_input" => 97, "pimcore_wysiwyg" => 106, "include" => 113, "check_websitesetting" => 121, "inotherlang" => 121, "pimcore_website_config" => 121, "base_layout" => 1);
try {
$this->sandbox->checkSecurity(
['if', 'set', 'include'],
['escape', 'format_date', 'trans'],
['pimcore_image', 'pimcore_date', 'pimcore_input', 'pimcore_wysiwyg', 'include', 'check_websitesetting', 'inotherlang', 'pimcore_website_config', 'base_layout']
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}