var/cache/dev/twig/49/494411675464f2b3d6da7186bb7c3fb0.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_68d2a9ed40eb225238baa119a4a4b39a 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.     public function getTemplateName()
  247.     {
  248.         return "product/detail_accessory.html.twig";
  249.     }
  250.     public function isTraitable()
  251.     {
  252.         return false;
  253.     }
  254.     public function getDebugInfo()
  255.     {
  256.         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,);
  257.     }
  258.     public function getSourceContext()
  259.     {
  260.         return new Source("{# @var product \\App\\Model\\Product\\AccessoryPart#}
  261. {# @var compatibleTo \\Pimcore\\Bundle\\EcommerceFrameworkBundle\\IndexService\\ProductList\\ProductListInterface #}
  262. {% extends 'product/detail.html.twig' %}
  263. {% block additionalimages %}
  264. {% endblock %}
  265. {% block colorvariants %}
  266. {% endblock %}
  267. {% block detailinfos %}
  268. {% endblock %}
  269. {% block salesinfos %}
  270.     {% if product.saleInformation.saleInformation %}
  271.         <dl class=\"item-property col-6 mb-0\">
  272.             <dt>{{ 'general.condition' | trans }}</dt>
  273.             <dd>{{ ('attribute.' ~ product.saleInformation.saleInformation.condition) | trans}}</dd>
  274.         </dl>
  275.         <dl class=\"item-property col-6 mb-0\">
  276.             <dt>{{ 'general.milage' | trans }}</dt>
  277.             <dd>{{ product.saleInformation.saleInformation.milage }}</dd>
  278.         </dl>
  279.         <dl class=\"item-property col-6 mb-0\">
  280.             <dt>{{ 'general.available-pieces' | trans }}</dt>
  281.             <dd>{{ product.saleInformation.saleInformation.availabilityPieces }}</dd>
  282.         </dl>
  283.     {% endif %}
  284. {% endblock %}
  285. {% block description %}
  286. {% endblock %}
  287. {% block attributes %}
  288. {% endblock %}
  289. {% block productrelations %}
  290.     {%  if(compatibleTo.count) %}
  291.         <div class=\"mt-5 col-12\">
  292.             <h4 class=\"text-center\">{{ 'general.compatibleTo' | trans }}</h4>
  293.             <div class=\"row\">
  294.                 {% for item in compatibleTo %}
  295.                     <div class=\"col-md-3 d-flex align-items-stretch\">
  296.                         {% include 'product/product_teaser.html.twig' with {'product': item} %}
  297.                     </div>
  298.                 {% endfor %}
  299.             </div>
  300.         </div>
  301.     {% endif %}
  302. {% endblock %}""product/detail_accessory.html.twig""/var/www/www-data/data/www/pimcore.dev2.nowmedia.ru/templates/product/detail_accessory.html.twig");
  303.     }
  304.     
  305.     public function checkSecurity()
  306.     {
  307.         static $tags = array("if" => 17"for" => 53"include" => 56);
  308.         static $filters = array("escape" => 20"trans" => 20);
  309.         static $functions = array();
  310.         try {
  311.             $this->sandbox->checkSecurity(
  312.                 ['if''for''include'],
  313.                 ['escape''trans'],
  314.                 []
  315.             );
  316.         } catch (SecurityError $e) {
  317.             $e->setSourceContext($this->source);
  318.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  319.                 $e->setTemplateLine($tags[$e->getTagName()]);
  320.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  321.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  322.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  323.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  324.             }
  325.             throw $e;
  326.         }
  327.     }
  328. }