<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* front/product/product_list.html.twig */
class __TwigTemplate_f6aec83e8c8e3e3cfa69ff33acdda8cf92999641c05b85c305dd5dfcb56502e9 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'body' => [$this, 'block_body'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "base_front.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/product/product_list.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/product/product_list.html.twig"));
$this->parent = $this->loadTemplate("base_front.html.twig", "front/product/product_list.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 4
echo "
<section id=\"products\">
<div class=\"container-right container-video position-relative bg-black-transparent p-5\">
<h2 class=\"black mb-3\">Products <br><span>& services</span></h2>
<div class=\"tabs-page mt-5\">
<div class=\"row col-md-12\">
";
// line 11
$context['_parent'] = $context;
$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); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
// line 12
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["category"], "subcategories", [], "any", false, false, false, 12))) {
// line 13
echo " ";
if ( !twig_get_attribute($this->env, $this->source, $context["loop"], "first", [], "any", false, false, false, 13)) {
// line 14
echo " <div class=\"separate\"></div>
";
}
// line 16
echo " <a href=\"";
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", false, false, false, 16), "subcategory_slug" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["category"], "subcategories", [], "any", false, false, false, 16), 0, [], "any", false, false, false, 16), "slug", [], "any", false, false, false, 16)]), "html", null, true);
echo "\" ";
if ((0 === 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", false, false, false, 16), twig_get_attribute($this->env, $this->source, $context["category"], "id", [], "any", false, false, false, 16)))) {
echo "class=\"active\"";
}
echo ">
<h3>";
// line 17
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["category"], "name", [], "any", false, false, false, 17), "html", null, true);
echo "</h3>
</a>
";
}
// line 20
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 21
echo " </div>
</div>
<div class=\"col-md-12 mt-5 tabs-services\">
<ul class=\"nav nav-pills mb-3\" id=\"pills-tab\" role=\"tablist\">
";
// line 26
$context['_parent'] = $context;
$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", false, false, false, 26));
foreach ($context['_seq'] as $context["_key"] => $context["subCategory"]) {
// line 27
echo " <li class=\"nav-item\" role=\"presentation\">
<button class=\"nav-link ";
// line 28
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["subCategory"], "id", [], "any", false, false, false, 28), 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", false, false, false, 28)))) {
echo "active";
}
echo "\"
id=\"pills-home-tab\"
data-toggle=\"pill\"
data-target=\"#";
// line 31
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["subCategory"], "slug", [], "any", false, false, false, 31), "html", null, true);
echo "\"
type=\"button\"
role=\"tab\"
aria-controls=\"pills-home\"
aria-selected=\"";
// line 35
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["subCategory"], "id", [], "any", false, false, false, 35), 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", false, false, false, 35)))) {
echo "true";
} else {
echo "false";
}
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["subCategory"], "name", [], "any", false, false, false, 35), "html", null, true);
echo "</button>
</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['subCategory'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 38
echo " </ul>
<div class=\"tab-content\" id=\"pills-tabContent\">
";
// line 40
$context['_parent'] = $context;
$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", false, false, false, 40));
foreach ($context['_seq'] as $context["_key"] => $context["subCategory"]) {
// line 41
echo " <div class=\"tab-pane fade ";
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["subCategory"], "id", [], "any", false, false, false, 41), 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", false, false, false, 41)))) {
echo "show active";
}
echo "\" id=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["subCategory"], "slug", [], "any", false, false, false, 41), "html", null, true);
echo "\" role=\"tabpanel\" aria-labelledby=\"pills-home-tab\">
<div class=\"row col-md-12 mt-5 align-items-start\">
<div class=\"col-md-12 col-lg-12 col-xl-5 service-description\" style=\"background-color:";
// line 43
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["subCategory"], "category", [], "any", false, false, false, 43), "color", [], "any", false, false, false, 43), "html", null, true);
echo ";\">
<h3>DESCRIPTION</h3>
<p class=\"white\">";
// line 45
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["subCategory"], "description", [], "any", false, false, false, 45), "html", null, true);
echo "</p>
</div>
<div class=\"col-lg-12 col-xl-7 service-list pt-4\">
<div class=\"row\">
";
// line 49
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["subCategory"], "productPages", [], "any", false, false, false, 49));
foreach ($context['_seq'] as $context["_key"] => $context["page"]) {
// line 50
echo " <div class=\"col-lg-4 col-xl-4 mt-3\">
<a href=\"";
// line 51
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->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["page"], "subcategory", [], "any", false, false, false, 51), "category", [], "any", false, false, false, 51), "slug", [], "any", false, false, false, 51), "subcategory_slug" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["page"], "subcategory", [], "any", false, false, false, 51), "slug", [], "any", false, false, false, 51), "slug_page" => twig_get_attribute($this->env, $this->source, $context["page"], "slug", [], "any", false, false, false, 51)]), "html", null, true);
echo "\">
<div class=\"bg-white black square\"><span>";
// line 52
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["page"], "name", [], "any", false, false, false, 52), "html", null, true);
echo "</div>
</a>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['page'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 56
echo " </div>
</div>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['subCategory'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 61
echo " </div>
</div>
</div>
</section>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "front/product/product_list.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends 'base_front.html.twig' %}
{% block body %}
<section id=\"products\">
<div class=\"container-right container-video position-relative bg-black-transparent p-5\">
<h2 class=\"black mb-3\">Products <br><span>& services</span></h2>
<div class=\"tabs-page mt-5\">
<div class=\"row col-md-12\">
{% for category in allCategories %}
{% if category.subcategories is not empty %}
{% if not loop.first %}
<div class=\"separate\"></div>
{% endif %}
<a href=\"{{ path('front_product_list', {'category_slug' : category.slug, 'subcategory_slug': category.subcategories.0.slug}) }}\" {% if currentCategory.id == category.id %}class=\"active\"{% endif %}>
<h3>{{ category.name }}</h3>
</a>
{% endif %}
{% endfor %}
</div>
</div>
<div class=\"col-md-12 mt-5 tabs-services\">
<ul class=\"nav nav-pills mb-3\" id=\"pills-tab\" role=\"tablist\">
{% for subCategory in currentCategory.subCategories %}
<li class=\"nav-item\" role=\"presentation\">
<button class=\"nav-link {% if subCategory.id == currentSubCategory.id %}active{% endif %}\"
id=\"pills-home-tab\"
data-toggle=\"pill\"
data-target=\"#{{ subCategory.slug }}\"
type=\"button\"
role=\"tab\"
aria-controls=\"pills-home\"
aria-selected=\"{% if subCategory.id == currentSubCategory.id %}true{% else %}false{% endif %}\">{{ subCategory.name }}</button>
</li>
{% endfor %}
</ul>
<div class=\"tab-content\" id=\"pills-tabContent\">
{% for subCategory in currentCategory.subCategories %}
<div class=\"tab-pane fade {% if subCategory.id == currentSubCategory.id %}show active{% endif %}\" id=\"{{ subCategory.slug }}\" role=\"tabpanel\" aria-labelledby=\"pills-home-tab\">
<div class=\"row col-md-12 mt-5 align-items-start\">
<div class=\"col-md-12 col-lg-12 col-xl-5 service-description\" style=\"background-color:{{ subCategory.category.color }};\">
<h3>DESCRIPTION</h3>
<p class=\"white\">{{ subCategory.description }}</p>
</div>
<div class=\"col-lg-12 col-xl-7 service-list pt-4\">
<div class=\"row\">
{% for page in subCategory.productPages %}
<div class=\"col-lg-4 col-xl-4 mt-3\">
<a href=\"{{ path('front_product_page', {'category_slug' : page.subcategory.category.slug, 'subcategory_slug': page.subcategory.slug, 'slug_page': page.slug}) }}\">
<div class=\"bg-white black square\"><span>{{ page.name }}</div>
</a>
</div>
{% endfor %}
</div>
</div>
</div>
</div>
{% endfor %}
</div>
</div>
</div>
</section>
{% endblock %}", "front/product/product_list.html.twig", "/home/jumo/sites/sym/mauroservice/templates/front/product/product_list.html.twig");
}
}