<?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;
/* content/default.html.twig */
class __TwigTemplate_5ad6e05a736b1a383411a04be99395cb 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(), "content/default.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", "content/default.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "content/default.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 " ";
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 4, $this->source); })())) {
// line 5
echo " ";
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 5, $this->source); })()), "getParent", [], "method", false, false, true, 5), "getParent", [], "method", false, false, true, 5), "getKey", [], "method", false, false, true, 5) == "zeilen")) {
// line 6
echo " <style>
.alert-info {
--bs-alert-color: white;
--bs-alert-bg: #007ec3;
--bs-alert-border-color: var(--bs-info-border-subtle);
--bs-alert-link-color: var(--bs-info-text);
}
</style>
";
}
// line 15
echo " ";
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 15, $this->source); })()), "getParent", [], "method", false, false, true, 15), "getParent", [], "method", false, false, true, 15), "getKey", [], "method", false, false, true, 15) == "surfen")) {
// line 16
echo " <style>
.alert-info {
--bs-alert-color: white;
--bs-alert-bg: #c30000;
--bs-alert-border-color: var(--bs-info-border-subtle);
--bs-alert-link-color: var(--bs-info-text);
}
</style>
";
}
// line 25
echo " ";
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 25, $this->source); })()), "getParent", [], "method", false, false, true, 25), "getParent", [], "method", false, false, true, 25), "getKey", [], "method", false, false, true, 25) == "suppen")) {
// line 26
echo " <style>
.alert-info {
--bs-alert-color: white;
--bs-alert-bg: #9ad5dd;
--bs-alert-border-color: var(--bs-info-border-subtle);
--bs-alert-link-color: var(--bs-info-text);
}
</style>
";
}
// line 35
echo " ";
}
// line 36
echo "
<div class=\"container\">
<div class=\"row\">
<div class=\"col-12\">
<h1>";
// line 40
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "title", ["placeholder" => "Headline"]);
echo "</h1>
";
// line 42
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "wysiwyg", "content_text", ["placeholder" => "Place content here"]);
echo "
</div>
</div>
";
// line 46
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 46, $this->source); })())) {
// line 47
echo " <div class=\"row\">
<div class=\"col-12\">
<p class=\"advice\">";
// line 49
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("tip: Door op het plusteken te klikken kun je kiezen welke inhoudelijke blok je kan toevoegen.", [], "admin"), "html", null, true);
echo "</p>
</div>
</div>
";
}
// line 53
echo "
<div class=\"row\">
<div class=\"col-12\">
";
// line 56
echo twig_include($this->env, $context, "includes/default-content.html.twig");
echo "
</div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "content/default.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 153 => 56, 148 => 53, 141 => 49, 137 => 47, 135 => 46, 128 => 42, 123 => 40, 117 => 36, 114 => 35, 103 => 26, 100 => 25, 89 => 16, 86 => 15, 75 => 6, 72 => 5, 69 => 4, 59 => 3, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends base_layout() %}
{% block content %}
{% if editmode %}
{% if document.getParent().getParent().getKey() == 'zeilen' %}
<style>
.alert-info {
--bs-alert-color: white;
--bs-alert-bg: #007ec3;
--bs-alert-border-color: var(--bs-info-border-subtle);
--bs-alert-link-color: var(--bs-info-text);
}
</style>
{% endif %}
{% if document.getParent().getParent().getKey() == 'surfen' %}
<style>
.alert-info {
--bs-alert-color: white;
--bs-alert-bg: #c30000;
--bs-alert-border-color: var(--bs-info-border-subtle);
--bs-alert-link-color: var(--bs-info-text);
}
</style>
{% endif %}
{% if document.getParent().getParent().getKey() == 'suppen' %}
<style>
.alert-info {
--bs-alert-color: white;
--bs-alert-bg: #9ad5dd;
--bs-alert-border-color: var(--bs-info-border-subtle);
--bs-alert-link-color: var(--bs-info-text);
}
</style>
{% endif %}
{% endif %}
<div class=\"container\">
<div class=\"row\">
<div class=\"col-12\">
<h1>{{ pimcore_input('title', {'placeholder':'Headline'}) }}</h1>
{{ pimcore_wysiwyg('content_text', {'placeholder':'Place content here'}) }}
</div>
</div>
{% if editmode %}
<div class=\"row\">
<div class=\"col-12\">
<p class=\"advice\">{{ 'tip: Door op het plusteken te klikken kun je kiezen welke inhoudelijke blok je kan toevoegen.'|trans({}, 'admin') }}</p>
</div>
</div>
{% endif %}
<div class=\"row\">
<div class=\"col-12\">
{{ include('includes/default-content.html.twig') }}
</div>
</div>
</div>
{% endblock %}", "content/default.html.twig", "/var/www/clients/client2/web45/web/pc/templates/content/default.html.twig");
}
public function checkSecurity()
{
static $tags = array("if" => 4);
static $filters = array("escape" => 49, "trans" => 49);
static $functions = array("pimcore_input" => 40, "pimcore_wysiwyg" => 42, "include" => 56, "base_layout" => 1);
try {
$this->sandbox->checkSecurity(
['if'],
['escape', 'trans'],
['pimcore_input', 'pimcore_wysiwyg', 'include', '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;
}
}
}