var/cache/dev/twig/30/30639dbde4d0a8ac689b5f6eb71ffeb3.php line 44

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