var/cache/dev/twig/f3/f3a72748b2ce86d7d5133ea752616fa37c363321012ec489368fb2e6e6e8c47c.php line 69

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. /* header.html.twig */
  14. class __TwigTemplate_b18ae49419f180c8f0c79a099d17ce6a9063086410e90a05727ba6f20c7aee40 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""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""header.html.twig"));
  33.         // line 1
  34.         echo "<!-- start: header -->
  35.             <header class=\"header\">
  36.                 <div class=\"logo-container\">
  37.                     <a href=\"";
  38.         // line 4
  39.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("accueil");
  40.         echo "\" class=\"logo\">
  41.                         <img src=\"";
  42.         // line 5
  43.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/Logo_INRAE.png"), "html"nulltrue);
  44.         echo "\" height=\"35\" alt=\"INRA\">
  45.                     </a>
  46.                     <div class=\"visible-xs toggle-sidebar-left\" data-toggle-class=\"sidebar-left-opened\" data-target=\"html\" data-fire-event=\"sidebar-left-opened\">
  47.                         <i class=\"fa fa-bars\" aria-label=\"Toggle sidebar\"></i>
  48.                     </div>
  49.                 </div>
  50.             
  51.                 <!-- start: search & user box -->
  52.                 <div class=\"header-right\">            
  53.                     <ul class=\"notifications\">
  54.                         <h5>EURCAW -<i> Ruminants & Equines</i> experts</h5>
  55.                     </ul>
  56.             
  57.                     <span class=\"separator\"></span>
  58.                     ";
  59.         // line 19
  60.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_FULLY")) {
  61.             // line 20
  62.             echo "
  63.                     <div id=\"userbox\" class=\"userbox\">
  64.                         <a href=\"#\" data-toggle=\"dropdown\">
  65.                             <figure class=\"profile-picture\">
  66.                                 <img src=\"";
  67.             // line 24
  68.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/!logged-user.jpg"), "html"nulltrue);
  69.             echo "\" alt=\"Joseph Doe\" class=\"img-circle\" data-lock-picture=\"";
  70.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/!logged-user.jpg"), "html"nulltrue);
  71.             echo "\" />
  72.                             </figure>
  73.                             <div class=\"profile-info\" data-lock-name=\"John Doe\" data-lock-email=\"johndoe@JSOFT.com\">
  74.                                 <span class=\"name\">";
  75.             // line 27
  76.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse27), "html"nulltrue);
  77.             echo "</span>
  78.                             </div>
  79.             
  80.                             <i class=\"fa custom-caret\"></i>
  81.                         </a>
  82.                 
  83.                         <div class=\"dropdown-menu\">
  84.                             <ul class=\"list-unstyled\">
  85.                                 <li class=\"divider\"></li>
  86.                                 <li>
  87.                                     <a role=\"menuitem\" tabindex=\"-1\" href=\"";
  88.             // line 37
  89.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("myaccount", ["userId" => twig_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.'37$this->source); })()), "user", [], "any"falsefalsefalse37), "id", [], "any"falsefalsefalse37)]), "html"nulltrue);
  90.             echo "\"><i class=\"fa fa-user\"></i> My account</a>
  91.                                 </li>
  92.                                 ";
  93.             // line 39
  94.             if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) {
  95.                 // line 40
  96.                 echo "                                <li>
  97.                                     <a role=\"menuitem\" tabindex=\"-1\" href=\"";
  98.                 // line 41
  99.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin");
  100.                 echo "\"><i class=\"fa fa-lock\"></i> Administration</a>
  101.                                 </li>
  102.                                 ";
  103.             }
  104.             // line 44
  105.             echo "                                <li>
  106.                                     <a role=\"menuitem\" tabindex=\"-1\" href=\"";
  107.             // line 45
  108.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_logout");
  109.             echo "\"><i class=\"fa fa-sign-out\"></i> Logout</a>
  110.                                 </li>
  111.                             </ul>
  112.                         </div>
  113.                     </div>
  114.                     ";
  115.         }
  116.         // line 51
  117.         echo "                </div>
  118.                 <!-- end: search & user box -->
  119.             </header>
  120.             <!-- end: header -->";
  121.         
  122.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  123.         
  124.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  125.     }
  126.     public function getTemplateName()
  127.     {
  128.         return "header.html.twig";
  129.     }
  130.     public function isTraitable()
  131.     {
  132.         return false;
  133.     }
  134.     public function getDebugInfo()
  135.     {
  136.         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,);
  137.     }
  138.     public function getSourceContext()
  139.     {
  140.         return new Source("<!-- start: header -->
  141.             <header class=\"header\">
  142.                 <div class=\"logo-container\">
  143.                     <a href=\"{{ path('accueil') }}\" class=\"logo\">
  144.                         <img src=\"{{ asset('images/Logo_INRAE.png')}}\" height=\"35\" alt=\"INRA\">
  145.                     </a>
  146.                     <div class=\"visible-xs toggle-sidebar-left\" data-toggle-class=\"sidebar-left-opened\" data-target=\"html\" data-fire-event=\"sidebar-left-opened\">
  147.                         <i class=\"fa fa-bars\" aria-label=\"Toggle sidebar\"></i>
  148.                     </div>
  149.                 </div>
  150.             
  151.                 <!-- start: search & user box -->
  152.                 <div class=\"header-right\">            
  153.                     <ul class=\"notifications\">
  154.                         <h5>EURCAW -<i> Ruminants & Equines</i> experts</h5>
  155.                     </ul>
  156.             
  157.                     <span class=\"separator\"></span>
  158.                     {% if is_granted('IS_AUTHENTICATED_FULLY') %}
  159.                     <div id=\"userbox\" class=\"userbox\">
  160.                         <a href=\"#\" data-toggle=\"dropdown\">
  161.                             <figure class=\"profile-picture\">
  162.                                 <img src=\"{{asset('assets/images/!logged-user.jpg')}}\" alt=\"Joseph Doe\" class=\"img-circle\" data-lock-picture=\"{{asset('assets/images/!logged-user.jpg')}}\" />
  163.                             </figure>
  164.                             <div class=\"profile-info\" data-lock-name=\"John Doe\" data-lock-email=\"johndoe@JSOFT.com\">
  165.                                 <span class=\"name\">{{ app.user }}</span>
  166.                             </div>
  167.             
  168.                             <i class=\"fa custom-caret\"></i>
  169.                         </a>
  170.                 
  171.                         <div class=\"dropdown-menu\">
  172.                             <ul class=\"list-unstyled\">
  173.                                 <li class=\"divider\"></li>
  174.                                 <li>
  175.                                     <a role=\"menuitem\" tabindex=\"-1\" href=\"{{ path('myaccount',{ 'userId': app.user.id }) }}\"><i class=\"fa fa-user\"></i> My account</a>
  176.                                 </li>
  177.                                 {% if is_granted('ROLE_ADMIN') %}
  178.                                 <li>
  179.                                     <a role=\"menuitem\" tabindex=\"-1\" href=\"{{ path('admin') }}\"><i class=\"fa fa-lock\"></i> Administration</a>
  180.                                 </li>
  181.                                 {% endif %}
  182.                                 <li>
  183.                                     <a role=\"menuitem\" tabindex=\"-1\" href=\"{{path('app_logout')}}\"><i class=\"fa fa-sign-out\"></i> Logout</a>
  184.                                 </li>
  185.                             </ul>
  186.                         </div>
  187.                     </div>
  188.                     {% endif %}
  189.                 </div>
  190.                 <!-- end: search & user box -->
  191.             </header>
  192.             <!-- end: header -->""header.html.twig""/var/www/html/eurcaw-experts/templates/header.html.twig");
  193.     }
  194. }