var/cache/dev/twig/88/88a925d74938e8d8f07476d2ea28a609.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/product-teaser/view.html.twig */
  14. class __TwigTemplate_2ad36bc3602fad35132f8da83aa5441c 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/product-teaser/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/product-teaser/view.html.twig"));
  35.         // line 1
  36.         echo "<section class=\"teaser-row-container pt-5 pb-3 bg-light text-center\">
  37.     <div class=\"container\">
  38.         <h2>";
  39.         // line 3
  40.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""productTeaserTitle", ["placeholder" => "Enter Title"]);
  41.         echo "</h2>
  42.         <div class=\"row mb-3 text-left\">
  43.             ";
  44.         // line 5
  45.         $context['_parent'] = $context;
  46.         $context['_seq'] = twig_ensure_traversable($this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->getBlockIterator($this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"block""teaserblock", ["class" => "row11"])));
  47.         foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
  48.             // line 6
  49.             echo "                <div class=\"";
  50.             echo (((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'6$this->source); })())) ? ("") : ("col-md-4 d-flex align-items-stretch flex-column"));
  51.             echo "\">
  52.                     ";
  53.             // line 7
  54.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"renderlet""productTeaser", ["type" => "object""editmode" =>             // line 10
  55. (isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'10$this->source); })()), "controller" => "App\\Controller\\ProductController::productTeaserAction""title" => "Drag a product here""className" => "Car""height" => "auto""width" => "100%"]);
  56.             // line 17
  57.             echo "
  58.                 </div>
  59.             ";
  60.         }
  61.         $_parent $context['_parent'];
  62.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
  63.         $context array_intersect_key($context$_parent) + $_parent;
  64.         // line 20
  65.         echo "        </div>
  66.     </div>
  67. </section>";
  68.         
  69.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  70.         
  71.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  72.     }
  73.     public function getTemplateName()
  74.     {
  75.         return "areas/product-teaser/view.html.twig";
  76.     }
  77.     public function isTraitable()
  78.     {
  79.         return false;
  80.     }
  81.     public function getDebugInfo()
  82.     {
  83.         return array (  74 => 20,  66 => 17,  64 => 10,  63 => 7,  58 => 6,  54 => 5,  49 => 3,  45 => 1,);
  84.     }
  85.     public function getSourceContext()
  86.     {
  87.         return new Source("<section class=\"teaser-row-container pt-5 pb-3 bg-light text-center\">
  88.     <div class=\"container\">
  89.         <h2>{{ pimcore_input('productTeaserTitle', {'placeholder':'Enter Title'}) }}</h2>
  90.         <div class=\"row mb-3 text-left\">
  91.             {% for i in pimcore_iterate_block(pimcore_block('teaserblock',{class:'row11'})) %}
  92.                 <div class=\"{{ editmode ? '' : 'col-md-4 d-flex align-items-stretch flex-column' }}\">
  93.                     {{
  94.                         pimcore_renderlet('productTeaser', {
  95.                             type: 'object',
  96.                             editmode: editmode,
  97.                             controller: 'App\\\\Controller\\\\ProductController::productTeaserAction',
  98.                             title: 'Drag a product here',
  99.                             className: 'Car',
  100.                             height : 'auto',
  101.                             width: '100%'
  102.                         })
  103.                     }}
  104.                 </div>
  105.             {% endfor %}
  106.         </div>
  107.     </div>
  108. </section>""areas/product-teaser/view.html.twig""/www/htdocs/w0068a70/pimcore.curo-web.de/my-project/templates/areas/product-teaser/view.html.twig");
  109.     }
  110.     
  111.     public function checkSecurity()
  112.     {
  113.         static $tags = array("for" => 5);
  114.         static $filters = array();
  115.         static $functions = array("pimcore_input" => 3"pimcore_iterate_block" => 5"pimcore_block" => 5"pimcore_renderlet" => 8);
  116.         try {
  117.             $this->sandbox->checkSecurity(
  118.                 ['for'],
  119.                 [],
  120.                 ['pimcore_input''pimcore_iterate_block''pimcore_block''pimcore_renderlet']
  121.             );
  122.         } catch (SecurityError $e) {
  123.             $e->setSourceContext($this->source);
  124.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  125.                 $e->setTemplateLine($tags[$e->getTagName()]);
  126.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  127.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  128.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  129.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  130.             }
  131.             throw $e;
  132.         }
  133.     }
  134. }