var/cache/dev/twig/e2/e252cca2c79af3ce0a16dd5385f7ef24.php line 263

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* pagecontent/pagecontent.html.twig */
  14. class __TwigTemplate_8a0bb70d05867cd608d774243f58d8c8 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'content' => [$this'block_content'],
  24.         ];
  25.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "layout.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""pagecontent/pagecontent.html.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""pagecontent/pagecontent.html.twig"));
  40.         $this->parent $this->loadTemplate("layout.html.twig""pagecontent/pagecontent.html.twig"1);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  44.         
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  46.     }
  47.     // line 3
  48.     public function block_content($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  55.         // line 4
  56.         echo "
  57. ";
  58.         // line 5
  59.         if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'5$this->source); })())) {
  60.             // line 6
  61.             echo "
  62.     ";
  63.             // line 7
  64.             echo twig_include($this->env$context"includes/backend-kopf.html.twig");
  65.             echo "
  66.     ";
  67.             // line 10
  68.             $context["tabContentArray"] = [];
  69.             // line 11
  70.             echo "    ";
  71.             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"falsefalsetrue11)) ||  !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", [=> "page_startseite"], "method"falsefalsetrue11)))) {
  72.                 // line 12
  73.                 echo "        ";
  74.                 $context["tabContentArray"] = [=> "Optional"];
  75.                 // line 13
  76.                 echo "    ";
  77.             } else {
  78.                 // line 14
  79.                 echo "         ";
  80.                 $context["tabContentArray"] = [=> "Optionale Einstellung"=> "Hintergrundbild Optional"];
  81.                 // line 15
  82.                 echo "    ";
  83.             }
  84.             // line 16
  85.             echo "
  86.     <div id=\"content\">      
  87.             ";
  88.             // line 18
  89.             $context["tab"] = 1;
  90.             echo "  
  91.             ";
  92.             // line 19
  93.             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); })()))))) {
  94.                 // line 20
  95.                 echo "                ";
  96.                 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));
  97.                 echo "
  98.             
  99.             <section class=\"tabContent\">
  100.                 <p class=\"hl\">Optionale Einstellung:</p>
  101.                 ";
  102.                 // line 25
  103.                 $context["element"] = "page";
  104.                 // line 26
  105.                 echo "                <div id=\"";
  106.                 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"nulltrue);
  107.                 echo " \">
  108.                     ";
  109.                 // line 27
  110.                 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" => [=> [=> "exclude_from_search"=> "von Suche ausschliessen"]]]);
  111.                 // line 33
  112.                 echo "
  113.                 </div>
  114.                 <style>
  115.                     .table-cell:nth-child(1) {background: #ffffff}
  116.                     .table-cell:nth-child(2) {padding-left: 10px;}
  117.                     .table-cell:nth-child(3) {padding-left: 10px;}
  118.                     @media (min-width: 40em) {
  119.                         .table {
  120.                             display: table;
  121.                             margin-top:45px;
  122.                         }
  123.                         .table-row {display: table-row; }
  124.                         .table-cell {display: table-cell; }
  125.                     }
  126.                 </style>
  127.                 <div class=\"table\">
  128.                     <div class=\"table-row\">
  129.                         <div class=\"table-cell\">
  130.                             ";
  131.                 // line 54
  132.                 echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"checkbox""buttonSeitenrandRechts", ["reload" => true]);
  133.                 echo "
  134.                         </div>
  135.                         <div class=\"table-cell\">
  136.                             Optional Button am rechten Seitenrand einschalten
  137.                         </div>
  138.                         <div class=\"table-cell\">
  139.                             ";
  140.                 // line 60
  141.                 $context["show_button_path"] = ((twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"checkbox""buttonSeitenrandRechts"), "isChecked", [], "method"falsefalsetrue60)) ? ("/bundles/app/static/backend/image/layout/button_on.png") : ("/bundles/app/static/backend/image/layout/button_off.png"));
  142.                 // line 61
  143.                 echo "                            <img src=\"";
  144.                 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"nulltrue);
  145.                 echo "\" />
  146.                             <div style=\"margin-top:25px;position:relative;left: ";
  147.                 // line 63
  148.                 echo ((twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"checkbox""buttonSeitenrandRechts"), "isChecked", [], "method"falsefalsetrue63)) ? ("0") : ("-9999em"));
  149.                 echo " \">
  150.                                 <strong style=\"display:block;padding-left:37px;margin-bottom:6px;\">Button Text</strong>
  151.                                 <div class=\"schreiben\"><span class=\"parentbox\" style=\"background-color:#fff\">";
  152.                 // line 65
  153.                 echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"textarea""buttonSeitenrandRechts_text", ["width" => 200"height" => 30]);
  154.                 echo "</span></div>
  155.                                 <br /><br />
  156.                                 <strong style=\"display:block;padding-left:37px;margin-bottom:6px;\">Button Link</strong>
  157.                                 <div class=\"link\"><span class=\"parentbox\" style=\"background-color:#fff\">
  158.                                      ";
  159.                 // line 70
  160.                 echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"link""buttonSeitenrandRechts_link", ["reload" => false]);
  161.                 echo "
  162.                                 </span></div>
  163.                             </div>
  164.                         </div>
  165.                     </div>
  166.                 </div>
  167.                 <br /><br /><br /><hr /><hr /><br /><br />
  168.                 <p class=\"hl\">Strukturierte Daten bitte Zuweisen:</p>
  169.                 <div class=\"dragdrop\">
  170.                     <span class=\"parentbox\">
  171.                     ";
  172.                 // line 84
  173.                 echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"relation""strukturierteDaten", ["types" => [=> "document"], "subtypes" => ["document" => [=> "snippet"]], "width" => 600]);
  174.                 // line 89
  175.                 echo "
  176.                     </span>
  177.                 </div>
  178.             </section>
  179.             ";
  180.             }
  181.             // line 94
  182.             echo 
  183.             ";
  184.             // line 96
  185.             if ((array_key_exists("tabContentArray"$context) && twig_in_filter(2twig_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); })()))))) {
  186.                 // line 97
  187.                 echo "                ";
  188.                 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));
  189.                 echo "
  190.                 <section class=\"tabContent\">
  191.                     <p class=\"hl\">Hintergrundbild: </p>
  192.                     <div class=\"dragdrop\"><span class=\"parentbox\">
  193.                         ";
  194.                 // line 101
  195.                 echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"image""BackgroundImagePage", ["thumbnail" => "background-image-page-edm""width" => 100"height" => 67"hidetext" => true]);
  196.                 // line 106
  197.                 echo "    
  198.                             </span></div>
  199.                  </section>
  200.             ";
  201.             }
  202.             // line 110
  203.             echo "
  204.             ";
  205.             // line 111
  206.             if ((array_key_exists("tabContentArray"$context) && twig_in_filter(3twig_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); })()))))) {
  207.                 // line 112
  208.                 echo "                ";
  209.                 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));
  210.                 echo "
  211.                 <section class=\"tabContent\">
  212.                 ";
  213.                 // line 117
  214.                 echo "
  215.                 </section>           
  216.             ";
  217.             }
  218.             // line 120
  219.             echo "    </div>
  220.     ";
  221.             // line 121
  222.             echo twig_include($this->env$context"includes/backend-fuss.html.twig");
  223.             echo "
  224. ";
  225.         } else {
  226.             // line 125
  227.             echo "
  228.     ";
  229.             // line 126
  230.             $context['_parent'] = $context;
  231.             $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); })()), ""));
  232.             foreach ($context['_seq'] as $context["_key"] => $context["snippet"]) {
  233.                 // line 127
  234.                 echo "        ";
  235.                 echo $this->sandbox->ensureToStringAllowed($context["snippet"], 127$this->source);
  236.                 echo "
  237.     ";
  238.             }
  239.             $_parent $context['_parent'];
  240.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['snippet'], $context['_parent'], $context['loop']);
  241.             $context array_intersect_key($context$_parent) + $_parent;
  242.         }
  243.         // line 130
  244.         echo "
  245. ";
  246.         
  247.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  248.         
  249.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  250.     }
  251.     public function getTemplateName()
  252.     {
  253.         return "pagecontent/pagecontent.html.twig";
  254.     }
  255.     public function isTraitable()
  256.     {
  257.         return false;
  258.     }
  259.     public function getDebugInfo()
  260.     {
  261.         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,);
  262.     }
  263.     public function getSourceContext()
  264.     {
  265.         return new Source("{% extends 'layout.html.twig' %}
  266. {% block content %}
  267. {% if editmode %}
  268.     {{ include('includes/backend-kopf.html.twig') }}
  269.     {% set tabContentArray = {} %}
  270.     {% if 'packageAction' in document.getController() or document.getProperty('page_startseite') is not empty %}
  271.         {% set tabContentArray = {1: 'Optional'} %}
  272.     {% else %}
  273.          {% set tabContentArray = {1: 'Optionale Einstellung', 2: 'Hintergrundbild Optional'} %}
  274.     {% endif %}
  275.     <div id=\"content\">      
  276.             {% set tab = 1 %}  
  277.             {% if tabContentArray is defined and tab in tabContentArray|keys %}
  278.                 {{ admin_tabs(tab, tabContentArray) | raw }}
  279.             
  280.             <section class=\"tabContent\">
  281.                 <p class=\"hl\">Optionale Einstellung:</p>
  282.                 {% set element = 'page' %}
  283.                 <div id=\"{{ element }} \">
  284.                     {{ pimcore_multiselect(element, {
  285.                             'width': 200,
  286.                             'height': 100,
  287.                             'store': [
  288.                                 ['exclude_from_search', 'von Suche ausschliessen']
  289.                             ]
  290.                         }) }}
  291.                 </div>
  292.                 <style>
  293.                     .table-cell:nth-child(1) {background: #ffffff}
  294.                     .table-cell:nth-child(2) {padding-left: 10px;}
  295.                     .table-cell:nth-child(3) {padding-left: 10px;}
  296.                     @media (min-width: 40em) {
  297.                         .table {
  298.                             display: table;
  299.                             margin-top:45px;
  300.                         }
  301.                         .table-row {display: table-row; }
  302.                         .table-cell {display: table-cell; }
  303.                     }
  304.                 </style>
  305.                 <div class=\"table\">
  306.                     <div class=\"table-row\">
  307.                         <div class=\"table-cell\">
  308.                             {{ pimcore_checkbox(\"buttonSeitenrandRechts\",{\"reload\": true}) }}
  309.                         </div>
  310.                         <div class=\"table-cell\">
  311.                             Optional Button am rechten Seitenrand einschalten
  312.                         </div>
  313.                         <div class=\"table-cell\">
  314.                             {% 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' %}
  315.                             <img src=\"{{ show_button_path }}\" />
  316.                             <div style=\"margin-top:25px;position:relative;left: {{ (pimcore_checkbox('buttonSeitenrandRechts').isChecked()) ? '0' : '-9999em' }} \">
  317.                                 <strong style=\"display:block;padding-left:37px;margin-bottom:6px;\">Button Text</strong>
  318.                                 <div class=\"schreiben\"><span class=\"parentbox\" style=\"background-color:#fff\">{{ pimcore_textarea(\"buttonSeitenrandRechts_text\", {\"width\": 200, \"height\": 30}) }}</span></div>
  319.                                 <br /><br />
  320.                                 <strong style=\"display:block;padding-left:37px;margin-bottom:6px;\">Button Link</strong>
  321.                                 <div class=\"link\"><span class=\"parentbox\" style=\"background-color:#fff\">
  322.                                      {{ pimcore_link(\"buttonSeitenrandRechts_link\", {\"reload\": false}) }}
  323.                                 </span></div>
  324.                             </div>
  325.                         </div>
  326.                     </div>
  327.                 </div>
  328.                 <br /><br /><br /><hr /><hr /><br /><br />
  329.                 <p class=\"hl\">Strukturierte Daten bitte Zuweisen:</p>
  330.                 <div class=\"dragdrop\">
  331.                     <span class=\"parentbox\">
  332.                     {{ pimcore_relation(\"strukturierteDaten\",{
  333.                             \"types\": [\"document\"],
  334.                             \"subtypes\": {
  335.                                 \"document\": [\"snippet\"],                            },
  336.                             \"width\": 600
  337.                         }) }}
  338.                     </span>
  339.                 </div>
  340.             </section>
  341.             {% endif %} 
  342.             {% if tabContentArray is defined and 2 in tabContentArray|keys %}
  343.                 {{ admin_tabs(2, tabContentArray) | raw }}
  344.                 <section class=\"tabContent\">
  345.                     <p class=\"hl\">Hintergrundbild: </p>
  346.                     <div class=\"dragdrop\"><span class=\"parentbox\">
  347.                         {{ pimcore_image(\"BackgroundImagePage\",  
  348.                                     {\"thumbnail\": \"background-image-page-edm\", 
  349.                                     \"width\":100, \"height\":67, 
  350.                                     \"hidetext\": true
  351.                                     }) 
  352.                             }}    
  353.                             </span></div>
  354.                  </section>
  355.             {% endif %}
  356.             {% if tabContentArray is defined and 3 in tabContentArray|keys %}
  357.                 {{ admin_tabs(3, tabContentArray) | raw }}
  358.                 <section class=\"tabContent\">
  359.                 {# <?=\$this->template(\"AppBundle::Includes/faceboock-meta-infos.html.php\")?> #}
  360.                 </section>           
  361.             {% endif %}
  362.     </div>
  363.     {{ include('includes/backend-fuss.html.twig') }}
  364. {% else %}
  365.     {% for snippet in render_snippets(document, \"\") %}
  366.         {{ snippet | raw }}
  367.     {% endfor %}
  368. {% endif %}
  369. {% endblock %}""pagecontent/pagecontent.html.twig""/var/www/vhosts/jumpalionenbabaloo.at/httpdocs/templates/pagecontent/pagecontent.html.twig");
  370.     }
  371.     
  372.     public function checkSecurity()
  373.     {
  374.         static $tags = array("if" => 5"set" => 10"for" => 126);
  375.         static $filters = array("keys" => 19"raw" => 20"escape" => 26);
  376.         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);
  377.         try {
  378.             $this->sandbox->checkSecurity(
  379.                 ['if''set''for'],
  380.                 ['keys''raw''escape'],
  381.                 ['include''admin_tabs''pimcore_multiselect''pimcore_checkbox''pimcore_textarea''pimcore_link''pimcore_relation''pimcore_image''render_snippets']
  382.             );
  383.         } catch (SecurityError $e) {
  384.             $e->setSourceContext($this->source);
  385.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  386.                 $e->setTemplateLine($tags[$e->getTagName()]);
  387.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  388.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  389.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  390.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  391.             }
  392.             throw $e;
  393.         }
  394.     }
  395. }