var/cache/dev/twig/cd/cd211592c7079d38c044a292200dea7e.php line 56

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. /* product/detail_accessory.html.twig */
  14. class __TwigTemplate_13b26fce4eab7b90606f09b4b0660bfe 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.             'additionalimages' => [$this'block_additionalimages'],
  24.             'colorvariants' => [$this'block_colorvariants'],
  25.             'detailinfos' => [$this'block_detailinfos'],
  26.             'salesinfos' => [$this'block_salesinfos'],
  27.             'description' => [$this'block_description'],
  28.             'attributes' => [$this'block_attributes'],
  29.             'productrelations' => [$this'block_productrelations'],
  30.         ];
  31.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  32.         $this->checkSecurity();
  33.     }
  34.     protected function doGetParent(array $context)
  35.     {
  36.         // line 4
  37.         return "product/detail.html.twig";
  38.     }
  39.     protected function doDisplay(array $context, array $blocks = [])
  40.     {
  41.         $macros $this->macros;
  42.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""product/detail_accessory.html.twig"));
  44.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""product/detail_accessory.html.twig"));
  46.         $this->parent $this->loadTemplate("product/detail.html.twig""product/detail_accessory.html.twig"4);
  47.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  48.         
  49.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  50.         
  51.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  52.     }
  53.     // line 6
  54.     public function block_additionalimages($context, array $blocks = [])
  55.     {
  56.         $macros $this->macros;
  57.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""additionalimages"));
  59.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""additionalimages"));
  61.         
  62.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  63.         
  64.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  65.     }
  66.     // line 9
  67.     public function block_colorvariants($context, array $blocks = [])
  68.     {
  69.         $macros $this->macros;
  70.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  71.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""colorvariants"));
  72.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  73.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""colorvariants"));
  74.         
  75.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  76.         
  77.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  78.     }
  79.     // line 12
  80.     public function block_detailinfos($context, array $blocks = [])
  81.     {
  82.         $macros $this->macros;
  83.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  84.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""detailinfos"));
  85.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  86.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""detailinfos"));
  87.         
  88.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  89.         
  90.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  91.     }
  92.     // line 15
  93.     public function block_salesinfos($context, array $blocks = [])
  94.     {
  95.         $macros $this->macros;
  96.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  97.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""salesinfos"));
  98.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  99.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""salesinfos"));
  100.         // line 16
  101.         echo "
  102.     ";
  103.         // line 17
  104.         if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'17$this->source); })()), "saleInformation", [], "any"falsefalsetrue17), "saleInformation", [], "any"falsefalsetrue17)) {
  105.             // line 18
  106.             echo "
  107.         <dl class=\"item-property col-6 mb-0\">
  108.             <dt>";
  109.             // line 20
  110.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.condition"), "html"nulltrue);
  111.             echo "</dt>
  112.             <dd>";
  113.             // line 21
  114.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(("attribute." $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'21$this->source); })()), "saleInformation", [], "any"falsefalsetrue21), "saleInformation", [], "any"falsefalsetrue21), "condition", [], "any"falsefalsetrue21), 21$this->source))), "html"nulltrue);
  115.             echo "</dd>
  116.         </dl>
  117.         <dl class=\"item-property col-6 mb-0\">
  118.             <dt>";
  119.             // line 25
  120.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.milage"), "html"nulltrue);
  121.             echo "</dt>
  122.             <dd>";
  123.             // line 26
  124.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'26$this->source); })()), "saleInformation", [], "any"falsefalsetrue26), "saleInformation", [], "any"falsefalsetrue26), "milage", [], "any"falsefalsetrue26), 26$this->source), "html"nulltrue);
  125.             echo "</dd>
  126.         </dl>
  127.         <dl class=\"item-property col-6 mb-0\">
  128.             <dt>";
  129.             // line 30
  130.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.available-pieces"), "html"nulltrue);
  131.             echo "</dt>
  132.             <dd>";
  133.             // line 31
  134.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'31$this->source); })()), "saleInformation", [], "any"falsefalsetrue31), "saleInformation", [], "any"falsefalsetrue31), "availabilityPieces", [], "any"falsefalsetrue31), 31$this->source), "html"nulltrue);
  135.             echo "</dd>
  136.         </dl>
  137.     ";
  138.         }
  139.         // line 35
  140.         echo "
  141. ";
  142.         
  143.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  144.         
  145.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  146.     }
  147.     // line 39
  148.     public function block_description($context, array $blocks = [])
  149.     {
  150.         $macros $this->macros;
  151.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  152.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""description"));
  153.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  154.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""description"));
  155.         
  156.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  157.         
  158.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  159.     }
  160.     // line 42
  161.     public function block_attributes($context, array $blocks = [])
  162.     {
  163.         $macros $this->macros;
  164.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  165.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""attributes"));
  166.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  167.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""attributes"));
  168.         
  169.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  170.         
  171.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  172.     }
  173.     // line 45
  174.     public function block_productrelations($context, array $blocks = [])
  175.     {
  176.         $macros $this->macros;
  177.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  178.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""productrelations"));
  179.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  180.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""productrelations"));
  181.         // line 46
  182.         echo "
  183.     ";
  184.         // line 47
  185.         if (twig_get_attribute($this->env$this->source, (isset($context["compatibleTo"]) || array_key_exists("compatibleTo"$context) ? $context["compatibleTo"] : (function () { throw new RuntimeError('Variable "compatibleTo" does not exist.'47$this->source); })()), "count", [], "any"falsefalsetrue47)) {
  186.             // line 48
  187.             echo "
  188.         <div class=\"mt-5 col-12\">
  189.             <h4 class=\"text-center\">";
  190.             // line 50
  191.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.compatibleTo"), "html"nulltrue);
  192.             echo "</h4>
  193.             <div class=\"row\">
  194.                 ";
  195.             // line 53
  196.             $context['_parent'] = $context;
  197.             $context['_seq'] = twig_ensure_traversable((isset($context["compatibleTo"]) || array_key_exists("compatibleTo"$context) ? $context["compatibleTo"] : (function () { throw new RuntimeError('Variable "compatibleTo" does not exist.'53$this->source); })()));
  198.             $context['loop'] = [
  199.               'parent' => $context['_parent'],
  200.               'index0' => 0,
  201.               'index'  => 1,
  202.               'first'  => true,
  203.             ];
  204.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  205.                 $length count($context['_seq']);
  206.                 $context['loop']['revindex0'] = $length 1;
  207.                 $context['loop']['revindex'] = $length;
  208.                 $context['loop']['length'] = $length;
  209.                 $context['loop']['last'] = === $length;
  210.             }
  211.             foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  212.                 // line 54
  213.                 echo "
  214.                     <div class=\"col-md-3 d-flex align-items-stretch\">
  215.                         ";
  216.                 // line 56
  217.                 $this->loadTemplate("product/product_teaser.html.twig""product/detail_accessory.html.twig"56)->display(twig_array_merge($context, ["product" => $context["item"]]));
  218.                 // line 57
  219.                 echo "                    </div>
  220.                 ";
  221.                 ++$context['loop']['index0'];
  222.                 ++$context['loop']['index'];
  223.                 $context['loop']['first'] = false;
  224.                 if (isset($context['loop']['length'])) {
  225.                     --$context['loop']['revindex0'];
  226.                     --$context['loop']['revindex'];
  227.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  228.                 }
  229.             }
  230.             $_parent $context['_parent'];
  231.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  232.             $context array_intersect_key($context$_parent) + $_parent;
  233.             // line 60
  234.             echo "            </div>
  235.         </div>
  236.     ";
  237.         }
  238.         // line 65
  239.         echo "
  240. ";
  241.         
  242.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  243.         
  244.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  245.     }
  246.     /**
  247.      * @codeCoverageIgnore
  248.      */
  249.     public function getTemplateName()
  250.     {
  251.         return "product/detail_accessory.html.twig";
  252.     }
  253.     /**
  254.      * @codeCoverageIgnore
  255.      */
  256.     public function isTraitable()
  257.     {
  258.         return false;
  259.     }
  260.     /**
  261.      * @codeCoverageIgnore
  262.      */
  263.     public function getDebugInfo()
  264.     {
  265.         return array (  290 => 65,  283 => 60,  267 => 57,  265 => 56,  261 => 54,  244 => 53,  238 => 50,  234 => 48,  232 => 47,  229 => 46,  219 => 45,  201 => 42,  183 => 39,  172 => 35,  165 => 31,  161 => 30,  154 => 26,  150 => 25,  143 => 21,  139 => 20,  135 => 18,  133 => 17,  130 => 16,  120 => 15,  102 => 12,  84 => 9,  66 => 6,  43 => 4,);
  266.     }
  267.     public function getSourceContext()
  268.     {
  269.         return new Source("{# @var product \\App\\Model\\Product\\AccessoryPart#}
  270. {# @var compatibleTo \\Pimcore\\Bundle\\EcommerceFrameworkBundle\\IndexService\\ProductList\\ProductListInterface #}
  271. {% extends 'product/detail.html.twig' %}
  272. {% block additionalimages %}
  273. {% endblock %}
  274. {% block colorvariants %}
  275. {% endblock %}
  276. {% block detailinfos %}
  277. {% endblock %}
  278. {% block salesinfos %}
  279.     {% if product.saleInformation.saleInformation %}
  280.         <dl class=\"item-property col-6 mb-0\">
  281.             <dt>{{ 'general.condition' | trans }}</dt>
  282.             <dd>{{ ('attribute.' ~ product.saleInformation.saleInformation.condition) | trans}}</dd>
  283.         </dl>
  284.         <dl class=\"item-property col-6 mb-0\">
  285.             <dt>{{ 'general.milage' | trans }}</dt>
  286.             <dd>{{ product.saleInformation.saleInformation.milage }}</dd>
  287.         </dl>
  288.         <dl class=\"item-property col-6 mb-0\">
  289.             <dt>{{ 'general.available-pieces' | trans }}</dt>
  290.             <dd>{{ product.saleInformation.saleInformation.availabilityPieces }}</dd>
  291.         </dl>
  292.     {% endif %}
  293. {% endblock %}
  294. {% block description %}
  295. {% endblock %}
  296. {% block attributes %}
  297. {% endblock %}
  298. {% block productrelations %}
  299.     {%  if(compatibleTo.count) %}
  300.         <div class=\"mt-5 col-12\">
  301.             <h4 class=\"text-center\">{{ 'general.compatibleTo' | trans }}</h4>
  302.             <div class=\"row\">
  303.                 {% for item in compatibleTo %}
  304.                     <div class=\"col-md-3 d-flex align-items-stretch\">
  305.                         {% include 'product/product_teaser.html.twig' with {'product': item} %}
  306.                     </div>
  307.                 {% endfor %}
  308.             </div>
  309.         </div>
  310.     {% endif %}
  311. {% endblock %}""product/detail_accessory.html.twig""/var/www/dev-10/templates/product/detail_accessory.html.twig");
  312.     }
  313.     
  314.     public function checkSecurity()
  315.     {
  316.         static $tags = array("if" => 17"for" => 53"include" => 56);
  317.         static $filters = array("escape" => 20"trans" => 20);
  318.         static $functions = array();
  319.         try {
  320.             $this->sandbox->checkSecurity(
  321.                 ['if''for''include'],
  322.                 ['escape''trans'],
  323.                 []
  324.             );
  325.         } catch (SecurityError $e) {
  326.             $e->setSourceContext($this->source);
  327.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  328.                 $e->setTemplateLine($tags[$e->getTagName()]);
  329.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  330.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  331.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  332.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  333.             }
  334.             throw $e;
  335.         }
  336.     }
  337. }