<?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;
/* entreprise/product_by_category.html.twig */
class __TwigTemplate_abb4c53307812c38f5689e0073e0b3ef636db436c67cb1aa0ef9d597530fdc99 extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'side_menu' => [$this, 'block_side_menu'],
'real_content' => [$this, 'block_real_content'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "base_catalog.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", "entreprise/product_by_category.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "entreprise/product_by_category.html.twig"));
$this->parent = $this->loadTemplate("base_catalog.html.twig", "entreprise/product_by_category.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_side_menu($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", "side_menu"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "side_menu"));
// line 4
echo "
\t";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 7
public function block_real_content($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", "real_content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "real_content"));
// line 8
echo "\t\t";
echo twig_include($this->env, $context, "entreprise/product_raw_list_1.html.twig");
echo "
\t\t
\t\t";
// line 10
if (((isset($context["pageAmount"]) || array_key_exists("pageAmount", $context) ? $context["pageAmount"] : (function () { throw new RuntimeError('Variable "pageAmount" does not exist.', 10, $this->source); })()) > 1)) {
// line 11
echo "\t\t<div>
\t\t<div class=\"pt-4 pb-5 mb-4\">
<!-- Pagination-->
<nav class=\"d-flex justify-content-between pt-2\" aria-label=\"Page navigation\">
\t\t\t\t";
// line 15
$context["preview"] = ((isset($context["currentPage"]) || array_key_exists("currentPage", $context) ? $context["currentPage"] : (function () { throw new RuntimeError('Variable "currentPage" does not exist.', 15, $this->source); })()) - 1);
// line 16
echo "\t\t\t\t";
$context["next"] = ((isset($context["currentPage"]) || array_key_exists("currentPage", $context) ? $context["currentPage"] : (function () { throw new RuntimeError('Variable "currentPage" does not exist.', 16, $this->source); })()) + 1);
// line 17
echo "\t\t\t ";
if (((isset($context["currentPage"]) || array_key_exists("currentPage", $context) ? $context["currentPage"] : (function () { throw new RuntimeError('Variable "currentPage" does not exist.', 17, $this->source); })()) > 1)) {
// line 18
echo "\t\t\t <ul class=\"pagination\">
<li class=\"page-item\"><a class=\"page-link\" href=\"";
// line 19
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("product_by_category", ["slug" => twig_get_attribute($this->env, $this->source, (isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 19, $this->source); })()), "slug", [], "any", false, false, false, 19), "page" => "page", "currentPage" => (isset($context["preview"]) || array_key_exists("preview", $context) ? $context["preview"] : (function () { throw new RuntimeError('Variable "preview" does not exist.', 19, $this->source); })())]), "html", null, true);
echo "\"><i class=\"czi-arrow-left mr-2\"></i>Prev</a></li>
</ul>
\t\t\t";
}
// line 22
echo " <ul class=\"pagination\">
<li class=\"page-item d-sm-none\"><span class=\"page-link page-link-static\">1 / ";
// line 23
echo twig_escape_filter($this->env, (isset($context["pageAmount"]) || array_key_exists("pageAmount", $context) ? $context["pageAmount"] : (function () { throw new RuntimeError('Variable "pageAmount" does not exist.', 23, $this->source); })()), "html", null, true);
echo "</span></li>
\t\t\t\t";
// line 24
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(range(1, (isset($context["pageAmount"]) || array_key_exists("pageAmount", $context) ? $context["pageAmount"] : (function () { throw new RuntimeError('Variable "pageAmount" does not exist.', 24, $this->source); })())));
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
// line 25
echo "\t\t\t\t\t<li class=\"page-item ";
if (($context["i"] == (isset($context["currentPage"]) || array_key_exists("currentPage", $context) ? $context["currentPage"] : (function () { throw new RuntimeError('Variable "currentPage" does not exist.', 25, $this->source); })()))) {
echo " active";
}
echo " d-none d-sm-block\"><a class=\"page-link\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("product_by_category", ["slug" => twig_get_attribute($this->env, $this->source, (isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 25, $this->source); })()), "slug", [], "any", false, false, false, 25), "page" => "page", "currentPage" => $context["i"]]), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $context["i"], "html", null, true);
echo "</a></li>
\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 27
echo " </ul>
\t\t\t ";
// line 28
if (((isset($context["currentPage"]) || array_key_exists("currentPage", $context) ? $context["currentPage"] : (function () { throw new RuntimeError('Variable "currentPage" does not exist.', 28, $this->source); })()) < (isset($context["pageAmount"]) || array_key_exists("pageAmount", $context) ? $context["pageAmount"] : (function () { throw new RuntimeError('Variable "pageAmount" does not exist.', 28, $this->source); })()))) {
// line 29
echo " <ul class=\"pagination\">
<li class=\"page-item\"><a class=\"page-link\" href=\"";
// line 30
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("product_by_category", ["slug" => twig_get_attribute($this->env, $this->source, (isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 30, $this->source); })()), "slug", [], "any", false, false, false, 30), "page" => "page", "currentPage" => (isset($context["next"]) || array_key_exists("next", $context) ? $context["next"] : (function () { throw new RuntimeError('Variable "next" does not exist.', 30, $this->source); })())]), "html", null, true);
echo "\" aria-label=\"Next\">Next<i class=\"czi-arrow-right ml-2\"></i></a></li>
</ul>
\t\t\t
\t\t\t ";
}
// line 34
echo " </nav>
</div>
</div>
\t\t";
}
// line 38
echo "\t";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "entreprise/product_by_category.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 168 => 38, 162 => 34, 155 => 30, 152 => 29, 150 => 28, 147 => 27, 132 => 25, 128 => 24, 124 => 23, 121 => 22, 115 => 19, 112 => 18, 109 => 17, 106 => 16, 104 => 15, 98 => 11, 96 => 10, 90 => 8, 80 => 7, 69 => 4, 59 => 3, 36 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'base_catalog.html.twig' %}
\t{% block side_menu %}
\t{% endblock side_menu %}
\t\t
\t{% block real_content %}
\t\t{{ include ('entreprise/product_raw_list_1.html.twig') }}
\t\t
\t\t{% if pageAmount > 1 %}
\t\t<div>
\t\t<div class=\"pt-4 pb-5 mb-4\">
<!-- Pagination-->
<nav class=\"d-flex justify-content-between pt-2\" aria-label=\"Page navigation\">
\t\t\t\t{% set preview = currentPage - 1 %}
\t\t\t\t{% set next = currentPage + 1 %}
\t\t\t {% if currentPage > 1 %}
\t\t\t <ul class=\"pagination\">
<li class=\"page-item\"><a class=\"page-link\" href=\"{{ path('product_by_category', {'slug': category.slug, 'page':'page', 'currentPage': preview}) }}\"><i class=\"czi-arrow-left mr-2\"></i>Prev</a></li>
</ul>
\t\t\t{% endif %}
<ul class=\"pagination\">
<li class=\"page-item d-sm-none\"><span class=\"page-link page-link-static\">1 / {{ pageAmount }}</span></li>
\t\t\t\t{% for i in range(1, pageAmount) %}
\t\t\t\t\t<li class=\"page-item {% if i == currentPage %} active{% endif %} d-none d-sm-block\"><a class=\"page-link\" href=\"{{ path('product_by_category', {'slug': category.slug, 'page':'page', 'currentPage': i}) }}\">{{ i }}</a></li>
\t\t\t\t{% endfor %}
</ul>
\t\t\t {% if currentPage < pageAmount %}
<ul class=\"pagination\">
<li class=\"page-item\"><a class=\"page-link\" href=\"{{ path('product_by_category', {'slug': category.slug, 'page':'page', 'currentPage': next}) }}\" aria-label=\"Next\">Next<i class=\"czi-arrow-right ml-2\"></i></a></li>
</ul>
\t\t\t
\t\t\t {% endif %}
</nav>
</div>
</div>
\t\t{% endif %}
\t{% endblock real_content %}
\t\t
", "entreprise/product_by_category.html.twig", "/home/luxurybeautybarber/public_html/templates/entreprise/product_by_category.html.twig");
}
}