var/cache/dev/twig/e7/e75f53bb4b857b158c97c5b891cbe28bd1872a922fc3c30ea84aa383d1e1302e.php line 34

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/index.html.twig */
  15. class __TwigTemplate_4eac69bfcc37c10697d5cda12b0f796a27214d1c20275a7c88cc8a49cc949f5e 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->parent false;
  24.         $this->blocks = [
  25.         ];
  26.     }
  27.     protected function doDisplay(array $context, array $blocks = [])
  28.     {
  29.         $macros $this->macros;
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  31.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""front/index.html.twig"));
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  33.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""front/index.html.twig"));
  34.         // line 1
  35.         yield from         $this->loadTemplate("header.html.twig""front/index.html.twig"1)->unwrap()->yield($context);
  36.         // line 2
  37.         yield "<div class=\"page page--index\">
  38.     <div class=\"container container--slider\">
  39.         ";
  40.         // line 4
  41.         $context["sliderShow"] = 0;
  42.         // line 5
  43.         yield "        ";
  44.         if ((array_key_exists("page"$context) && CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, ($context["sliders"] ?? null), "header", [], "array"falsetruefalse5), "all", [], "array"truetruefalse5))) {
  45.             // line 6
  46.             yield "            ";
  47.             $context["sliderShow"] = 1;
  48.             // line 7
  49.             yield "        ";
  50.         }
  51.         // line 8
  52.         yield "        <div class=\"slider\"";
  53.         if ((isset($context["sliderShow"]) || array_key_exists("sliderShow"$context) ? $context["sliderShow"] : (function () { throw new RuntimeError('Variable "sliderShow" does not exist.'8$this->source); })())) {
  54.             yield " data-slider";
  55.         }
  56.         yield ">
  57.             ";
  58.         // line 9
  59.         if ((isset($context["sliderShow"]) || array_key_exists("sliderShow"$context) ? $context["sliderShow"] : (function () { throw new RuntimeError('Variable "sliderShow" does not exist.'9$this->source); })())) {
  60.             // line 10
  61.             yield "                ";
  62.             $context['_parent'] = $context;
  63.             $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["sliders"]) || array_key_exists("sliders"$context) ? $context["sliders"] : (function () { throw new RuntimeError('Variable "sliders" does not exist.'10$this->source); })()), "header", [], "array"falsefalsefalse10), "all", [], "array"falsefalsefalse10));
  64.             foreach ($context['_seq'] as $context["_key"] => $context["slider"]) {
  65.                 // line 11
  66.                 yield "                    <a class=\"slider__item\" href=\"";
  67.                 if ( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["slider"], "translate", [], "any"falsefalsefalse11), "url", [], "any"falsefalsefalse11))) {
  68.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["slider"], "translate", [], "any"falsefalsefalse11), "url", [], "any"falsefalsefalse11), "html"nulltrue);
  69.                 } else {
  70.                     yield $this->extensions['NexCRM\WebBundle\Twig\TwigExtension']->getUrl($context["slider"]);
  71.                 }
  72.                 yield "\">
  73.                         <img src=\"";
  74.                 // line 12
  75.                 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.'12$this->source); })()) . CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["slider"], "file", [], "any"falsefalsefalse12), "directoryName", [], "any"falsefalsefalse12)) . "/") . CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["slider"], "file", [], "any"falsefalsefalse12), "media", [], "any"falsefalsefalse12)), "html"nulltrue);
  76.                 yield "\" alt=\"";
  77.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["slider"], "file", [], "any"falsefalsefalse12), "translate", [], "any"falsefalsefalse12), "alt", [], "any"falsefalsefalse12), "html"nulltrue);
  78.                 yield "\">
  79.                     </a>
  80.                 ";
  81.             }
  82.             $_parent $context['_parent'];
  83.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['slider'], $context['_parent'], $context['loop']);
  84.             $context array_intersect_key($context$_parent) + $_parent;
  85.             // line 15
  86.             yield "                ";
  87.             // line 16
  88.             yield "                ";
  89.             // line 17
  90.             yield "                ";
  91.             // line 18
  92.             yield "                ";
  93.             // line 19
  94.             yield "            ";
  95.         }
  96.         // line 20
  97.         yield "        </div>
  98.     </div>
  99.     <div class=\"wave wave--header\"></div>
  100. </div>
  101. <section class=\"premium\">
  102.     <div class=\"container\">
  103.         <div class=\"row\">
  104.             <div class=\"col-lg-3 col-md-4 col-sm-4 col-12\">
  105.                 <div class=\"premium__image\">
  106.                     <div class=\"premium__shadow\">
  107.                         <img src=\"";
  108.         // line 32
  109.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/theme/img/main_img.png"), "html"nulltrue);
  110.         yield "\" alt=\"jerky\">
  111.                     </div>
  112.                 </div>
  113.             </div>
  114.             <div class=\"col-lg-5 col-md-8 col-sm-8 col-12\">
  115.                 <div class=\"premium__content\" data-scroll=\"scroll-down\">
  116.                     <div class=\"premium__text\">
  117.                         <p class=\"text text--header text--sans\">";
  118.         // line 39
  119.         yield Twig\Extension\CoreExtension::striptags(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'39$this->source); })()), "translate", [], "any"falsefalsefalse39), "shortText", [], "any"falsefalsefalse39), "<strong>");
  120.         yield "</p>
  121.                         <p class=\"text text--big text--sans\">";
  122.         // line 40
  123.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::striptags(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'40$this->source); })()), "translate", [], "any"falsefalsefalse40), "text", [], "any"falsefalsefalse40)), "html"nulltrue);
  124.         yield "</p>
  125.                     </div>
  126.                     ";
  127.         // line 42
  128.         if (CoreExtension::getAttribute($this->env$this->source, ($context["blocks"] ?? null), "index_button", [], "array"truetruefalse42)) {
  129.             // line 43
  130.             yield "                        <div class=\"premium__button\">
  131.                             ";
  132.             // line 44
  133.             yield CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["blocks"]) || array_key_exists("blocks"$context) ? $context["blocks"] : (function () { throw new RuntimeError('Variable "blocks" does not exist.'44$this->source); })()), "index_button", [], "array"falsefalsefalse44), "translate", [], "any"falsefalsefalse44), "text", [], "any"falsefalsefalse44);
  134.             yield "
  135.                         </div>
  136.                     ";
  137.         }
  138.         // line 47
  139.         yield "                </div>
  140.             </div>
  141.             <div class=\"col-lg-4 col-12\">
  142.                 ";
  143.         // line 50
  144.         if (CoreExtension::getAttribute($this->env$this->source, ($context["blocks"] ?? null), "logos", [], "array"truetruefalse50)) {
  145.             // line 51
  146.             yield "                    <div class=\"premium__bonus\">
  147.                         <div class=\"premium__header\">
  148.                             <p>";
  149.             // line 53
  150.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["blocks"]) || array_key_exists("blocks"$context) ? $context["blocks"] : (function () { throw new RuntimeError('Variable "blocks" does not exist.'53$this->source); })()), "logos", [], "array"falsefalsefalse53), "translate", [], "any"falsefalsefalse53), "name", [], "any"falsefalsefalse53), "html"nulltrue);
  151.             yield "</p>
  152.                         </div>
  153.                         ";
  154.             // line 55
  155.             if ((=== CoreExtension::compare(Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["blocks"]) || array_key_exists("blocks"$context) ? $context["blocks"] : (function () { throw new RuntimeError('Variable "blocks" does not exist.'55$this->source); })()), "logos", [], "array"falsefalsefalse55), "files", [], "any"falsefalsefalse55)), 0))) {
  156.                 // line 56
  157.                 yield "                            <div class=\"premium__quality\">
  158.                                 <div class=\"row\">
  159.                                     ";
  160.                 // line 58
  161.                 $context['_parent'] = $context;
  162.                 $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["blocks"]) || array_key_exists("blocks"$context) ? $context["blocks"] : (function () { throw new RuntimeError('Variable "blocks" does not exist.'58$this->source); })()), "logos", [], "array"falsefalsefalse58), "files", [], "any"falsefalsefalse58));
  163.                 foreach ($context['_seq'] as $context["_key"] => $context["file"]) {
  164.                     // line 59
  165.                     yield "                                        <div class=\"col-lg-3 col-md-3 col-sm-3 col-6 text-center\">
  166.                                             <img src=\"";
  167.                     // line 60
  168.                     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.'60$this->source); })()) . "/") . CoreExtension::getAttribute($this->env$this->source$context["file"], "directoryName", [], "any"falsefalsefalse60)) . "/") . CoreExtension::getAttribute($this->env$this->source$context["file"], "media", [], "any"falsefalsefalse60)), "html"nulltrue);
  169.                     yield "\"
  170.                                                  alt=\"";
  171.                     // line 61
  172.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["file"], "translate", [], "any"falsetruefalse61), "alt", [], "any"truetruefalse61)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["file"], "translate", [], "any"falsetruefalse61), "alt", [], "any"falsefalsefalse61))) : ("")), "html"nulltrue);
  173.                     yield "\">
  174.                                         </div>
  175.                                     ";
  176.                 }
  177.                 $_parent $context['_parent'];
  178.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['file'], $context['_parent'], $context['loop']);
  179.                 $context array_intersect_key($context$_parent) + $_parent;
  180.                 // line 64
  181.                 yield "                                </div>
  182.                             </div>
  183.                         ";
  184.             }
  185.             // line 67
  186.             yield "                    </div>
  187.                 ";
  188.         }
  189.         // line 69
  190.         yield "            </div>
  191.         </div>
  192.     </div>
  193. </section>
  194. ";
  195.         // line 73
  196.         if ((isset($context["categories"]) || array_key_exists("categories"$context) ? $context["categories"] : (function () { throw new RuntimeError('Variable "categories" does not exist.'73$this->source); })())) {
  197.             // line 74
  198.             yield "    <section class=\"carousel\">
  199.         <div class=\"wave wave--carousel wave--carousel-top\"></div>
  200.         <div class=\"container\">
  201.             <div class=\"carousel__header\">
  202.                 <h2 class=\"text text--h1 text--divider text--divider--center\">";
  203.             // line 78
  204.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Produkty"), "html"nulltrue);
  205.             yield "</h2>
  206.             </div>
  207.             <div class=\"carousel__content js-carousel\" data-carousel>
  208.                 ";
  209.             // line 81
  210.             $context['_parent'] = $context;
  211.             $context['_seq'] = CoreExtension::ensureTraversable((isset($context["categories"]) || array_key_exists("categories"$context) ? $context["categories"] : (function () { throw new RuntimeError('Variable "categories" does not exist.'81$this->source); })()));
  212.             $context['loop'] = [
  213.               'parent' => $context['_parent'],
  214.               'index0' => 0,
  215.               'index'  => 1,
  216.               'first'  => true,
  217.             ];
  218.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  219.                 $length count($context['_seq']);
  220.                 $context['loop']['revindex0'] = $length 1;
  221.                 $context['loop']['revindex'] = $length;
  222.                 $context['loop']['length'] = $length;
  223.                 $context['loop']['last'] = === $length;
  224.             }
  225.             foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
  226.                 // line 82
  227.                 yield "                    ";
  228.                 if ((=== CoreExtension::compare(Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env$this->source$context["category"], "products", [], "any"falsefalsefalse82)), 0))) {
  229.                     // line 83
  230.                     yield "                        ";
  231.                     yield from                     $this->loadTemplate("front/page_shop_item_normal.html.twig""front/index.html.twig"83)->unwrap()->yield($context);
  232.                     // line 84
  233.                     yield "                    ";
  234.                 }
  235.                 // line 85
  236.                 yield "                ";
  237.                 ++$context['loop']['index0'];
  238.                 ++$context['loop']['index'];
  239.                 $context['loop']['first'] = false;
  240.                 if (isset($context['loop']['length'])) {
  241.                     --$context['loop']['revindex0'];
  242.                     --$context['loop']['revindex'];
  243.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  244.                 }
  245.             }
  246.             $_parent $context['_parent'];
  247.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
  248.             $context array_intersect_key($context$_parent) + $_parent;
  249.             // line 86
  250.             yield "            </div>
  251.             <div class=\"carousel__more\">
  252.                 <a href=\"";
  253.             // line 88
  254.             if (CoreExtension::getAttribute($this->env$this->source, ($context["pt"] ?? null), "shop", [], "array"truetruefalse88)) {
  255.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['NexCRM\WebBundle\Twig\TwigExtension']->transPath(CoreExtension::getAttribute($this->env$this->source, (isset($context["pt"]) || array_key_exists("pt"$context) ? $context["pt"] : (function () { throw new RuntimeError('Variable "pt" does not exist.'88$this->source); })()), "shop", [], "array"falsefalsefalse88)), "html"nulltrue);
  256.             }
  257.             yield "\"
  258.                    class=\"button button--spacy\">";
  259.             // line 89
  260.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Všechny produkty"), "html"nulltrue);
  261.             yield "</a>
  262.             </div>
  263.         </div>
  264.     </section>
  265.     <div class=\"wave wave--carousel wave--carousel-bottom\"></div>
  266. ";
  267.         }
  268.         // line 95
  269.         yield "<section class=\"benefit\">
  270.     <div class=\"container\">
  271.         <div class=\"benefit__title\">
  272.             <h2 class=\"text text--h1 text--divider text--divider--center\">";
  273.         // line 98
  274.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Proč Jihočeské jerky?"), "html"nulltrue);
  275.         yield "</h2>
  276.         </div>
  277.     </div>
  278.     <div class=\"benefit__content\">
  279.         <div class=\"container\">
  280.             <div class=\"row\">
  281.                 ";
  282.         // line 104
  283.         $context['_parent'] = $context;
  284.         $context['_seq'] = CoreExtension::ensureTraversable(range(14));
  285.         foreach ($context['_seq'] as $context["_key"] => $context["benefitIndex"]) {
  286.             // line 105
  287.             yield "                    ";
  288.             if ((CoreExtension::getAttribute($this->env$this->source, ($context["blocks"] ?? null), ("benefit-" $context["benefitIndex"]), [], "array"truetruefalse105) &&  !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["blocks"]) || array_key_exists("blocks"$context) ? $context["blocks"] : (function () { throw new RuntimeError('Variable "blocks" does not exist.'105$this->source); })()), ("benefit-" $context["benefitIndex"]), [], "array"falsefalsefalse105), "file", [], "any"falsefalsefalse105)))) {
  289.                 // line 106
  290.                 yield "                        <div class=\"col-lg-3 col-md-3 col-sm-4 col-6\">
  291.                             <div class=\"benefit__item\">
  292.                                 <div class=\"benefit__img\">
  293.                                     <img src=\"";
  294.                 // line 109
  295.                 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.'109$this->source); })()) . "/") . CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["blocks"]) || array_key_exists("blocks"$context) ? $context["blocks"] : (function () { throw new RuntimeError('Variable "blocks" does not exist.'109$this->source); })()), ("benefit-" $context["benefitIndex"]), [], "array"falsefalsefalse109), "file", [], "any"falsefalsefalse109), "directoryName", [], "any"falsefalsefalse109)) . "/") . CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["blocks"]) || array_key_exists("blocks"$context) ? $context["blocks"] : (function () { throw new RuntimeError('Variable "blocks" does not exist.'109$this->source); })()), ("benefit-" $context["benefitIndex"]), [], "array"falsefalsefalse109), "file", [], "any"falsefalsefalse109), "media", [], "any"falsefalsefalse109)), "html"nulltrue);
  296.                 yield "\"
  297.                                          alt=\"";
  298.                 // line 110
  299.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, ($context["blocks"] ?? null), ("benefit-" $context["benefitIndex"]), [], "array"falsetruefalse110), "file", [], "any"falsetruefalse110), "translate", [], "any"falsetruefalse110), "alt", [], "any"truetruefalse110)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, ($context["blocks"] ?? null), ("benefit-" $context["benefitIndex"]), [], "array"falsetruefalse110), "file", [], "any"falsetruefalse110), "translate", [], "any"falsetruefalse110), "alt", [], "any"falsefalsefalse110))) : ("")), "html"nulltrue);
  300.                 yield "\">
  301.                                 </div>
  302.                                 <p class=\"benefit__text text--sanchez\">
  303.                                     ";
  304.                 // line 113
  305.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["blocks"]) || array_key_exists("blocks"$context) ? $context["blocks"] : (function () { throw new RuntimeError('Variable "blocks" does not exist.'113$this->source); })()), ("benefit-" $context["benefitIndex"]), [], "array"falsefalsefalse113), "translate", [], "any"falsefalsefalse113), "name", [], "any"falsefalsefalse113), "html"nulltrue);
  306.                 yield "
  307.                                 </p>
  308.                             </div>
  309.                         </div>
  310.                     ";
  311.             }
  312.             // line 118
  313.             yield "                ";
  314.         }
  315.         $_parent $context['_parent'];
  316.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['benefitIndex'], $context['_parent'], $context['loop']);
  317.         $context array_intersect_key($context$_parent) + $_parent;
  318.         // line 119
  319.         yield "            </div>
  320.         </div>
  321.     </div>
  322. </section>
  323. ";
  324.         // line 124
  325.         yield from         $this->loadTemplate("front/widgets/instagram.html.twig""front/index.html.twig"124)->unwrap()->yield($context);
  326.         // line 125
  327.         yield "
  328. ";
  329.         // line 126
  330.         yield from         $this->loadTemplate("footer.html.twig""front/index.html.twig"126)->unwrap()->yield($context);
  331.         
  332.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  333.         
  334.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  335.         return; yield '';
  336.     }
  337.     /**
  338.      * @codeCoverageIgnore
  339.      */
  340.     public function getTemplateName()
  341.     {
  342.         return "front/index.html.twig";
  343.     }
  344.     /**
  345.      * @codeCoverageIgnore
  346.      */
  347.     public function isTraitable()
  348.     {
  349.         return false;
  350.     }
  351.     /**
  352.      * @codeCoverageIgnore
  353.      */
  354.     public function getDebugInfo()
  355.     {
  356.         return array (  342 => 126,  339 => 125,  337 => 124,  330 => 119,  324 => 118,  316 => 113,  310 => 110,  306 => 109,  301 => 106,  298 => 105,  294 => 104,  285 => 98,  280 => 95,  271 => 89,  265 => 88,  261 => 86,  247 => 85,  244 => 84,  241 => 83,  238 => 82,  221 => 81,  215 => 78,  209 => 74,  207 => 73,  201 => 69,  197 => 67,  192 => 64,  183 => 61,  179 => 60,  176 => 59,  172 => 58,  168 => 56,  166 => 55,  161 => 53,  157 => 51,  155 => 50,  150 => 47,  144 => 44,  141 => 43,  139 => 42,  134 => 40,  130 => 39,  120 => 32,  106 => 20,  103 => 19,  101 => 18,  99 => 17,  97 => 16,  95 => 15,  84 => 12,  75 => 11,  70 => 10,  68 => 9,  61 => 8,  58 => 7,  55 => 6,  52 => 5,  50 => 4,  46 => 2,  44 => 1,);
  357.     }
  358.     public function getSourceContext()
  359.     {
  360.         return new Source("{% include 'header.html.twig' %}
  361. <div class=\"page page--index\">
  362.     <div class=\"container container--slider\">
  363.         {% set sliderShow = 0 %}
  364.         {% if page is defined and sliders['header']['all'] is defined %}
  365.             {% set sliderShow = 1 %}
  366.         {% endif %}
  367.         <div class=\"slider\"{% if sliderShow %} data-slider{% endif %}>
  368.             {% if sliderShow %}
  369.                 {% for slider in sliders['header']['all'] %}
  370.                     <a class=\"slider__item\" href=\"{% if slider.translate.url is not empty %}{{ slider.translate.url }}{% else %}{{ slider|get_url|raw }}{% endif %}\">
  371.                         <img src=\"{{ (path_media ~ slider.file.directoryName ~ '/' ~ slider.file.media) }}\" alt=\"{{ slider.file.translate.alt }}\">
  372.                     </a>
  373.                 {% endfor %}
  374.                 {#        <div class=\"page__title\">#}
  375.                 {#            <h1>{{ page.translate.name }}</h1>#}
  376.                 {#        </div>#}
  377.                 {#        <div class=\"page__arrow\" data-scroll-src=\"scroll-down\"></div>#}
  378.             {% endif %}
  379.         </div>
  380.     </div>
  381.     <div class=\"wave wave--header\"></div>
  382. </div>
  383. <section class=\"premium\">
  384.     <div class=\"container\">
  385.         <div class=\"row\">
  386.             <div class=\"col-lg-3 col-md-4 col-sm-4 col-12\">
  387.                 <div class=\"premium__image\">
  388.                     <div class=\"premium__shadow\">
  389.                         <img src=\"{{ asset('assets/theme/img/main_img.png') }}\" alt=\"jerky\">
  390.                     </div>
  391.                 </div>
  392.             </div>
  393.             <div class=\"col-lg-5 col-md-8 col-sm-8 col-12\">
  394.                 <div class=\"premium__content\" data-scroll=\"scroll-down\">
  395.                     <div class=\"premium__text\">
  396.                         <p class=\"text text--header text--sans\">{{ page.translate.shortText|striptags('<strong>')|raw }}</p>
  397.                         <p class=\"text text--big text--sans\">{{ page.translate.text|striptags }}</p>
  398.                     </div>
  399.                     {% if blocks['index_button'] is defined %}
  400.                         <div class=\"premium__button\">
  401.                             {{ blocks['index_button'].translate.text|raw }}
  402.                         </div>
  403.                     {% endif %}
  404.                 </div>
  405.             </div>
  406.             <div class=\"col-lg-4 col-12\">
  407.                 {% if blocks['logos'] is defined %}
  408.                     <div class=\"premium__bonus\">
  409.                         <div class=\"premium__header\">
  410.                             <p>{{ blocks['logos'].translate.name }}</p>
  411.                         </div>
  412.                         {% if blocks['logos'].files|length > 0 %}
  413.                             <div class=\"premium__quality\">
  414.                                 <div class=\"row\">
  415.                                     {% for file in blocks['logos'].files %}
  416.                                         <div class=\"col-lg-3 col-md-3 col-sm-3 col-6 text-center\">
  417.                                             <img src=\"{{ (path_media ~ '/' ~ file.directoryName ~ '/' ~ file.media) }}\"
  418.                                                  alt=\"{{ file.translate.alt|default() }}\">
  419.                                         </div>
  420.                                     {% endfor %}
  421.                                 </div>
  422.                             </div>
  423.                         {% endif %}
  424.                     </div>
  425.                 {% endif %}
  426.             </div>
  427.         </div>
  428.     </div>
  429. </section>
  430. {% if categories %}
  431.     <section class=\"carousel\">
  432.         <div class=\"wave wave--carousel wave--carousel-top\"></div>
  433.         <div class=\"container\">
  434.             <div class=\"carousel__header\">
  435.                 <h2 class=\"text text--h1 text--divider text--divider--center\">{{ 'Produkty'|trans }}</h2>
  436.             </div>
  437.             <div class=\"carousel__content js-carousel\" data-carousel>
  438.                 {% for category in categories %}
  439.                     {% if category.products|length > 0 %}
  440.                         {% include('front/page_shop_item_normal.html.twig') %}
  441.                     {% endif %}
  442.                 {% endfor %}
  443.             </div>
  444.             <div class=\"carousel__more\">
  445.                 <a href=\"{% if pt['shop'] is defined %}{{ pt['shop']|trans_path }}{% endif %}\"
  446.                    class=\"button button--spacy\">{{ 'Všechny produkty'|trans }}</a>
  447.             </div>
  448.         </div>
  449.     </section>
  450.     <div class=\"wave wave--carousel wave--carousel-bottom\"></div>
  451. {% endif %}
  452. <section class=\"benefit\">
  453.     <div class=\"container\">
  454.         <div class=\"benefit__title\">
  455.             <h2 class=\"text text--h1 text--divider text--divider--center\">{{ 'Proč Jihočeské jerky?'|trans }}</h2>
  456.         </div>
  457.     </div>
  458.     <div class=\"benefit__content\">
  459.         <div class=\"container\">
  460.             <div class=\"row\">
  461.                 {% for benefitIndex in 1..4 %}
  462.                     {% if blocks['benefit-' ~ benefitIndex] is defined and blocks['benefit-' ~ benefitIndex].file is not empty %}
  463.                         <div class=\"col-lg-3 col-md-3 col-sm-4 col-6\">
  464.                             <div class=\"benefit__item\">
  465.                                 <div class=\"benefit__img\">
  466.                                     <img src=\"{{ (path_media ~ '/' ~ blocks['benefit-' ~ benefitIndex].file.directoryName ~ '/' ~ blocks['benefit-' ~ benefitIndex].file.media) }}\"
  467.                                          alt=\"{{ blocks['benefit-' ~ benefitIndex].file.translate.alt|default() }}\">
  468.                                 </div>
  469.                                 <p class=\"benefit__text text--sanchez\">
  470.                                     {{ blocks['benefit-' ~ benefitIndex].translate.name }}
  471.                                 </p>
  472.                             </div>
  473.                         </div>
  474.                     {% endif %}
  475.                 {% endfor %}
  476.             </div>
  477.         </div>
  478.     </div>
  479. </section>
  480. {% include 'front/widgets/instagram.html.twig' %}
  481. {% include 'footer.html.twig' %}
  482. ""front/index.html.twig""/home/web/nexgen.cz/dev58/templates/front/index.html.twig");
  483.     }
  484. }