<?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;
/* header.html.twig */
class __TwigTemplate_b18ae49419f180c8f0c79a099d17ce6a9063086410e90a05727ba6f20c7aee40 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", "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", "header.html.twig"));
// line 1
echo "<!-- start: header -->
<header class=\"header\">
<div class=\"logo-container\">
<a href=\"";
// line 4
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("accueil");
echo "\" class=\"logo\">
<img src=\"";
// line 5
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/Logo_INRAE.png"), "html", null, true);
echo "\" height=\"35\" alt=\"INRA\">
</a>
<div class=\"visible-xs toggle-sidebar-left\" data-toggle-class=\"sidebar-left-opened\" data-target=\"html\" data-fire-event=\"sidebar-left-opened\">
<i class=\"fa fa-bars\" aria-label=\"Toggle sidebar\"></i>
</div>
</div>
<!-- start: search & user box -->
<div class=\"header-right\">
<ul class=\"notifications\">
<h5>EURCAW -<i> Ruminants & Equines</i> experts</h5>
</ul>
<span class=\"separator\"></span>
";
// line 19
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_FULLY")) {
// line 20
echo "
<div id=\"userbox\" class=\"userbox\">
<a href=\"#\" data-toggle=\"dropdown\">
<figure class=\"profile-picture\">
<img src=\"";
// line 24
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/!logged-user.jpg"), "html", null, true);
echo "\" alt=\"Joseph Doe\" class=\"img-circle\" data-lock-picture=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/!logged-user.jpg"), "html", null, true);
echo "\" />
</figure>
<div class=\"profile-info\" data-lock-name=\"John Doe\" data-lock-email=\"johndoe@JSOFT.com\">
<span class=\"name\">";
// line 27
echo twig_escape_filter($this->env, 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.', 27, $this->source); })()), "user", [], "any", false, false, false, 27), "html", null, true);
echo "</span>
</div>
<i class=\"fa custom-caret\"></i>
</a>
<div class=\"dropdown-menu\">
<ul class=\"list-unstyled\">
<li class=\"divider\"></li>
<li>
<a role=\"menuitem\" tabindex=\"-1\" href=\"";
// line 37
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("myaccount", ["userId" => 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.', 37, $this->source); })()), "user", [], "any", false, false, false, 37), "id", [], "any", false, false, false, 37)]), "html", null, true);
echo "\"><i class=\"fa fa-user\"></i> My account</a>
</li>
";
// line 39
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) {
// line 40
echo " <li>
<a role=\"menuitem\" tabindex=\"-1\" href=\"";
// line 41
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin");
echo "\"><i class=\"fa fa-lock\"></i> Administration</a>
</li>
";
}
// line 44
echo " <li>
<a role=\"menuitem\" tabindex=\"-1\" href=\"";
// line 45
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_logout");
echo "\"><i class=\"fa fa-sign-out\"></i> Logout</a>
</li>
</ul>
</div>
</div>
";
}
// line 51
echo " </div>
<!-- end: search & user box -->
</header>
<!-- end: header -->";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "header.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 126 => 51, 117 => 45, 114 => 44, 108 => 41, 105 => 40, 103 => 39, 98 => 37, 85 => 27, 77 => 24, 71 => 20, 69 => 19, 52 => 5, 48 => 4, 43 => 1,);
}
public function getSourceContext()
{
return new Source("<!-- start: header -->
<header class=\"header\">
<div class=\"logo-container\">
<a href=\"{{ path('accueil') }}\" class=\"logo\">
<img src=\"{{ asset('images/Logo_INRAE.png')}}\" height=\"35\" alt=\"INRA\">
</a>
<div class=\"visible-xs toggle-sidebar-left\" data-toggle-class=\"sidebar-left-opened\" data-target=\"html\" data-fire-event=\"sidebar-left-opened\">
<i class=\"fa fa-bars\" aria-label=\"Toggle sidebar\"></i>
</div>
</div>
<!-- start: search & user box -->
<div class=\"header-right\">
<ul class=\"notifications\">
<h5>EURCAW -<i> Ruminants & Equines</i> experts</h5>
</ul>
<span class=\"separator\"></span>
{% if is_granted('IS_AUTHENTICATED_FULLY') %}
<div id=\"userbox\" class=\"userbox\">
<a href=\"#\" data-toggle=\"dropdown\">
<figure class=\"profile-picture\">
<img src=\"{{asset('assets/images/!logged-user.jpg')}}\" alt=\"Joseph Doe\" class=\"img-circle\" data-lock-picture=\"{{asset('assets/images/!logged-user.jpg')}}\" />
</figure>
<div class=\"profile-info\" data-lock-name=\"John Doe\" data-lock-email=\"johndoe@JSOFT.com\">
<span class=\"name\">{{ app.user }}</span>
</div>
<i class=\"fa custom-caret\"></i>
</a>
<div class=\"dropdown-menu\">
<ul class=\"list-unstyled\">
<li class=\"divider\"></li>
<li>
<a role=\"menuitem\" tabindex=\"-1\" href=\"{{ path('myaccount',{ 'userId': app.user.id }) }}\"><i class=\"fa fa-user\"></i> My account</a>
</li>
{% if is_granted('ROLE_ADMIN') %}
<li>
<a role=\"menuitem\" tabindex=\"-1\" href=\"{{ path('admin') }}\"><i class=\"fa fa-lock\"></i> Administration</a>
</li>
{% endif %}
<li>
<a role=\"menuitem\" tabindex=\"-1\" href=\"{{path('app_logout')}}\"><i class=\"fa fa-sign-out\"></i> Logout</a>
</li>
</ul>
</div>
</div>
{% endif %}
</div>
<!-- end: search & user box -->
</header>
<!-- end: header -->", "header.html.twig", "/var/www/html/eurcaw-experts/templates/header.html.twig");
}
}