var/cache/dev/twig/0e/0e03e721e6d0287b624eeef87ace1a3e973697386a2dc2b2cbfb31b935fdf02f.php line 199

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* includes/header.html.twig */
  14. class __TwigTemplate_4808c0955522f578448c36b58a49a380f4d7b96925a371314ae65b3c46f40bc4 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""includes/header.html.twig"));
  31.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""includes/header.html.twig"));
  33.         // line 1
  34.         echo "
  35. <header id=\"header\">
  36.     <div class=\"apk-header\">
  37.         <div class=\"apk-header-desktop uk-visible@l\">
  38.             <div class=\"apk-header-top uk-light\">
  39.                 <div class=\"uk-container\">
  40.                     <div class=\"uk-navbar-transparent uk-navbar\" uk-navbar>
  41.                         <div class=\"uk-navbar-left\">
  42.                             <ul class=\"uk-navbar-nav\">
  43.                                 <li><a class=\"uk-button uk-button-primary uk-button-collapsed\" href=\"";
  44.         // line 11
  45.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("dashboard");
  46.         echo "\">";
  47.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Espace annonceurs"), "html"nulltrue);
  48.         echo "</a></li>
  49.                                 ";
  50.         // line 13
  51.         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", [=> "showSocialsHeader"], "method"falsefalsefalse13)) {
  52.             // line 14
  53.             echo "                                    ";
  54.             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", [=> "facebookUrl"], "method"falsefalsefalse14)) {
  55.                 // line 15
  56.                 echo "                                    <li class=\"uk-flex uk-flex-middle apk-socials\">
  57.                                         <a class=\"uk-flex uk-flex-middle\" href=\"";
  58.                 // line 16
  59.                 echo twig_escape_filter($this->envtwig_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", [=> "facebookUrl"], "method"falsefalsefalse16), "html"nulltrue);
  60.                 echo "\" target=\"_blank\" title=\"Facebook\">
  61.                                             <img uk-svg width=\"26\" height=\"26\" src=\"/static/img/pictos/facebook.svg\" alt=\"Facebook\">
  62.                                         </a>
  63.                                     </li>
  64.                                     ";
  65.             }
  66.             // line 21
  67.             echo "
  68.                                     ";
  69.             // line 22
  70.             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", [=> "instagramUrl"], "method"falsefalsefalse22)) {
  71.                 // line 23
  72.                 echo "                                    <li class=\"uk-flex uk-flex-middle apk-socials\">
  73.                                         <a class=\"uk-flex uk-flex-middle uk-padding-remove\" href=\"";
  74.                 // line 24
  75.                 echo twig_escape_filter($this->envtwig_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", [=> "instagramUrl"], "method"falsefalsefalse24), "html"nulltrue);
  76.                 echo "\" target=\"_blank\" title=\"Instagram\">
  77.                                             <img uk-svg width=\"26\" height=\"26\" src=\"/static/img/pictos/instagram.svg\" alt=\"Instagram\">
  78.                                         </a>
  79.                                     </li>
  80.                                     ";
  81.             }
  82.             // line 29
  83.             echo "                                ";
  84.         }
  85.         // line 30
  86.         echo "
  87.                             </ul>
  88.                         </div>
  89.                         ";
  90.         // line 33
  91.         if ((null === $this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("messageAvailabilities"))) {
  92.             // line 34
  93.             echo "                            <span class=\"uk-navbar-item uk-width-expand\"><strong>";
  94.             echo twig_escape_filter($this->env$this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("avalaibilitiesCount"), "html"nulltrue);
  95.             echo " ";
  96.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("places"), "html"nulltrue);
  97.             echo "</strong>&nbsp;";
  98.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("displonibles dès maintenant"), "html"nulltrue);
  99.             echo "</span>
  100.                         ";
  101.         } else {
  102.             // line 36
  103.             echo "                            <span class=\"uk-navbar-item uk-width-expand\"><strong>";
  104.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("avalabilities.hidden"), "html"nulltrue);
  105.             echo "</strong></span>
  106.                         ";
  107.         }
  108.         // line 38
  109.         echo "                        <div class=\"uk-navbar-right\">
  110.                             <ul class=\"uk-navbar-nav uk-flex-middle\">
  111.                             ";
  112.         // line 40
  113.         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"falsefalsefalse40)) {
  114.             echo "                                
  115.                                 <li><a class=\"uk-button uk-button-primary uk-button-collapsed\" href=\"";
  116.             // line 41
  117.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("login");
  118.             echo "\">";
  119.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Espace parents"), "html"nulltrue);
  120.             echo "</a></li>
  121.                             ";
  122.         } else {
  123.             // line 43
  124.             echo "                                <li>
  125.                                     <a href=\"#\" type=\"button\">";
  126.             // line 44
  127.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse44), "firstname", [], "any"falsefalsefalse44), "html"nulltrue);
  128.             echo " ";
  129.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse44), "lastname", [], "any"falsefalsefalse44), "html"nulltrue);
  130.             echo "</a>
  131.                                     <div class=\"uk-dropdown\" uk-dropdown>
  132.                                         <ul class=\"uk-nav uk-dropdown-nav\">                                    
  133.                                             <li><a href=\"";
  134.             // line 47
  135.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("account");
  136.             echo "\">";
  137.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Mon compte"), "html"nulltrue);
  138.             echo "</a></li>
  139.                                             <li><a href=\"";
  140.             // line 48
  141.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("bookmark");
  142.             echo "\">";
  143.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Ma sélection"), "html"nulltrue);
  144.             echo " (<span id=\"nbrFav\">";
  145.             echo twig_escape_filter($this->envtwig_length_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse48), "favorites", [], "any"falsefalsefalse48)), "html"nulltrue);
  146.             echo "</span>)</a></li>
  147.                                             <li><a href=\"";
  148.             // line 49
  149.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("logout");
  150.             echo "\">";
  151.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Se déconnecter"), "html"nulltrue);
  152.             echo "</a></li>
  153.                                         </ul>
  154.                                     </div>
  155.                                 </li>
  156.                             ";
  157.         }
  158.         // line 54
  159.         echo "                                <li>";
  160.         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");
  161.         echo "</li>
  162.                             </ul>
  163.                         </div>
  164.                     </div>
  165.                 </div>
  166.             </div>
  167.             <div class=\"apk-header-bottom\" uk-sticky=\"show-on-up: true; animation: uk-animation-slide-top;\">
  168.                 <div class=\"uk-container\">
  169.                     <div class=\"uk-navbar-transparent uk-navbar\" uk-navbar>
  170.                         <div class=\"uk-navbar-left\">
  171.                             <a href=\"/";
  172.         // line 64
  173.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse64), "locale", [], "any"falsefalsefalse64), "html"nulltrue);
  174.         echo "\">
  175.                                 <img uk-svg width=\"240\" height=\"80\" src=\"";
  176.         // line 65
  177.         echo twig_escape_filter($this->envtwig_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", [=> "headerLogo"], "method"falsefalsefalse65), "html"nulltrue);
  178.         echo "\" alt=\"";
  179.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Your website name"), "html"nulltrue);
  180.         echo "\">
  181.                                 ";
  182.         // line 67
  183.         echo "                            </a>
  184.                         </div>
  185.                         <div class=\"uk-navbar-right\">
  186.                             ";
  187.         // line 70
  188.         $this->loadTemplate("includes/main-nav.html.twig""includes/header.html.twig"70)->display($context);
  189.         // line 71
  190.         echo "                        </div>
  191.                     </div>
  192.                 </div>
  193.             </div>
  194.         </div>
  195.         <div class=\"apk-header-mobile uk-hidden@l\" uk-sticky=\"show-on-up: true; animation: uk-animation-slide-top;\">
  196.             <div class=\"uk-container\">
  197.                 <div class=\"uk-navbar-transparent uk-navbar\" uk-navbar>
  198.                     <div class=\"uk-navbar-left\">
  199.                         <div class=\"uk-logo\">
  200.                             <a href=\"/";
  201.         // line 82
  202.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse82), "locale", [], "any"falsefalsefalse82), "html"nulltrue);
  203.         echo "\">
  204.                                 <img width=\"140\" height=\"50\" src=\"";
  205.         // line 83
  206.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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", [=> "headerLogo"], "method"falsefalsefalse83), "getThumbnail", [=> "headerLogo"], "method"falsefalsefalse83), "html"nulltrue);
  207.         echo "\" alt=\"";
  208.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Your website name"), "html"nulltrue);
  209.         echo "\">
  210.                             </a>
  211.                         </div>
  212.                     </div>
  213.                     <div class=\"uk-navbar-right\">
  214.                         <div>
  215.                             <a href=\"#menu-mobile\" uk-toggle>
  216.                                 <img uk-svg src=\"/static/img/pictos/menu-burger.svg\" alt=\"menu\">
  217.                             </a>
  218.                         </div>
  219.                     </div>
  220.                 </div>
  221.             </div>
  222.         </div>
  223.     </div>
  224. </header>
  225. ";
  226.         // line 100
  227.         $this->loadTemplate("includes/offcanvas.html.twig""includes/header.html.twig"100)->display($context);
  228.         
  229.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  230.         
  231.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  232.     }
  233.     public function getTemplateName()
  234.     {
  235.         return "includes/header.html.twig";
  236.     }
  237.     public function isTraitable()
  238.     {
  239.         return false;
  240.     }
  241.     public function getDebugInfo()
  242.     {
  243.         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,);
  244.     }
  245.     public function getSourceContext()
  246.     {
  247.         return new Source("
  248. <header id=\"header\">
  249.     <div class=\"apk-header\">
  250.         <div class=\"apk-header-desktop uk-visible@l\">
  251.             <div class=\"apk-header-top uk-light\">
  252.                 <div class=\"uk-container\">
  253.                     <div class=\"uk-navbar-transparent uk-navbar\" uk-navbar>
  254.                         <div class=\"uk-navbar-left\">
  255.                             <ul class=\"uk-navbar-nav\">
  256.                                 <li><a class=\"uk-button uk-button-primary uk-button-collapsed\" href=\"{{ path('dashboard') }}\">{{ \"Espace annonceurs\"|trans }}</a></li>
  257.                                 {% if document.property('showSocialsHeader') %}
  258.                                     {% if document.property('facebookUrl') %}
  259.                                     <li class=\"uk-flex uk-flex-middle apk-socials\">
  260.                                         <a class=\"uk-flex uk-flex-middle\" href=\"{{ document.property('facebookUrl') }}\" target=\"_blank\" title=\"Facebook\">
  261.                                             <img uk-svg width=\"26\" height=\"26\" src=\"/static/img/pictos/facebook.svg\" alt=\"Facebook\">
  262.                                         </a>
  263.                                     </li>
  264.                                     {% endif %}
  265.                                     {% if document.property('instagramUrl') %}
  266.                                     <li class=\"uk-flex uk-flex-middle apk-socials\">
  267.                                         <a class=\"uk-flex uk-flex-middle uk-padding-remove\" href=\"{{ document.property('instagramUrl') }}\" target=\"_blank\" title=\"Instagram\">
  268.                                             <img uk-svg width=\"26\" height=\"26\" src=\"/static/img/pictos/instagram.svg\" alt=\"Instagram\">
  269.                                         </a>
  270.                                     </li>
  271.                                     {% endif %}
  272.                                 {% endif %}
  273.                             </ul>
  274.                         </div>
  275.                         {% if pimcore_website_config('messageAvailabilities') is null %}
  276.                             <span class=\"uk-navbar-item uk-width-expand\"><strong>{{ pimcore_website_config('avalaibilitiesCount') }} {{ \"places\"|trans }}</strong>&nbsp;{{ \"displonibles dès maintenant\"|trans }}</span>
  277.                         {% else %}
  278.                             <span class=\"uk-navbar-item uk-width-expand\"><strong>{{ \"avalabilities.hidden\"|trans }}</strong></span>
  279.                         {% endif %}
  280.                         <div class=\"uk-navbar-right\">
  281.                             <ul class=\"uk-navbar-nav uk-flex-middle\">
  282.                             {% if not app.user %}                                
  283.                                 <li><a class=\"uk-button uk-button-primary uk-button-collapsed\" href=\"{{path('login')}}\">{{ \"Espace parents\"|trans }}</a></li>
  284.                             {% else %}
  285.                                 <li>
  286.                                     <a href=\"#\" type=\"button\">{{app.user.firstname}} {{app.user.lastname}}</a>
  287.                                     <div class=\"uk-dropdown\" uk-dropdown>
  288.                                         <ul class=\"uk-nav uk-dropdown-nav\">                                    
  289.                                             <li><a href=\"{{path('account')}}\">{{'Mon compte'|trans}}</a></li>
  290.                                             <li><a href=\"{{path('bookmark')}}\">{{'Ma sélection'|trans}} (<span id=\"nbrFav\">{{app.user.favorites |length}}</span>)</a></li>
  291.                                             <li><a href=\"{{path('logout')}}\">{{ \"Se déconnecter\"|trans }}</a></li>
  292.                                         </ul>
  293.                                     </div>
  294.                                 </li>
  295.                             {% endif %}
  296.                                 <li>{{ get_language_switcher_html(document, 'dropdown', 'code')|raw }}</li>
  297.                             </ul>
  298.                         </div>
  299.                     </div>
  300.                 </div>
  301.             </div>
  302.             <div class=\"apk-header-bottom\" uk-sticky=\"show-on-up: true; animation: uk-animation-slide-top;\">
  303.                 <div class=\"uk-container\">
  304.                     <div class=\"uk-navbar-transparent uk-navbar\" uk-navbar>
  305.                         <div class=\"uk-navbar-left\">
  306.                             <a href=\"/{{ app.request.locale }}\">
  307.                                 <img uk-svg width=\"240\" height=\"80\" src=\"{{ document.getProperty('headerLogo') }}\" alt=\"{{ \"Your website name\"|trans }}\">
  308.                                 {#<img uk-svg width=\"240\" height=\"80\" src=\"/static/img/logos/Logo_V3_cruves.svg\" alt=\"{{ \"Your website name\"|trans }}\">#}
  309.                             </a>
  310.                         </div>
  311.                         <div class=\"uk-navbar-right\">
  312.                             {% include \"includes/main-nav.html.twig\" %}
  313.                         </div>
  314.                     </div>
  315.                 </div>
  316.             </div>
  317.         </div>
  318.         <div class=\"apk-header-mobile uk-hidden@l\" uk-sticky=\"show-on-up: true; animation: uk-animation-slide-top;\">
  319.             <div class=\"uk-container\">
  320.                 <div class=\"uk-navbar-transparent uk-navbar\" uk-navbar>
  321.                     <div class=\"uk-navbar-left\">
  322.                         <div class=\"uk-logo\">
  323.                             <a href=\"/{{ app.request.locale }}\">
  324.                                 <img width=\"140\" height=\"50\" src=\"{{ document.getProperty('headerLogo').getThumbnail('headerLogo') }}\" alt=\"{{ \"Your website name\"|trans }}\">
  325.                             </a>
  326.                         </div>
  327.                     </div>
  328.                     <div class=\"uk-navbar-right\">
  329.                         <div>
  330.                             <a href=\"#menu-mobile\" uk-toggle>
  331.                                 <img uk-svg src=\"/static/img/pictos/menu-burger.svg\" alt=\"menu\">
  332.                             </a>
  333.                         </div>
  334.                     </div>
  335.                 </div>
  336.             </div>
  337.         </div>
  338.     </div>
  339. </header>
  340. {% include \"includes/offcanvas.html.twig\" %}""includes/header.html.twig""/var/www/mynursery.apik-pp.be/www/templates/includes/header.html.twig");
  341.     }
  342. }