var/cache/dev/twig/0d/0dde84573751549483220250ea488cfd7aa87c4ad1f6fa05e15db361fd77a522.php line 179

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Markup;
  6. use Twig\Sandbox\SecurityError;
  7. use Twig\Sandbox\SecurityNotAllowedTagError;
  8. use Twig\Sandbox\SecurityNotAllowedFilterError;
  9. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  10. use Twig\Source;
  11. use Twig\Template;
  12. /* component/product/list/box/default.html.twig */
  13. class __TwigTemplate_0970138c984b46661885bbac8a5c7853c79ad947205eb99a4f076d66d82f3ad7 extends \Twig\Template
  14. {
  15.     public function __construct(Environment $env)
  16.     {
  17.         parent::__construct($env);
  18.         $this->parent false;
  19.         $this->blocks = [
  20.         ];
  21.     }
  22.     protected function doDisplay(array $context, array $blocks = [])
  23.     {
  24.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
  25.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""component/product/list/box/default.html.twig"));
  26.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
  27.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""component/product/list/box/default.html.twig"));
  28.         // line 1
  29.         $context["id"] = $this->getAttribute((isset($context["product"]) ? $context["product"] : $this->getContext($context"product")), "getId", [], "method");
  30.         // line 2
  31.         $context["name"] = $this->getAttribute((isset($context["product"]) ? $context["product"] : $this->getContext($context"product")), "getName", [], "method");
  32.         // line 3
  33.         $context["link"] = $this->getAttribute((isset($context["product"]) ? $context["product"] : $this->getContext($context"product")), "getLink", [], "method");
  34.         // line 4
  35.         $context["annot"] = strip_tags($this->getAttribute((isset($context["product"]) ? $context["product"] : $this->getContext($context"product")), "getAnnotation", [], "method"));
  36.         // line 5
  37.         $context["price"] = $this->getAttribute((isset($context["price_calculator"]) ? $context["price_calculator"] : $this->getContext($context"price_calculator")), "calculate", [=> (isset($context["product"]) ? $context["product"] : $this->getContext($context"product"))], "method");
  38.         // line 6
  39.         $context["availability"] = $this->getAttribute((isset($context["availability"]) ? $context["availability"] : $this->getContext($context"availability")), "get", [=> (isset($context["product"]) ? $context["product"] : $this->getContext($context"product"))], "method");
  40.         // line 7
  41.         echo "
  42. <div class=\"productList__item col-xs-12 col-md-";
  43.         // line 8
  44.         echo twig_escape_filter($this->env, (isset($context["colSize"]) ? $context["colSize"] : $this->getContext($context"colSize")), "html"nulltrue);
  45.         echo "\">
  46.     <div class=\"productList__inner\">
  47.         <a class=\"productList__img block cf\" href=\"";
  48.         // line 10
  49.         echo twig_escape_filter($this->env, (isset($context["link"]) ? $context["link"] : $this->getContext($context"link")), "html"nulltrue);
  50.         echo "\" title=\"";
  51.         echo twig_escape_filter($this->env, (isset($context["name"]) ? $context["name"] : $this->getContext($context"name")), "html"nulltrue);
  52.         echo "\" data-gtm=\"";
  53.         echo twig_escape_filter($this->env$this->getAttribute((isset($context["product"]) ? $context["product"] : $this->getContext($context"product")), "getGtmId", [], "method"), "html"nulltrue);
  54.         echo "\">
  55.             <img src=\"";
  56.         // line 11
  57.         echo twig_escape_filter($this->env$this->getAttribute((isset($context["product"]) ? $context["product"] : $this->getContext($context"product")), "getImageUri", [=> "m"], "method"), "html"nulltrue);
  58.         echo "\" alt=\"";
  59.         echo twig_escape_filter($this->env, (isset($context["name"]) ? $context["name"] : $this->getContext($context"name")), "html"nulltrue);
  60.         echo "\">
  61.             ";
  62.         // line 13
  63.         $this->loadTemplate("component/product/list/labels.html.twig""component/product/list/box/default.html.twig"13)->display(twig_array_merge($context, ["price" => (isset($context["price"]) ? $context["price"] : $this->getContext($context"price")), "product" => (isset($context["product"]) ? $context["product"] : $this->getContext($context"product"))]));
  64.         // line 14
  65.         echo "
  66.         </a>
  67.         ";
  68.         // line 16
  69.         $this->loadTemplate("component/product/common/rating/stars.html.twig""component/product/list/box/default.html.twig"16)->display(twig_array_merge($context, ["stars" => $this->getAttribute((isset($context["product"]) ? $context["product"] : $this->getContext($context"product")), "getUserRatingStars", [], "method"), "rating" => $this->getAttribute((isset($context["product"]) ? $context["product"] : $this->getContext($context"product")), "getUserRating", [], "method")]));
  70.         // line 17
  71.         echo "        <h3 class=\"productList__title\"><a href=\"";
  72.         echo twig_escape_filter($this->env, (isset($context["link"]) ? $context["link"] : $this->getContext($context"link")), "html"nulltrue);
  73.         echo "\" title=\"";
  74.         echo twig_escape_filter($this->env, (isset($context["name"]) ? $context["name"] : $this->getContext($context"name")), "html"nulltrue);
  75.         echo "\" data-gtm=\"";
  76.         echo twig_escape_filter($this->env$this->getAttribute((isset($context["product"]) ? $context["product"] : $this->getContext($context"product")), "getGtmId", [], "method"), "html"nulltrue);
  77.         echo "\">";
  78.         echo twig_escape_filter($this->env, (((twig_length_filter($this->env, (isset($context["name"]) ? $context["name"] : $this->getContext($context"name"))) > (isset($context["nameLength"]) ? $context["nameLength"] : $this->getContext($context"nameLength")))) ? ((twig_slice($this->env, (isset($context["name"]) ? $context["name"] : $this->getContext($context"name")), 0, (isset($context["nameLength"]) ? $context["nameLength"] : $this->getContext($context"nameLength"))) . "...")) : ((isset($context["name"]) ? $context["name"] : $this->getContext($context"name")))), "html"nulltrue);
  79.         echo "</a></h3>
  80.         <div class=\"productList__info cf\">
  81.             <div class=\"productList__info__col price\">
  82.             ";
  83.         // line 21
  84.         if (($this->getAttribute((isset($context["price"]) ? $context["price"] : $this->getContext($context"price")), "excVat", []) > 0)) {
  85.             // line 22
  86.             echo "                ";
  87.             // line 23
  88.             echo "                ";
  89.             $context["priceToCompare"] = (($this->getAttribute((isset($context["settings"]) ? $context["settings"] : $this->getContext($context"settings")), "priceIncVat", [])) ? ($this->getAttribute((isset($context["price"]) ? $context["price"] : $this->getContext($context"price")), "incVat", [])) : ($this->getAttribute((isset($context["price"]) ? $context["price"] : $this->getContext($context"price")), "excVat", [])));
  90.             // line 24
  91.             echo "                ";
  92.             if (((($this->getAttribute((isset($context["price"]) ? $context["price"] : null), "rrp", [], "any"truetrue) && ($this->getAttribute((isset($context["price"]) ? $context["price"] : $this->getContext($context"price")), "rrp", []) > 0)) && ($this->getAttribute((isset($context["price"]) ? $context["price"] : $this->getContext($context"price")), "rrp", []) > (isset($context["priceToCompare"]) ? $context["priceToCompare"] : $this->getContext($context"priceToCompare")))) &&  !($this->getAttribute((isset($context["product"]) ? $context["product"] : $this->getContext($context"product")), "getTypes", []) && twig_length_filter($this->env$this->getAttribute((isset($context["product"]) ? $context["product"] : $this->getContext($context"product")), "getVariant", []))))) {
  93.                 // line 25
  94.                 echo "
  95.                     <small class=\"price price--comPrice\">
  96.                     ";
  97.                 // line 27
  98.                 if ($this->getAttribute((isset($context["category"]) ? $context["category"] : $this->getContext($context"category")), "getDecimalPricesStatus", [], "method")) {
  99.                     // line 28
  100.                     echo "                        ";
  101.                     echo $this->getAttribute((isset($context["currency"]) ? $context["currency"] : $this->getContext($context"currency")), "formatCustom", [=> $this->getAttribute((isset($context["price"]) ? $context["price"] : $this->getContext($context"price")), "rrp", [])], "method");
  102.                     echo "
  103.                     ";
  104.                 } else {
  105.                     // line 30
  106.                     echo "                        ";
  107.                     echo $this->getAttribute((isset($context["currency"]) ? $context["currency"] : $this->getContext($context"currency")), "format", [=> $this->getAttribute((isset($context["price"]) ? $context["price"] : $this->getContext($context"price")), "rrp", [])], "method");
  108.                     echo "
  109.                     ";
  110.                 }
  111.                 // line 32
  112.                 echo "                    </small>
  113.                 ";
  114.             }
  115.             // line 35
  116.             echo "                ";
  117.             // line 36
  118.             echo "                ";
  119.             if ($this->getAttribute((isset($context["settings"]) ? $context["settings"] : $this->getContext($context"settings")), "priceIncVat", [])) {
  120.                 // line 37
  121.                 echo "
  122.                     ";
  123.                 // line 38
  124.                 if ($this->getAttribute((isset($context["category"]) ? $context["category"] : $this->getContext($context"category")), "getDecimalPricesStatus", [], "method")) {
  125.                     // line 39
  126.                     echo "                        <strong class=\"price price--incVat\">";
  127.                     echo $this->getAttribute((isset($context["currency"]) ? $context["currency"] : $this->getContext($context"currency")), "formatCustom", [=> $this->getAttribute((isset($context["price"]) ? $context["price"] : $this->getContext($context"price")), "incVat", [])], "method");
  128.                     echo "</strong>
  129.                         ";
  130.                     // line 40
  131.                     if ($this->getAttribute((isset($context["settings"]) ? $context["settings"] : $this->getContext($context"settings")), "listPriceExtended", [])) {
  132.                         // line 41
  133.                         echo "                            <div class=\"price price--excVat\">";
  134.                         echo $this->getAttribute((isset($context["currency"]) ? $context["currency"] : $this->getContext($context"currency")), "formatCustom", [=> $this->getAttribute((isset($context["price"]) ? $context["price"] : $this->getContext($context"price")), "excVat", [])], "method");
  135.                         echo " ";
  136.                         echo twig_escape_filter($this->env$this->getAttribute((isset($context["translator"]) ? $context["translator"] : $this->getContext($context"translator")), "getValue", [=> "BEZ_DPH"], "method"), "html"nulltrue);
  137.                         echo "</div>
  138.                         ";
  139.                     }
  140.                     // line 43
  141.                     echo "                    ";
  142.                 } else {
  143.                     // line 44
  144.                     echo "                        <strong class=\"price price--incVat\">";
  145.                     echo $this->getAttribute((isset($context["currency"]) ? $context["currency"] : $this->getContext($context"currency")), "format", [=> $this->getAttribute((isset($context["price"]) ? $context["price"] : $this->getContext($context"price")), "incVat", [])], "method");
  146.                     echo "</strong>
  147.                         ";
  148.                     // line 45
  149.                     if ($this->getAttribute((isset($context["settings"]) ? $context["settings"] : $this->getContext($context"settings")), "listPriceExtended", [])) {
  150.                         // line 46
  151.                         echo "                            <div class=\"price price--excVat\">";
  152.                         echo $this->getAttribute((isset($context["currency"]) ? $context["currency"] : $this->getContext($context"currency")), "format", [=> $this->getAttribute((isset($context["price"]) ? $context["price"] : $this->getContext($context"price")), "excVat", [])], "method");
  153.                         echo " ";
  154.                         echo twig_escape_filter($this->env$this->getAttribute((isset($context["translator"]) ? $context["translator"] : $this->getContext($context"translator")), "getValue", [=> "BEZ_DPH"], "method"), "html"nulltrue);
  155.                         echo "</div>
  156.                         ";
  157.                     }
  158.                     // line 48
  159.                     echo "                    ";
  160.                 }
  161.                 // line 49
  162.                 echo "
  163.                 ";
  164.             } else {
  165.                 // line 51
  166.                 echo "
  167.                     ";
  168.                 // line 52
  169.                 if ($this->getAttribute((isset($context["category"]) ? $context["category"] : $this->getContext($context"category")), "getDecimalPricesStatus", [], "method")) {
  170.                     // line 53
  171.                     echo "                        <strong class=\"price price--incVat\">";
  172.                     echo $this->getAttribute((isset($context["currency"]) ? $context["currency"] : $this->getContext($context"currency")), "formatCustom", [=> $this->getAttribute((isset($context["price"]) ? $context["price"] : $this->getContext($context"price")), "excVat", [])], "method");
  173.                     echo "</strong> ";
  174.                     echo twig_escape_filter($this->env$this->getAttribute((isset($context["translator"]) ? $context["translator"] : $this->getContext($context"translator")), "getValue", [=> "BEZ_DPH"=> "bez DPH"], "method"), "html"nulltrue);
  175.                     // line 54
  176.                     echo "                        ";
  177.                     if ($this->getAttribute((isset($context["settings"]) ? $context["settings"] : $this->getContext($context"settings")), "listPriceExtended", [])) {
  178.                         // line 55
  179.                         echo "                            <div class=\"price price--excVat\">";
  180.                         echo $this->getAttribute((isset($context["currency"]) ? $context["currency"] : $this->getContext($context"currency")), "formatCustom", [=> $this->getAttribute((isset($context["price"]) ? $context["price"] : $this->getContext($context"price")), "incVat", [])], "method");
  181.                         echo "  ";
  182.                         echo twig_escape_filter($this->env$this->getAttribute((isset($context["translator"]) ? $context["translator"] : $this->getContext($context"translator")), "getValue", [=> "S_DPH"], "method"), "html"nulltrue);
  183.                         echo "</div>
  184.                         ";
  185.                     }
  186.                     // line 57
  187.                     echo "                    ";
  188.                 } else {
  189.                     // line 58
  190.                     echo "                        <strong class=\"price price--incVat\">";
  191.                     echo $this->getAttribute((isset($context["currency"]) ? $context["currency"] : $this->getContext($context"currency")), "format", [=> $this->getAttribute((isset($context["price"]) ? $context["price"] : $this->getContext($context"price")), "excVat", [])], "method");
  192.                     echo "</strong> ";
  193.                     echo twig_escape_filter($this->env$this->getAttribute((isset($context["translator"]) ? $context["translator"] : $this->getContext($context"translator")), "getValue", [=> "BEZ_DPH"=> "bez DPH"], "method"), "html"nulltrue);
  194.                     // line 59
  195.                     echo "                        ";
  196.                     if ($this->getAttribute((isset($context["settings"]) ? $context["settings"] : $this->getContext($context"settings")), "listPriceExtended", [])) {
  197.                         // line 60
  198.                         echo "                            <div class=\"price price--excVat\">";
  199.                         echo $this->getAttribute((isset($context["currency"]) ? $context["currency"] : $this->getContext($context"currency")), "format", [=> $this->getAttribute((isset($context["price"]) ? $context["price"] : $this->getContext($context"price")), "incVat", [])], "method");
  200.                         echo "  ";
  201.                         echo twig_escape_filter($this->env$this->getAttribute((isset($context["translator"]) ? $context["translator"] : $this->getContext($context"translator")), "getValue", [=> "S_DPH"], "method"), "html"nulltrue);
  202.                         echo "</div>
  203.                         ";
  204.                     }
  205.                     // line 62
  206.                     echo "                    ";
  207.                 }
  208.                 // line 63
  209.                 echo "
  210.                 ";
  211.             }
  212.             // line 65
  213.             echo "            ";
  214.         } else {
  215.             // line 66
  216.             echo "                <strong class=\"price price--incVat\">";
  217.             echo twig_escape_filter($this->env$this->getAttribute((isset($context["translator"]) ? $context["translator"] : $this->getContext($context"translator")), "getValue", [=> "NA_DOTAZ"=> "Na dotaz"], "method"), "html"nulltrue);
  218.             echo "</strong>
  219.             ";
  220.         }
  221.         // line 68
  222.         echo "            </div>
  223.             <div class=\"productList__info__col action\">
  224.                 ";
  225.         // line 71
  226.         if (($this->getAttribute((isset($context["partner_config"]) ? $context["partner_config"] : $this->getContext($context"partner_config")), "getAllowListBuy", []) && ($this->getAttribute((isset($context["product"]) ? $context["product"] : $this->getContext($context"product")), "getPrice", []) > 0))) {
  227.             echo " ";
  228.             // line 72
  229.             echo "                    ";
  230.             if (($this->getAttribute((isset($context["product"]) ? $context["product"] : $this->getContext($context"product")), "getTypes", []) && twig_length_filter($this->env$this->getAttribute((isset($context["product"]) ? $context["product"] : $this->getContext($context"product")), "getVariant", [])))) {
  231.                 // line 73
  232.                 echo "                        <a href=\"";
  233.                 echo twig_escape_filter($this->env, (isset($context["link"]) ? $context["link"] : $this->getContext($context"link")), "html"nulltrue);
  234.                 echo "\" title=\"";
  235.                 echo twig_escape_filter($this->env, (isset($context["name"]) ? $context["name"] : $this->getContext($context"name")), "html"nulltrue);
  236.                 echo "\" class=\"btn btn-primary btn-detail pull-right\" data-gtm=\"";
  237.                 echo twig_escape_filter($this->env$this->getAttribute((isset($context["product"]) ? $context["product"] : $this->getContext($context"product")), "getGtmId", [], "method"), "html"nulltrue);
  238.                 echo "\">";
  239.                 echo twig_escape_filter($this->env$this->getAttribute((isset($context["translator"]) ? $context["translator"] : $this->getContext($context"translator")), "getValue", [=> "DETAIL"], "method"), "html"nulltrue);
  240.                 echo "</a>
  241.                     ";
  242.             } else {
  243.                 // line 75
  244.                 echo "                        ";
  245.                 // line 76
  246.                 echo "                        ";
  247.                 $this->loadTemplate("component/product/common/purchase_form/list.html.erb""component/product/list/box/default.html.twig"76)->display(twig_array_merge($context, ["product" => (isset($context["product"]) ? $context["product"] : $this->getContext($context"product"))]));
  248.                 // line 77
  249.                 echo "                        ";
  250.                 // line 78
  251.                 echo "                    ";
  252.             }
  253.             // line 79
  254.             echo "                ";
  255.         } else {
  256.             // line 80
  257.             echo "                    <a href=\"";
  258.             echo twig_escape_filter($this->env, (isset($context["link"]) ? $context["link"] : $this->getContext($context"link")), "html"nulltrue);
  259.             echo "\" title=\"";
  260.             echo twig_escape_filter($this->env, (isset($context["name"]) ? $context["name"] : $this->getContext($context"name")), "html"nulltrue);
  261.             echo "\" class=\"btn btn-primary btn-detail pull-right\" data-gtm=\"";
  262.             echo twig_escape_filter($this->env$this->getAttribute((isset($context["product"]) ? $context["product"] : $this->getContext($context"product")), "getGtmId", [], "method"), "html"nulltrue);
  263.             echo "\">";
  264.             echo twig_escape_filter($this->env$this->getAttribute((isset($context["translator"]) ? $context["translator"] : $this->getContext($context"translator")), "getValue", [=> "DETAIL"], "method"), "html"nulltrue);
  265.             echo "</a>
  266.                 ";
  267.         }
  268.         // line 82
  269.         echo "            </div>
  270.         </div>
  271.         ";
  272.         // line 85
  273.         echo "        <div class=\"productList__avail\">
  274.             ";
  275.         // line 86
  276.         if ((isset($context["enableCompare"]) ? $context["enableCompare"] : $this->getContext($context"enableCompare"))) {
  277.             // line 87
  278.             echo "                ";
  279.             if ($this->getAttribute((isset($context["comparator"]) ? $context["comparator"] : $this->getContext($context"comparator")), "hasProduct", [=> (isset($context["id"]) ? $context["id"] : $this->getContext($context"id"))], "method")) {
  280.                 // line 88
  281.                 echo "                    <div class=\"productList__avail__col bg-compare\">
  282.                         <a class=\"compare\" data-compare=\"1\" href=\"/_product-compare/toggle/";
  283.                 // line 89
  284.                 echo twig_escape_filter($this->env$this->getAttribute((isset($context["product"]) ? $context["product"] : $this->getContext($context"product")), "getId", [], "method"), "html"nulltrue);
  285.                 echo "\" title=\"";
  286.                 echo twig_escape_filter($this->env$this->getAttribute((isset($context["translator"]) ? $context["translator"] : $this->getContext($context"translator")), "getValue", [=> "REMOVE_FROM_COMPARE"], "method"), "html"nulltrue);
  287.                 echo "\">
  288.                             <i class=\"icon-compare\"></i> ";
  289.                 // line 90
  290.                 echo twig_escape_filter($this->env$this->getAttribute((isset($context["translator"]) ? $context["translator"] : $this->getContext($context"translator")), "getValue", [=> "POROVNANI"], "method"), "html"nulltrue);
  291.                 echo "
  292.                         </a>
  293.                     </div>
  294.                 ";
  295.             } else {
  296.                 // line 94
  297.                 echo "                    <div class=\"productList__avail__col\">
  298.                         <a class=\"compare\" data-compare=\"1\" href=\"/_product-compare/toggle/";
  299.                 // line 95
  300.                 echo twig_escape_filter($this->env$this->getAttribute((isset($context["product"]) ? $context["product"] : $this->getContext($context"product")), "getId", [], "method"), "html"nulltrue);
  301.                 echo "\" title=\"";
  302.                 echo twig_escape_filter($this->env$this->getAttribute((isset($context["translator"]) ? $context["translator"] : $this->getContext($context"translator")), "getValue", [=> "ADD_TO_COMPARE"], "method"), "html"nulltrue);
  303.                 echo "\">
  304.                             <i class=\"icon-compare\"></i> ";
  305.                 // line 96
  306.                 echo twig_escape_filter($this->env$this->getAttribute((isset($context["translator"]) ? $context["translator"] : $this->getContext($context"translator")), "getValue", [=> "POROVNANI"], "method"), "html"nulltrue);
  307.                 echo "
  308.                         </a>
  309.                     </div>
  310.                 ";
  311.             }
  312.             // line 100
  313.             echo "            ";
  314.         }
  315.         // line 101
  316.         echo "            <div class=\"productList__avail__col\">
  317.                 ";
  318.         // line 102
  319.         if (twig_length_filter($this->env$this->getAttribute((isset($context["product"]) ? $context["product"] : $this->getContext($context"product")), "getTypes", []))) {
  320.             // line 103
  321.             echo "                    ";
  322.             $this->loadTemplate("component/product/common/availability/avail-types.html.twig""component/product/list/box/default.html.twig"103)->display($context);
  323.             // line 104
  324.             echo "                ";
  325.         } else {
  326.             // line 105
  327.             echo "                    ";
  328.             $this->loadTemplate("component/product/common/availability/avail-basic.html.twig""component/product/list/box/default.html.twig"105)->display($context);
  329.             // line 106
  330.             echo "                ";
  331.         }
  332.         // line 107
  333.         echo "            </div>
  334.         </div>
  335.         ";
  336.         // line 110
  337.         echo "            <div class=\"productList__desc\">";
  338.         echo (((twig_length_filter($this->env, (isset($context["annot"]) ? $context["annot"] : $this->getContext($context"annot"))) > (isset($context["annotLength"]) ? $context["annotLength"] : $this->getContext($context"annotLength")))) ? ((twig_slice($this->env, (isset($context["annot"]) ? $context["annot"] : $this->getContext($context"annot")), 0, (isset($context["annotLength"]) ? $context["annotLength"] : $this->getContext($context"annotLength"))) . "...")) : ((isset($context["annot"]) ? $context["annot"] : $this->getContext($context"annot"))));
  339.         echo "</div>
  340.         ";
  341.         // line 112
  342.         echo "    </div>
  343. </div>
  344. ";
  345.         
  346.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  347.         
  348.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  349.     }
  350.     public function getTemplateName()
  351.     {
  352.         return "component/product/list/box/default.html.twig";
  353.     }
  354.     public function isTraitable()
  355.     {
  356.         return false;
  357.     }
  358.     public function getDebugInfo()
  359.     {
  360.         return array (  353 => 112,  348 => 110,  344 => 107,  341 => 106,  338 => 105,  335 => 104,  332 => 103,  330 => 102,  327 => 101,  324 => 100,  317 => 96,  311 => 95,  308 => 94,  301 => 90,  295 => 89,  292 => 88,  289 => 87,  287 => 86,  284 => 85,  280 => 82,  268 => 80,  265 => 79,  262 => 78,  260 => 77,  257 => 76,  255 => 75,  243 => 73,  240 => 72,  237 => 71,  232 => 68,  226 => 66,  223 => 65,  219 => 63,  216 => 62,  208 => 60,  205 => 59,  200 => 58,  197 => 57,  189 => 55,  186 => 54,  181 => 53,  179 => 52,  176 => 51,  172 => 49,  169 => 48,  161 => 46,  159 => 45,  154 => 44,  151 => 43,  143 => 41,  141 => 40,  136 => 39,  134 => 38,  131 => 37,  128 => 36,  126 => 35,  121 => 32,  115 => 30,  109 => 28,  107 => 27,  103 => 25,  100 => 24,  97 => 23,  95 => 22,  93 => 21,  79 => 17,  77 => 16,  73 => 14,  71 => 13,  64 => 11,  56 => 10,  51 => 8,  48 => 7,  46 => 6,  44 => 5,  42 => 4,  40 => 3,  38 => 2,  36 => 1,);
  361.     }
  362.     /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
  363.     public function getSource()
  364.     {
  365.         @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.'E_USER_DEPRECATED);
  366.         return $this->getSourceContext()->getCode();
  367.     }
  368.     public function getSourceContext()
  369.     {
  370.         return new Source("{% set id = product.getId() %}
  371. {% set name = product.getName() %}
  372. {% set link = product.getLink() %}
  373. {% set annot = product.getAnnotation() | striptags %}
  374. {% set price = price_calculator.calculate(product) %}
  375. {% set availability = availability.get(product) %}
  376. <div class=\"productList__item col-xs-12 col-md-{{ colSize }}\">
  377.     <div class=\"productList__inner\">
  378.         <a class=\"productList__img block cf\" href=\"{{ link }}\" title=\"{{ name }}\" data-gtm=\"{{ product.getGtmId() }}\">
  379.             <img src=\"{{ product.getImageUri('m') }}\" alt=\"{{ name }}\">
  380.             {% include 'component/product/list/labels.html.twig' with { price: price, product: product} %}
  381.         </a>
  382.         {% include 'component/product/common/rating/stars.html.twig' with { 'stars': product.getUserRatingStars(), 'rating': product.getUserRating() } %}
  383.         <h3 class=\"productList__title\"><a href=\"{{ link }}\" title=\"{{ name }}\" data-gtm=\"{{ product.getGtmId() }}\">{{ name | length > nameLength ? name | slice(0, nameLength) ~ '...' : name }}</a></h3>
  384.         <div class=\"productList__info cf\">
  385.             <div class=\"productList__info__col price\">
  386.             {% if price.excVat > 0.00 %}
  387.                 {# Bezna cena #}
  388.                 {% set priceToCompare = settings.priceIncVat ? price.incVat : price.excVat %}
  389.                 {% if price.rrp is defined and price.rrp > 0 and price.rrp > priceToCompare and not (product.getTypes and product.getVariant|length) %}
  390.                     <small class=\"price price--comPrice\">
  391.                     {% if category.getDecimalPricesStatus() %}
  392.                         {{ currency.formatCustom(price.rrp)|raw }}
  393.                     {% else %}
  394.                         {{ currency.format(price.rrp)|raw }}
  395.                     {% endif %}
  396.                     </small>
  397.                 {% endif %}
  398.                 {# Cena s a bez DPH #}
  399.                 {% if settings.priceIncVat %}
  400.                     {% if category.getDecimalPricesStatus() %}
  401.                         <strong class=\"price price--incVat\">{{ currency.formatCustom(price.incVat)|raw }}</strong>
  402.                         {% if settings.listPriceExtended %}
  403.                             <div class=\"price price--excVat\">{{ currency.formatCustom(price.excVat)|raw }} {{ translator.getValue('BEZ_DPH') }}</div>
  404.                         {% endif %}
  405.                     {% else %}
  406.                         <strong class=\"price price--incVat\">{{ currency.format(price.incVat)|raw }}</strong>
  407.                         {% if settings.listPriceExtended %}
  408.                             <div class=\"price price--excVat\">{{ currency.format(price.excVat)|raw }} {{ translator.getValue('BEZ_DPH') }}</div>
  409.                         {% endif %}
  410.                     {% endif %}
  411.                 {% else %}
  412.                     {% if category.getDecimalPricesStatus() %}
  413.                         <strong class=\"price price--incVat\">{{ currency.formatCustom(price.excVat)|raw }}</strong> {{ translator.getValue('BEZ_DPH', 'bez DPH') }}{# EJ V080601 11.10.2021 #}
  414.                         {% if settings.listPriceExtended %}
  415.                             <div class=\"price price--excVat\">{{ currency.formatCustom(price.incVat)|raw }}  {{ translator.getValue('S_DPH') }}</div>
  416.                         {% endif %}
  417.                     {% else %}
  418.                         <strong class=\"price price--incVat\">{{ currency.format(price.excVat)|raw }}</strong> {{ translator.getValue('BEZ_DPH', 'bez DPH') }}{# EJ V080601 11.10.2021 #}
  419.                         {% if settings.listPriceExtended %}
  420.                             <div class=\"price price--excVat\">{{ currency.format(price.incVat)|raw }}  {{ translator.getValue('S_DPH') }}</div>
  421.                         {% endif %}
  422.                     {% endif %}
  423.                 {% endif %}
  424.             {% else %}
  425.                 <strong class=\"price price--incVat\">{{ translator.getValue('NA_DOTAZ', 'Na dotaz') }}</strong>
  426.             {% endif %}
  427.             </div>
  428.             <div class=\"productList__info__col action\">
  429.                 {% if partner_config.getAllowListBuy and product.getPrice > 0 %} {# DS 2021-06-28 V078926 nákup z listu jen pokud má produkt cenu #}
  430.                     {% if product.getTypes and product.getVariant|length %}
  431.                         <a href=\"{{ link }}\" title=\"{{ name }}\" class=\"btn btn-primary btn-detail pull-right\" data-gtm=\"{{ product.getGtmId() }}\">{{ translator.getValue('DETAIL') }}</a>
  432.                     {% else %}
  433.                         {# DONE: includnout sablonu jednoducheho nakupnho formu, zbytek by mel fungovat automaticky #}
  434.                         {% include 'component/product/common/purchase_form/list.html.erb' with { product: product } %}
  435.                         {# <a href=\"{{ link }}\" title=\"{{ name }}\" class=\"buyable btn btn-primary btn-detail pull-right\">{{ translator.getValue('PRODUCT_TYPE_BUY') }}</a> #}
  436.                     {% endif %}
  437.                 {% else %}
  438.                     <a href=\"{{ link }}\" title=\"{{ name }}\" class=\"btn btn-primary btn-detail pull-right\" data-gtm=\"{{ product.getGtmId() }}\">{{ translator.getValue('DETAIL') }}</a>
  439.                 {% endif %}
  440.             </div>
  441.         </div>
  442.         {# Dostupnost produktu + porovnani #}
  443.         <div class=\"productList__avail\">
  444.             {% if enableCompare %}
  445.                 {% if comparator.hasProduct(id) %}
  446.                     <div class=\"productList__avail__col bg-compare\">
  447.                         <a class=\"compare\" data-compare=\"1\" href=\"/_product-compare/toggle/{{ product.getId() }}\" title=\"{{ translator.getValue('REMOVE_FROM_COMPARE') }}\">
  448.                             <i class=\"icon-compare\"></i> {{ translator.getValue('POROVNANI') }}
  449.                         </a>
  450.                     </div>
  451.                 {% else %}
  452.                     <div class=\"productList__avail__col\">
  453.                         <a class=\"compare\" data-compare=\"1\" href=\"/_product-compare/toggle/{{ product.getId() }}\" title=\"{{ translator.getValue('ADD_TO_COMPARE') }}\">
  454.                             <i class=\"icon-compare\"></i> {{ translator.getValue('POROVNANI') }}
  455.                         </a>
  456.                     </div>
  457.                 {% endif %}
  458.             {% endif %}
  459.             <div class=\"productList__avail__col\">
  460.                 {% if product.getTypes|length %}
  461.                     {% include 'component/product/common/availability/avail-types.html.twig' %}
  462.                 {% else %}
  463.                     {% include 'component/product/common/availability/avail-basic.html.twig' %}
  464.                 {% endif %}
  465.             </div>
  466.         </div>
  467.         {% autoescape false %}
  468.             <div class=\"productList__desc\">{{ annot | length > annotLength ? annot | slice(0, annotLength) ~ '...' : annot }}</div>
  469.         {% endautoescape %}
  470.     </div>
  471. </div>
  472. ""component/product/list/box/default.html.twig""/home/www/vac-star-b2c15/custom/src/EshopBundle/Resources/views/component/product/list/box/default.html.twig");
  473.     }
  474. }