var/cache/dev/twig/b3/b39a74d75fd4df80aaa417638ae6b71d.php line 64

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_88a9025ccaa324a92be24b823241962f 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.     /**
  74.      * @codeCoverageIgnore
  75.      */
  76.     public function getTemplateName()
  77.     {
  78.         return "areas/product-teaser/view.html.twig";
  79.     }
  80.     /**
  81.      * @codeCoverageIgnore
  82.      */
  83.     public function isTraitable()
  84.     {
  85.         return false;
  86.     }
  87.     /**
  88.      * @codeCoverageIgnore
  89.      */
  90.     public function getDebugInfo()
  91.     {
  92.         return array (  74 => 20,  66 => 17,  64 => 10,  63 => 7,  58 => 6,  54 => 5,  49 => 3,  45 => 1,);
  93.     }
  94.     public function getSourceContext()
  95.     {
  96.         return new Source("<section class=\"teaser-row-container pt-5 pb-3 bg-light text-center\">
  97.     <div class=\"container\">
  98.         <h2>{{ pimcore_input('productTeaserTitle', {'placeholder':'Enter Title'}) }}</h2>
  99.         <div class=\"row mb-3 text-left\">
  100.             {% for i in pimcore_iterate_block(pimcore_block('teaserblock',{class:'row11'})) %}
  101.                 <div class=\"{{ editmode ? '' : 'col-md-4 d-flex align-items-stretch flex-column' }}\">
  102.                     {{
  103.                         pimcore_renderlet('productTeaser', {
  104.                             type: 'object',
  105.                             editmode: editmode,
  106.                             controller: 'App\\\\Controller\\\\ProductController::productTeaserAction',
  107.                             title: 'Drag a product here',
  108.                             className: 'Car',
  109.                             height : 'auto',
  110.                             width: '100%'
  111.                         })
  112.                     }}
  113.                 </div>
  114.             {% endfor %}
  115.         </div>
  116.     </div>
  117. </section>""areas/product-teaser/view.html.twig""/var/www/dev-10/templates/areas/product-teaser/view.html.twig");
  118.     }
  119.     
  120.     public function checkSecurity()
  121.     {
  122.         static $tags = array("for" => 5);
  123.         static $filters = array();
  124.         static $functions = array("pimcore_input" => 3"pimcore_iterate_block" => 5"pimcore_block" => 5"pimcore_renderlet" => 8);
  125.         try {
  126.             $this->sandbox->checkSecurity(
  127.                 ['for'],
  128.                 [],
  129.                 ['pimcore_input''pimcore_iterate_block''pimcore_block''pimcore_renderlet']
  130.             );
  131.         } catch (SecurityError $e) {
  132.             $e->setSourceContext($this->source);
  133.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  134.                 $e->setTemplateLine($tags[$e->getTagName()]);
  135.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  136.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  137.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  138.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  139.             }
  140.             throw $e;
  141.         }
  142.     }
  143. }