var/cache/dev/twig/30/30a0e7bb86fd5c6071209fe6e28f3eb0.php line 69

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/quote/includes/quote.html.twig */
  14. class __TwigTemplate_30d09074393e025e13568cfa8b1f838d 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/quote/includes/quote.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/quote/includes/quote.html.twig"));
  35.         // line 6
  36.         echo "<div class=\"area quote\">
  37. \t<div class=\"quote__ornament quote__ornament--top\">
  38. \t\t";
  39.         // line 8
  40.         echo $this->extensions['App\Twig\Extension\SvgExtension']->getInline("ornament-6-top");
  41.         echo "
  42. \t</div>
  43. \t<div class=\"quote__content\">
  44. \t\t";
  45.         // line 13
  46.         if (((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'13$this->source); })()) ||  !twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""headline"), "isEmpty", [], "method"falsefalsetrue13))) {
  47.             // line 14
  48.             echo "\t\t\t<div class=\"quote__title quote__title--headline\">";
  49.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""headline", ["placeholder" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("brick.quote.placeholder.headline", [], "admin")]);
  50.             echo "</div>
  51. \t\t";
  52.         }
  53.         // line 16
  54.         echo "
  55. \t\t<div class=\"quote__text\">
  56. \t\t\t";
  57.         // line 18
  58.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"textarea""text", ["nl2br" => true"placeholder" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("brick.quote.placeholder.text", [], "admin")]);
  59.         // line 23
  60.         echo "
  61. \t\t</div>
  62. \t</div>
  63. \t<div class=\"quote__ornament quote__ornament--bottom\">
  64. \t\t";
  65.         // line 28
  66.         echo $this->extensions['App\Twig\Extension\SvgExtension']->getInline("ornament-6-bottom");
  67.         echo "
  68. \t</div>
  69. \t";
  70.         // line 31
  71.         if (((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'31$this->source); })()) ||  !twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""subline"), "isEmpty", [], "method"falsefalsetrue31))) {
  72.             // line 32
  73.             echo "\t\t<div class=\"quote__title quote__title--subline\">";
  74.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""subline", ["placeholder" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("brick.quote.placeholder.subline", [], "admin")]);
  75.             echo "</div>
  76. \t";
  77.         }
  78.         // line 34
  79.         echo "</div>";
  80.         
  81.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  82.         
  83.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  84.     }
  85.     public function getTemplateName()
  86.     {
  87.         return "areas/quote/includes/quote.html.twig";
  88.     }
  89.     public function isTraitable()
  90.     {
  91.         return false;
  92.     }
  93.     public function getDebugInfo()
  94.     {
  95.         return array (  92 => 34,  86 => 32,  84 => 31,  78 => 28,  71 => 23,  69 => 18,  65 => 16,  59 => 14,  57 => 13,  49 => 8,  45 => 6,);
  96.     }
  97.     public function getSourceContext()
  98.     {
  99.         return new Source("{#
  100. project: Pimcore - Schutzverband Nuernberg Rostbratwuerste
  101. User: erikb
  102. Year: 2023
  103. #}
  104. <div class=\"area quote\">
  105. \t<div class=\"quote__ornament quote__ornament--top\">
  106. \t\t{{ get_svg_inline('ornament-6-top') }}
  107. \t</div>
  108. \t<div class=\"quote__content\">
  109. \t\t{% if editmode or not pimcore_input('headline').isEmpty() %}
  110. \t\t\t<div class=\"quote__title quote__title--headline\">{{ pimcore_input('headline', { placeholder: 'brick.quote.placeholder.headline'|trans({}, 'admin') }) }}</div>
  111. \t\t{% endif %}
  112. \t\t<div class=\"quote__text\">
  113. \t\t\t{{
  114. \t\t\tpimcore_textarea('text', {
  115. \t\t\t\tnl2br: true,
  116. \t\t\t\tplaceholder: 'brick.quote.placeholder.text'|trans({}, 'admin')
  117. \t\t\t})
  118. \t\t\t}}
  119. \t\t</div>
  120. \t</div>
  121. \t<div class=\"quote__ornament quote__ornament--bottom\">
  122. \t\t{{ get_svg_inline('ornament-6-bottom') }}
  123. \t</div>
  124. \t{% if editmode or not pimcore_input('subline').isEmpty() %}
  125. \t\t<div class=\"quote__title quote__title--subline\">{{ pimcore_input('subline', { placeholder: 'brick.quote.placeholder.subline'|trans({}, 'admin') }) }}</div>
  126. \t{% endif %}
  127. </div>""areas/quote/includes/quote.html.twig""/var/www/snr/staging.nuernberger-bratwuerste.de/templates/areas/quote/includes/quote.html.twig");
  128.     }
  129.     
  130.     public function checkSecurity()
  131.     {
  132.         static $tags = array("if" => 13);
  133.         static $filters = array("trans" => 14);
  134.         static $functions = array("get_svg_inline" => 8"pimcore_input" => 13"pimcore_textarea" => 19);
  135.         try {
  136.             $this->sandbox->checkSecurity(
  137.                 ['if'],
  138.                 ['trans'],
  139.                 ['get_svg_inline''pimcore_input''pimcore_textarea']
  140.             );
  141.         } catch (SecurityError $e) {
  142.             $e->setSourceContext($this->source);
  143.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  144.                 $e->setTemplateLine($tags[$e->getTagName()]);
  145.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  146.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  147.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  148.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  149.             }
  150.             throw $e;
  151.         }
  152.     }
  153. }