var/cache/dev/twig/8d/8d28bcd5fe35034d960cc6e9ad8a2cd531e9bd71b36e7b3c11b5db578e860643.php line 49

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. /* front/product.html.twig */
  15. class __TwigTemplate_1ecb7a1881e5ddb95a0b6922267a4b5bb7f7befa54c14f295f856831c745786d extends Template
  16. {
  17.     private $source;
  18.     private $macros = [];
  19.     public function __construct(Environment $env)
  20.     {
  21.         parent::__construct($env);
  22.         $this->source $this->getSourceContext();
  23.         $this->blocks = [
  24.             'content' => [$this'block_content'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         return "base.html.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""front/product.html.twig"));
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""front/product.html.twig"));
  39.         $this->parent $this->loadTemplate("base.html.twig""front/product.html.twig"1);
  40.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  41.         
  42.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  43.         
  44.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  45.     }
  46.     // line 3
  47.     public function block_content($context, array $blocks = [])
  48.     {
  49.         $macros $this->macros;
  50.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  52.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  54.         // line 4
  55.         yield "    <div class=\"page page--main\">
  56.         <div class=\"container\">
  57.             <div class=\"page__header\">
  58.                 <h1>";
  59.         // line 7
  60.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["category"]) || array_key_exists("category"$context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.'7$this->source); })()), "translate", [], "any"falsefalsefalse7), "name", [], "any"falsefalsefalse7), "html"nulltrue);
  61.         yield "</h1>
  62.             </div>
  63.         </div>
  64.     </div>
  65.     <div class=\"wave wave--main\"></div>
  66.     <section class=\"product\">
  67.         <div class=\"product__before\" style=\"background-image: url('";
  68.         // line 14
  69.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((((((isset($context["path_media"]) || array_key_exists("path_media"$context) ? $context["path_media"] : (function () { throw new RuntimeError('Variable "path_media" does not exist.'14$this->source); })()) . "/") . CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["category"]) || array_key_exists("category"$context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.'14$this->source); })()), "file", [], "any"falsefalsefalse14), "directoryName", [], "any"falsefalsefalse14)) . "/") . CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["category"]) || array_key_exists("category"$context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.'14$this->source); })()), "file", [], "any"falsefalsefalse14), "media", [], "any"falsefalsefalse14)), "html"nulltrue);
  70.         yield "')\"></div>
  71.         <div class=\"container container--product\">
  72.             <div class=\"row\">
  73.                 <div class=\"col-lg-4 col-12 offset-lg-1\">
  74.                     ";
  75.         // line 18
  76.         yield from         $this->loadTemplate("front/product/media.html.twig""front/product.html.twig"18)->unwrap()->yield(CoreExtension::toArray(["product" => (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'18$this->source); })()), "lang" => (isset($context["lang"]) || array_key_exists("lang"$context) ? $context["lang"] : (function () { throw new RuntimeError('Variable "lang" does not exist.'18$this->source); })())]));
  77.         // line 19
  78.         yield "                </div>
  79.                 <div class=\"col-lg-7 col-12\">
  80.                     <div class=\"product__content\">
  81.                         <div class=\"product__desc\">
  82.                             <div class=\"product__tag ";
  83.         // line 23
  84.         if ((!== CoreExtension::compare(CoreExtension::getAttribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'23$this->source); })()), "newProduct", [], "any"falsefalsefalse23), 0))) {
  85.             yield " is-new";
  86.         }
  87.         yield "\">";
  88.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Novinka"), "html"nulltrue);
  89.         yield "</div>
  90.                             <div class=\"product__description\">
  91.                                 <div class=\"text text--bigger\">
  92.                                     ";
  93.         // line 26
  94.         yield from         $this->loadTemplate("front/product/shortDescription.html.twig""front/product.html.twig"26)->unwrap()->yield(CoreExtension::toArray(["product" => (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'26$this->source); })()), "lang" => (isset($context["lang"]) || array_key_exists("lang"$context) ? $context["lang"] : (function () { throw new RuntimeError('Variable "lang" does not exist.'26$this->source); })())]));
  95.         // line 27
  96.         yield "                                </div>
  97.                             </div>
  98.                             ";
  99.         // line 29
  100.         yield from         $this->loadTemplate("front/snippet/delivery-free.html.twig""front/product.html.twig"29)->unwrap()->yield($context);
  101.         // line 30
  102.         yield "                        </div>
  103.                         <div class=\"product__main\">
  104.                             <div class=\"product__select\">
  105.                                 <div class=\"product__select-header\">
  106.                                     <p class=\"product__select-title text--sanchez\">";
  107.         // line 34
  108.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Vyberte variantu"), "html"nulltrue);
  109.         yield ":</p>
  110.                                 </div>
  111.                                 <select name=\"\" id=\"\" class=\"js-select\">
  112.                                     ";
  113.         // line 37
  114.         $context['_parent'] = $context;
  115.         $context['_seq'] = CoreExtension::ensureTraversable((isset($context["products"]) || array_key_exists("products"$context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.'37$this->source); })()));
  116.         foreach ($context['_seq'] as $context["_key"] => $context["variant"]) {
  117.             // line 38
  118.             yield "                                        ";
  119.             if ((=== CoreExtension::compare(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["variant"], "translate", [], "any"falsefalsefalse38), "price", [], "any"falsefalsefalse38), 0))) {
  120.                 // line 39
  121.                 yield "                                            <option
  122.                                                     ";
  123.                 // line 40
  124.                 if ((CoreExtension::getAttribute($this->env$this->source$context["variant"], "file", [], "any"truetruefalse40) &&  !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env$this->source$context["variant"], "file", [], "any"falsefalsefalse40)))) {
  125.                     // line 41
  126.                     yield "                                                        data-p-image=\"";
  127.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['NexCRM\BaseBundle\Service\ImagineExtension']->filter((((((isset($context["path_media"]) || array_key_exists("path_media"$context) ? $context["path_media"] : (function () { throw new RuntimeError('Variable "path_media" does not exist.'41$this->source); })()) . "/") . CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["variant"], "file", [], "any"falsefalsefalse41), "directoryName", [], "any"falsefalsefalse41)) . "/") . CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["variant"], "file", [], "any"falsefalsefalse41), "media", [], "any"falsefalsefalse41)), "product_thumbnail"), "html"nulltrue);
  128.                     yield "\"
  129.                                                     ";
  130.                 }
  131.                 // line 43
  132.                 yield "                                                    data-p-price=\"";
  133.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatNumber(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["variant"], "translate", [], "any"falsefalsefalse43), "price", [], "any"falsefalsefalse43), 0""" "), "html"nulltrue);
  134.                 yield " ";
  135.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Kč"), "html"nulltrue);
  136.                 yield "\"
  137.                                                     ";
  138.                 // line 44
  139.                 if ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["variant"], "translate", [], "any"falsetruefalse44), "units", [], "any"truetruefalse44) &&  !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["variant"], "translate", [], "any"falsefalsefalse44), "units", [], "any"falsefalsefalse44)))) {
  140.                     // line 45
  141.                     yield "                                                        data-p-mj=\"";
  142.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["variant"], "translate", [], "any"falsefalsefalse45), "units", [], "any"falsefalsefalse45), "html"nulltrue);
  143.                     yield "\"
  144.                                                     ";
  145.                 }
  146.                 // line 47
  147.                 yield "                                                    value=\"";
  148.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["variant"], "id", [], "any"falsefalsefalse47), "html"nulltrue);
  149.                 yield "\"";
  150.                 // line 48
  151.                 if ((=== CoreExtension::compare(CoreExtension::getAttribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'48$this->source); })()), "id", [], "any"falsefalsefalse48), CoreExtension::getAttribute($this->env$this->source$context["variant"], "id", [], "any"falsefalsefalse48)))) {
  152.                     yield " selected";
  153.                 }
  154.                 // line 49
  155.                 yield ">";
  156.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["variant"], "translate", [], "any"falsefalsefalse49), "name", [], "any"falsefalsefalse49), "html"nulltrue);
  157.                 yield "
  158.                                             </option>
  159.                                         ";
  160.             }
  161.             // line 52
  162.             yield "                                    ";
  163.         }
  164.         $_parent $context['_parent'];
  165.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['variant'], $context['_parent'], $context['loop']);
  166.         $context array_intersect_key($context$_parent) + $_parent;
  167.         // line 53
  168.         yield "                                </select>
  169.                             </div>
  170.                             <div class=\"product__buy";
  171.         // line 55
  172.         if (CoreExtension::getAttribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'55$this->source); })()), "soldOut", [], "any"falsefalsefalse55)) {
  173.             yield " pb-4";
  174.         }
  175.         yield "\">
  176.                                 ";
  177.         // line 56
  178.         if ( !CoreExtension::getAttribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'56$this->source); })()), "soldOut", [], "any"falsefalsefalse56)) {
  179.             // line 57
  180.             yield "                                    <div class=\"product__row\">
  181.                                         <div class=\"counter\">
  182.                                             <div class=\"counter__row\">
  183.                                                 <div class=\"counter__minus js-counter-minus\">
  184.                                                     <div class=\"icon icon--minus\"></div>
  185.                                                 </div>
  186.                                                 <div class=\"counter__input\">
  187.                                                     <input type=\"text\" value=\"1\" class=\"js-counter-input\">
  188.                                                     <span>";
  189.             // line 65
  190.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ks"), "html"nulltrue);
  191.             yield "</span>
  192.                                                 </div>
  193.                                                 <div class=\"counter__plus js-counter-plus\">
  194.                                                     <div class=\"icon icon--plus\"></div>
  195.                                                 </div>
  196.                                             </div>
  197.                                         </div>
  198.                                         <div class=\"product__button\">
  199.                                             <a href=\"#box\"
  200.                                                class=\"button button--product js-add-to-cart\" data-path=\"";
  201.             // line 74
  202.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("cart_add", ["_locale" => CoreExtension::getAttribute($this->env$this->source, (isset($context["category"]) || array_key_exists("category"$context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.'74$this->source); })()), "currentLocale", [], "any"falsefalsefalse74), "id" => 0"amount" => 0]), "html"nulltrue);
  203.             yield "\">";
  204.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Přidat Jerky do košíku"), "html"nulltrue);
  205.             yield "</a>
  206.                                         </div>
  207.                                     </div>
  208.                                 ";
  209.         } else {
  210.             // line 78
  211.             yield "                                    <div class=\"product__row category__row--sold\">";
  212.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Vyprodáno"), "html"nulltrue);
  213.             yield "</div>
  214.                                 ";
  215.         }
  216.         // line 80
  217.         yield "                                <div class=\"category__item__add\"><div class=\"category__item__add__icon\"></div><div class=\"category__item__add__text\"></div></div>
  218.                             </div>
  219.                             ";
  220.         // line 82
  221.         if ( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'82$this->source); })()), "translate", [], "any"falsefalsefalse82), "description", [], "any"falsefalsefalse82))) {
  222.             // line 83
  223.             yield "                                ";
  224.             yield from             $this->loadTemplate("front/product/description.html.twig""front/product.html.twig"83)->unwrap()->yield(CoreExtension::toArray(["product" => (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'83$this->source); })()), "lang" => (isset($context["lang"]) || array_key_exists("lang"$context) ? $context["lang"] : (function () { throw new RuntimeError('Variable "lang" does not exist.'83$this->source); })())]));
  225.             // line 84
  226.             yield "                            ";
  227.         }
  228.         // line 85
  229.         yield "                        </div>
  230.                     </div>
  231.                 </div>
  232.             </div>
  233.         </div>
  234.         ";
  235.         // line 90
  236.         yield from         $this->loadTemplate("front/snippet/sidebar.html.twig""front/product.html.twig"90)->unwrap()->yield($context);
  237.         // line 91
  238.         yield "    </section>
  239.     <section class=\"nutrition\">
  240.         <div class=\"wave wave--nutrition\"></div>
  241.         ";
  242.         // line 94
  243.         yield from         $this->loadTemplate("front/product/parameters.html.twig""front/product.html.twig"94)->unwrap()->yield(CoreExtension::toArray(["product" => (isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'94$this->source); })()), "lang" => (isset($context["lang"]) || array_key_exists("lang"$context) ? $context["lang"] : (function () { throw new RuntimeError('Variable "lang" does not exist.'94$this->source); })())]));
  244.         // line 95
  245.         yield "    </section>
  246. ";
  247.         
  248.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  249.         
  250.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  251.         return; yield '';
  252.     }
  253.     /**
  254.      * @codeCoverageIgnore
  255.      */
  256.     public function getTemplateName()
  257.     {
  258.         return "front/product.html.twig";
  259.     }
  260.     /**
  261.      * @codeCoverageIgnore
  262.      */
  263.     public function isTraitable()
  264.     {
  265.         return false;
  266.     }
  267.     /**
  268.      * @codeCoverageIgnore
  269.      */
  270.     public function getDebugInfo()
  271.     {
  272.         return array (  260 => 95,  258 => 94,  253 => 91,  251 => 90,  244 => 85,  241 => 84,  238 => 83,  236 => 82,  232 => 80,  226 => 78,  217 => 74,  205 => 65,  195 => 57,  193 => 56,  187 => 55,  183 => 53,  177 => 52,  170 => 49,  166 => 48,  162 => 47,  156 => 45,  154 => 44,  147 => 43,  141 => 41,  139 => 40,  136 => 39,  133 => 38,  129 => 37,  123 => 34,  117 => 30,  115 => 29,  111 => 27,  109 => 26,  99 => 23,  93 => 19,  91 => 18,  84 => 14,  74 => 7,  69 => 4,  59 => 3,  36 => 1,);
  273.     }
  274.     public function getSourceContext()
  275.     {
  276.         return new Source("{% extends 'base.html.twig' %}
  277. {% block content %}
  278.     <div class=\"page page--main\">
  279.         <div class=\"container\">
  280.             <div class=\"page__header\">
  281.                 <h1>{{ category.translate.name }}</h1>
  282.             </div>
  283.         </div>
  284.     </div>
  285.     <div class=\"wave wave--main\"></div>
  286.     <section class=\"product\">
  287.         <div class=\"product__before\" style=\"background-image: url('{{ (path_media ~ '/' ~ category.file.directoryName ~ '/' ~ category.file.media) }}')\"></div>
  288.         <div class=\"container container--product\">
  289.             <div class=\"row\">
  290.                 <div class=\"col-lg-4 col-12 offset-lg-1\">
  291.                     {% include('front/product/media.html.twig') with {'product': product, 'lang': lang} only %}
  292.                 </div>
  293.                 <div class=\"col-lg-7 col-12\">
  294.                     <div class=\"product__content\">
  295.                         <div class=\"product__desc\">
  296.                             <div class=\"product__tag {% if product.newProduct != 0 %} is-new{% endif %}\">{{ 'Novinka'|trans }}</div>
  297.                             <div class=\"product__description\">
  298.                                 <div class=\"text text--bigger\">
  299.                                     {% include('front/product/shortDescription.html.twig') with {'product': product, 'lang': lang} only %}
  300.                                 </div>
  301.                             </div>
  302.                             {% include('front/snippet/delivery-free.html.twig') %}
  303.                         </div>
  304.                         <div class=\"product__main\">
  305.                             <div class=\"product__select\">
  306.                                 <div class=\"product__select-header\">
  307.                                     <p class=\"product__select-title text--sanchez\">{{ 'Vyberte variantu'|trans }}:</p>
  308.                                 </div>
  309.                                 <select name=\"\" id=\"\" class=\"js-select\">
  310.                                     {% for variant in products %}
  311.                                         {% if variant.translate.price > 0 %}
  312.                                             <option
  313.                                                     {% if variant.file is defined and variant.file is not empty %}
  314.                                                         data-p-image=\"{{ (path_media ~ '/' ~ variant.file.directoryName ~ '/' ~ variant.file.media) | imagine_filter('product_thumbnail') }}\"
  315.                                                     {% endif %}
  316.                                                     data-p-price=\"{{ variant.translate.price|number_format(0, '', ' ') }} {{ 'Kč'|trans }}\"
  317.                                                     {% if variant.translate.units is defined and variant.translate.units is not empty %}
  318.                                                         data-p-mj=\"{{ variant.translate.units }}\"
  319.                                                     {% endif %}
  320.                                                     value=\"{{ variant.id }}\"
  321.                                                     {%- if product.id==variant.id %} selected{%- endif -%}
  322.                                             >{{ variant.translate.name }}
  323.                                             </option>
  324.                                         {% endif %}
  325.                                     {% endfor %}
  326.                                 </select>
  327.                             </div>
  328.                             <div class=\"product__buy{% if product.soldOut %} pb-4{% endif %}\">
  329.                                 {% if not product.soldOut %}
  330.                                     <div class=\"product__row\">
  331.                                         <div class=\"counter\">
  332.                                             <div class=\"counter__row\">
  333.                                                 <div class=\"counter__minus js-counter-minus\">
  334.                                                     <div class=\"icon icon--minus\"></div>
  335.                                                 </div>
  336.                                                 <div class=\"counter__input\">
  337.                                                     <input type=\"text\" value=\"1\" class=\"js-counter-input\">
  338.                                                     <span>{{ 'ks'|trans }}</span>
  339.                                                 </div>
  340.                                                 <div class=\"counter__plus js-counter-plus\">
  341.                                                     <div class=\"icon icon--plus\"></div>
  342.                                                 </div>
  343.                                             </div>
  344.                                         </div>
  345.                                         <div class=\"product__button\">
  346.                                             <a href=\"#box\"
  347.                                                class=\"button button--product js-add-to-cart\" data-path=\"{{ path('cart_add', {_locale: category.currentLocale, id: 0, amount: 0}) }}\">{{ 'Přidat Jerky do košíku'|trans }}</a>
  348.                                         </div>
  349.                                     </div>
  350.                                 {% else %}
  351.                                     <div class=\"product__row category__row--sold\">{{ 'Vyprodáno'|trans }}</div>
  352.                                 {% endif %}
  353.                                 <div class=\"category__item__add\"><div class=\"category__item__add__icon\"></div><div class=\"category__item__add__text\"></div></div>
  354.                             </div>
  355.                             {% if product.translate.description is not empty %}
  356.                                 {% include('front/product/description.html.twig') with {'product': product, 'lang': lang} only %}
  357.                             {% endif %}
  358.                         </div>
  359.                     </div>
  360.                 </div>
  361.             </div>
  362.         </div>
  363.         {% include('front/snippet/sidebar.html.twig') %}
  364.     </section>
  365.     <section class=\"nutrition\">
  366.         <div class=\"wave wave--nutrition\"></div>
  367.         {% include('front/product/parameters.html.twig') with {'product': product, 'lang': lang} only %}
  368.     </section>
  369. {% endblock content %}
  370. ""front/product.html.twig""/home/web/nexgen.cz/dev58/templates/front/product.html.twig");
  371.     }
  372. }