var/cache/dev/twig/f7/f7cac3a384d4532a2565a7b016f9b6317620712a207bcb324c31a1d1ec7c68a9.php line 58

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. /* front/product/product_list.html.twig */
  14. class __TwigTemplate_f6aec83e8c8e3e3cfa69ff33acdda8cf92999641c05b85c305dd5dfcb56502e9 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.             'body' => [$this'block_body'],
  24.         ];
  25.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 1
  29.         return "base_front.html.twig";
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""front/product/product_list.html.twig"));
  36.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""front/product/product_list.html.twig"));
  38.         $this->parent $this->loadTemplate("base_front.html.twig""front/product/product_list.html.twig"1);
  39.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  40.         
  41.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  42.         
  43.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  44.     }
  45.     // line 3
  46.     public function block_body($context, array $blocks = [])
  47.     {
  48.         $macros $this->macros;
  49.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  50.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  51.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  52.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  53.         // line 4
  54.         echo "
  55.     <section id=\"products\">
  56.         <div class=\"container-right container-video position-relative bg-black-transparent p-5\">
  57.             <h2 class=\"black mb-3\">Products <br><span>& services</span></h2>
  58.             <div class=\"tabs-page mt-5\">
  59.                 <div class=\"row col-md-12\">
  60.                     ";
  61.         // line 11
  62.         $context['_parent'] = $context;
  63.         $context['_seq'] = twig_ensure_traversable((isset($context["allCategories"]) || array_key_exists("allCategories"$context) ? $context["allCategories"] : (function () { throw new RuntimeError('Variable "allCategories" does not exist.'11$this->source); })()));
  64.         $context['loop'] = [
  65.           'parent' => $context['_parent'],
  66.           'index0' => 0,
  67.           'index'  => 1,
  68.           'first'  => true,
  69.         ];
  70.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  71.             $length count($context['_seq']);
  72.             $context['loop']['revindex0'] = $length 1;
  73.             $context['loop']['revindex'] = $length;
  74.             $context['loop']['length'] = $length;
  75.             $context['loop']['last'] = === $length;
  76.         }
  77.         foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
  78.             // line 12
  79.             echo "                        ";
  80.             if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["category"], "subcategories", [], "any"falsefalsefalse12))) {
  81.                 // line 13
  82.                 echo "                            ";
  83.                 if ( !twig_get_attribute($this->env$this->source$context["loop"], "first", [], "any"falsefalsefalse13)) {
  84.                     // line 14
  85.                     echo "                                <div class=\"separate\"></div>
  86.                             ";
  87.                 }
  88.                 // line 16
  89.                 echo "                            <a href=\"";
  90.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_product_list", ["category_slug" => twig_get_attribute($this->env$this->source$context["category"], "slug", [], "any"falsefalsefalse16), "subcategory_slug" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["category"], "subcategories", [], "any"falsefalsefalse16), 0, [], "any"falsefalsefalse16), "slug", [], "any"falsefalsefalse16)]), "html"nulltrue);
  91.                 echo "\" ";
  92.                 if ((=== twig_compare(twig_get_attribute($this->env$this->source, (isset($context["currentCategory"]) || array_key_exists("currentCategory"$context) ? $context["currentCategory"] : (function () { throw new RuntimeError('Variable "currentCategory" does not exist.'16$this->source); })()), "id", [], "any"falsefalsefalse16), twig_get_attribute($this->env$this->source$context["category"], "id", [], "any"falsefalsefalse16)))) {
  93.                     echo "class=\"active\"";
  94.                 }
  95.                 echo ">
  96.                                 <h3>";
  97.                 // line 17
  98.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["category"], "name", [], "any"falsefalsefalse17), "html"nulltrue);
  99.                 echo "</h3>
  100.                             </a>
  101.                         ";
  102.             }
  103.             // line 20
  104.             echo "                    ";
  105.             ++$context['loop']['index0'];
  106.             ++$context['loop']['index'];
  107.             $context['loop']['first'] = false;
  108.             if (isset($context['loop']['length'])) {
  109.                 --$context['loop']['revindex0'];
  110.                 --$context['loop']['revindex'];
  111.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  112.             }
  113.         }
  114.         $_parent $context['_parent'];
  115.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
  116.         $context array_intersect_key($context$_parent) + $_parent;
  117.         // line 21
  118.         echo "                </div>
  119.             </div>
  120.             <div class=\"col-md-12 mt-5 tabs-services\">
  121.                 <ul class=\"nav nav-pills mb-3\" id=\"pills-tab\" role=\"tablist\">
  122.                     ";
  123.         // line 26
  124.         $context['_parent'] = $context;
  125.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["currentCategory"]) || array_key_exists("currentCategory"$context) ? $context["currentCategory"] : (function () { throw new RuntimeError('Variable "currentCategory" does not exist.'26$this->source); })()), "subCategories", [], "any"falsefalsefalse26));
  126.         foreach ($context['_seq'] as $context["_key"] => $context["subCategory"]) {
  127.             // line 27
  128.             echo "                        <li class=\"nav-item\" role=\"presentation\">
  129.                             <button class=\"nav-link ";
  130.             // line 28
  131.             if ((=== twig_compare(twig_get_attribute($this->env$this->source$context["subCategory"], "id", [], "any"falsefalsefalse28), twig_get_attribute($this->env$this->source, (isset($context["currentSubCategory"]) || array_key_exists("currentSubCategory"$context) ? $context["currentSubCategory"] : (function () { throw new RuntimeError('Variable "currentSubCategory" does not exist.'28$this->source); })()), "id", [], "any"falsefalsefalse28)))) {
  132.                 echo "active";
  133.             }
  134.             echo "\"
  135.                                     id=\"pills-home-tab\"
  136.                                     data-toggle=\"pill\"
  137.                                     data-target=\"#";
  138.             // line 31
  139.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["subCategory"], "slug", [], "any"falsefalsefalse31), "html"nulltrue);
  140.             echo "\"
  141.                                     type=\"button\"
  142.                                     role=\"tab\"
  143.                                     aria-controls=\"pills-home\"
  144.                                     aria-selected=\"";
  145.             // line 35
  146.             if ((=== twig_compare(twig_get_attribute($this->env$this->source$context["subCategory"], "id", [], "any"falsefalsefalse35), twig_get_attribute($this->env$this->source, (isset($context["currentSubCategory"]) || array_key_exists("currentSubCategory"$context) ? $context["currentSubCategory"] : (function () { throw new RuntimeError('Variable "currentSubCategory" does not exist.'35$this->source); })()), "id", [], "any"falsefalsefalse35)))) {
  147.                 echo "true";
  148.             } else {
  149.                 echo "false";
  150.             }
  151.             echo "\">";
  152.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["subCategory"], "name", [], "any"falsefalsefalse35), "html"nulltrue);
  153.             echo "</button>
  154.                         </li>
  155.                     ";
  156.         }
  157.         $_parent $context['_parent'];
  158.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['subCategory'], $context['_parent'], $context['loop']);
  159.         $context array_intersect_key($context$_parent) + $_parent;
  160.         // line 38
  161.         echo "                </ul>
  162.                 <div class=\"tab-content\" id=\"pills-tabContent\">
  163.                     ";
  164.         // line 40
  165.         $context['_parent'] = $context;
  166.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["currentCategory"]) || array_key_exists("currentCategory"$context) ? $context["currentCategory"] : (function () { throw new RuntimeError('Variable "currentCategory" does not exist.'40$this->source); })()), "subCategories", [], "any"falsefalsefalse40));
  167.         foreach ($context['_seq'] as $context["_key"] => $context["subCategory"]) {
  168.             // line 41
  169.             echo "                        <div class=\"tab-pane fade ";
  170.             if ((=== twig_compare(twig_get_attribute($this->env$this->source$context["subCategory"], "id", [], "any"falsefalsefalse41), twig_get_attribute($this->env$this->source, (isset($context["currentSubCategory"]) || array_key_exists("currentSubCategory"$context) ? $context["currentSubCategory"] : (function () { throw new RuntimeError('Variable "currentSubCategory" does not exist.'41$this->source); })()), "id", [], "any"falsefalsefalse41)))) {
  171.                 echo "show active";
  172.             }
  173.             echo "\" id=\"";
  174.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["subCategory"], "slug", [], "any"falsefalsefalse41), "html"nulltrue);
  175.             echo "\" role=\"tabpanel\" aria-labelledby=\"pills-home-tab\">
  176.                         <div class=\"row col-md-12 mt-5 align-items-start\">
  177.                             <div class=\"col-md-12 col-lg-12 col-xl-5 service-description\" style=\"background-color:";
  178.             // line 43
  179.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["subCategory"], "category", [], "any"falsefalsefalse43), "color", [], "any"falsefalsefalse43), "html"nulltrue);
  180.             echo ";\">
  181.                                 <h3>DESCRIPTION</h3>
  182.                                 <p class=\"white\">";
  183.             // line 45
  184.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["subCategory"], "description", [], "any"falsefalsefalse45), "html"nulltrue);
  185.             echo "</p>
  186.                             </div>
  187.                             <div class=\"col-lg-12 col-xl-7 service-list pt-4\">
  188.                                 <div class=\"row\">
  189.                                     ";
  190.             // line 49
  191.             $context['_parent'] = $context;
  192.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["subCategory"], "productPages", [], "any"falsefalsefalse49));
  193.             foreach ($context['_seq'] as $context["_key"] => $context["page"]) {
  194.                 // line 50
  195.                 echo "                                        <div class=\"col-lg-4 col-xl-4 mt-3\">
  196.                                             <a href=\"";
  197.                 // line 51
  198.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_product_page", ["category_slug" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["page"], "subcategory", [], "any"falsefalsefalse51), "category", [], "any"falsefalsefalse51), "slug", [], "any"falsefalsefalse51), "subcategory_slug" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["page"], "subcategory", [], "any"falsefalsefalse51), "slug", [], "any"falsefalsefalse51), "slug_page" => twig_get_attribute($this->env$this->source$context["page"], "slug", [], "any"falsefalsefalse51)]), "html"nulltrue);
  199.                 echo "\">
  200.                                                 <div class=\"bg-white black square\"><span>";
  201.                 // line 52
  202.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["page"], "name", [], "any"falsefalsefalse52), "html"nulltrue);
  203.                 echo "</div>
  204.                                             </a>
  205.                                         </div>
  206.                                     ";
  207.             }
  208.             $_parent $context['_parent'];
  209.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['page'], $context['_parent'], $context['loop']);
  210.             $context array_intersect_key($context$_parent) + $_parent;
  211.             // line 56
  212.             echo "                                </div>
  213.                             </div>
  214.                         </div>
  215.                     </div>
  216.                     ";
  217.         }
  218.         $_parent $context['_parent'];
  219.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['subCategory'], $context['_parent'], $context['loop']);
  220.         $context array_intersect_key($context$_parent) + $_parent;
  221.         // line 61
  222.         echo "                </div>
  223.             </div>
  224.         </div>
  225.     </section>
  226. ";
  227.         
  228.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  229.         
  230.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  231.     }
  232.     public function getTemplateName()
  233.     {
  234.         return "front/product/product_list.html.twig";
  235.     }
  236.     public function isTraitable()
  237.     {
  238.         return false;
  239.     }
  240.     public function getDebugInfo()
  241.     {
  242.         return array (  238 => 61,  228 => 56,  218 => 52,  214 => 51,  211 => 50,  207 => 49,  200 => 45,  195 => 43,  185 => 41,  181 => 40,  177 => 38,  162 => 35,  155 => 31,  147 => 28,  144 => 27,  140 => 26,  133 => 21,  119 => 20,  113 => 17,  104 => 16,  100 => 14,  97 => 13,  94 => 12,  77 => 11,  68 => 4,  58 => 3,  35 => 1,);
  243.     }
  244.     public function getSourceContext()
  245.     {
  246.         return new Source("{% extends 'base_front.html.twig' %}
  247. {% block body %}
  248.     <section id=\"products\">
  249.         <div class=\"container-right container-video position-relative bg-black-transparent p-5\">
  250.             <h2 class=\"black mb-3\">Products <br><span>& services</span></h2>
  251.             <div class=\"tabs-page mt-5\">
  252.                 <div class=\"row col-md-12\">
  253.                     {% for category in allCategories %}
  254.                         {% if category.subcategories is not empty %}
  255.                             {% if not loop.first %}
  256.                                 <div class=\"separate\"></div>
  257.                             {% endif %}
  258.                             <a href=\"{{ path('front_product_list', {'category_slug' : category.slug, 'subcategory_slug': category.subcategories.0.slug}) }}\" {% if currentCategory.id == category.id %}class=\"active\"{% endif %}>
  259.                                 <h3>{{ category.name }}</h3>
  260.                             </a>
  261.                         {% endif %}
  262.                     {% endfor %}
  263.                 </div>
  264.             </div>
  265.             <div class=\"col-md-12 mt-5 tabs-services\">
  266.                 <ul class=\"nav nav-pills mb-3\" id=\"pills-tab\" role=\"tablist\">
  267.                     {% for subCategory in currentCategory.subCategories %}
  268.                         <li class=\"nav-item\" role=\"presentation\">
  269.                             <button class=\"nav-link {% if subCategory.id == currentSubCategory.id %}active{% endif %}\"
  270.                                     id=\"pills-home-tab\"
  271.                                     data-toggle=\"pill\"
  272.                                     data-target=\"#{{ subCategory.slug }}\"
  273.                                     type=\"button\"
  274.                                     role=\"tab\"
  275.                                     aria-controls=\"pills-home\"
  276.                                     aria-selected=\"{% if subCategory.id == currentSubCategory.id %}true{% else %}false{% endif %}\">{{ subCategory.name }}</button>
  277.                         </li>
  278.                     {% endfor %}
  279.                 </ul>
  280.                 <div class=\"tab-content\" id=\"pills-tabContent\">
  281.                     {% for subCategory in currentCategory.subCategories %}
  282.                         <div class=\"tab-pane fade {% if subCategory.id == currentSubCategory.id %}show active{% endif %}\" id=\"{{ subCategory.slug }}\" role=\"tabpanel\" aria-labelledby=\"pills-home-tab\">
  283.                         <div class=\"row col-md-12 mt-5 align-items-start\">
  284.                             <div class=\"col-md-12 col-lg-12 col-xl-5 service-description\" style=\"background-color:{{ subCategory.category.color }};\">
  285.                                 <h3>DESCRIPTION</h3>
  286.                                 <p class=\"white\">{{ subCategory.description }}</p>
  287.                             </div>
  288.                             <div class=\"col-lg-12 col-xl-7 service-list pt-4\">
  289.                                 <div class=\"row\">
  290.                                     {% for page in subCategory.productPages %}
  291.                                         <div class=\"col-lg-4 col-xl-4 mt-3\">
  292.                                             <a href=\"{{ path('front_product_page', {'category_slug' : page.subcategory.category.slug, 'subcategory_slug': page.subcategory.slug, 'slug_page': page.slug}) }}\">
  293.                                                 <div class=\"bg-white black square\"><span>{{ page.name }}</div>
  294.                                             </a>
  295.                                         </div>
  296.                                     {% endfor %}
  297.                                 </div>
  298.                             </div>
  299.                         </div>
  300.                     </div>
  301.                     {% endfor %}
  302.                 </div>
  303.             </div>
  304.         </div>
  305.     </section>
  306. {% endblock %}""front/product/product_list.html.twig""/home/jumo/sites/sym/mauroservice/templates/front/product/product_list.html.twig");
  307.     }
  308. }