<?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;
/* frontend/category/category.html.twig */
class __TwigTemplate_bf485cd43c4c65bf17186eeb6f50367d4648ef32489c2f033cf33c3eaf51e3ae extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'meta_desc_key' => [$this, 'block_meta_desc_key'],
'facebook' => [$this, 'block_facebook'],
'css' => [$this, 'block_css'],
'javascripts' => [$this, 'block_javascripts'],
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "base.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", "frontend/category/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", "frontend/category/category.html.twig"));
// line 3
$this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 3, $this->source); })()), [0 => "form/front.html.twig"], true);
// line 1
$this->parent = $this->loadTemplate("base.html.twig", "frontend/category/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 5
public function block_title($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", "title"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
// line 6
echo " ";
echo twig_escape_filter($this->env, 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.', 6, $this->source); })()), "metaTitle", [], "any", false, false, false, 6), "html", null, true);
echo "
";
// line 7
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 7, $this->source); })()), "request", [], "any", false, false, false, 7), "attributes", [], "any", false, false, false, 7), "get", [0 => "av24h"], "method", false, false, false, 7)) {
// line 8
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("products_in_24h_delivery", [], "store", (isset($context["locale"]) || array_key_exists("locale", $context) ? $context["locale"] : (function () { throw new RuntimeError('Variable "locale" does not exist.', 8, $this->source); })())), "html", null, true);
echo "
";
}
// line 10
echo " ";
if (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 10, $this->source); })()), "request", [], "any", false, false, false, 10), "query", [], "any", false, false, false, 10), "get", [0 => "page"], "method", false, false, false, 10) == 1) || (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 10, $this->source); })()), "request", [], "any", false, false, false, 10), "query", [], "any", false, false, false, 10), "get", [0 => "page"], "method", false, false, false, 10) == null))) {
// line 11
echo " ";
} else {
// line 12
echo " - ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("page", [], "store"), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 12, $this->source); })()), "request", [], "any", false, false, false, 12), "get", [0 => "page"], "method", false, false, false, 12), "html", null, true);
echo "
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 16
public function block_meta_desc_key($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", "meta_desc_key"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "meta_desc_key"));
// line 17
echo " ";
if (twig_get_attribute($this->env, $this->source, ($context["category"] ?? null), "metaDescription", [], "any", true, true, false, 17)) {
// line 18
echo " <meta name=\"description\" content=\"";
echo 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.', 18, $this->source); })()), "metaDescription", [], "any", false, false, false, 18);
echo "\">
";
} else {
// line 20
echo " <meta name=\"description\" content=\"Centrum Krzeseł, Sprawdź krzesła i fotele do biura i domu. Niskie ceny, gwarancja oraz dostawa 24h. Kup teraz!\">
";
}
// line 22
echo "
";
// line 23
if (twig_get_attribute($this->env, $this->source, ($context["category"] ?? null), "metaKeywords", [], "any", true, true, false, 23)) {
// line 24
echo " <meta name=\"keywords\" content=\"";
echo 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.', 24, $this->source); })()), "metaKeywords", [], "any", false, false, false, 24);
echo "\">
";
} else {
// line 26
echo " <meta name=\"keywords\" content=\"krzesła, fotele, hokery, meble, sklep internetowy, zakupy, centrum krzeseł\">
";
}
// line 28
echo " ";
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 28, $this->source); })()), "request", [], "any", false, false, false, 28), "locale", [], "any", false, false, false, 28) == "pl")) {
// line 29
echo " ";
// line 30
echo " ";
// line 33
echo " ";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 36
public function block_facebook($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", "facebook"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "facebook"));
// line 37
echo " ";
if (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.', 37, $this->source); })()), "imageName", [], "any", false, false, false, 37)) {
// line 38
echo " <meta property=\"og:image\" content=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["language"]) || array_key_exists("language", $context) ? $context["language"] : (function () { throw new RuntimeError('Variable "language" does not exist.', 38, $this->source); })()), "storeUrl", [], "any", false, false, false, 38), "html", null, true);
echo "/images/category/";
echo twig_escape_filter($this->env, 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.', 38, $this->source); })()), "imageName", [], "any", false, false, false, 38), "html", null, true);
echo "\"/>
";
}
// line 40
echo " ";
// line 41
echo " <meta property=\"og:title\" content=\"";
echo twig_escape_filter($this->env, 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.', 41, $this->source); })()), "name", [], "any", false, false, false, 41), "html", null, true);
echo "\"/>
";
// line 43
echo " <meta property=\"og:url\" content=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["language"]) || array_key_exists("language", $context) ? $context["language"] : (function () { throw new RuntimeError('Variable "language" does not exist.', 43, $this->source); })()), "storeUrl", [], "any", false, false, false, 43), "html", null, true);
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("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.', 43, $this->source); })()), "slug", [], "any", false, false, false, 43), "id" => 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.', 43, $this->source); })()), "id", [], "any", false, false, false, 43)]), "html", null, true);
echo "\"/>
<meta property=\"og:type\" content=\"product.group\"/>
";
// line 46
if (twig_get_attribute($this->env, $this->source, ($context["category"] ?? null), "metaDescription", [], "any", true, true, false, 46)) {
// line 47
echo " <meta property=\"og:description\" content=\"";
echo 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.', 47, $this->source); })()), "metaDescription", [], "any", false, false, false, 47);
echo "\">
";
} else {
// line 49
echo " <meta property=\"og:description\" content=\"";
echo 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.', 49, $this->source); })()), "metaTitle", [], "any", false, false, false, 49);
echo "\">
";
}
// line 51
echo "
";
// line 52
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, true, false, 52), "get", [0 => "slug"], "method", true, true, false, 52) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, true, false, 52), "get", [0 => "page"], "method", true, true, false, 52))) {
// line 53
echo " ";
// line 56
echo " ";
}
// line 57
echo "
";
// line 58
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 58, $this->source); })()), "request", [], "any", false, false, false, 58), "locale", [], "any", false, false, false, 58) == "pl")) {
// line 59
echo " ";
if (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.', 59, $this->source); })()), "getCanonical", [], "any", false, false, false, 59)) {
// line 60
echo " <link rel=\"canonical\" href=\"";
echo twig_escape_filter($this->env, 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.', 60, $this->source); })()), "getCanonical", [], "any", false, false, false, 60), "html", null, true);
echo "\" />
";
} else {
// line 62
echo "
";
// line 63
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 63, $this->source); })()), "request", [], "any", false, false, false, 63), "get", [0 => "search"], "method", false, false, false, 63)) {
// line 64
echo " <link rel=\"canonical\" href=\"https://www.centrumkrzesel.pl";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("category", ["id" => 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.', 64, $this->source); })()), "id", [], "any", false, false, false, 64), "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.', 64, $this->source); })()), "slug", [], "any", false, false, false, 64)]), "html", null, true);
echo "\" />
";
} elseif (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 65
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 65, $this->source); })()), "request", [], "any", false, false, false, 65), "attributes", [], "any", false, false, false, 65), "get", [0 => "av24h"], "method", false, false, false, 65)) {
// line 66
echo " <link rel=\"canonical\" href=\"https://www.centrumkrzesel.pl";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("category", ["id" => 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.', 66, $this->source); })()), "id", [], "any", false, false, false, 66), "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.', 66, $this->source); })()), "slug", [], "any", false, false, false, 66)]), "html", null, true);
echo "\" />
";
} elseif ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 67
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 67, $this->source); })()), "request", [], "any", false, false, false, 67), "get", [0 => "page"], "method", false, false, false, 67) == 1)) {
// line 68
echo " <link rel=\"canonical\" href=\"https://www.centrumkrzesel.pl";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("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.', 68, $this->source); })()), "slug", [], "any", false, false, false, 68), "id" => 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.', 68, $this->source); })()), "id", [], "any", false, false, false, 68)]), "html", null, true);
echo "\" />
";
} elseif ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 69
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 69, $this->source); })()), "request", [], "any", false, false, false, 69), "get", [0 => "page"], "method", false, false, false, 69) >= 2)) {
// line 70
echo " ";
}
// line 71
echo " ";
}
// line 72
echo " ";
}
// line 73
echo "
";
// line 74
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 74, $this->source); })()), "request", [], "any", false, false, false, 74), "locale", [], "any", false, false, false, 74) == "cz")) {
// line 75
echo " ";
if (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.', 75, $this->source); })()), "getCanonical", [], "any", false, false, false, 75)) {
// line 76
echo " <link rel=\"canonical\" href=\"";
echo twig_escape_filter($this->env, 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.', 76, $this->source); })()), "getCanonical", [], "any", false, false, false, 76), "html", null, true);
echo "\" />
";
} else {
// line 78
echo "
";
// line 79
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 79, $this->source); })()), "request", [], "any", false, false, false, 79), "get", [0 => "search"], "method", false, false, false, 79)) {
// line 80
echo " <link rel=\"canonical\" href=\"https://www.ezidle.cz";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("category", ["id" => 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.', 80, $this->source); })()), "id", [], "any", false, false, false, 80), "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.', 80, $this->source); })()), "slug", [], "any", false, false, false, 80)]), "html", null, true);
echo "\" />
";
} elseif (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 81
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 81, $this->source); })()), "request", [], "any", false, false, false, 81), "attributes", [], "any", false, false, false, 81), "get", [0 => "av24h"], "method", false, false, false, 81)) {
// line 82
echo " <link rel=\"canonical\" href=\"https://www.ezidle.cz";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("category", ["id" => 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.', 82, $this->source); })()), "id", [], "any", false, false, false, 82), "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.', 82, $this->source); })()), "slug", [], "any", false, false, false, 82)]), "html", null, true);
echo "\" />
";
} elseif ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 83
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 83, $this->source); })()), "request", [], "any", false, false, false, 83), "get", [0 => "page"], "method", false, false, false, 83) == 1)) {
// line 84
echo " <link rel=\"canonical\" href=\"https://www.ezidle.cz";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("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.', 84, $this->source); })()), "slug", [], "any", false, false, false, 84), "id" => 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.', 84, $this->source); })()), "id", [], "any", false, false, false, 84)]), "html", null, true);
echo "\" />
";
} elseif ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 85
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 85, $this->source); })()), "request", [], "any", false, false, false, 85), "get", [0 => "page"], "method", false, false, false, 85) >= 2)) {
// line 86
echo " ";
}
// line 87
echo " ";
}
// line 88
echo " ";
}
// line 89
echo "
";
// line 90
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 90, $this->source); })()), "request", [], "any", false, false, false, 90), "locale", [], "any", false, false, false, 90) == "sk")) {
// line 91
echo " ";
if (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.', 91, $this->source); })()), "getCanonical", [], "any", false, false, false, 91)) {
// line 92
echo " <link rel=\"canonical\" href=\"";
echo twig_escape_filter($this->env, 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.', 92, $this->source); })()), "getCanonical", [], "any", false, false, false, 92), "html", null, true);
echo "\" />
";
} else {
// line 94
echo "
";
// line 95
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 95, $this->source); })()), "request", [], "any", false, false, false, 95), "get", [0 => "search"], "method", false, false, false, 95)) {
// line 96
echo " <link rel=\"canonical\" href=\"https://www.stolicky24.sk";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("category", ["id" => 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.', 96, $this->source); })()), "id", [], "any", false, false, false, 96), "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.', 96, $this->source); })()), "slug", [], "any", false, false, false, 96)]), "html", null, true);
echo "\" />
";
} elseif (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 97
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 97, $this->source); })()), "request", [], "any", false, false, false, 97), "attributes", [], "any", false, false, false, 97), "get", [0 => "av24h"], "method", false, false, false, 97)) {
// line 98
echo " <link rel=\"canonical\" href=\"https://www.stolicky24.sk";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("category", ["id" => 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.', 98, $this->source); })()), "id", [], "any", false, false, false, 98), "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.', 98, $this->source); })()), "slug", [], "any", false, false, false, 98)]), "html", null, true);
echo "\" />
";
} elseif ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 99
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 99, $this->source); })()), "request", [], "any", false, false, false, 99), "get", [0 => "page"], "method", false, false, false, 99) == 1)) {
// line 100
echo " <link rel=\"canonical\" href=\"https://www.stolicky24.sk";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("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.', 100, $this->source); })()), "slug", [], "any", false, false, false, 100), "id" => 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.', 100, $this->source); })()), "id", [], "any", false, false, false, 100)]), "html", null, true);
echo "\" />
";
} elseif ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 101
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 101, $this->source); })()), "request", [], "any", false, false, false, 101), "get", [0 => "page"], "method", false, false, false, 101) >= 2)) {
// line 102
echo " ";
}
// line 103
echo " ";
}
// line 104
echo " ";
}
// line 105
echo "
";
// line 106
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 106, $this->source); })()), "request", [], "any", false, false, false, 106), "locale", [], "any", false, false, false, 106) == "ro")) {
// line 107
echo " ";
if (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.', 107, $this->source); })()), "getCanonical", [], "any", false, false, false, 107)) {
// line 108
echo " <link rel=\"canonical\" href=\"";
echo twig_escape_filter($this->env, 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.', 108, $this->source); })()), "getCanonical", [], "any", false, false, false, 108), "html", null, true);
echo "\" />
";
} else {
// line 110
echo "
";
// line 111
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 111, $this->source); })()), "request", [], "any", false, false, false, 111), "get", [0 => "search"], "method", false, false, false, 111)) {
// line 112
echo " <link rel=\"canonical\" href=\"https://www.mobila24.ro";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("category", ["id" => 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.', 112, $this->source); })()), "id", [], "any", false, false, false, 112), "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.', 112, $this->source); })()), "slug", [], "any", false, false, false, 112)]), "html", null, true);
echo "\" />
";
} elseif (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 113
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 113, $this->source); })()), "request", [], "any", false, false, false, 113), "attributes", [], "any", false, false, false, 113), "get", [0 => "av24h"], "method", false, false, false, 113)) {
// line 114
echo " <link rel=\"canonical\" href=\"https://www.mobila24.ro";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("category", ["id" => 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.', 114, $this->source); })()), "id", [], "any", false, false, false, 114), "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.', 114, $this->source); })()), "slug", [], "any", false, false, false, 114)]), "html", null, true);
echo "\" />
";
} elseif ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 115
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 115, $this->source); })()), "request", [], "any", false, false, false, 115), "get", [0 => "page"], "method", false, false, false, 115) == 1)) {
// line 116
echo " <link rel=\"canonical\" href=\"https://www.mobila24.ro";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("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.', 116, $this->source); })()), "slug", [], "any", false, false, false, 116), "id" => 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.', 116, $this->source); })()), "id", [], "any", false, false, false, 116)]), "html", null, true);
echo "\" />
";
} elseif ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 117
(isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 117, $this->source); })()), "request", [], "any", false, false, false, 117), "get", [0 => "page"], "method", false, false, false, 117) >= 2)) {
// line 118
echo " ";
}
// line 119
echo " ";
}
// line 120
echo " ";
}
// line 121
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 124
public function block_css($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", "css"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "css"));
// line 125
echo " ";
$this->displayParentBlock("css", $context, $blocks);
echo "
<style>
/* Kolory w bocznym menu rozwijanym dzialaja, ale problem jest w tym ze input typu checkbox nie ma backgrounda i trzeba z osobna dodawac kazdy background image z kazdym kolorem/tkanina. Checkbox dodaje sie sam. Jezeli tkanina jest jasna, checkbox musi byc czarny*/
#kolory label.kolor-czerowny:before {
background: url(/images/red-bg.png)center center no-repeat;
}
#kolory input[type=checkbox]:checked + label.kolor-czerowny:before {
background:url(/images/check.png)center center no-repeat, url(/images/red-bg.png)center center no-repeat;
}
#kolory label.kolor-zielony:before {
background: url(/images/zielony-bg.png)center center no-repeat;
}
#kolory input[type=checkbox]:checked + label.kolor-zielony:before {
background:url(/images/check-czarny.png)center center no-repeat, url(/images/zielony-bg.png)center center no-repeat;
}
@media (max-width: 1022px) {
label.checkbox {
margin-bottom: 8px!important;
}
}
@media (min-width: 900px) {
#search_functions, #search_execution {
max-height: 470px;
overflow-y: auto;
overflow-x: hidden;
}
.image img {
width:auto;
margin-left: auto;
margin-right: auto;
}
}
@media (max-width: 500px) {
.with-description {
height:auto!important;
}
}
.cat-desc-excerpt {
overflow: hidden;
text-overflow: ellipsis;
height: 110px;
}
#cat-desc-excerpt h2 {
font-size:initial!important;
font-weight: bold;
}
#cat-desc-excerpt h1 {
font-size:initial!important;
}
#cat-desc-excerpt h3 {
font-size:initial!important;
}
#cat-desc-excerpt a {
color:#ef1b2b!important;
}
#cat-desc-excerpt ul {
list-style: initial!important;
}
#cat-desc-excerpt li {
list-style: initial!important;
margin-left:30px;
}
#search_color .checkbox {
display: block;
position: relative;
padding-left: 35px;
margin-bottom: 12px;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
/* Hide the browser's default checkbox */
#search_color .checkbox input {
position: absolute;
opacity: 0;
cursor: pointer;
height: 0;
width: 0;
}
/* Create a custom checkbox */
#search_color .checkmark {
position: absolute;
top: 0;
left: 0;
height: 22px;
width: 22px;
background-color: #ebebeb;
}
/* Create the checkmark/indicator (hidden when not checked) */
#search_color .checkmark:after {
content: \"\";
position: absolute;
display: none;
}
/* Show the checkmark when checked */
#search_color .checkbox input:checked ~ .checkmark:after {
display: block;
}
/* Style the checkmark/indicator */
#search_color .checkbox .checkmark:after {
left: 9px;
top: 5px;
width: 5px;
height: 10px;
border: solid white;
border-width: 0 3px 3px 0;
-webkit-transform: rotate(45deg);
-ms-transform: rotate(45deg);
transform: rotate(45deg);
}
/* MOBILE COLORS */
#search_colorMobile .checkbox {
display: block;
position: relative;
padding-left: 35px;
margin-bottom: 12px;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
/* Hide the browser's default checkbox */
#search_colorMobile .checkbox input {
position: absolute;
opacity: 0;
cursor: pointer;
height: 0;
width: 0;
}
/* Create a custom checkbox */
#search_colorMobile .checkmark {
position: absolute;
top: 0;
left: 0;
height: 22px;
width: 22px;
background-color: #ebebeb;
}
/* Create the checkmark/indicator (hidden when not checked) */
#search_colorMobile .checkmark:after {
content: \"\";
position: absolute;
display: none;
}
/* Show the checkmark when checked */
#search_colorMobile .checkbox input:checked ~ .checkmark:after {
display: block;
}
/* Style the checkmark/indicator */
#search_colorMobile .checkbox .checkmark:after {
left: 9px;
top: 5px;
width: 5px;
height: 10px;
border: solid white;
border-width: 0 3px 3px 0;
-webkit-transform: rotate(45deg);
-ms-transform: rotate(45deg);
transform: rotate(45deg);
}
</style>
<style>
#search_availability .checkbox {
float:left;
}
</style>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 318
public function block_javascripts($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", "javascripts"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 319
echo " ";
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
<script>
\$(document).ready(function () {
\$('#search_sorting').on(\"change\", function() {
\$('#submitButton').trigger(\"click\");
});
\$('.wiecej-pomieszczen').trigger(\"click\");
";
// line 327
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 327, $this->source); })()), "request", [], "any", false, false, false, 327), "attributes", [], "any", false, false, false, 327), "get", [0 => "av24h"], "method", false, false, false, 327)) {
// line 328
echo " \$('#search_availability_5').on(\"click\", function() {
if (!\$(this).is(\":selected\")) {
var url = \$('#current_url').val();
window.location.href = url;
return;
} else {
var url = \$('#current_url_24h').val();
window.location.href = url;
return;
}
});
";
} else {
// line 340
echo " \$('#search_availability_5').on(\"click\", function() {
if (!\$(this).is(\":selected\")) {
var url = \$('#current_url_24h').val();
window.location.href = url;
return;
} else {
var url = \$('#current_url').val();
window.location.href = url;
return;
}
});
";
}
// line 352
echo "
";
// line 353
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 353, $this->source); })()), "request", [], "any", false, false, false, 353), "attributes", [], "any", false, false, false, 353), "get", [0 => "av24h"], "method", false, false, false, 353)) {
// line 354
echo " \$('#search_availability_5').prop(\"checked\", true);
";
} else {
// line 356
echo "
";
}
// line 358
echo "
\$('.productsPerPage').on(\"change\", function() {
var productsPerPage = \$(this).val();
var url = \$('#change_products_per_page_url').val();
\$.ajax({
type: \"POST\",
url: url,
data: {'productsPerPage':productsPerPage},
success: function (data) {
window.location.reload();
}
});
});
\$('#search_color label input').each(function() {
var color = \$(this).attr('color');
\$(this).parent().css(\"padding-top\", \"2px\");
if (color === '#ffffff' || color === '#FFFFFF') {
\$(this).next('span').css(\"border\", '1px solid black');
} else {
\$(this).next('span').css(\"background-color\", color);
}
});
\$(document).on('click','.is-mobile',function(){
\$('#search_colorMobile label input').each(function() {
var color = \$(this).attr('color');
\$(this).parent().css(\"padding-top\", \"2px\");
if (color === '#ffffff' || color === '#FFFFFF') {
\$(this).next('span').css(\"border\", '1px solid black');
} else {
\$(this).next('span').css(\"background-color\", color);
}
});
});
});
</script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 397
public function block_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", "content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 398
echo " <input type=\"hidden\" id=\"current_url\" value=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("category", ["id" => 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.', 398, $this->source); })()), "id", [], "any", false, false, false, 398), "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.', 398, $this->source); })()), "slug", [], "any", false, false, false, 398)]), "html", null, true);
echo "\"/>
<input type=\"hidden\" id=\"current_url_24h\" value=\"";
// line 399
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("category", ["id" => 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.', 399, $this->source); })()), "id", [], "any", false, false, false, 399), "av24h" => "24h", "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.', 399, $this->source); })()), "slug", [], "any", false, false, false, 399)]), "html", null, true);
echo "\"/>
<input type=\"hidden\" id=\"change_products_per_page_url\" value=\"";
// line 400
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("change_products_per_page");
echo "\"/>
<!-- START OF CATEGORY NAME SECTION -->
<section class=\"section topSection\">
<div class=\"container\">
<div class=\"columns is-multiline\">
<div class=\"column is-full\">
<h1 style=\"display: inline-block\" class=\"is-size-2\">
";
// line 409
if (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.', 409, $this->source); })()), "getCustomH1", [], "any", false, false, false, 409)) {
// line 410
echo " ";
echo twig_escape_filter($this->env, 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.', 410, $this->source); })()), "getCustomH1", [], "any", false, false, false, 410), "html", null, true);
echo "
";
} else {
// line 412
echo " ";
echo twig_escape_filter($this->env, 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.', 412, $this->source); })()), "name", [], "any", false, false, false, 412), "html", null, true);
echo "
";
}
// line 414
echo " ";
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 414, $this->source); })()), "request", [], "any", false, false, false, 414), "attributes", [], "any", false, false, false, 414), "get", [0 => "av24h"], "method", false, false, false, 414)) {
// line 415
echo "
";
// line 416
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sending_in_24h", [], "store"), "html", null, true);
echo "
</span>
";
}
// line 419
echo " </h1>
<span style=\"display: inline-block; color:#d0d0d0!important;\" class=\"is-size-2\">(";
// line 420
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["products"]) || array_key_exists("products", $context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.', 420, $this->source); })()), "getTotalItemCount", [], "method", false, false, false, 420), "html", null, true);
echo ")</span>
</div>
<!-- START OF BREADCRUMBS -->
<div class=\"no-top-padding column is-full\" style=\"margin-top:-10px;\">
<nav class=\"breadcrumb has-arrow-separator is-hidden-mobile\" aria-label=\"breadcrumb\">
<ul vocab=\"https://schema.org/\" typeof=\"BreadcrumbList\">
<li property=\"itemListElement\" typeof=\"ListItem\">
<a id=\"0\" property=\"item\" typeof=\"WebPage\" href=\"";
// line 428
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("homepage");
echo "\"><span property=\"name\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["language"]) || array_key_exists("language", $context) ? $context["language"] : (function () { throw new RuntimeError('Variable "language" does not exist.', 428, $this->source); })()), "shopName", [], "any", false, false, false, 428), "html", null, true);
echo "</span></a>
<meta property=\"position\" content=\"1\">
</li>
";
// line 431
$context["c"] = 1;
// line 432
echo " ";
if ((twig_get_attribute($this->env, $this->source, ($context["category"] ?? null), "parent", [], "any", true, true, false, 432) && 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.', 432, $this->source); })()), "parent", [], "any", false, false, false, 432))) {
// line 433
echo " ";
$context["c"] = ((isset($context["c"]) || array_key_exists("c", $context) ? $context["c"] : (function () { throw new RuntimeError('Variable "c" does not exist.', 433, $this->source); })()) + 1);
// line 434
echo " <li property=\"itemListElement\" typeof=\"ListItem\" style=\"margin-top:-2px;\">
<a id=\"";
// line 435
echo twig_escape_filter($this->env, 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.', 435, $this->source); })()), "id", [], "any", false, false, false, 435), "html", null, true);
echo "\" property=\"item\" typeof=\"WebPage\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("category", ["id" => twig_get_attribute($this->env, $this->source, 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.', 435, $this->source); })()), "parent", [], "any", false, false, false, 435), "id", [], "any", false, false, false, 435), "slug" => twig_get_attribute($this->env, $this->source, 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.', 435, $this->source); })()), "parent", [], "any", false, false, false, 435), "slug", [], "any", false, false, false, 435)]), "html", null, true);
echo "\">
<span property=\"name\">";
// line 436
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, 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.', 436, $this->source); })()), "parent", [], "any", false, false, false, 436), "name", [], "any", false, false, false, 436), "html", null, true);
echo "</span>
";
// line 437
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 437, $this->source); })()), "request", [], "any", false, false, false, 437), "attributes", [], "any", false, false, false, 437), "get", [0 => "av24h"], "method", false, false, false, 437)) {
// line 438
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sending_in_24h", [], "store"), "html", null, true);
echo "
";
}
// line 440
echo " </a>
<meta property=\"position\" content=\"";
// line 441
echo twig_escape_filter($this->env, (isset($context["c"]) || array_key_exists("c", $context) ? $context["c"] : (function () { throw new RuntimeError('Variable "c" does not exist.', 441, $this->source); })()), "html", null, true);
echo "\">
</li>
";
}
// line 444
echo " <li property=\"itemListElement\" typeof=\"ListItem\" style=\"margin-top:-2px;\">
<a id=\"";
// line 445
echo twig_escape_filter($this->env, 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.', 445, $this->source); })()), "id", [], "any", false, false, false, 445), "html", null, true);
echo "\" property=\"item\" typeof=\"WebPage\"><span property=\"name\">";
echo twig_escape_filter($this->env, 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.', 445, $this->source); })()), "name", [], "any", false, false, false, 445), "html", null, true);
echo "</span>
";
// line 446
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 446, $this->source); })()), "request", [], "any", false, false, false, 446), "attributes", [], "any", false, false, false, 446), "get", [0 => "av24h"], "method", false, false, false, 446)) {
// line 447
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sending_in_24h", [], "store"), "html", null, true);
echo "
";
}
// line 449
echo " </a>
<meta property=\"position\" content=\"";
// line 450
echo twig_escape_filter($this->env, ((isset($context["c"]) || array_key_exists("c", $context) ? $context["c"] : (function () { throw new RuntimeError('Variable "c" does not exist.', 450, $this->source); })()) + 1), "html", null, true);
echo "\">
</li>
</ul>
</nav>
</div>
<!-- END OF BREADCRUMBS -->
</div>
</div>
</section>
<!-- END OF CATEGORY NAME SECTION -->
<!-- START OF MAIN SECTION -->
";
// line 463
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 463, $this->source); })()), 'form_start', ["attr" => ["method" => "get", "role" => "form", "novalidate" => "novalidate"]]);
echo "
<section class=\"section remove-padding-top\">
<div class=\"container\">
<div class=\"columns\">
";
// line 468
$this->loadTemplate("frontend/category/_leftSidebar.html.twig", "frontend/category/category.html.twig", 468)->display($context);
// line 469
echo "
";
// line 470
$context["criteoIds"] = [];
// line 471
echo "
<div class=\"columns is-multiline is-mobile lista-produktow\" v-match-heights=\"{ el: [ '.with-description' ] }\">
";
// line 474
if ((twig_get_attribute($this->env, $this->source, (isset($context["products"]) || array_key_exists("products", $context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.', 474, $this->source); })()), "getTotalItemCount", [], "any", false, false, false, 474) == 0)) {
// line 475
echo " <div style=\"text-align: center; width:100%; padding:40px;\">
<i class=\"fa fa-search-minus\" style=\"font-size:40px; font-weight: bold; padding:20px;\"></i>
<br/>
";
// line 478
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("no_results_category", [], "store"), "html", null, true);
echo "
</div>
";
} else {
// line 481
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["products"]) || array_key_exists("products", $context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.', 481, $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["productData"]) {
// line 482
echo " ";
$context["product"] = twig_get_attribute($this->env, $this->source, $context["productData"], 0, [], "array", false, false, false, 482);
// line 483
echo " ";
$context["criteoIds"] = twig_array_merge((isset($context["criteoIds"]) || array_key_exists("criteoIds", $context) ? $context["criteoIds"] : (function () { throw new RuntimeError('Variable "criteoIds" does not exist.', 483, $this->source); })()), [0 => twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 483, $this->source); })()), "id", [], "any", false, false, false, 483)]);
// line 484
echo " ";
$this->loadTemplate("frontend/components/smallProduct.html.twig", "frontend/category/category.html.twig", 484)->display(twig_array_merge($context, ["isOneThird" => 1, "product" => (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 484, $this->source); })()), "productData" => $context["productData"]]));
// line 485
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['productData'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 486
echo " ";
}
// line 487
echo " </div>
</div>
<!-- END OF PRODUCT LIST -->
</div>
<div class=\"level-right\">
<div class=\"level-item\">
";
// line 494
echo $this->extensions['Knp\Bundle\PaginatorBundle\Twig\Extension\PaginationExtension']->render($this->env, (isset($context["products"]) || array_key_exists("products", $context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.', 494, $this->source); })()));
echo "
</div>
</div>
</section>
";
// line 498
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 498, $this->source); })()), 'form_end');
echo "
<!-- END OF MAIN SECTION -->
";
// line 501
$this->loadTemplate("frontend/category/_lastViewed.html.twig", "frontend/category/category.html.twig", 501)->display($context);
// line 502
echo "
";
// line 503
if ((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.', 503, $this->source); })()), "getDescription", [], "any", false, false, false, 503) && ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 503, $this->source); })()), "request", [], "any", false, false, false, 503), "query", [], "any", false, false, false, 503), "get", [0 => "page"], "method", false, false, false, 503) == 1) || (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 503, $this->source); })()), "request", [], "any", false, false, false, 503), "query", [], "any", false, false, false, 503), "get", [0 => "page"], "method", false, false, false, 503) == null)))) {
// line 504
echo " <div class=\"section\">
<div class=\"container\">
<div id=\"js_cat-desc-content\">
<div id=\"cat-desc-excerpt\" class=\"cat-desc-excerpt ellipsis\" style=\"font-size: 13px;\">
";
// line 509
echo $this->extensions['App\Twig\AppExtension']->strongReplacer(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.', 509, $this->source); })()), "getDescription", [], "any", false, false, false, 509));
echo "
</div>
<a class=\"dotted-link read-more\" style=\"margin-top:10px; float:right;\" data-target=\"js_cat-desc-content\" role=\"button\">";
// line 511
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("read_more", [], "store"), "html", null, true);
echo "...</a>
</div>
</div>
</div>
";
}
// line 518
echo "
";
// line 519
$context["criteoCount"] = 0;
// line 520
echo "
";
// line 521
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 521, $this->source); })()), "request", [], "any", false, false, false, 521), "locale", [], "any", false, false, false, 521) == "pl")) {
// line 522
echo "
<script type=\"text/javascript\" src=\"//static.criteo.net/js/ld/ld.js\" async=\"true\"></script>
<script type=\"text/javascript\">
window.criteo_q = window.criteo_q || [];
var deviceType = /iPad/.test(navigator.userAgent) ? \"t\" : /Mobile|iP(hone|od)|Android|BlackBerry|IEMobile|Silk/.test(navigator.userAgent) ? \"m\" : \"d\";
window.criteo_q.push(
{ event: \"setAccount\", account: 36267 },
{ event: \"setSiteType\", type: deviceType },
{ event: \"setEmail\", email: \"";
// line 530
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["app"] ?? null), "user", [], "any", false, true, false, 530), "email", [], "any", true, true, false, 530)) {
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 530, $this->source); })()), "user", [], "any", false, false, false, 530), "email", [], "any", false, false, false, 530), "html", null, true);
echo " ";
}
echo "\" },
{ event: \"viewList\", item:[ ";
// line 531
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_slice($this->env, (isset($context["criteoIds"]) || array_key_exists("criteoIds", $context) ? $context["criteoIds"] : (function () { throw new RuntimeError('Variable "criteoIds" does not exist.', 531, $this->source); })()), 0, 3));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
$context["criteoCount"] = ((isset($context["criteoCount"]) || array_key_exists("criteoCount", $context) ? $context["criteoCount"] : (function () { throw new RuntimeError('Variable "criteoCount" does not exist.', 531, $this->source); })()) + 1);
if (((isset($context["criteoCount"]) || array_key_exists("criteoCount", $context) ? $context["criteoCount"] : (function () { throw new RuntimeError('Variable "criteoCount" does not exist.', 531, $this->source); })()) != 3)) {
echo " \"";
echo twig_escape_filter($this->env, $context["item"], "html", null, true);
echo "\", ";
} else {
echo " \"";
echo twig_escape_filter($this->env, $context["item"], "html", null, true);
echo "\"";
}
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
echo " ]}
);
</script>
";
}
// line 536
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "frontend/category/category.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 1094 => 536, 1069 => 531, 1061 => 530, 1051 => 522, 1049 => 521, 1046 => 520, 1044 => 519, 1041 => 518, 1031 => 511, 1026 => 509, 1019 => 504, 1017 => 503, 1014 => 502, 1012 => 501, 1006 => 498, 999 => 494, 990 => 487, 987 => 486, 973 => 485, 970 => 484, 967 => 483, 964 => 482, 946 => 481, 940 => 478, 935 => 475, 933 => 474, 928 => 471, 926 => 470, 923 => 469, 921 => 468, 913 => 463, 897 => 450, 894 => 449, 888 => 447, 886 => 446, 880 => 445, 877 => 444, 871 => 441, 868 => 440, 862 => 438, 860 => 437, 856 => 436, 850 => 435, 847 => 434, 844 => 433, 841 => 432, 839 => 431, 831 => 428, 820 => 420, 817 => 419, 811 => 416, 808 => 415, 805 => 414, 799 => 412, 793 => 410, 791 => 409, 779 => 400, 775 => 399, 770 => 398, 760 => 397, 713 => 358, 709 => 356, 705 => 354, 703 => 353, 700 => 352, 686 => 340, 672 => 328, 670 => 327, 658 => 319, 648 => 318, 444 => 125, 434 => 124, 423 => 121, 420 => 120, 417 => 119, 414 => 118, 412 => 117, 407 => 116, 405 => 115, 400 => 114, 398 => 113, 393 => 112, 391 => 111, 388 => 110, 382 => 108, 379 => 107, 377 => 106, 374 => 105, 371 => 104, 368 => 103, 365 => 102, 363 => 101, 358 => 100, 356 => 99, 351 => 98, 349 => 97, 344 => 96, 342 => 95, 339 => 94, 333 => 92, 330 => 91, 328 => 90, 325 => 89, 322 => 88, 319 => 87, 316 => 86, 314 => 85, 309 => 84, 307 => 83, 302 => 82, 300 => 81, 295 => 80, 293 => 79, 290 => 78, 284 => 76, 281 => 75, 279 => 74, 276 => 73, 273 => 72, 270 => 71, 267 => 70, 265 => 69, 260 => 68, 258 => 67, 253 => 66, 251 => 65, 246 => 64, 244 => 63, 241 => 62, 235 => 60, 232 => 59, 230 => 58, 227 => 57, 224 => 56, 222 => 53, 220 => 52, 217 => 51, 211 => 49, 205 => 47, 203 => 46, 195 => 43, 190 => 41, 188 => 40, 180 => 38, 177 => 37, 167 => 36, 156 => 33, 154 => 30, 152 => 29, 149 => 28, 145 => 26, 139 => 24, 137 => 23, 134 => 22, 130 => 20, 124 => 18, 121 => 17, 111 => 16, 95 => 12, 92 => 11, 89 => 10, 83 => 8, 81 => 7, 76 => 6, 66 => 5, 55 => 1, 53 => 3, 40 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'base.html.twig' %}
{% trans_default_domain 'store' %}
{% form_theme form 'form/front.html.twig' %}
{% block title %}
{{ category.metaTitle }}
{% if app.request.attributes.get('av24h') %}
{{ 'products_in_24h_delivery'|trans({}, 'store', locale) }}
{% endif %}
{% if (app.request.query.get('page') == 1 or app.request.query.get('page') == null) %}
{% else %}
- {{ 'page'|trans }} {{ app.request.get('page') }}
{% endif %}
{% endblock %}
{% block meta_desc_key %}
{% if category.metaDescription is defined %}
<meta name=\"description\" content=\"{{ category.metaDescription|raw }}\">
{% else %}
<meta name=\"description\" content=\"Centrum Krzeseł, Sprawdź krzesła i fotele do biura i domu. Niskie ceny, gwarancja oraz dostawa 24h. Kup teraz!\">
{% endif %}
{% if category.metaKeywords is defined %}
<meta name=\"keywords\" content=\"{{ category.metaKeywords|raw }}\">
{% else %}
<meta name=\"keywords\" content=\"krzesła, fotele, hokery, meble, sklep internetowy, zakupy, centrum krzeseł\">
{% endif %}
{% if app.request.locale == 'pl' %}
{# veltis tag #}
{#
<script async src='https://app.veltis.io/uploads/veltis.js'></script><script>window.veltisData = window.veltisData || []; function veltisTag() { veltisData.push(arguments); } veltisTag('js', new Date()); veltisTag('config', '1aadaf84c154d3e3'); </script>
#}
{% endif %}
{% endblock %}
{% block facebook %}
{% if category.imageName %}
<meta property=\"og:image\" content=\"{{ language.storeUrl }}/images/category/{{ category.imageName }}\"/>
{% endif %}
{% autoescape %}
<meta property=\"og:title\" content=\"{{ category.name }}\"/>
{% endautoescape %}
<meta property=\"og:url\" content=\"{{ language.storeUrl }}{{ path('category', {'slug':category.slug, 'id':category.id}) }}\"/>
<meta property=\"og:type\" content=\"product.group\"/>
{% if category.metaDescription is defined %}
<meta property=\"og:description\" content=\"{{ category.metaDescription|raw }}\">
{% else %}
<meta property=\"og:description\" content=\"{{ category.metaTitle|raw }}\">
{% endif %}
{% if app.request.get('slug') is defined and app.request.get('page') is defined %}
{#
{{ linkrel|raw }}
#}
{% endif %}
{% if app.request.locale == 'pl' %}
{% if category.getCanonical %}
<link rel=\"canonical\" href=\"{{ category.getCanonical }}\" />
{% else %}
{% if app.request.get('search') %}
<link rel=\"canonical\" href=\"https://www.centrumkrzesel.pl{{ path('category', {'id':category.id, 'slug':category.slug}) }}\" />
{% elseif app.request.attributes.get('av24h') %}
<link rel=\"canonical\" href=\"https://www.centrumkrzesel.pl{{ path('category', {'id':category.id, 'slug':category.slug}) }}\" />
{% elseif app.request.get('page') == 1 %}
<link rel=\"canonical\" href=\"https://www.centrumkrzesel.pl{{ path('category', {'slug':category.slug, 'id':category.id}) }}\" />
{% elseif app.request.get('page') >= 2 %}
{% endif %}
{% endif %}
{% endif %}
{% if app.request.locale == 'cz' %}
{% if category.getCanonical %}
<link rel=\"canonical\" href=\"{{ category.getCanonical }}\" />
{% else %}
{% if app.request.get('search') %}
<link rel=\"canonical\" href=\"https://www.ezidle.cz{{ path('category', {'id':category.id, 'slug':category.slug}) }}\" />
{% elseif app.request.attributes.get('av24h') %}
<link rel=\"canonical\" href=\"https://www.ezidle.cz{{ path('category', {'id':category.id, 'slug':category.slug}) }}\" />
{% elseif app.request.get('page') == 1 %}
<link rel=\"canonical\" href=\"https://www.ezidle.cz{{ path('category', {'slug':category.slug, 'id':category.id}) }}\" />
{% elseif app.request.get('page') >= 2 %}
{% endif %}
{% endif %}
{% endif %}
{% if app.request.locale == 'sk' %}
{% if category.getCanonical %}
<link rel=\"canonical\" href=\"{{ category.getCanonical }}\" />
{% else %}
{% if app.request.get('search') %}
<link rel=\"canonical\" href=\"https://www.stolicky24.sk{{ path('category', {'id':category.id, 'slug':category.slug}) }}\" />
{% elseif app.request.attributes.get('av24h') %}
<link rel=\"canonical\" href=\"https://www.stolicky24.sk{{ path('category', {'id':category.id, 'slug':category.slug}) }}\" />
{% elseif app.request.get('page') == 1 %}
<link rel=\"canonical\" href=\"https://www.stolicky24.sk{{ path('category', {'slug':category.slug, 'id':category.id}) }}\" />
{% elseif app.request.get('page') >= 2 %}
{% endif %}
{% endif %}
{% endif %}
{% if app.request.locale == 'ro' %}
{% if category.getCanonical %}
<link rel=\"canonical\" href=\"{{ category.getCanonical }}\" />
{% else %}
{% if app.request.get('search') %}
<link rel=\"canonical\" href=\"https://www.mobila24.ro{{ path('category', {'id':category.id, 'slug':category.slug}) }}\" />
{% elseif app.request.attributes.get('av24h') %}
<link rel=\"canonical\" href=\"https://www.mobila24.ro{{ path('category', {'id':category.id, 'slug':category.slug}) }}\" />
{% elseif app.request.get('page') == 1 %}
<link rel=\"canonical\" href=\"https://www.mobila24.ro{{ path('category', {'slug':category.slug, 'id':category.id}) }}\" />
{% elseif app.request.get('page') >= 2 %}
{% endif %}
{% endif %}
{% endif %}
{% endblock %}
{% block css %}
{{ parent() }}
<style>
/* Kolory w bocznym menu rozwijanym dzialaja, ale problem jest w tym ze input typu checkbox nie ma backgrounda i trzeba z osobna dodawac kazdy background image z kazdym kolorem/tkanina. Checkbox dodaje sie sam. Jezeli tkanina jest jasna, checkbox musi byc czarny*/
#kolory label.kolor-czerowny:before {
background: url(/images/red-bg.png)center center no-repeat;
}
#kolory input[type=checkbox]:checked + label.kolor-czerowny:before {
background:url(/images/check.png)center center no-repeat, url(/images/red-bg.png)center center no-repeat;
}
#kolory label.kolor-zielony:before {
background: url(/images/zielony-bg.png)center center no-repeat;
}
#kolory input[type=checkbox]:checked + label.kolor-zielony:before {
background:url(/images/check-czarny.png)center center no-repeat, url(/images/zielony-bg.png)center center no-repeat;
}
@media (max-width: 1022px) {
label.checkbox {
margin-bottom: 8px!important;
}
}
@media (min-width: 900px) {
#search_functions, #search_execution {
max-height: 470px;
overflow-y: auto;
overflow-x: hidden;
}
.image img {
width:auto;
margin-left: auto;
margin-right: auto;
}
}
@media (max-width: 500px) {
.with-description {
height:auto!important;
}
}
.cat-desc-excerpt {
overflow: hidden;
text-overflow: ellipsis;
height: 110px;
}
#cat-desc-excerpt h2 {
font-size:initial!important;
font-weight: bold;
}
#cat-desc-excerpt h1 {
font-size:initial!important;
}
#cat-desc-excerpt h3 {
font-size:initial!important;
}
#cat-desc-excerpt a {
color:#ef1b2b!important;
}
#cat-desc-excerpt ul {
list-style: initial!important;
}
#cat-desc-excerpt li {
list-style: initial!important;
margin-left:30px;
}
#search_color .checkbox {
display: block;
position: relative;
padding-left: 35px;
margin-bottom: 12px;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
/* Hide the browser's default checkbox */
#search_color .checkbox input {
position: absolute;
opacity: 0;
cursor: pointer;
height: 0;
width: 0;
}
/* Create a custom checkbox */
#search_color .checkmark {
position: absolute;
top: 0;
left: 0;
height: 22px;
width: 22px;
background-color: #ebebeb;
}
/* Create the checkmark/indicator (hidden when not checked) */
#search_color .checkmark:after {
content: \"\";
position: absolute;
display: none;
}
/* Show the checkmark when checked */
#search_color .checkbox input:checked ~ .checkmark:after {
display: block;
}
/* Style the checkmark/indicator */
#search_color .checkbox .checkmark:after {
left: 9px;
top: 5px;
width: 5px;
height: 10px;
border: solid white;
border-width: 0 3px 3px 0;
-webkit-transform: rotate(45deg);
-ms-transform: rotate(45deg);
transform: rotate(45deg);
}
/* MOBILE COLORS */
#search_colorMobile .checkbox {
display: block;
position: relative;
padding-left: 35px;
margin-bottom: 12px;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
/* Hide the browser's default checkbox */
#search_colorMobile .checkbox input {
position: absolute;
opacity: 0;
cursor: pointer;
height: 0;
width: 0;
}
/* Create a custom checkbox */
#search_colorMobile .checkmark {
position: absolute;
top: 0;
left: 0;
height: 22px;
width: 22px;
background-color: #ebebeb;
}
/* Create the checkmark/indicator (hidden when not checked) */
#search_colorMobile .checkmark:after {
content: \"\";
position: absolute;
display: none;
}
/* Show the checkmark when checked */
#search_colorMobile .checkbox input:checked ~ .checkmark:after {
display: block;
}
/* Style the checkmark/indicator */
#search_colorMobile .checkbox .checkmark:after {
left: 9px;
top: 5px;
width: 5px;
height: 10px;
border: solid white;
border-width: 0 3px 3px 0;
-webkit-transform: rotate(45deg);
-ms-transform: rotate(45deg);
transform: rotate(45deg);
}
</style>
<style>
#search_availability .checkbox {
float:left;
}
</style>
{% endblock %}
{% block javascripts %}
{{ parent() }}
<script>
\$(document).ready(function () {
\$('#search_sorting').on(\"change\", function() {
\$('#submitButton').trigger(\"click\");
});
\$('.wiecej-pomieszczen').trigger(\"click\");
{% if app.request.attributes.get('av24h') %}
\$('#search_availability_5').on(\"click\", function() {
if (!\$(this).is(\":selected\")) {
var url = \$('#current_url').val();
window.location.href = url;
return;
} else {
var url = \$('#current_url_24h').val();
window.location.href = url;
return;
}
});
{% else %}
\$('#search_availability_5').on(\"click\", function() {
if (!\$(this).is(\":selected\")) {
var url = \$('#current_url_24h').val();
window.location.href = url;
return;
} else {
var url = \$('#current_url').val();
window.location.href = url;
return;
}
});
{% endif %}
{% if app.request.attributes.get('av24h') %}
\$('#search_availability_5').prop(\"checked\", true);
{% else %}
{% endif %}
\$('.productsPerPage').on(\"change\", function() {
var productsPerPage = \$(this).val();
var url = \$('#change_products_per_page_url').val();
\$.ajax({
type: \"POST\",
url: url,
data: {'productsPerPage':productsPerPage},
success: function (data) {
window.location.reload();
}
});
});
\$('#search_color label input').each(function() {
var color = \$(this).attr('color');
\$(this).parent().css(\"padding-top\", \"2px\");
if (color === '#ffffff' || color === '#FFFFFF') {
\$(this).next('span').css(\"border\", '1px solid black');
} else {
\$(this).next('span').css(\"background-color\", color);
}
});
\$(document).on('click','.is-mobile',function(){
\$('#search_colorMobile label input').each(function() {
var color = \$(this).attr('color');
\$(this).parent().css(\"padding-top\", \"2px\");
if (color === '#ffffff' || color === '#FFFFFF') {
\$(this).next('span').css(\"border\", '1px solid black');
} else {
\$(this).next('span').css(\"background-color\", color);
}
});
});
});
</script>
{% endblock %}
{% block content %}
<input type=\"hidden\" id=\"current_url\" value=\"{{ path('category', {'id':category.id, 'slug':category.slug}) }}\"/>
<input type=\"hidden\" id=\"current_url_24h\" value=\"{{ path('category', {'id':category.id, 'av24h':'24h', 'slug':category.slug}) }}\"/>
<input type=\"hidden\" id=\"change_products_per_page_url\" value=\"{{ path('change_products_per_page') }}\"/>
<!-- START OF CATEGORY NAME SECTION -->
<section class=\"section topSection\">
<div class=\"container\">
<div class=\"columns is-multiline\">
<div class=\"column is-full\">
<h1 style=\"display: inline-block\" class=\"is-size-2\">
{% if category.getCustomH1 %}
{{ category.getCustomH1 }}
{% else %}
{{ category.name }}
{% endif %}
{% if app.request.attributes.get('av24h') %}
{{ 'sending_in_24h'|trans }}
</span>
{% endif %}
</h1>
<span style=\"display: inline-block; color:#d0d0d0!important;\" class=\"is-size-2\">({{ products.getTotalItemCount() }})</span>
</div>
<!-- START OF BREADCRUMBS -->
<div class=\"no-top-padding column is-full\" style=\"margin-top:-10px;\">
<nav class=\"breadcrumb has-arrow-separator is-hidden-mobile\" aria-label=\"breadcrumb\">
<ul vocab=\"https://schema.org/\" typeof=\"BreadcrumbList\">
<li property=\"itemListElement\" typeof=\"ListItem\">
<a id=\"0\" property=\"item\" typeof=\"WebPage\" href=\"{{ path('homepage') }}\"><span property=\"name\">{{ language.shopName }}</span></a>
<meta property=\"position\" content=\"1\">
</li>
{% set c = 1 %}
{% if category.parent is defined and category.parent %}
{% set c = c + 1 %}
<li property=\"itemListElement\" typeof=\"ListItem\" style=\"margin-top:-2px;\">
<a id=\"{{ category.id }}\" property=\"item\" typeof=\"WebPage\" href=\"{{ path('category', {'id':category.parent.id, 'slug':category.parent.slug}) }}\">
<span property=\"name\">{{ category.parent.name }}</span>
{% if app.request.attributes.get('av24h') %}
{{ 'sending_in_24h'|trans }}
{% endif %}
</a>
<meta property=\"position\" content=\"{{ c }}\">
</li>
{% endif %}
<li property=\"itemListElement\" typeof=\"ListItem\" style=\"margin-top:-2px;\">
<a id=\"{{ category.id }}\" property=\"item\" typeof=\"WebPage\"><span property=\"name\">{{ category.name }}</span>
{% if app.request.attributes.get('av24h') %}
{{ 'sending_in_24h'|trans }}
{% endif %}
</a>
<meta property=\"position\" content=\"{{ c+1 }}\">
</li>
</ul>
</nav>
</div>
<!-- END OF BREADCRUMBS -->
</div>
</div>
</section>
<!-- END OF CATEGORY NAME SECTION -->
<!-- START OF MAIN SECTION -->
{{ form_start(form, {'attr': {'method':'get', 'role':'form', 'novalidate': 'novalidate'}}) }}
<section class=\"section remove-padding-top\">
<div class=\"container\">
<div class=\"columns\">
{% include 'frontend/category/_leftSidebar.html.twig' %}
{% set criteoIds = [] %}
<div class=\"columns is-multiline is-mobile lista-produktow\" v-match-heights=\"{ el: [ '.with-description' ] }\">
{% if products.getTotalItemCount == 0 %}
<div style=\"text-align: center; width:100%; padding:40px;\">
<i class=\"fa fa-search-minus\" style=\"font-size:40px; font-weight: bold; padding:20px;\"></i>
<br/>
{{ 'no_results_category'|trans }}
</div>
{% else %}
{% for productData in products %}
{% set product = productData[0] %}
{% set criteoIds = criteoIds|merge([product.id]) %}
{% include 'frontend/components/smallProduct.html.twig' with {'isOneThird':1, 'product':product, 'productData':productData} %}
{% endfor %}
{% endif %}
</div>
</div>
<!-- END OF PRODUCT LIST -->
</div>
<div class=\"level-right\">
<div class=\"level-item\">
{{ knp_pagination_render(products) }}
</div>
</div>
</section>
{{ form_end(form) }}
<!-- END OF MAIN SECTION -->
{% include 'frontend/category/_lastViewed.html.twig' %}
{% if category.getDescription and (app.request.query.get('page') == 1 or app.request.query.get('page') == null) %}
<div class=\"section\">
<div class=\"container\">
<div id=\"js_cat-desc-content\">
<div id=\"cat-desc-excerpt\" class=\"cat-desc-excerpt ellipsis\" style=\"font-size: 13px;\">
{{ category.getDescription|strongReplacer|raw }}
</div>
<a class=\"dotted-link read-more\" style=\"margin-top:10px; float:right;\" data-target=\"js_cat-desc-content\" role=\"button\">{{ 'read_more'|trans }}...</a>
</div>
</div>
</div>
{% endif %}
{% set criteoCount = 0 %}
{% if app.request.locale == 'pl' %}
<script type=\"text/javascript\" src=\"//static.criteo.net/js/ld/ld.js\" async=\"true\"></script>
<script type=\"text/javascript\">
window.criteo_q = window.criteo_q || [];
var deviceType = /iPad/.test(navigator.userAgent) ? \"t\" : /Mobile|iP(hone|od)|Android|BlackBerry|IEMobile|Silk/.test(navigator.userAgent) ? \"m\" : \"d\";
window.criteo_q.push(
{ event: \"setAccount\", account: 36267 },
{ event: \"setSiteType\", type: deviceType },
{ event: \"setEmail\", email: \"{% if app.user.email is defined %} {{ app.user.email }} {% endif %}\" },
{ event: \"viewList\", item:[ {% for item in criteoIds|slice(0,3) %}{% set criteoCount = criteoCount + 1 %}{% if criteoCount != 3 %} \"{{ item }}\", {% else %} \"{{ item }}\"{% endif %} {% endfor %} ]}
);
</script>
{% endif %}
{% endblock %}", "frontend/category/category.html.twig", "/home/users/ck_new/templates/frontend/category/category.html.twig");
}
}