<?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;
/* includes/header_b2c.html.twig */
class __TwigTemplate_6f973b2ab6f65cc5a165868b6c1cede9eaf1fb0125f8009aff6398e8a1266910 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'content' => [$this, 'block_content'],
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->enter($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "includes/header_b2c.html.twig"));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "includes/header_b2c.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "includes/header_b2c.html.twig"));
// line 1
$this->displayBlock('content', $context, $blocks);
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->leave($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->enter($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__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 2
$context["totalAmount"] = (array_key_exists("totalAmount", $context) && (isset($context["totalAmount"]) || array_key_exists("totalAmount", $context) ? $context["totalAmount"] : (function () { throw new RuntimeError('Variable "totalAmount" does not exist.', 2, $this->source); })()));
// line 3
$context["categories"] = $this->extensions['App\Twig\Extension\CategoryFilterExtension']->getCategories();
// line 4
$context["params"] = $this->extensions['App\Twig\Extension\CartExtension']->getAllParams();
// line 5
$context["userType"] = ((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.', 5, $this->source); })()), "user", [], "any", false, false, false, 5)) ? (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.', 5, $this->source); })()), "user", [], "any", false, false, false, 5), "UserType", [], "any", false, false, false, 5)) : (""));
// line 6
$context["role"] = ((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.', 6, $this->source); })()), "user", [], "any", false, false, false, 6)) ? (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.', 6, $this->source); })()), "user", [], "any", false, false, false, 6), "UserRoles", [], "any", false, false, false, 6)) : (""));
// line 7
$context["wesbiteName"] = twig_get_attribute($this->env, $this->source, (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 7, $this->source); })()), "getProperty", ["website_name"], "method", false, false, false, 7);
// line 8
echo "
";
// line 9
$context["mecstore_lang"] = 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.', 9, $this->source); })()), "request", [], "any", false, false, false, 9), "locale", [], "any", false, false, false, 9);
// line 10
if (((isset($context["mecstore_lang"]) || array_key_exists("mecstore_lang", $context) ? $context["mecstore_lang"] : (function () { throw new RuntimeError('Variable "mecstore_lang" does not exist.', 10, $this->source); })()) == "en")) {
// line 11
echo " ";
$context["prefix_language"] = "/en/";
} else {
// line 13
echo " ";
$context["prefix_language"] = "/";
}
// line 15
echo "
<script>
window.portoTexts = {
addedToCart: \"";
// line 18
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("added_to_cart"), "html", null, true);
echo "\",
viewCart: \"";
// line 19
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("view_cart"), "html", null, true);
echo "\",
linkCart: \"";
// line 20
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("link_cart"), "html", null, true);
echo "\",
linkCheckout: \"";
// line 21
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("link_checkout"), "html", null, true);
echo "\",
};
</script>
<style>
.sidebar-shop .widget.prezzo {
display:none!important;
}
</style>
<header class=\"header box-shadow\">
<div class=\"header-middle sticky-header\" data-sticky-options=\"{'mobile': true}\">
<div class=\"container\">
<div class=\"header-left\">
<button class=\"mobile-menu-toggler\" type=\"button\">
<i class=\"fas fa-bars fa-2x\"></i>
<!-- <img src=\"/mecstore/b2c/assets/images/custom/logo.png\" alt=\"Porto Logo\" width=\"111\" height=\"44\"> -->
</button>
<a href=\"";
// line 40
echo twig_escape_filter($this->env, (isset($context["prefix_language"]) || array_key_exists("prefix_language", $context) ? $context["prefix_language"] : (function () { throw new RuntimeError('Variable "prefix_language" does not exist.', 40, $this->source); })()), "html", null, true);
echo "\" class=\"logo\">
";
// line 41
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
// line 42
echo " <img src=\"/mecstore/b2c/assets/images/custom/logo.png\" alt=\"Mecstore\" class=\"d-block\" width=\"262\" height=\"auto\" >
";
} else {
// line 44
echo " <img src=\"/mecstore/b2c/assets/images/custom/logo.png\" alt=\"Mecstore\" class=\"d-block\" width=\"262\" height=\"auto\" >
";
}
// line 46
echo " ";
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
// line 47
echo " <a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("b2c-account-index");
echo "\" class=\"d-block d-lg-none text-dark\">
";
// line 48
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Benvenuto"), "html", null, true);
echo " ";
// line 49
echo " </a>
";
}
// line 51
echo " </a>
</div>
<div class=\"header-center\">
<div
class=\"header-icon header-search header-search-inline header-search-category w-lg-max text-right mt-0\">
<a href=\"#\" class=\"search-toggle\" role=\"button\"><i class=\"icon-search-3\"></i></a>
<form action=\"";
// line 57
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("b2c-search");
echo "\" id=\"search-form\" name=\"search-form\" method=\"get\">
<div class=\"header-search-wrapper\">
<input type=\"search\" class=\"form-control\" name=\"term\" id=\"term\" value=\"\"
placeholder=\"";
// line 60
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Cerca prodotto..."), "html", null, true);
echo "\" required>
<div class=\"select-custom\">
<select id=\"cat\" name=\"cat\">
";
// line 63
if ((isset($context["categories"]) || array_key_exists("categories", $context) ? $context["categories"] : (function () { throw new RuntimeError('Variable "categories" does not exist.', 63, $this->source); })())) {
// line 64
echo " <option value=\"\" selected data-href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("b2c-shop-category", ["categoryname" => "ovunque", "category" => 0]), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("tutto il catalogo"), "html", null, true);
echo "</option>
";
// line 65
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["categories"]) || array_key_exists("categories", $context) ? $context["categories"] : (function () { throw new RuntimeError('Variable "categories" does not exist.', 65, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
// line 66
echo " ";
if (twig_get_attribute($this->env, $this->source, ($context["params"] ?? null), "cat", [], "any", true, true, false, 66)) {
// line 67
echo " ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["params"]) || array_key_exists("params", $context) ? $context["params"] : (function () { throw new RuntimeError('Variable "params" does not exist.', 67, $this->source); })()), "cat", [], "any", false, false, false, 67) == twig_get_attribute($this->env, $this->source, $context["category"], "id", [], "any", false, false, false, 67))) {
// line 68
echo " <option value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["category"], "Id", [], "any", false, false, false, 68), "html", null, true);
echo "\" selected data-href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("b2c-shop-category", ["categoryname" => twig_get_attribute($this->env, $this->source, $context["category"], "key", [], "any", false, false, false, 68), "category" => twig_get_attribute($this->env, $this->source, $context["category"], "id", [], "any", false, false, false, 68)]), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["category"], "Name", [], "any", false, false, false, 68), "html", null, true);
echo "</option>
";
} else {
// line 70
echo " <option value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["category"], "Id", [], "any", false, false, false, 70), "html", null, true);
echo "\" data-href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("b2c-shop-category", ["categoryname" => twig_get_attribute($this->env, $this->source, $context["category"], "key", [], "any", false, false, false, 70), "category" => twig_get_attribute($this->env, $this->source, $context["category"], "id", [], "any", false, false, false, 70)]), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["category"], "Name", [], "any", false, false, false, 70), "html", null, true);
echo "</option>
";
}
// line 72
echo " ";
} else {
// line 73
echo " <option value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["category"], "Id", [], "any", false, false, false, 73), "html", null, true);
echo "\" data-href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("b2c-shop-category", ["categoryname" => twig_get_attribute($this->env, $this->source, $context["category"], "key", [], "any", false, false, false, 73), "category" => twig_get_attribute($this->env, $this->source, $context["category"], "id", [], "any", false, false, false, 73)]), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["category"], "Name", [], "any", false, false, false, 73), "html", null, true);
echo "</option>
";
}
// line 75
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 76
echo " ";
}
// line 77
echo " </select>
</div><!-- End .select-custom -->
<button class=\"btn icon-magnifier bg-dark text-white term-search-btn\" title=\"search\"
type=\"submit\"></button>
</div><!-- End .header-search-wrapper -->
</form>
</div><!-- End .header-search -->
</div>
";
// line 86
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
// line 87
echo " <div class=\"header-right ml-0 ml-lg-auto\">
<a href=\"";
// line 88
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("b2c-account-profile");
echo "\" class=\"pr-2 pr-xl-5 border-right border-dark d-none d-lg-block \">
";
// line 89
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Benvenuto"), "html", null, true);
echo " ";
// line 90
echo " </a>
<a href=\"";
// line 92
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("account-logout");
echo "\" class=\"pl-2 pl-xl-5 d-none d-lg-block \" >
";
// line 93
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.logout"), "html", null, true);
echo "
</a>
<div class=\"language-container\"></div>
</div>
";
} else {
// line 98
echo " <div class=\"header-right ml-0 ml-lg-auto\">
<a href=\"";
// line 99
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("account-login");
echo "\" class=\"d-none d-lg-block login-lnk\">
";
// line 100
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.login"), "html", null, true);
echo "
</a>
<div class=\"language-container\"></div>
</div>
";
}
// line 105
echo " </div>
</div>
<div class=\"header-bottom sticky-header\" data-sticky-options=\"{'mobile': false}\">
<!-- header sticky -->
<div class=\"container\">
<div class=\"header-left\">
<a href=\"/\" class=\"logo\">
<img src=\"/mecstore/b2c/assets/images/custom_icons/logo-mecstore.png\" alt=\"Logo\">
</a>
</div>
<div class=\"header-center ml-4\">
<nav class=\"main-nav w-100\">
<ul class=\"menu\">
<li class=\"mr-xl-5 mr-4\" >
<a href=\"";
// line 120
echo twig_escape_filter($this->env, (isset($context["prefix_language"]) || array_key_exists("prefix_language", $context) ? $context["prefix_language"] : (function () { throw new RuntimeError('Variable "prefix_language" does not exist.', 120, $this->source); })()), "html", null, true);
echo "\" class=\"page-index\" data-name=\"app-index.php\">Home</a>
</li>
<li class=\"mr-xl-5 mr-4\" >
<a class=\"page-index\">";
// line 123
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("catalogo"), "html", null, true);
echo "</a>
<div class=\"megamenu megamenu-fixed-width megamenu-3cols\">
<div class=\"row\">
";
// line 126
$context["count"] = 0;
// line 127
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->extensions['App\Twig\Extension\CategoryFilterExtension']->getCategories());
foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
// line 128
echo " ";
if (((isset($context["count"]) || array_key_exists("count", $context) ? $context["count"] : (function () { throw new RuntimeError('Variable "count" does not exist.', 128, $this->source); })()) == 0)) {
echo "<div class=\"col-lg-4\">";
}
// line 129
echo " <ul class=\"submenu\">
<li><a href=\"";
// line 130
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("b2c-shop-category", ["categoryname" => twig_get_attribute($this->env, $this->source, $context["category"], "key", [], "any", false, false, false, 130), "category" => twig_get_attribute($this->env, $this->source, $context["category"], "id", [], "any", false, false, false, 130)]), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["category"], "Name", [], "any", false, false, false, 130), "html", null, true);
echo "</a></li>
</ul>
";
// line 132
$context["count"] = ((isset($context["count"]) || array_key_exists("count", $context) ? $context["count"] : (function () { throw new RuntimeError('Variable "count" does not exist.', 132, $this->source); })()) + 1);
echo "
";
// line 133
if ((((isset($context["count"]) || array_key_exists("count", $context) ? $context["count"] : (function () { throw new RuntimeError('Variable "count" does not exist.', 133, $this->source); })()) % 9) == 0)) {
echo " </div><div class=\"col-lg-4\"> ";
}
// line 134
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
echo "
</div>
";
// line 137
echo "
";
// line 138
echo "
</div>
</div><!-- End .megamenu -->
</li>
<li class=\"mr-xl-5 mr-4\" >
<a class=\"page-index\">";
// line 143
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("FORNITORI"), "html", null, true);
echo "</a>
<div class=\"megamenu megamenu-fixed-width megamenu-3cols providers\">
<div class=\"row\">
";
// line 146
$context["count"] = 0;
// line 147
echo " ";
$context["brands"] = $this->extensions['App\Twig\Extension\BrandFilterExtension']->getBrands();
// line 148
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["brands"]) || array_key_exists("brands", $context) ? $context["brands"] : (function () { throw new RuntimeError('Variable "brands" does not exist.', 148, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["brand"]) {
echo "
";
// line 149
if (((isset($context["count"]) || array_key_exists("count", $context) ? $context["count"] : (function () { throw new RuntimeError('Variable "count" does not exist.', 149, $this->source); })()) == 0)) {
echo "<div class=\"col-lg-2\">";
}
// line 150
echo " <ul class=\"submenu\">
";
// line 151
if (twig_get_attribute($this->env, $this->source, $context["brand"], "enableDedicatedPage", [], "any", false, false, false, 151)) {
// line 152
echo " <li><a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("b2c-brand", ["brandname" => twig_get_attribute($this->env, $this->source, $context["brand"], "key", [], "any", false, false, false, 152), "brand" => twig_get_attribute($this->env, $this->source, $context["brand"], "id", [], "any", false, false, false, 152)]), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["brand"], "Name", [], "any", false, false, false, 152), "html", null, true);
echo "</a></li>
";
} else {
// line 154
echo " <li><a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("b2c-shop-brand", ["brandname" => twig_get_attribute($this->env, $this->source, $context["brand"], "key", [], "any", false, false, false, 154), "brand" => twig_get_attribute($this->env, $this->source, $context["brand"], "id", [], "any", false, false, false, 154)]), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["brand"], "Name", [], "any", false, false, false, 154), "html", null, true);
echo "</a></li>
";
}
// line 156
echo " </ul>
";
// line 157
$context["count"] = ((isset($context["count"]) || array_key_exists("count", $context) ? $context["count"] : (function () { throw new RuntimeError('Variable "count" does not exist.', 157, $this->source); })()) + 1);
echo "
";
// line 158
$context["elements_column"] = ((int) floor((twig_length_filter($this->env, (isset($context["brands"]) || array_key_exists("brands", $context) ? $context["brands"] : (function () { throw new RuntimeError('Variable "brands" does not exist.', 158, $this->source); })())) / 6)) + 1);
echo "
";
// line 159
if ((((isset($context["count"]) || array_key_exists("count", $context) ? $context["count"] : (function () { throw new RuntimeError('Variable "count" does not exist.', 159, $this->source); })()) % (isset($context["elements_column"]) || array_key_exists("elements_column", $context) ? $context["elements_column"] : (function () { throw new RuntimeError('Variable "elements_column" does not exist.', 159, $this->source); })())) == 0)) {
echo "</div><div class=\"col-lg-2\"> ";
}
// line 160
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['brand'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
echo "
<hr/>
</div>
";
// line 164
echo "
";
// line 165
echo "
</div>
</div><!-- End .megamenu -->
</li>
<li class=\"mr-xl-5 mr-4\" >
<a href=\"";
// line 170
echo twig_escape_filter($this->env, (isset($context["prefix_language"]) || array_key_exists("prefix_language", $context) ? $context["prefix_language"] : (function () { throw new RuntimeError('Variable "prefix_language" does not exist.', 170, $this->source); })()), "html", null, true);
echo "about-us\" class=\"page-index\" data-name=\" \">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("il gruppo"), "html", null, true);
echo "</a>
</li>
<li class=\"mr-xl-5 mr-4\" >
<a href=\"";
// line 173
echo twig_escape_filter($this->env, (isset($context["prefix_language"]) || array_key_exists("prefix_language", $context) ? $context["prefix_language"] : (function () { throw new RuntimeError('Variable "prefix_language" does not exist.', 173, $this->source); })()), "html", null, true);
echo "b2c_shops\" class=\"page-index\" data-name=\" \">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("punti vendita"), "html", null, true);
echo "</a>
</li>
<li class=\"mr-xl-5 mr-4\" >
<a href=\"";
// line 176
echo twig_escape_filter($this->env, (isset($context["prefix_language"]) || array_key_exists("prefix_language", $context) ? $context["prefix_language"] : (function () { throw new RuntimeError('Variable "prefix_language" does not exist.', 176, $this->source); })()), "html", null, true);
echo "b2c_news\" class=\"page-index\" data-name=\"app-news.php\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("News"), "html", null, true);
echo "</a>
</li>
<li class=\"mr-xl-5 mr-4\" >
<a href=\"";
// line 179
echo twig_escape_filter($this->env, (isset($context["prefix_language"]) || array_key_exists("prefix_language", $context) ? $context["prefix_language"] : (function () { throw new RuntimeError('Variable "prefix_language" does not exist.', 179, $this->source); })()), "html", null, true);
echo "catalogues\" class=\"page-index\" data-name=\" \">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("download"), "html", null, true);
echo "</a>
</li>
<li class=\"mr-xl-5 mr-4\" >
<a href=\"#\" class=\"page-index\" data-name=\" \">";
// line 182
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("contattaci"), "html", null, true);
echo "</a>
<ul>
<li><a href=\"";
// line 184
echo twig_escape_filter($this->env, (isset($context["prefix_language"]) || array_key_exists("prefix_language", $context) ? $context["prefix_language"] : (function () { throw new RuntimeError('Variable "prefix_language" does not exist.', 184, $this->source); })()), "html", null, true);
echo "contact-us\" class=\"page-index\" data-name=\" \">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("richiesta informazioni"), "html", null, true);
echo "</a></li>
<li><a href=\"";
// line 185
echo twig_escape_filter($this->env, (isset($context["prefix_language"]) || array_key_exists("prefix_language", $context) ? $context["prefix_language"] : (function () { throw new RuntimeError('Variable "prefix_language" does not exist.', 185, $this->source); })()), "html", null, true);
echo "collaborations\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("collaborazioni"), "html", null, true);
echo "</a></li>
<li><a href=\"";
// line 186
echo twig_escape_filter($this->env, (isset($context["prefix_language"]) || array_key_exists("prefix_language", $context) ? $context["prefix_language"] : (function () { throw new RuntimeError('Variable "prefix_language" does not exist.', 186, $this->source); })()), "html", null, true);
echo "work-with-us\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("lavora con noi"), "html", null, true);
echo "</a></li>
</ul>
</li>
<li class=\"mr-xl-5 mr-4\" >
<a href=\"https://mecstore.boels.com/it-it/noleggiare\" class=\"page-index\" target=\"_blank\" data-name=\" \">";
// line 190
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("noleggi"), "html", null, true);
echo "</a>
</li>
<li class=\"float-right\">
<a href=\"";
// line 196
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("b2c-shop-cart-detail");
echo "\" class=\"icon-a page-index\" data-name=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("b2c-shop-cart-detail");
echo "\">
<i class=\"fas fa-shopping-cart\"></i>
<span class=\"cart-count badge-circle\">";
// line 198
echo twig_escape_filter($this->env, $this->extensions['App\Twig\Extension\CartExtension']->getCartItemsB2C(), "html", null, true);
echo "</span>
</a>
</li>
<li class=\"float-right\">
<a class=\"icon-a page-index\" href=\"";
// line 202
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("b2c-wishlist-index");
echo "\" data-name=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("b2c-wishlist-index");
echo "\">
<i class=\"icon-star-empty\"></i>
<span class=\"wishlist-count badge-circle sticky\" style=\"display:none!important\">";
// line 204
echo twig_escape_filter($this->env, $this->extensions['App\Twig\Extension\CartExtension']->getWishlistItems(), "html", null, true);
echo "</span>
</a>
</li>
";
// line 207
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
// line 208
echo " ";
// line 209
echo " ";
// line 211
echo "
<li class=\"float-right border-left border-right border-dark pl-2 pl-xl-5 pr-2 pr-xl-5 mymecstore\" >
";
// line 214
if ((((isset($context["wesbiteName"]) || array_key_exists("wesbiteName", $context) ? $context["wesbiteName"] : (function () { throw new RuntimeError('Variable "wesbiteName" does not exist.', 214, $this->source); })()) == "b2c") && 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.', 214, $this->source); })()), "user", [], "any", false, false, false, 214))) {
// line 215
echo " <a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("b2c-account-index");
echo "\" class=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("b2c-account-index");
echo "\" ><span>my mecstore</span></a>
";
} else {
// line 217
echo " <a class=\"\" ><span>my mecstore</span></a>
";
}
// line 219
echo "
";
// line 220
if ((((isset($context["wesbiteName"]) || array_key_exists("wesbiteName", $context) ? $context["wesbiteName"] : (function () { throw new RuntimeError('Variable "wesbiteName" does not exist.', 220, $this->source); })()) == "b2c") && 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.', 220, $this->source); })()), "user", [], "any", false, false, false, 220))) {
// line 221
echo " ";
} else {
// line 222
echo " <div class=\"megamenu megamenu-fixed-width b2c\">
<div class=\"row\">
";
// line 230
echo " <div class=\"col-lg\">
<strong>B2B</strong>
<ul class=\"submenu\">
<li><a href=\"";
// line 233
echo twig_escape_filter($this->env, $this->env->getFunction('pimcore_url')->getCallable()(["type" => "confirm"], "account-order-list", true, true), "html", null, true);
echo "\">Ordini inviati</a></li>
<li><a href=\"";
// line 234
echo twig_escape_filter($this->env, $this->env->getFunction('pimcore_url')->getCallable()(["type" => "pre-ordini"], "account-order-list", true, true), "html", null, true);
echo "\">Preordini</a></li>
<li><a href=\"";
// line 235
echo twig_escape_filter($this->env, $this->env->getFunction('pimcore_url')->getCallable()(["type" => "booked"], "account-order-list", true, true), "html", null, true);
echo "\">Prenotazioni</a></li>
<li><a href=\"";
// line 236
echo twig_escape_filter($this->env, $this->env->getFunction('pimcore_url')->getCallable()(["type" => "draft"], "account-order-list", true, true), "html", null, true);
echo "\">Bozze ordini</a></li>
";
// line 238
echo " </ul>
</div>
<div class=\"col-lg\">
<strong>B2C</strong>
<ul class=\"submenu\">
<li><a href=\"";
// line 243
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("b2c-account-profile");
echo "\">Profilo</a></li>
<li><a href=\"\">Preventivi</a></li>
<li><a href=\"\">Ordini ricevuti</a></li>
<li><a href=\"\">Contatti ricevuti</a></li>
<li><a href=\"\">Resi</a></li>
</ul>
</div>
";
// line 256
echo " </div>
";
// line 258
echo "
";
// line 259
echo "
</div>
";
}
// line 262
echo "<!-- End .megamenu -->
</li>
";
}
// line 265
echo "
";
// line 293
echo " </ul>
</nav>
</div>
<div class=\"header-right pr-4\">
<!-- HEADER SEARCH STICKY -->
<div
class=\"header-icon header-search header-search-popup header-search-category w-lg-max text-right\">
<a href=\"#\" class=\"search-toggle\" role=\"button\"><i class=\"icon-search-3\"></i></a>
<!-- SEARCH INPUT -->
<form action=\"#\" method=\"get\">
<div class=\"header-search-wrapper\">
<input type=\"search\" class=\"form-control\" name=\"term_header\" id=\"term_header\" value=\"";
// line 304
if (twig_get_attribute($this->env, $this->source, ($context["params"] ?? null), "term", [], "any", true, true, false, 304)) {
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["params"]) || array_key_exists("params", $context) ? $context["params"] : (function () { throw new RuntimeError('Variable "params" does not exist.', 304, $this->source); })()), "term", [], "any", false, false, false, 304), "html", null, true);
}
echo "\"
placeholder=\"Cerca prodotto...\" required>
<div class=\"select-custom\">
<select id=\"cat_header\" name=\"cat_header\">
";
// line 308
if ((isset($context["categories"]) || array_key_exists("categories", $context) ? $context["categories"] : (function () { throw new RuntimeError('Variable "categories" does not exist.', 308, $this->source); })())) {
// line 309
echo " <option value=\"\" selected data-href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("shop-category", ["categoryname" => "ovunque", "category" => 0]), "html", null, true);
echo "\">tutto il catalogo</option>
";
// line 310
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["categories"]) || array_key_exists("categories", $context) ? $context["categories"] : (function () { throw new RuntimeError('Variable "categories" does not exist.', 310, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["category"]) {
// line 311
echo " ";
if (twig_get_attribute($this->env, $this->source, ($context["params"] ?? null), "cat", [], "any", true, true, false, 311)) {
echo "
";
// line 312
if ((twig_get_attribute($this->env, $this->source, (isset($context["params"]) || array_key_exists("params", $context) ? $context["params"] : (function () { throw new RuntimeError('Variable "params" does not exist.', 312, $this->source); })()), "cat", [], "any", false, false, false, 312) == twig_get_attribute($this->env, $this->source, $context["category"], "id", [], "any", false, false, false, 312))) {
// line 313
echo " <option value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["category"], "Id", [], "any", false, false, false, 313), "html", null, true);
echo "\" selected data-href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("shop-category", ["categoryname" => twig_get_attribute($this->env, $this->source, $context["category"], "key", [], "any", false, false, false, 313), "category" => twig_get_attribute($this->env, $this->source, $context["category"], "id", [], "any", false, false, false, 313)]), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["category"], "Name", [], "any", false, false, false, 313), "html", null, true);
echo "</option>
";
} else {
// line 315
echo " <option value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["category"], "Id", [], "any", false, false, false, 315), "html", null, true);
echo "\" data-href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("shop-category", ["categoryname" => twig_get_attribute($this->env, $this->source, $context["category"], "key", [], "any", false, false, false, 315), "category" => twig_get_attribute($this->env, $this->source, $context["category"], "id", [], "any", false, false, false, 315)]), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["category"], "Name", [], "any", false, false, false, 315), "html", null, true);
echo "</option>
";
}
// line 316
echo "
";
} else {
// line 318
echo " <option value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["category"], "Id", [], "any", false, false, false, 318), "html", null, true);
echo "\" data-href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("shop-category", ["categoryname" => twig_get_attribute($this->env, $this->source, $context["category"], "key", [], "any", false, false, false, 318), "category" => twig_get_attribute($this->env, $this->source, $context["category"], "id", [], "any", false, false, false, 318)]), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["category"], "Name", [], "any", false, false, false, 318), "html", null, true);
echo "</option>
";
}
// line 319
echo "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['category'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 321
echo " ";
}
echo "
</select>
</div><!-- End .select-custom -->
<button class=\"btn icon-search-3 bg-dark text-white p-0\" title=\"search\"
type=\"submit\"></button>
</div><!-- End .header-search-wrapper -->
</form>
</div><!-- End .header-search -->
<a href=\"";
// line 331
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("b2c-wishlist-index");
echo "\" class=\"header-icon page-index icon-a \" data-name=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("b2c-wishlist-index");
echo "\">
<i class=\"icon-star-empty\"></i>
<span class=\"wishlist-count badge-circle sticky\" style=\"display:none!important\">";
// line 333
echo twig_escape_filter($this->env, $this->extensions['App\Twig\Extension\CartExtension']->getWishlistItems(), "html", null, true);
echo "</span>
</a>
<a href=\"";
// line 335
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("b2c-shop-cart-detail");
echo "\" class=\"page-index icon-a \" data-name=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("b2c-shop-cart-detail");
echo "\">
<i class=\"fas fa-shopping-cart\"></i>
<span class=\"cart-count badge-circle sticky\">";
// line 337
echo twig_escape_filter($this->env, $this->extensions['App\Twig\Extension\CartExtension']->getCartItemsB2C(), "html", null, true);
echo "</span>
</a>
</div>
</div>
</div>
</header><!-- End .header -->
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->leave($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof);
}
public function getTemplateName()
{
return "includes/header_b2c.html.twig";
}
public function getDebugInfo()
{
return array ( 762 => 337, 755 => 335, 750 => 333, 743 => 331, 729 => 321, 722 => 319, 712 => 318, 708 => 316, 698 => 315, 688 => 313, 686 => 312, 681 => 311, 677 => 310, 672 => 309, 670 => 308, 661 => 304, 648 => 293, 644 => 265, 639 => 262, 633 => 259, 630 => 258, 627 => 256, 617 => 243, 610 => 238, 606 => 236, 602 => 235, 598 => 234, 594 => 233, 589 => 230, 585 => 222, 582 => 221, 580 => 220, 577 => 219, 573 => 217, 565 => 215, 563 => 214, 558 => 211, 556 => 209, 554 => 208, 552 => 207, 546 => 204, 539 => 202, 532 => 198, 525 => 196, 516 => 190, 507 => 186, 501 => 185, 495 => 184, 490 => 182, 482 => 179, 474 => 176, 466 => 173, 458 => 170, 451 => 165, 448 => 164, 438 => 160, 434 => 159, 430 => 158, 426 => 157, 423 => 156, 415 => 154, 407 => 152, 405 => 151, 402 => 150, 398 => 149, 391 => 148, 388 => 147, 386 => 146, 380 => 143, 373 => 138, 370 => 137, 361 => 134, 357 => 133, 353 => 132, 346 => 130, 343 => 129, 338 => 128, 333 => 127, 331 => 126, 325 => 123, 319 => 120, 302 => 105, 294 => 100, 290 => 99, 287 => 98, 279 => 93, 275 => 92, 271 => 90, 268 => 89, 264 => 88, 261 => 87, 259 => 86, 248 => 77, 245 => 76, 239 => 75, 229 => 73, 226 => 72, 216 => 70, 206 => 68, 203 => 67, 200 => 66, 196 => 65, 189 => 64, 187 => 63, 181 => 60, 175 => 57, 167 => 51, 163 => 49, 160 => 48, 155 => 47, 152 => 46, 148 => 44, 144 => 42, 142 => 41, 138 => 40, 116 => 21, 112 => 20, 108 => 19, 104 => 18, 99 => 15, 95 => 13, 91 => 11, 89 => 10, 87 => 9, 84 => 8, 82 => 7, 80 => 6, 78 => 5, 76 => 4, 74 => 3, 72 => 2, 47 => 1,);
}
public function getSourceContext()
{
return new Source("{% block content %}
{% set totalAmount = ((totalAmount is defined) and totalAmount)%}
{% set categories = app_category_get_data() %}
{% set params = app_get_params() %}
{% set userType = (app.user)?app.user.UserType:'' %}
{% set role = (app.user)?app.user.UserRoles:'' %}
{% set wesbiteName = document.getProperty('website_name') %}
{% set mecstore_lang = app.request.locale %}
{% if mecstore_lang == 'en'%}
{% set prefix_language = '/en/' %}
{% else %}
{% set prefix_language = '/' %}
{% endif %}
<script>
window.portoTexts = {
addedToCart: \"{{ 'added_to_cart'|trans }}\",
viewCart: \"{{ 'view_cart'|trans }}\",
linkCart: \"{{ 'link_cart'|trans }}\",
linkCheckout: \"{{ 'link_checkout'|trans }}\",
};
</script>
<style>
.sidebar-shop .widget.prezzo {
display:none!important;
}
</style>
<header class=\"header box-shadow\">
<div class=\"header-middle sticky-header\" data-sticky-options=\"{'mobile': true}\">
<div class=\"container\">
<div class=\"header-left\">
<button class=\"mobile-menu-toggler\" type=\"button\">
<i class=\"fas fa-bars fa-2x\"></i>
<!-- <img src=\"/mecstore/b2c/assets/images/custom/logo.png\" alt=\"Porto Logo\" width=\"111\" height=\"44\"> -->
</button>
<a href=\"{{ prefix_language }}\" class=\"logo\">
{% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
<img src=\"/mecstore/b2c/assets/images/custom/logo.png\" alt=\"Mecstore\" class=\"d-block\" width=\"262\" height=\"auto\" >
{% else %}
<img src=\"/mecstore/b2c/assets/images/custom/logo.png\" alt=\"Mecstore\" class=\"d-block\" width=\"262\" height=\"auto\" >
{% endif %}
{% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
<a href=\"{{ path('b2c-account-index') }}\" class=\"d-block d-lg-none text-dark\">
{{ 'Benvenuto'|trans }} {# <strong>{{app.user.firstname}} {{app.user.lastname}}</strong> #}
</a>
{% endif %}
</a>
</div>
<div class=\"header-center\">
<div
class=\"header-icon header-search header-search-inline header-search-category w-lg-max text-right mt-0\">
<a href=\"#\" class=\"search-toggle\" role=\"button\"><i class=\"icon-search-3\"></i></a>
<form action=\"{{ path('b2c-search') }}\" id=\"search-form\" name=\"search-form\" method=\"get\">
<div class=\"header-search-wrapper\">
<input type=\"search\" class=\"form-control\" name=\"term\" id=\"term\" value=\"\"
placeholder=\"{{ 'Cerca prodotto...'|trans }}\" required>
<div class=\"select-custom\">
<select id=\"cat\" name=\"cat\">
{% if categories %}
<option value=\"\" selected data-href=\"{{ path('b2c-shop-category', {categoryname: 'ovunque',category: 0}) }}\">{{ 'tutto il catalogo'|trans }}</option>
{% for category in categories %}
{% if params.cat is defined %}
{% if params.cat == category.id %}
<option value=\"{{category.Id}}\" selected data-href=\"{{ path('b2c-shop-category', {categoryname: category.key,category: category.id}) }}\">{{category.Name}}</option>
{% else %}
<option value=\"{{category.Id}}\" data-href=\"{{ path('b2c-shop-category', {categoryname: category.key,category: category.id}) }}\">{{category.Name}}</option>
{% endif %}
{% else %}
<option value=\"{{category.Id}}\" data-href=\"{{ path('b2c-shop-category', {categoryname: category.key,category: category.id}) }}\">{{category.Name}}</option>
{% endif %}
{% endfor %}
{% endif %}
</select>
</div><!-- End .select-custom -->
<button class=\"btn icon-magnifier bg-dark text-white term-search-btn\" title=\"search\"
type=\"submit\"></button>
</div><!-- End .header-search-wrapper -->
</form>
</div><!-- End .header-search -->
</div>
{% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
<div class=\"header-right ml-0 ml-lg-auto\">
<a href=\"{{ path('b2c-account-profile') }}\" class=\"pr-2 pr-xl-5 border-right border-dark d-none d-lg-block \">
{{ 'Benvenuto'|trans }} {# <strong>{{app.user.firstname}} {{app.user.lastname}}</strong> #}
</a>
<a href=\"{{ path('account-logout') }}\" class=\"pl-2 pl-xl-5 d-none d-lg-block \" >
{{ 'general.logout' | trans }}
</a>
<div class=\"language-container\"></div>
</div>
{% else %}
<div class=\"header-right ml-0 ml-lg-auto\">
<a href=\"{{ path('account-login') }}\" class=\"d-none d-lg-block login-lnk\">
{{ 'general.login' | trans }}
</a>
<div class=\"language-container\"></div>
</div>
{% endif %}
</div>
</div>
<div class=\"header-bottom sticky-header\" data-sticky-options=\"{'mobile': false}\">
<!-- header sticky -->
<div class=\"container\">
<div class=\"header-left\">
<a href=\"/\" class=\"logo\">
<img src=\"/mecstore/b2c/assets/images/custom_icons/logo-mecstore.png\" alt=\"Logo\">
</a>
</div>
<div class=\"header-center ml-4\">
<nav class=\"main-nav w-100\">
<ul class=\"menu\">
<li class=\"mr-xl-5 mr-4\" >
<a href=\"{{ prefix_language }}\" class=\"page-index\" data-name=\"app-index.php\">Home</a>
</li>
<li class=\"mr-xl-5 mr-4\" >
<a class=\"page-index\">{{ 'catalogo'|trans }}</a>
<div class=\"megamenu megamenu-fixed-width megamenu-3cols\">
<div class=\"row\">
{% set count = 0%}
{% for category in app_category_get_data() %}
{% if (count == 0) %}<div class=\"col-lg-4\">{% endif %}
<ul class=\"submenu\">
<li><a href=\"{{ path('b2c-shop-category', {categoryname: category.key,category: category.id}) }}\">{{ category.Name }}</a></li>
</ul>
{% set count = count + 1 %}
{% if (count % 9 == 0) %} </div><div class=\"col-lg-4\"> {% endif %}
{% endfor %}
</div>
{#header - generate pimcore navigation #}
{#header - navigation icons#}
</div>
</div><!-- End .megamenu -->
</li>
<li class=\"mr-xl-5 mr-4\" >
<a class=\"page-index\">{{ 'FORNITORI'|trans }}</a>
<div class=\"megamenu megamenu-fixed-width megamenu-3cols providers\">
<div class=\"row\">
{% set count = 0%}
{% set brands = app_brand_get_data() %}
{% for brand in brands %}
{% if (count == 0) %}<div class=\"col-lg-2\">{% endif %}
<ul class=\"submenu\">
{% if brand.enableDedicatedPage %}
<li><a href=\"{{ path('b2c-brand', {brandname: brand.key,brand: brand.id}) }}\">{{ brand.Name }}</a></li>
{% else %}
<li><a href=\"{{ path('b2c-shop-brand', {brandname: brand.key,brand: brand.id}) }}\">{{ brand.Name }}</a></li>
{% endif %}
</ul>
{% set count = count + 1 %}
{% set elements_column = (brands|length //6) + 1 %}
{% if (count % elements_column == 0) %}</div><div class=\"col-lg-2\"> {% endif %}
{% endfor %}
<hr/>
</div>
{#header - generate pimcore navigation #}
{#header - navigation icons#}
</div>
</div><!-- End .megamenu -->
</li>
<li class=\"mr-xl-5 mr-4\" >
<a href=\"{{ prefix_language }}about-us\" class=\"page-index\" data-name=\" \">{{ 'il gruppo'|trans }}</a>
</li>
<li class=\"mr-xl-5 mr-4\" >
<a href=\"{{ prefix_language }}b2c_shops\" class=\"page-index\" data-name=\" \">{{ 'punti vendita'|trans }}</a>
</li>
<li class=\"mr-xl-5 mr-4\" >
<a href=\"{{ prefix_language }}b2c_news\" class=\"page-index\" data-name=\"app-news.php\">{{ 'News'|trans }}</a>
</li>
<li class=\"mr-xl-5 mr-4\" >
<a href=\"{{ prefix_language }}catalogues\" class=\"page-index\" data-name=\" \">{{ 'download'|trans }}</a>
</li>
<li class=\"mr-xl-5 mr-4\" >
<a href=\"#\" class=\"page-index\" data-name=\" \">{{ 'contattaci'|trans }}</a>
<ul>
<li><a href=\"{{ prefix_language }}contact-us\" class=\"page-index\" data-name=\" \">{{ 'richiesta informazioni'|trans }}</a></li>
<li><a href=\"{{ prefix_language }}collaborations\">{{ 'collaborazioni'|trans }}</a></li>
<li><a href=\"{{ prefix_language }}work-with-us\">{{ 'lavora con noi'|trans }}</a></li>
</ul>
</li>
<li class=\"mr-xl-5 mr-4\" >
<a href=\"https://mecstore.boels.com/it-it/noleggiare\" class=\"page-index\" target=\"_blank\" data-name=\" \">{{ 'noleggi'|trans }}</a>
</li>
<li class=\"float-right\">
<a href=\"{{ path('b2c-shop-cart-detail') }}\" class=\"icon-a page-index\" data-name=\"{{ path('b2c-shop-cart-detail') }}\">
<i class=\"fas fa-shopping-cart\"></i>
<span class=\"cart-count badge-circle\">{{ app_cart_items_count_b2c() }}</span>
</a>
</li>
<li class=\"float-right\">
<a class=\"icon-a page-index\" href=\"{{ path('b2c-wishlist-index') }}\" data-name=\"{{ path('b2c-wishlist-index') }}\">
<i class=\"icon-star-empty\"></i>
<span class=\"wishlist-count badge-circle sticky\" style=\"display:none!important\">{{ app_wish_list_count() }}</span>
</a>
</li>
{% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
{# <li class=\"sticky-button mr-xl-5 mr-4\" > #}
{# <li class=\"sticky-button one border-left border-dark pl-2 \">
<a href=\"app-my-mecstore.php\" class=\"page-index\" data-name=\"app-my-mecstore.php\">my mecstore</a>
</li> #}
<li class=\"float-right border-left border-right border-dark pl-2 pl-xl-5 pr-2 pr-xl-5 mymecstore\" >
{% if wesbiteName == 'b2c' and app.user %}
<a href=\"{{path('b2c-account-index')}}\" class=\"{{path('b2c-account-index')}}\" ><span>my mecstore</span></a>
{% else %}
<a class=\"\" ><span>my mecstore</span></a>
{% endif %}
{% if wesbiteName == 'b2c' and app.user %}
{% else %}
<div class=\"megamenu megamenu-fixed-width b2c\">
<div class=\"row\">
{# <div class=\"col-lg\">
<ul class=\"submenu\">
<li><a href=\"{{ path('b2c-account-profile') }}\">Profilo</a></li>
<li><a href=\"{{path('b2c-account-index')}}\">MY MECSTORE</a></li>
</ul>
</div> #}
<div class=\"col-lg\">
<strong>B2B</strong>
<ul class=\"submenu\">
<li><a href=\"{{ pimcore_url({'type': 'confirm'},'account-order-list',true,true) }}\">Ordini inviati</a></li>
<li><a href=\"{{ pimcore_url({'type': 'pre-ordini'},'account-order-list',true,true) }}\">Preordini</a></li>
<li><a href=\"{{ pimcore_url({'type': 'booked'},'account-order-list',true,true) }}\">Prenotazioni</a></li>
<li><a href=\"{{ pimcore_url({'type': 'draft'},'account-order-list',true,true) }}\">Bozze ordini</a></li>
{# <li><a href=\"\"><strong>Note</strong></a></li> #}
</ul>
</div>
<div class=\"col-lg\">
<strong>B2C</strong>
<ul class=\"submenu\">
<li><a href=\"{{ path('b2c-account-profile') }}\">Profilo</a></li>
<li><a href=\"\">Preventivi</a></li>
<li><a href=\"\">Ordini ricevuti</a></li>
<li><a href=\"\">Contatti ricevuti</a></li>
<li><a href=\"\">Resi</a></li>
</ul>
</div>
{# <div class=\"col-lg border-left\">
<ul class=\"submenu\">
<li><a href=\"\">Anagrafica</a></li>
<li><a href=\"\">Rubrica indirizzi</a></li>
</ul>
</div> #}
</div>
{#header - generate pimcore navigation #}
{#header - navigation icons#}
</div>
{% endif %}<!-- End .megamenu -->
</li>
{% endif %}
{# <li class=\"sticky-button mr-xl-5 mr-4\" >
<a href=\"/my-mecstore\" class=\"page-index\" data-name=\"app-my-mecstore.php\">my mecstore</a>
</li>
<li class=\"float-right\" >
<a href=\"app-cart.php\" class=\"icon-a page-index\" data-name=\"app-cart.php\">
<i class=\"fas fa-shopping-cart\"></i>
<span class=\"cart-count badge-circle\">99</span>
</a>
</li>
<li class=\"float-right\" >
<a class=\"icon-a page-index\" href=\"app-favourites.php\" data-name=\"app-favourites.php\">
<i class=\"icon-star-empty\"></i>
</a>
</li>
<li class=\"float-right border-right border-dark pr-2 pr-xl-5 mr-3 mr-xl-5\" >
<a class=\"page page-index\" href=\"app-ordini.php\" data-name=\"app-ordini.php\">
ordini
</a>
</li>
<li class=\"float-right border-left border-dark pl-2 pl-xl-5\" >
<a class=\"page page-index\" href=\"app-my-mecstore.php\" data-name=\"app-my-mecstore.php\">
my mecstore
</a>
</li> #}
</ul>
</nav>
</div>
<div class=\"header-right pr-4\">
<!-- HEADER SEARCH STICKY -->
<div
class=\"header-icon header-search header-search-popup header-search-category w-lg-max text-right\">
<a href=\"#\" class=\"search-toggle\" role=\"button\"><i class=\"icon-search-3\"></i></a>
<!-- SEARCH INPUT -->
<form action=\"#\" method=\"get\">
<div class=\"header-search-wrapper\">
<input type=\"search\" class=\"form-control\" name=\"term_header\" id=\"term_header\" value=\"{% if params.term is defined %}{{ params.term }}{% endif %}\"
placeholder=\"Cerca prodotto...\" required>
<div class=\"select-custom\">
<select id=\"cat_header\" name=\"cat_header\">
{% if categories %}
<option value=\"\" selected data-href=\"{{ path('shop-category', {categoryname: 'ovunque',category: 0}) }}\">tutto il catalogo</option>
{% for category in categories %}
{% if params.cat is defined %}
{% if params.cat == category.id %}
<option value=\"{{category.Id}}\" selected data-href=\"{{ path('shop-category', {categoryname: category.key,category: category.id}) }}\">{{category.Name}}</option>
{% else %}
<option value=\"{{category.Id}}\" data-href=\"{{ path('shop-category', {categoryname: category.key,category: category.id}) }}\">{{category.Name}}</option>
{% endif %}
{% else %}
<option value=\"{{category.Id}}\" data-href=\"{{ path('shop-category', {categoryname: category.key,category: category.id}) }}\">{{category.Name}}</option>
{% endif %}
{% endfor %}
{% endif %}
</select>
</div><!-- End .select-custom -->
<button class=\"btn icon-search-3 bg-dark text-white p-0\" title=\"search\"
type=\"submit\"></button>
</div><!-- End .header-search-wrapper -->
</form>
</div><!-- End .header-search -->
<a href=\"{{ path('b2c-wishlist-index') }}\" class=\"header-icon page-index icon-a \" data-name=\"{{ path('b2c-wishlist-index') }}\">
<i class=\"icon-star-empty\"></i>
<span class=\"wishlist-count badge-circle sticky\" style=\"display:none!important\">{{ app_wish_list_count() }}</span>
</a>
<a href=\"{{ path('b2c-shop-cart-detail') }}\" class=\"page-index icon-a \" data-name=\"{{ path('b2c-shop-cart-detail') }}\">
<i class=\"fas fa-shopping-cart\"></i>
<span class=\"cart-count badge-circle sticky\">{{ app_cart_items_count_b2c() }}</span>
</a>
</div>
</div>
</div>
</header><!-- End .header -->
{% endblock %}", "includes/header_b2c.html.twig", "/home/ubuntu/mecstore/website/templates/includes/header_b2c.html.twig");
}
}