<?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;
/* widget/header/index.html.twig */
class __TwigTemplate_7206665024cd5f30503252d165db9bb6bd59ba44192c4e91b468d517bc34f1bd extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
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", "widget/header/index.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "widget/header/index.html.twig"));
// line 1
$context["userGroupLogo"] = null;
// line 2
$context["userGroupSociete"] = null;
// line 3
echo "
";
// line 4
if (((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.', 4, $this->source); })()), "user", [], "any", false, false, false, 4) && !(null === 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.', 4, $this->source); })()), "user", [], "any", false, false, false, 4))) && twig_length_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.', 4, $this->source); })()), "user", [], "any", false, false, false, 4), "groups", [], "any", false, false, false, 4)))) {
// line 5
echo " ";
$context["userGroupLogo"] = twig_get_attribute($this->env, $this->source, twig_first($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.', 5, $this->source); })()), "user", [], "any", false, false, false, 5), "groups", [], "any", false, false, false, 5)), "logo", [], "any", false, false, false, 5);
// line 6
echo " ";
$context["userGroupSociete"] = twig_get_attribute($this->env, $this->source, twig_first($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.', 6, $this->source); })()), "user", [], "any", false, false, false, 6), "groups", [], "any", false, false, false, 6)), "name", [], "any", false, false, false, 6);
}
// line 8
echo "
<header>
";
// line 10
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\WidgetController::toolbar", ["initialRequest" => // line 11
(isset($context["initialRequest"]) || array_key_exists("initialRequest", $context) ? $context["initialRequest"] : (function () { throw new RuntimeError('Variable "initialRequest" does not exist.', 11, $this->source); })())]));
// line 12
echo "
<div class=\"container\">
<div class=\"row\">
<div class=\"";
// line 16
if ((((isset($context["site_slug"]) || array_key_exists("site_slug", $context) ? $context["site_slug"] : (function () { throw new RuntimeError('Variable "site_slug" does not exist.', 16, $this->source); })()) == "prestatime") || ((isset($context["site_slug"]) || array_key_exists("site_slug", $context) ? $context["site_slug"] : (function () { throw new RuntimeError('Variable "site_slug" does not exist.', 16, $this->source); })()) == "horizonce"))) {
echo "col-2";
} else {
echo "col-3";
}
echo "\">
<div id=\"logo_home\">
";
// line 18
if ( !(null === (isset($context["userGroupLogo"]) || array_key_exists("userGroupLogo", $context) ? $context["userGroupLogo"] : (function () { throw new RuntimeError('Variable "userGroupLogo" does not exist.', 18, $this->source); })()))) {
// line 19
echo " <a class=\"logo\" href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("accueil.index");
echo "\" title=\"";
echo twig_escape_filter($this->env, (isset($context["site_name"]) || array_key_exists("site_name", $context) ? $context["site_name"] : (function () { throw new RuntimeError('Variable "site_name" does not exist.', 19, $this->source); })()), "html", null, true);
echo "\" style=\"background-image:url('";
echo twig_escape_filter($this->env, $this->env->getRuntime('App\Twig\AppRuntime')->sonataMedia((isset($context["userGroupLogo"]) || array_key_exists("userGroupLogo", $context) ? $context["userGroupLogo"] : (function () { throw new RuntimeError('Variable "userGroupLogo" does not exist.', 19, $this->source); })()), "downscale_300"), "html", null, true);
echo "')\"></a>
<a class=\"logo_sticky\" href=\"";
// line 20
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("accueil.index");
echo "\" title=\"";
echo twig_escape_filter($this->env, (isset($context["site_name"]) || array_key_exists("site_name", $context) ? $context["site_name"] : (function () { throw new RuntimeError('Variable "site_name" does not exist.', 20, $this->source); })()), "html", null, true);
echo "\" style=\"background-image:url('";
echo twig_escape_filter($this->env, $this->env->getRuntime('App\Twig\AppRuntime')->sonataMedia((isset($context["userGroupLogo"]) || array_key_exists("userGroupLogo", $context) ? $context["userGroupLogo"] : (function () { throw new RuntimeError('Variable "userGroupLogo" does not exist.', 20, $this->source); })()), "downscale_300"), "html", null, true);
echo "')\"></a>
";
} else {
// line 22
echo " <a class=\"logo\" href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("accueil.index");
echo "\" title=\"";
echo twig_escape_filter($this->env, (isset($context["site_name"]) || array_key_exists("site_name", $context) ? $context["site_name"] : (function () { throw new RuntimeError('Variable "site_name" does not exist.', 22, $this->source); })()), "html", null, true);
echo "\" style=\"background-image:url('";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((("build/logo/logo_" . (isset($context["site_slug"]) || array_key_exists("site_slug", $context) ? $context["site_slug"] : (function () { throw new RuntimeError('Variable "site_slug" does not exist.', 22, $this->source); })())) . ".png")), "html", null, true);
echo "')\"></a>
<a class=\"logo_sticky\" href=\"";
// line 23
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("accueil.index");
echo "\" title=\"";
echo twig_escape_filter($this->env, (isset($context["site_name"]) || array_key_exists("site_name", $context) ? $context["site_name"] : (function () { throw new RuntimeError('Variable "site_name" does not exist.', 23, $this->source); })()), "html", null, true);
echo "\" style=\"background-image:url('";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((("build/logo/logo_sticky_" . (isset($context["site_slug"]) || array_key_exists("site_slug", $context) ? $context["site_slug"] : (function () { throw new RuntimeError('Variable "site_slug" does not exist.', 23, $this->source); })())) . ".png")), "html", null, true);
echo "')\"></a>
";
}
// line 25
echo " </div>
</div>
<nav class=\"";
// line 27
if ((((isset($context["site_slug"]) || array_key_exists("site_slug", $context) ? $context["site_slug"] : (function () { throw new RuntimeError('Variable "site_slug" does not exist.', 27, $this->source); })()) == "prestatime") || ((isset($context["site_slug"]) || array_key_exists("site_slug", $context) ? $context["site_slug"] : (function () { throw new RuntimeError('Variable "site_slug" does not exist.', 27, $this->source); })()) == "horizonce"))) {
echo "col-10";
} else {
echo "col-9";
}
echo "\">
<a class=\"cmn-toggle-switch cmn-toggle-switch__htx open_close\" href=\"javascript:void(0);\"><span>Menu mobile</span></a>
<div class=\"main-menu\">
<div id=\"header_menu\">
<img src=\"";
// line 31
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((("build/logo/logo_sticky_" . (isset($context["site_slug"]) || array_key_exists("site_slug", $context) ? $context["site_slug"] : (function () { throw new RuntimeError('Variable "site_slug" does not exist.', 31, $this->source); })())) . ".png")), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, (isset($context["site_name"]) || array_key_exists("site_name", $context) ? $context["site_name"] : (function () { throw new RuntimeError('Variable "site_name" does not exist.', 31, $this->source); })()), "html", null, true);
echo "\" data-retina=\"true\">
</div>
<a href=\"#\" class=\"open_close\" id=\"close_in\"><i class=\"icon_set_1_icon-77\"></i></a>
<ul>
";
// line 35
$this->loadTemplate("menu/liste.html.twig", "widget/header/index.html.twig", 35)->display(twig_array_merge($context, ["menuItems" => (isset($context["menuItems"]) || array_key_exists("menuItems", $context) ? $context["menuItems"] : (function () { throw new RuntimeError('Variable "menuItems" does not exist.', 35, $this->source); })())]));
// line 36
echo " </ul>
</div>
<ul id=\"top_tools\">
<li class=\"search-scroll-li d-none\">
<a href=\"javascript:void(0);\" class=\"search-scroll\"><i class=\"icon_search\"></i></a>
</li>
<li class=\"search-overlay-menu-btn-li\">
<a href=\"javascript:void(0);\" class=\"search-overlay-menu-btn\"><i class=\"icon_search\"></i></a>
</li>
<li>
<div class=\"dropdown dropdown-cart\">
<a href=\"#\" data-toggle=\"dropdown\" class=\"cart_bt\"><i class=\"icon_bag_alt\"></i><strong>0</strong></a>
<ul class=\"dropdown-menu\" id=\"cart_items\"></ul>
</div>
</li>
</ul>
<div class=\"search-overlay-menu\">
<span class=\"search-overlay-close\">
<i class=\"icon_set_1_icon-77\"></i>
</span>
<form action=\"";
// line 57
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("produit.liste");
echo "\" role=\"search\" id=\"searchform\" method=\"GET\">
<input name=\"search[motcles]\" type=\"search\" placeholder=\"";
// line 58
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("que_cherchez_vous"), "html", null, true);
echo "\" />
<button type=\"submit\"><i class=\"icon_set_1_icon-78\"></i></button>
</form>
</div>
</nav>
</div>
</div>
</header>";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "widget/header/index.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 172 => 58, 168 => 57, 145 => 36, 143 => 35, 134 => 31, 123 => 27, 119 => 25, 110 => 23, 101 => 22, 92 => 20, 83 => 19, 81 => 18, 72 => 16, 66 => 12, 64 => 11, 63 => 10, 59 => 8, 55 => 6, 52 => 5, 50 => 4, 47 => 3, 45 => 2, 43 => 1,);
}
public function getSourceContext()
{
return new Source("{% set userGroupLogo = null %}
{% set userGroupSociete = null %}
{% if app.user and app.user is not null and app.user.groups|length %}
{% set userGroupLogo = app.user.groups|first.logo %}
{% set userGroupSociete = app.user.groups|first.name %}
{% endif %}
<header>
{{ render(controller('App\\\\Controller\\\\WidgetController::toolbar', {
'initialRequest': initialRequest
})) }}
<div class=\"container\">
<div class=\"row\">
<div class=\"{% if site_slug == 'prestatime' or site_slug == 'horizonce' %}col-2{% else %}col-3{% endif %}\">
<div id=\"logo_home\">
{% if userGroupLogo is not null %}
<a class=\"logo\" href=\"{{ path('accueil.index') }}\" title=\"{{ site_name }}\" style=\"background-image:url('{{ sonata_media(userGroupLogo, 'downscale_300') }}')\"></a>
<a class=\"logo_sticky\" href=\"{{ path('accueil.index') }}\" title=\"{{ site_name }}\" style=\"background-image:url('{{ sonata_media(userGroupLogo, 'downscale_300') }}')\"></a>
{% else %}
<a class=\"logo\" href=\"{{ path('accueil.index') }}\" title=\"{{ site_name }}\" style=\"background-image:url('{{ asset('build/logo/logo_'~site_slug~'.png') }}')\"></a>
<a class=\"logo_sticky\" href=\"{{ path('accueil.index') }}\" title=\"{{ site_name }}\" style=\"background-image:url('{{ asset('build/logo/logo_sticky_'~site_slug~'.png') }}')\"></a>
{% endif %}
</div>
</div>
<nav class=\"{% if site_slug == 'prestatime' or site_slug == 'horizonce' %}col-10{% else %}col-9{% endif %}\">
<a class=\"cmn-toggle-switch cmn-toggle-switch__htx open_close\" href=\"javascript:void(0);\"><span>Menu mobile</span></a>
<div class=\"main-menu\">
<div id=\"header_menu\">
<img src=\"{{ asset('build/logo/logo_sticky_'~site_slug~'.png') }}\" alt=\"{{ site_name }}\" data-retina=\"true\">
</div>
<a href=\"#\" class=\"open_close\" id=\"close_in\"><i class=\"icon_set_1_icon-77\"></i></a>
<ul>
{% include 'menu/liste.html.twig' with {'menuItems' : menuItems} %}
</ul>
</div>
<ul id=\"top_tools\">
<li class=\"search-scroll-li d-none\">
<a href=\"javascript:void(0);\" class=\"search-scroll\"><i class=\"icon_search\"></i></a>
</li>
<li class=\"search-overlay-menu-btn-li\">
<a href=\"javascript:void(0);\" class=\"search-overlay-menu-btn\"><i class=\"icon_search\"></i></a>
</li>
<li>
<div class=\"dropdown dropdown-cart\">
<a href=\"#\" data-toggle=\"dropdown\" class=\"cart_bt\"><i class=\"icon_bag_alt\"></i><strong>0</strong></a>
<ul class=\"dropdown-menu\" id=\"cart_items\"></ul>
</div>
</li>
</ul>
<div class=\"search-overlay-menu\">
<span class=\"search-overlay-close\">
<i class=\"icon_set_1_icon-77\"></i>
</span>
<form action=\"{{ path('produit.liste') }}\" role=\"search\" id=\"searchform\" method=\"GET\">
<input name=\"search[motcles]\" type=\"search\" placeholder=\"{{ 'que_cherchez_vous'|trans }}\" />
<button type=\"submit\"><i class=\"icon_set_1_icon-78\"></i></button>
</form>
</div>
</nav>
</div>
</div>
</header>", "widget/header/index.html.twig", "/home/promostamt/dev/templates/widget/header/index.html.twig");
}
}