<?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.html.twig */
class __TwigTemplate_4808c0955522f578448c36b58a49a380f4d7b96925a371314ae65b3c46f40bc4 extends 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", "includes/header.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.html.twig"));
// line 1
echo "
<header id=\"header\">
<div class=\"apk-header\">
<div class=\"apk-header-desktop uk-visible@l\">
<div class=\"apk-header-top uk-light\">
<div class=\"uk-container\">
<div class=\"uk-navbar-transparent uk-navbar\" uk-navbar>
<div class=\"uk-navbar-left\">
<ul class=\"uk-navbar-nav\">
<li><a class=\"uk-button uk-button-primary uk-button-collapsed\" href=\"";
// line 11
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("dashboard");
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Espace annonceurs"), "html", null, true);
echo "</a></li>
";
// line 13
if (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.', 13, $this->source); })()), "property", [0 => "showSocialsHeader"], "method", false, false, false, 13)) {
// line 14
echo " ";
if (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.', 14, $this->source); })()), "property", [0 => "facebookUrl"], "method", false, false, false, 14)) {
// line 15
echo " <li class=\"uk-flex uk-flex-middle apk-socials\">
<a class=\"uk-flex uk-flex-middle\" href=\"";
// line 16
echo twig_escape_filter($this->env, 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.', 16, $this->source); })()), "property", [0 => "facebookUrl"], "method", false, false, false, 16), "html", null, true);
echo "\" target=\"_blank\" title=\"Facebook\">
<img uk-svg width=\"26\" height=\"26\" src=\"/static/img/pictos/facebook.svg\" alt=\"Facebook\">
</a>
</li>
";
}
// line 21
echo "
";
// line 22
if (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.', 22, $this->source); })()), "property", [0 => "instagramUrl"], "method", false, false, false, 22)) {
// line 23
echo " <li class=\"uk-flex uk-flex-middle apk-socials\">
<a class=\"uk-flex uk-flex-middle uk-padding-remove\" href=\"";
// line 24
echo twig_escape_filter($this->env, 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.', 24, $this->source); })()), "property", [0 => "instagramUrl"], "method", false, false, false, 24), "html", null, true);
echo "\" target=\"_blank\" title=\"Instagram\">
<img uk-svg width=\"26\" height=\"26\" src=\"/static/img/pictos/instagram.svg\" alt=\"Instagram\">
</a>
</li>
";
}
// line 29
echo " ";
}
// line 30
echo "
</ul>
</div>
";
// line 33
if ((null === $this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("messageAvailabilities"))) {
// line 34
echo " <span class=\"uk-navbar-item uk-width-expand\"><strong>";
echo twig_escape_filter($this->env, $this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("avalaibilitiesCount"), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("places"), "html", null, true);
echo "</strong> ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("displonibles dès maintenant"), "html", null, true);
echo "</span>
";
} else {
// line 36
echo " <span class=\"uk-navbar-item uk-width-expand\"><strong>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("avalabilities.hidden"), "html", null, true);
echo "</strong></span>
";
}
// line 38
echo " <div class=\"uk-navbar-right\">
<ul class=\"uk-navbar-nav uk-flex-middle\">
";
// line 40
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.', 40, $this->source); })()), "user", [], "any", false, false, false, 40)) {
echo "
<li><a class=\"uk-button uk-button-primary uk-button-collapsed\" href=\"";
// line 41
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("login");
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Espace parents"), "html", null, true);
echo "</a></li>
";
} else {
// line 43
echo " <li>
<a href=\"#\" type=\"button\">";
// line 44
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.', 44, $this->source); })()), "user", [], "any", false, false, false, 44), "firstname", [], "any", false, false, false, 44), "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.', 44, $this->source); })()), "user", [], "any", false, false, false, 44), "lastname", [], "any", false, false, false, 44), "html", null, true);
echo "</a>
<div class=\"uk-dropdown\" uk-dropdown>
<ul class=\"uk-nav uk-dropdown-nav\">
<li><a href=\"";
// line 47
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("account");
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Mon compte"), "html", null, true);
echo "</a></li>
<li><a href=\"";
// line 48
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("bookmark");
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Ma sélection"), "html", null, true);
echo " (<span id=\"nbrFav\">";
echo twig_escape_filter($this->env, 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.', 48, $this->source); })()), "user", [], "any", false, false, false, 48), "favorites", [], "any", false, false, false, 48)), "html", null, true);
echo "</span>)</a></li>
<li><a href=\"";
// line 49
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("logout");
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Se déconnecter"), "html", null, true);
echo "</a></li>
</ul>
</div>
</li>
";
}
// line 54
echo " <li>";
echo $this->extensions['App\Twig\Extension\Apik']->getLanguageSwitcherHtml((isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 54, $this->source); })()), "dropdown", "code");
echo "</li>
</ul>
</div>
</div>
</div>
</div>
<div class=\"apk-header-bottom\" uk-sticky=\"show-on-up: true; animation: uk-animation-slide-top;\">
<div class=\"uk-container\">
<div class=\"uk-navbar-transparent uk-navbar\" uk-navbar>
<div class=\"uk-navbar-left\">
<a href=\"/";
// line 64
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.', 64, $this->source); })()), "request", [], "any", false, false, false, 64), "locale", [], "any", false, false, false, 64), "html", null, true);
echo "\">
<img uk-svg width=\"240\" height=\"80\" src=\"";
// line 65
echo twig_escape_filter($this->env, 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.', 65, $this->source); })()), "getProperty", [0 => "headerLogo"], "method", false, false, false, 65), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Your website name"), "html", null, true);
echo "\">
";
// line 67
echo " </a>
</div>
<div class=\"uk-navbar-right\">
";
// line 70
$this->loadTemplate("includes/main-nav.html.twig", "includes/header.html.twig", 70)->display($context);
// line 71
echo " </div>
</div>
</div>
</div>
</div>
<div class=\"apk-header-mobile uk-hidden@l\" uk-sticky=\"show-on-up: true; animation: uk-animation-slide-top;\">
<div class=\"uk-container\">
<div class=\"uk-navbar-transparent uk-navbar\" uk-navbar>
<div class=\"uk-navbar-left\">
<div class=\"uk-logo\">
<a href=\"/";
// line 82
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.', 82, $this->source); })()), "request", [], "any", false, false, false, 82), "locale", [], "any", false, false, false, 82), "html", null, true);
echo "\">
<img width=\"140\" height=\"50\" src=\"";
// line 83
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, 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.', 83, $this->source); })()), "getProperty", [0 => "headerLogo"], "method", false, false, false, 83), "getThumbnail", [0 => "headerLogo"], "method", false, false, false, 83), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Your website name"), "html", null, true);
echo "\">
</a>
</div>
</div>
<div class=\"uk-navbar-right\">
<div>
<a href=\"#menu-mobile\" uk-toggle>
<img uk-svg src=\"/static/img/pictos/menu-burger.svg\" alt=\"menu\">
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</header>
";
// line 100
$this->loadTemplate("includes/offcanvas.html.twig", "includes/header.html.twig", 100)->display($context);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "includes/header.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 240 => 100, 218 => 83, 214 => 82, 201 => 71, 199 => 70, 194 => 67, 188 => 65, 184 => 64, 170 => 54, 160 => 49, 152 => 48, 146 => 47, 138 => 44, 135 => 43, 128 => 41, 124 => 40, 120 => 38, 114 => 36, 104 => 34, 102 => 33, 97 => 30, 94 => 29, 86 => 24, 83 => 23, 81 => 22, 78 => 21, 70 => 16, 67 => 15, 64 => 14, 62 => 13, 55 => 11, 43 => 1,);
}
public function getSourceContext()
{
return new Source("
<header id=\"header\">
<div class=\"apk-header\">
<div class=\"apk-header-desktop uk-visible@l\">
<div class=\"apk-header-top uk-light\">
<div class=\"uk-container\">
<div class=\"uk-navbar-transparent uk-navbar\" uk-navbar>
<div class=\"uk-navbar-left\">
<ul class=\"uk-navbar-nav\">
<li><a class=\"uk-button uk-button-primary uk-button-collapsed\" href=\"{{ path('dashboard') }}\">{{ \"Espace annonceurs\"|trans }}</a></li>
{% if document.property('showSocialsHeader') %}
{% if document.property('facebookUrl') %}
<li class=\"uk-flex uk-flex-middle apk-socials\">
<a class=\"uk-flex uk-flex-middle\" href=\"{{ document.property('facebookUrl') }}\" target=\"_blank\" title=\"Facebook\">
<img uk-svg width=\"26\" height=\"26\" src=\"/static/img/pictos/facebook.svg\" alt=\"Facebook\">
</a>
</li>
{% endif %}
{% if document.property('instagramUrl') %}
<li class=\"uk-flex uk-flex-middle apk-socials\">
<a class=\"uk-flex uk-flex-middle uk-padding-remove\" href=\"{{ document.property('instagramUrl') }}\" target=\"_blank\" title=\"Instagram\">
<img uk-svg width=\"26\" height=\"26\" src=\"/static/img/pictos/instagram.svg\" alt=\"Instagram\">
</a>
</li>
{% endif %}
{% endif %}
</ul>
</div>
{% if pimcore_website_config('messageAvailabilities') is null %}
<span class=\"uk-navbar-item uk-width-expand\"><strong>{{ pimcore_website_config('avalaibilitiesCount') }} {{ \"places\"|trans }}</strong> {{ \"displonibles dès maintenant\"|trans }}</span>
{% else %}
<span class=\"uk-navbar-item uk-width-expand\"><strong>{{ \"avalabilities.hidden\"|trans }}</strong></span>
{% endif %}
<div class=\"uk-navbar-right\">
<ul class=\"uk-navbar-nav uk-flex-middle\">
{% if not app.user %}
<li><a class=\"uk-button uk-button-primary uk-button-collapsed\" href=\"{{path('login')}}\">{{ \"Espace parents\"|trans }}</a></li>
{% else %}
<li>
<a href=\"#\" type=\"button\">{{app.user.firstname}} {{app.user.lastname}}</a>
<div class=\"uk-dropdown\" uk-dropdown>
<ul class=\"uk-nav uk-dropdown-nav\">
<li><a href=\"{{path('account')}}\">{{'Mon compte'|trans}}</a></li>
<li><a href=\"{{path('bookmark')}}\">{{'Ma sélection'|trans}} (<span id=\"nbrFav\">{{app.user.favorites |length}}</span>)</a></li>
<li><a href=\"{{path('logout')}}\">{{ \"Se déconnecter\"|trans }}</a></li>
</ul>
</div>
</li>
{% endif %}
<li>{{ get_language_switcher_html(document, 'dropdown', 'code')|raw }}</li>
</ul>
</div>
</div>
</div>
</div>
<div class=\"apk-header-bottom\" uk-sticky=\"show-on-up: true; animation: uk-animation-slide-top;\">
<div class=\"uk-container\">
<div class=\"uk-navbar-transparent uk-navbar\" uk-navbar>
<div class=\"uk-navbar-left\">
<a href=\"/{{ app.request.locale }}\">
<img uk-svg width=\"240\" height=\"80\" src=\"{{ document.getProperty('headerLogo') }}\" alt=\"{{ \"Your website name\"|trans }}\">
{#<img uk-svg width=\"240\" height=\"80\" src=\"/static/img/logos/Logo_V3_cruves.svg\" alt=\"{{ \"Your website name\"|trans }}\">#}
</a>
</div>
<div class=\"uk-navbar-right\">
{% include \"includes/main-nav.html.twig\" %}
</div>
</div>
</div>
</div>
</div>
<div class=\"apk-header-mobile uk-hidden@l\" uk-sticky=\"show-on-up: true; animation: uk-animation-slide-top;\">
<div class=\"uk-container\">
<div class=\"uk-navbar-transparent uk-navbar\" uk-navbar>
<div class=\"uk-navbar-left\">
<div class=\"uk-logo\">
<a href=\"/{{ app.request.locale }}\">
<img width=\"140\" height=\"50\" src=\"{{ document.getProperty('headerLogo').getThumbnail('headerLogo') }}\" alt=\"{{ \"Your website name\"|trans }}\">
</a>
</div>
</div>
<div class=\"uk-navbar-right\">
<div>
<a href=\"#menu-mobile\" uk-toggle>
<img uk-svg src=\"/static/img/pictos/menu-burger.svg\" alt=\"menu\">
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</header>
{% include \"includes/offcanvas.html.twig\" %}", "includes/header.html.twig", "/var/www/mynursery.apik-pp.be/www/templates/includes/header.html.twig");
}
}