var/cache/dev/twig/3e/3e76c27e3f918d06e6ad322251d693a95be70eaba37843332a99ff6998e14027.php line 40

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* Slivki/sale/flier_index.html.twig */
  14. class __TwigTemplate_70d04ec31c4d96f413c6de9a730d837bde6cba81d510514d2af0e0b67f74fc5c extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'stylesheets' => [$this'block_stylesheets'],
  24.             'main_content' => [$this'block_main_content'],
  25.             'javascripts' => [$this'block_javascripts'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "Slivki/sale/index.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Slivki/sale/flier_index.html.twig"));
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Slivki/sale/flier_index.html.twig"));
  40.         $this->parent $this->loadTemplate("Slivki/sale/index.html.twig""Slivki/sale/flier_index.html.twig"1);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  44.         
  45.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  46.     }
  47.     // line 3
  48.     public function block_stylesheets($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  55.         // line 4
  56.         echo "    <link rel=\"stylesheet\" type=\"text/css\" href=\"https://cdn.jsdelivr.net/jquery.slick/1.6.0/slick.css\"/>
  57.     ";
  58.         // line 5
  59.         $this->displayParentBlock("stylesheets"$context$blocks);
  60.         echo "
  61. ";
  62.         
  63.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  64.         
  65.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  66.     }
  67.     // line 8
  68.     public function block_main_content($context, array $blocks = [])
  69.     {
  70.         $macros $this->macros;
  71.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  72.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main_content"));
  73.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  74.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main_content"));
  75.         // line 9
  76.         echo "    <input type=\"hidden\" id=\"categoryID\" value=\"";
  77.         echo twig_escape_filter($this->env, (isset($context["currentCategoryID"]) || array_key_exists("currentCategoryID"$context) ? $context["currentCategoryID"] : (function () { throw new RuntimeError('Variable "currentCategoryID" does not exist.'9$this->source); })()), "html"nulltrue);
  78.         echo "\"/>
  79.     <div id=\"saleIndexTeasers\">
  80.         ";
  81.         // line 11
  82.         $context['_parent'] = $context;
  83.         $context['_seq'] = twig_ensure_traversable((isset($context["flierCategoryList"]) || array_key_exists("flierCategoryList"$context) ? $context["flierCategoryList"] : (function () { throw new RuntimeError('Variable "flierCategoryList" does not exist.'11$this->source); })()));
  84.         $context['loop'] = [
  85.           'parent' => $context['_parent'],
  86.           'index0' => 0,
  87.           'index'  => 1,
  88.           'first'  => true,
  89.         ];
  90.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  91.             $length count($context['_seq']);
  92.             $context['loop']['revindex0'] = $length 1;
  93.             $context['loop']['revindex'] = $length;
  94.             $context['loop']['length'] = $length;
  95.             $context['loop']['last'] = === $length;
  96.         }
  97.         foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
  98.             // line 12
  99.             echo "            <div class=\"flier-list-wrap\">
  100.                 <div class=\"title\">";
  101.             // line 13
  102.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["category"], "category", [], "any"falsefalsefalse13), "getName", [], "method"falsefalsefalse13), "html"nulltrue);
  103.             echo " (";
  104.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["category"], "category", [], "any"falsefalsefalse13), "getEntityCount", [], "method"falsefalsefalse13), "html"nulltrue);
  105.             echo ")</div>
  106.                 <div class=\"flier-list noslider\">
  107.                     ";
  108.             // line 15
  109.             $context['_parent'] = $context;
  110.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["category"], "saleList", [], "any"falsefalsefalse15));
  111.             $context['loop'] = [
  112.               'parent' => $context['_parent'],
  113.               'index0' => 0,
  114.               'index'  => 1,
  115.               'first'  => true,
  116.             ];
  117.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  118.                 $length count($context['_seq']);
  119.                 $context['loop']['revindex0'] = $length 1;
  120.                 $context['loop']['revindex'] = $length;
  121.                 $context['loop']['length'] = $length;
  122.                 $context['loop']['last'] = === $length;
  123.             }
  124.             foreach ($context['_seq'] as $context["_key"] => $context["sale"]) {
  125.                 // line 16
  126.                 echo "                        ";
  127.                 $this->loadTemplate("Slivki/sale/flier.html.twig""Slivki/sale/flier_index.html.twig"16)->display(twig_array_merge($context, ["lazyLoad" => false]));
  128.                 // line 17
  129.                 echo "                    ";
  130.                 ++$context['loop']['index0'];
  131.                 ++$context['loop']['index'];
  132.                 $context['loop']['first'] = false;
  133.                 if (isset($context['loop']['length'])) {
  134.                     --$context['loop']['revindex0'];
  135.                     --$context['loop']['revindex'];
  136.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  137.                 }
  138.             }
  139.             $_parent $context['_parent'];
  140.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['sale'], $context['_parent'], $context['loop']);
  141.             $context array_intersect_key($context$_parent) + $_parent;
  142.             // line 18
  143.             echo "                </div>
  144.             </div>
  145.         ";
  146.             ++$context['loop']['index0'];
  147.             ++$context['loop']['index'];
  148.             $context['loop']['first'] = false;
  149.             if (isset($context['loop']['length'])) {
  150.                 --$context['loop']['revindex0'];
  151.                 --$context['loop']['revindex'];
  152.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  153.             }
  154.         }
  155.         $_parent $context['_parent'];
  156.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
  157.         $context array_intersect_key($context$_parent) + $_parent;
  158.         // line 21
  159.         echo "    </div>
  160. ";
  161.         
  162.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  163.         
  164.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  165.     }
  166.     // line 24
  167.     public function block_javascripts($context, array $blocks = [])
  168.     {
  169.         $macros $this->macros;
  170.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  171.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  172.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  173.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  174.         // line 25
  175.         echo "    <script src=\"https://cdn.jsdelivr.net/jquery.slick/1.6.0/slick.min.js\"></script>
  176.     <script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery.countdown/2.2.0/jquery.countdown.min.js\"></script>
  177.     ";
  178.         // line 27
  179.         $this->displayParentBlock("javascripts"$context$blocks);
  180.         echo "
  181. ";
  182.         
  183.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  184.         
  185.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  186.     }
  187.     public function getTemplateName()
  188.     {
  189.         return "Slivki/sale/flier_index.html.twig";
  190.     }
  191.     public function isTraitable()
  192.     {
  193.         return false;
  194.     }
  195.     public function getDebugInfo()
  196.     {
  197.         return array (  203 => 27,  199 => 25,  189 => 24,  178 => 21,  162 => 18,  148 => 17,  145 => 16,  128 => 15,  121 => 13,  118 => 12,  101 => 11,  95 => 9,  85 => 8,  73 => 5,  70 => 4,  60 => 3,  37 => 1,);
  198.     }
  199.     public function getSourceContext()
  200.     {
  201.         return new Source("{% extends 'Slivki/sale/index.html.twig' %}
  202. {% block stylesheets %}
  203.     <link rel=\"stylesheet\" type=\"text/css\" href=\"https://cdn.jsdelivr.net/jquery.slick/1.6.0/slick.css\"/>
  204.     {{ parent() }}
  205. {% endblock %}
  206. {% block main_content %}
  207.     <input type=\"hidden\" id=\"categoryID\" value=\"{{ currentCategoryID }}\"/>
  208.     <div id=\"saleIndexTeasers\">
  209.         {% for category in flierCategoryList %}
  210.             <div class=\"flier-list-wrap\">
  211.                 <div class=\"title\">{{ category.category.getName() }} ({{ category.category.getEntityCount() }})</div>
  212.                 <div class=\"flier-list noslider\">
  213.                     {% for sale in category.saleList %}
  214.                         {% include 'Slivki/sale/flier.html.twig' with {'lazyLoad': false} %}
  215.                     {% endfor %}
  216.                 </div>
  217.             </div>
  218.         {% endfor %}
  219.     </div>
  220. {% endblock %}
  221. {% block javascripts %}
  222.     <script src=\"https://cdn.jsdelivr.net/jquery.slick/1.6.0/slick.min.js\"></script>
  223.     <script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery.countdown/2.2.0/jquery.countdown.min.js\"></script>
  224.     {{ parent() }}
  225. {% endblock %}""Slivki/sale/flier_index.html.twig""/mnt/data/virtwww/dima/templates/Slivki/sale/flier_index.html.twig");
  226.     }
  227. }