<?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;
/* pagecontent/pagecontent.html.twig */
class __TwigTemplate_8a0bb70d05867cd608d774243f58d8c8 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 "layout.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", "pagecontent/pagecontent.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "pagecontent/pagecontent.html.twig"));
$this->parent = $this->loadTemplate("layout.html.twig", "pagecontent/pagecontent.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 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 "
";
// line 5
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 5, $this->source); })())) {
// line 6
echo "
";
// line 7
echo twig_include($this->env, $context, "includes/backend-kopf.html.twig");
echo "
";
// line 10
$context["tabContentArray"] = [];
// line 11
echo " ";
if ((twig_in_filter("packageAction", 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.', 11, $this->source); })()), "getController", [], "method", false, false, true, 11)) || !twig_test_empty(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.', 11, $this->source); })()), "getProperty", [0 => "page_startseite"], "method", false, false, true, 11)))) {
// line 12
echo " ";
$context["tabContentArray"] = [1 => "Optional"];
// line 13
echo " ";
} else {
// line 14
echo " ";
$context["tabContentArray"] = [1 => "Optionale Einstellung", 2 => "Hintergrundbild Optional"];
// line 15
echo " ";
}
// line 16
echo "
<div id=\"content\">
";
// line 18
$context["tab"] = 1;
echo "
";
// line 19
if ((array_key_exists("tabContentArray", $context) && twig_in_filter((isset($context["tab"]) || array_key_exists("tab", $context) ? $context["tab"] : (function () { throw new RuntimeError('Variable "tab" does not exist.', 19, $this->source); })()), twig_get_array_keys_filter((isset($context["tabContentArray"]) || array_key_exists("tabContentArray", $context) ? $context["tabContentArray"] : (function () { throw new RuntimeError('Variable "tabContentArray" does not exist.', 19, $this->source); })()))))) {
// line 20
echo " ";
echo $this->extensions['App\Twig\Extension\GlanzerExtension']->getAdminTabs($this->sandbox->ensureToStringAllowed((isset($context["tab"]) || array_key_exists("tab", $context) ? $context["tab"] : (function () { throw new RuntimeError('Variable "tab" does not exist.', 20, $this->source); })()), 20, $this->source), $this->sandbox->ensureToStringAllowed((isset($context["tabContentArray"]) || array_key_exists("tabContentArray", $context) ? $context["tabContentArray"] : (function () { throw new RuntimeError('Variable "tabContentArray" does not exist.', 20, $this->source); })()), 20, $this->source));
echo "
<section class=\"tabContent\">
<p class=\"hl\">Optionale Einstellung:</p>
";
// line 25
$context["element"] = "page";
// line 26
echo " <div id=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["element"]) || array_key_exists("element", $context) ? $context["element"] : (function () { throw new RuntimeError('Variable "element" does not exist.', 26, $this->source); })()), 26, $this->source), "html", null, true);
echo " \">
";
// line 27
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "multiselect", $this->sandbox->ensureToStringAllowed((isset($context["element"]) || array_key_exists("element", $context) ? $context["element"] : (function () { throw new RuntimeError('Variable "element" does not exist.', 27, $this->source); })()), 27, $this->source), ["width" => 200, "height" => 100, "store" => [0 => [0 => "exclude_from_search", 1 => "von Suche ausschliessen"]]]);
// line 33
echo "
</div>
<style>
.table-cell:nth-child(1) {background: #ffffff}
.table-cell:nth-child(2) {padding-left: 10px;}
.table-cell:nth-child(3) {padding-left: 10px;}
@media (min-width: 40em) {
.table {
display: table;
margin-top:45px;
}
.table-row {display: table-row; }
.table-cell {display: table-cell; }
}
</style>
<div class=\"table\">
<div class=\"table-row\">
<div class=\"table-cell\">
";
// line 54
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "checkbox", "buttonSeitenrandRechts", ["reload" => true]);
echo "
</div>
<div class=\"table-cell\">
Optional Button am rechten Seitenrand einschalten
</div>
<div class=\"table-cell\">
";
// line 60
$context["show_button_path"] = ((twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "checkbox", "buttonSeitenrandRechts"), "isChecked", [], "method", false, false, true, 60)) ? ("/bundles/app/static/backend/image/layout/button_on.png") : ("/bundles/app/static/backend/image/layout/button_off.png"));
// line 61
echo " <img src=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["show_button_path"]) || array_key_exists("show_button_path", $context) ? $context["show_button_path"] : (function () { throw new RuntimeError('Variable "show_button_path" does not exist.', 61, $this->source); })()), 61, $this->source), "html", null, true);
echo "\" />
<div style=\"margin-top:25px;position:relative;left: ";
// line 63
echo ((twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "checkbox", "buttonSeitenrandRechts"), "isChecked", [], "method", false, false, true, 63)) ? ("0") : ("-9999em"));
echo " \">
<strong style=\"display:block;padding-left:37px;margin-bottom:6px;\">Button Text</strong>
<div class=\"schreiben\"><span class=\"parentbox\" style=\"background-color:#fff\">";
// line 65
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "textarea", "buttonSeitenrandRechts_text", ["width" => 200, "height" => 30]);
echo "</span></div>
<br /><br />
<strong style=\"display:block;padding-left:37px;margin-bottom:6px;\">Button Link</strong>
<div class=\"link\"><span class=\"parentbox\" style=\"background-color:#fff\">
";
// line 70
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "link", "buttonSeitenrandRechts_link", ["reload" => false]);
echo "
</span></div>
</div>
</div>
</div>
</div>
<br /><br /><br /><hr /><hr /><br /><br />
<p class=\"hl\">Strukturierte Daten bitte Zuweisen:</p>
<div class=\"dragdrop\">
<span class=\"parentbox\">
";
// line 84
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "relation", "strukturierteDaten", ["types" => [0 => "document"], "subtypes" => ["document" => [0 => "snippet"]], "width" => 600]);
// line 89
echo "
</span>
</div>
</section>
";
}
// line 94
echo "
";
// line 96
if ((array_key_exists("tabContentArray", $context) && twig_in_filter(2, twig_get_array_keys_filter((isset($context["tabContentArray"]) || array_key_exists("tabContentArray", $context) ? $context["tabContentArray"] : (function () { throw new RuntimeError('Variable "tabContentArray" does not exist.', 96, $this->source); })()))))) {
// line 97
echo " ";
echo $this->extensions['App\Twig\Extension\GlanzerExtension']->getAdminTabs(2, $this->sandbox->ensureToStringAllowed((isset($context["tabContentArray"]) || array_key_exists("tabContentArray", $context) ? $context["tabContentArray"] : (function () { throw new RuntimeError('Variable "tabContentArray" does not exist.', 97, $this->source); })()), 97, $this->source));
echo "
<section class=\"tabContent\">
<p class=\"hl\">Hintergrundbild: </p>
<div class=\"dragdrop\"><span class=\"parentbox\">
";
// line 101
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "BackgroundImagePage", ["thumbnail" => "background-image-page-edm", "width" => 100, "height" => 67, "hidetext" => true]);
// line 106
echo "
</span></div>
</section>
";
}
// line 110
echo "
";
// line 111
if ((array_key_exists("tabContentArray", $context) && twig_in_filter(3, twig_get_array_keys_filter((isset($context["tabContentArray"]) || array_key_exists("tabContentArray", $context) ? $context["tabContentArray"] : (function () { throw new RuntimeError('Variable "tabContentArray" does not exist.', 111, $this->source); })()))))) {
// line 112
echo " ";
echo $this->extensions['App\Twig\Extension\GlanzerExtension']->getAdminTabs(3, $this->sandbox->ensureToStringAllowed((isset($context["tabContentArray"]) || array_key_exists("tabContentArray", $context) ? $context["tabContentArray"] : (function () { throw new RuntimeError('Variable "tabContentArray" does not exist.', 112, $this->source); })()), 112, $this->source));
echo "
<section class=\"tabContent\">
";
// line 117
echo "
</section>
";
}
// line 120
echo " </div>
";
// line 121
echo twig_include($this->env, $context, "includes/backend-fuss.html.twig");
echo "
";
} else {
// line 125
echo "
";
// line 126
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->extensions['App\Twig\Extension\GlanzerExtension']->getSnippets((isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 126, $this->source); })()), ""));
foreach ($context['_seq'] as $context["_key"] => $context["snippet"]) {
// line 127
echo " ";
echo $this->sandbox->ensureToStringAllowed($context["snippet"], 127, $this->source);
echo "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['snippet'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
}
// line 130
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "pagecontent/pagecontent.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 276 => 130, 266 => 127, 262 => 126, 259 => 125, 252 => 121, 249 => 120, 244 => 117, 236 => 112, 234 => 111, 231 => 110, 225 => 106, 223 => 101, 215 => 97, 213 => 96, 209 => 94, 201 => 89, 199 => 84, 182 => 70, 174 => 65, 169 => 63, 163 => 61, 161 => 60, 152 => 54, 129 => 33, 127 => 27, 122 => 26, 120 => 25, 111 => 20, 109 => 19, 105 => 18, 101 => 16, 98 => 15, 95 => 14, 92 => 13, 89 => 12, 86 => 11, 84 => 10, 78 => 7, 75 => 6, 73 => 5, 70 => 4, 60 => 3, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'layout.html.twig' %}
{% block content %}
{% if editmode %}
{{ include('includes/backend-kopf.html.twig') }}
{% set tabContentArray = {} %}
{% if 'packageAction' in document.getController() or document.getProperty('page_startseite') is not empty %}
{% set tabContentArray = {1: 'Optional'} %}
{% else %}
{% set tabContentArray = {1: 'Optionale Einstellung', 2: 'Hintergrundbild Optional'} %}
{% endif %}
<div id=\"content\">
{% set tab = 1 %}
{% if tabContentArray is defined and tab in tabContentArray|keys %}
{{ admin_tabs(tab, tabContentArray) | raw }}
<section class=\"tabContent\">
<p class=\"hl\">Optionale Einstellung:</p>
{% set element = 'page' %}
<div id=\"{{ element }} \">
{{ pimcore_multiselect(element, {
'width': 200,
'height': 100,
'store': [
['exclude_from_search', 'von Suche ausschliessen']
]
}) }}
</div>
<style>
.table-cell:nth-child(1) {background: #ffffff}
.table-cell:nth-child(2) {padding-left: 10px;}
.table-cell:nth-child(3) {padding-left: 10px;}
@media (min-width: 40em) {
.table {
display: table;
margin-top:45px;
}
.table-row {display: table-row; }
.table-cell {display: table-cell; }
}
</style>
<div class=\"table\">
<div class=\"table-row\">
<div class=\"table-cell\">
{{ pimcore_checkbox(\"buttonSeitenrandRechts\",{\"reload\": true}) }}
</div>
<div class=\"table-cell\">
Optional Button am rechten Seitenrand einschalten
</div>
<div class=\"table-cell\">
{% set show_button_path = (pimcore_checkbox(\"buttonSeitenrandRechts\").isChecked())? '/bundles/app/static/backend/image/layout/button_on.png' : '/bundles/app/static/backend/image/layout/button_off.png' %}
<img src=\"{{ show_button_path }}\" />
<div style=\"margin-top:25px;position:relative;left: {{ (pimcore_checkbox('buttonSeitenrandRechts').isChecked()) ? '0' : '-9999em' }} \">
<strong style=\"display:block;padding-left:37px;margin-bottom:6px;\">Button Text</strong>
<div class=\"schreiben\"><span class=\"parentbox\" style=\"background-color:#fff\">{{ pimcore_textarea(\"buttonSeitenrandRechts_text\", {\"width\": 200, \"height\": 30}) }}</span></div>
<br /><br />
<strong style=\"display:block;padding-left:37px;margin-bottom:6px;\">Button Link</strong>
<div class=\"link\"><span class=\"parentbox\" style=\"background-color:#fff\">
{{ pimcore_link(\"buttonSeitenrandRechts_link\", {\"reload\": false}) }}
</span></div>
</div>
</div>
</div>
</div>
<br /><br /><br /><hr /><hr /><br /><br />
<p class=\"hl\">Strukturierte Daten bitte Zuweisen:</p>
<div class=\"dragdrop\">
<span class=\"parentbox\">
{{ pimcore_relation(\"strukturierteDaten\",{
\"types\": [\"document\"],
\"subtypes\": {
\"document\": [\"snippet\"], },
\"width\": 600
}) }}
</span>
</div>
</section>
{% endif %}
{% if tabContentArray is defined and 2 in tabContentArray|keys %}
{{ admin_tabs(2, tabContentArray) | raw }}
<section class=\"tabContent\">
<p class=\"hl\">Hintergrundbild: </p>
<div class=\"dragdrop\"><span class=\"parentbox\">
{{ pimcore_image(\"BackgroundImagePage\",
{\"thumbnail\": \"background-image-page-edm\",
\"width\":100, \"height\":67,
\"hidetext\": true
})
}}
</span></div>
</section>
{% endif %}
{% if tabContentArray is defined and 3 in tabContentArray|keys %}
{{ admin_tabs(3, tabContentArray) | raw }}
<section class=\"tabContent\">
{# <?=\$this->template(\"AppBundle::Includes/faceboock-meta-infos.html.php\")?> #}
</section>
{% endif %}
</div>
{{ include('includes/backend-fuss.html.twig') }}
{% else %}
{% for snippet in render_snippets(document, \"\") %}
{{ snippet | raw }}
{% endfor %}
{% endif %}
{% endblock %}", "pagecontent/pagecontent.html.twig", "/var/www/vhosts/jumpalionenbabaloo.at/httpdocs/templates/pagecontent/pagecontent.html.twig");
}
public function checkSecurity()
{
static $tags = array("if" => 5, "set" => 10, "for" => 126);
static $filters = array("keys" => 19, "raw" => 20, "escape" => 26);
static $functions = array("include" => 7, "admin_tabs" => 20, "pimcore_multiselect" => 27, "pimcore_checkbox" => 54, "pimcore_textarea" => 65, "pimcore_link" => 70, "pimcore_relation" => 84, "pimcore_image" => 101, "render_snippets" => 126);
try {
$this->sandbox->checkSecurity(
['if', 'set', 'for'],
['keys', 'raw', 'escape'],
['include', 'admin_tabs', 'pimcore_multiselect', 'pimcore_checkbox', 'pimcore_textarea', 'pimcore_link', 'pimcore_relation', 'pimcore_image', 'render_snippets']
);
} 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;
}
}
}