e2fa6490ae1f5519abd906825c1f45188fec02a6ab1419fc50159bb44d88e469.php 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <?php
  2. /* partials/nav-user-details.html.twig */
  3. class __TwigTemplate_430d2258821a93f3d165d933b860660113f895c3ed045501b27f6014490d9372 extends Twig_Template
  4. {
  5. public function __construct(Twig_Environment $env)
  6. {
  7. parent::__construct($env);
  8. $this->parent = false;
  9. $this->blocks = array(
  10. );
  11. }
  12. protected function doDisplay(array $context, array $blocks = array())
  13. {
  14. // line 1
  15. echo "<div id=\"offline-status\">
  16. <span><i class=\"fa fa-fw fa-plane\"></i> You are offline</span>
  17. </div>
  18. <div id=\"admin-user-details\">
  19. <a href=\"";
  20. // line 5
  21. echo twig_escape_filter($this->env, ($context["base_url_relative"] ?? null), "html", null, true);
  22. echo "/user/";
  23. echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["admin"] ?? null), "user", array()), "username", array()));
  24. echo "\">
  25. ";
  26. // line 6
  27. $this->loadTemplate("partials/nav-user-avatar.html.twig", "partials/nav-user-details.html.twig", 6)->display($context);
  28. // line 7
  29. echo "
  30. <div class=\"admin-user-names\">
  31. <h4>";
  32. // line 9
  33. echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["admin"] ?? null), "user", array()), "fullname", array()));
  34. echo " ";
  35. if ($this->getAttribute($this->getAttribute(($context["admin"] ?? null), "user", array()), "twofa_enabled", array())) {
  36. echo "<span class=\"badge\">2FA</span>";
  37. }
  38. echo "</h4>
  39. <h5>";
  40. // line 10
  41. echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["admin"] ?? null), "user", array()), "title", array()));
  42. echo "</h5>
  43. </div>
  44. </a>
  45. </div>
  46. ";
  47. }
  48. public function getTemplateName()
  49. {
  50. return "partials/nav-user-details.html.twig";
  51. }
  52. public function isTraitable()
  53. {
  54. return false;
  55. }
  56. public function getDebugInfo()
  57. {
  58. return array ( 45 => 10, 37 => 9, 33 => 7, 31 => 6, 25 => 5, 19 => 1,);
  59. }
  60. /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
  61. public function getSource()
  62. {
  63. @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
  64. return $this->getSourceContext()->getCode();
  65. }
  66. public function getSourceContext()
  67. {
  68. return new Twig_Source("<div id=\"offline-status\">
  69. <span><i class=\"fa fa-fw fa-plane\"></i> You are offline</span>
  70. </div>
  71. <div id=\"admin-user-details\">
  72. <a href=\"{{ base_url_relative }}/user/{{ admin.user.username|e }}\">
  73. {% include 'partials/nav-user-avatar.html.twig' %}
  74. <div class=\"admin-user-names\">
  75. <h4>{{ admin.user.fullname|e }} {% if admin.user.twofa_enabled %}<span class=\"badge\">2FA</span>{% endif %}</h4>
  76. <h5>{{ admin.user.title|e }}</h5>
  77. </div>
  78. </a>
  79. </div>
  80. ", "partials/nav-user-details.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/partials/nav-user-details.html.twig");
  81. }
  82. }