var/cache/dev/twig/65/655a38c379ed89e01964289bb13d83fb.php line 35

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. /* areas/section/view.html.twig */
  14. class __TwigTemplate_d7a4356a66673829a2abc87b723ad4c8 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->parent false;
  23.         $this->blocks = [
  24.         ];
  25.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doDisplay(array $context, array $blocks = [])
  29.     {
  30.         $macros $this->macros;
  31.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  32.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""areas/section/view.html.twig"));
  33.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  34.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""areas/section/view.html.twig"));
  35.         // line 6
  36.         if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'6$this->source); })())) {
  37.             // line 7
  38.             echo "<div class=\"admin-container admin-container--limited-width admin-container--section\">
  39. \t<div class=\"admin-container__section\">
  40. \t\t<span class=\"admin-container__title\">";
  41.             // line 9
  42.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("brick.section.title", [], "admin"), "html"nulltrue);
  43.             echo "</span>
  44. \t</div>
  45. \t<div class=\"admin-container__configurations\">
  46. \t\t<div class=\"admin-config-item\">
  47. \t\t\t<span class=\"admin-config-item__label\">";
  48.             // line 13
  49.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("brick.section.option.no-margin-top", [], "admin"), "html"nulltrue);
  50.             echo ":</span>
  51. \t\t\t";
  52.             // line 14
  53.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"checkbox""nmt", ["reload" => true]);
  54.             // line 16
  55.             echo "
  56. \t\t\t<br>
  57. \t\t\t<span class=\"admin-config-item__label\">";
  58.             // line 20
  59.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("brick.section.option.no-margin-bottom", [], "admin"), "html"nulltrue);
  60.             echo ":</span>
  61. \t\t\t";
  62.             // line 21
  63.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"checkbox""nmb", ["reload" => true]);
  64.             // line 23
  65.             echo "
  66. \t\t</div>
  67. \t\t<div class=\"admin-config-item\">
  68. \t\t\t<span class=\"admin-config-item__label\">";
  69.             // line 26
  70.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("brick.section.option.jump-id", [], "admin"), "html"nulltrue);
  71.             echo ":</span>
  72. \t\t\t";
  73.             // line 27
  74.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""jump-id", ["reload" => false]);
  75.             // line 29
  76.             echo "
  77. \t\t\t<br>
  78. \t\t\t<span class=\"admin-config-item__label\">";
  79.             // line 32
  80.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("brick.section.option.bgc", [], "admin"), "html"nulltrue);
  81.             echo ":</span>
  82. \t\t\t";
  83.             // line 33
  84.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""bgc", ["store" => [=> [=> ""=> "None"], => [=> "section--background section--bgc-0"=> $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("brick.general.value.bgc.0", [], "admin")], => [=> "section--background section--bgc-1"=> $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("brick.general.value.bgc.1", [], "admin")], => [=> "section--background section--bgc-2"=> $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("brick.general.value.bgc.2", [], "admin")], => [=> "section--background section--bgc-3"=> $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("brick.general.value.bgc.3", [], "admin")], => [=> "section--background section--bgc-4"=> $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("brick.general.value.bgc.4", [], "admin")]], "defaultValue" => """reload" => true]);
  85.             // line 46
  86.             echo "
  87. \t\t</div>
  88. \t</div>
  89. </div>
  90. ";
  91.         }
  92.         // line 51
  93.         echo "
  94. <div class=\"section section--content ";
  95.         // line 52
  96.         echo twig_escape_filter($this->envtwig_join_filter($this->sandbox->ensureToStringAllowed((isset($context["cssClasses"]) || array_key_exists("cssClasses"$context) ? $context["cssClasses"] : (function () { throw new RuntimeError('Variable "cssClasses" does not exist.'52$this->source); })()), 52$this->source), " "), "html"nulltrue);
  97.         echo "\" id=\"";
  98.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["jumpid"]) || array_key_exists("jumpid"$context) ? $context["jumpid"] : (function () { throw new RuntimeError('Variable "jumpid" does not exist.'52$this->source); })()), 52$this->source), "html"nulltrue);
  99.         echo "\" data-bgc=\"";
  100.         echo twig_escape_filter($this->env, ((array_key_exists("backgroundColorClass"$context)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed((isset($context["backgroundColorClass"]) || array_key_exists("backgroundColorClass"$context) ? $context["backgroundColorClass"] : (function () { throw new RuntimeError('Variable "backgroundColorClass" does not exist.'52$this->source); })()), 52$this->source), "")) : ("")), "html"nulltrue);
  101.         echo "\">
  102. \t";
  103.         // line 54
  104.         $this->loadTemplate("includes/areabrick.html.twig""areas/section/view.html.twig"54)->display(twig_array_merge($context, ["id" =>         // line 55
  105. (isset($context["id"]) || array_key_exists("id"$context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.'55$this->source); })()), "controlsAlign" => "top""sectionIndex" => twig_get_attribute($this->env$this->source,         // line 57
  106. (isset($context["info"]) || array_key_exists("info"$context) ? $context["info"] : (function () { throw new RuntimeError('Variable "info" does not exist.'57$this->source); })()), "index", [], "any"falsefalsetrue57), "allowed" =>         // line 58
  107. (isset($context["allowed"]) || array_key_exists("allowed"$context) ? $context["allowed"] : (function () { throw new RuntimeError('Variable "allowed" does not exist.'58$this->source); })())]));
  108.         // line 61
  109.         echo "</div>";
  110.         
  111.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  112.         
  113.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  114.     }
  115.     public function getTemplateName()
  116.     {
  117.         return "areas/section/view.html.twig";
  118.     }
  119.     public function isTraitable()
  120.     {
  121.         return false;
  122.     }
  123.     public function getDebugInfo()
  124.     {
  125.         return array (  121 => 61,  119 => 58,  118 => 57,  117 => 55,  116 => 54,  108 => 52,  105 => 51,  98 => 46,  96 => 33,  92 => 32,  87 => 29,  85 => 27,  81 => 26,  76 => 23,  74 => 21,  70 => 20,  64 => 16,  62 => 14,  58 => 13,  51 => 9,  47 => 7,  45 => 6,);
  126.     }
  127.     public function getSourceContext()
  128.     {
  129.         return new Source("{#
  130. project: Pimcore - Devicenow
  131. User: EBiermann
  132. Year: 2022
  133. #}
  134. {% if editmode %}
  135. <div class=\"admin-container admin-container--limited-width admin-container--section\">
  136. \t<div class=\"admin-container__section\">
  137. \t\t<span class=\"admin-container__title\">{{ 'brick.section.title'|trans({}, 'admin') }}</span>
  138. \t</div>
  139. \t<div class=\"admin-container__configurations\">
  140. \t\t<div class=\"admin-config-item\">
  141. \t\t\t<span class=\"admin-config-item__label\">{{ 'brick.section.option.no-margin-top'|trans({}, 'admin') }}:</span>
  142. \t\t\t{{
  143. \t\t\t\tpimcore_checkbox('nmt', { 'reload': true })
  144. \t\t\t}}
  145. \t\t\t<br>
  146. \t\t\t<span class=\"admin-config-item__label\">{{ 'brick.section.option.no-margin-bottom'|trans({}, 'admin') }}:</span>
  147. \t\t\t{{
  148. \t\t\t\tpimcore_checkbox('nmb', { 'reload': true })
  149. \t\t\t}}
  150. \t\t</div>
  151. \t\t<div class=\"admin-config-item\">
  152. \t\t\t<span class=\"admin-config-item__label\">{{ 'brick.section.option.jump-id'|trans({}, 'admin') }}:</span>
  153. \t\t\t{{
  154. \t\t\t\tpimcore_input('jump-id', { 'reload': false })
  155. \t\t\t}}
  156. \t\t\t<br>
  157. \t\t\t<span class=\"admin-config-item__label\">{{ 'brick.section.option.bgc'|trans({}, 'admin') }}:</span>
  158. \t\t\t{{
  159. \t\t\t\tpimcore_select('bgc', {
  160. \t\t\t\t\t'store': [
  161. \t\t\t\t\t\t['', 'None'],
  162. \t\t\t\t\t\t['section--background section--bgc-0', 'brick.general.value.bgc.0'|trans({}, 'admin')],
  163. \t\t\t\t\t\t['section--background section--bgc-1', 'brick.general.value.bgc.1'|trans({}, 'admin')],
  164. \t\t\t\t\t\t['section--background section--bgc-2', 'brick.general.value.bgc.2'|trans({}, 'admin')],
  165. \t\t\t\t\t\t['section--background section--bgc-3', 'brick.general.value.bgc.3'|trans({}, 'admin')],
  166. \t\t\t\t\t\t['section--background section--bgc-4', 'brick.general.value.bgc.4'|trans({}, 'admin')],
  167. \t\t\t\t\t],
  168. \t\t\t\t\t'defaultValue': '',
  169. \t\t\t\t\t'reload': true
  170. \t\t\t\t})
  171. \t\t\t}}
  172. \t\t</div>
  173. \t</div>
  174. </div>
  175. {% endif %}
  176. <div class=\"section section--content {{ cssClasses|join(' ') }}\" id=\"{{ jumpid }}\" data-bgc=\"{{ backgroundColorClass|default('') }}\">
  177. \t{%
  178. \t\tinclude 'includes/areabrick.html.twig' with {
  179. \t\t\t'id': id,
  180. \t\t\t'controlsAlign': 'top',
  181. \t\t\t'sectionIndex': info.index,
  182. \t\t\t'allowed': allowed
  183. \t\t}
  184. \t%}
  185. </div>""areas/section/view.html.twig""/var/www/snr/staging.nuernberger-bratwuerste.de/templates/areas/section/view.html.twig");
  186.     }
  187.     
  188.     public function checkSecurity()
  189.     {
  190.         static $tags = array("if" => 6"include" => 54);
  191.         static $filters = array("escape" => 9"trans" => 9"join" => 52"default" => 52);
  192.         static $functions = array("pimcore_checkbox" => 15"pimcore_input" => 28"pimcore_select" => 34);
  193.         try {
  194.             $this->sandbox->checkSecurity(
  195.                 ['if''include'],
  196.                 ['escape''trans''join''default'],
  197.                 ['pimcore_checkbox''pimcore_input''pimcore_select']
  198.             );
  199.         } catch (SecurityError $e) {
  200.             $e->setSourceContext($this->source);
  201.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  202.                 $e->setTemplateLine($tags[$e->getTagName()]);
  203.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  204.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  205.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  206.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  207.             }
  208.             throw $e;
  209.         }
  210.     }
  211. }