var/cache/dev/twig/22/22f3453f9c5b92ca1214eeceab570309.php line 122

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* @admin/ui/menu/user.html.twig */
  16. class __TwigTemplate_2f3b2a6d69a3105f3106a0828a6ff9e4 extends Netgen\Bundle\SiteBundle\Templating\Twig\DebugTemplate
  17. {
  18. private Source $source;
  19. /**
  20. * @var array<string, Template>
  21. */
  22. private array $macros = [];
  23. public function __construct(Environment $env)
  24. {
  25. parent::__construct($env);
  26. $this->source = $this->getSourceContext();
  27. $this->blocks = [
  28. 'root' => [$this, 'block_root'],
  29. 'current_user' => [$this, 'block_current_user'],
  30. 'focus_mode_toggle' => [$this, 'block_focus_mode_toggle'],
  31. 'item' => [$this, 'block_item'],
  32. 'linkElement' => [$this, 'block_linkElement'],
  33. ];
  34. }
  35. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  36. {
  37. // line 1
  38. return "@KnpMenu/menu.html.twig";
  39. }
  40. protected function doDisplay(array $context, array $blocks = []): iterable
  41. {
  42. $macros = $this->macros;
  43. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  44. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@admin/ui/menu/user.html.twig"));
  45. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  46. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@admin/ui/menu/user.html.twig"));
  47. $this->parent = $this->load("@KnpMenu/menu.html.twig", 1);
  48. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  49. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  50. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  51. }
  52. // line 3
  53. /**
  54. * @return iterable<null|scalar|\Stringable>
  55. */
  56. public function block_root(array $context, array $blocks = []): iterable
  57. {
  58. $macros = $this->macros;
  59. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  60. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "root"));
  61. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  62. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "root"));
  63. // line 4
  64. yield " ";
  65. $context["user"] = Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, (isset($context["ibexa_admin_ui_config"]) || array_key_exists("ibexa_admin_ui_config", $context) ? $context["ibexa_admin_ui_config"] : (function () { throw new RuntimeError('Variable "ibexa_admin_ui_config" does not exist.', 4, $this->source); })()), "user", [], "any", false, false, false, 4), "user", [], "any", false, false, false, 4);
  66. // line 5
  67. yield " ";
  68. $context["user_image"] = ((Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, ($context["user"] ?? null), "thumbnail", [], "any", true, true, false, 5)) ? (Twig\Extension\CoreExtension::default(Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, (isset($context["user"]) || array_key_exists("user", $context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.', 5, $this->source); })()), "thumbnail", [], "any", false, false, false, 5))) : (""));
  69. // line 6
  70. yield "
  71. <div class=\"ibexa-header-user-menu\">
  72. <div
  73. class=\"ibexa-header-user-menu__notifications-toggler ibexa-side-panel-trigger\"
  74. data-side-panel-selector=\"#view-notifications\"
  75. >
  76. <svg class=\"ibexa-icon ibexa-icon--small ibexa-icon--light\">
  77. <use xlink:href=\"";
  78. // line 13
  79. yield $this->extensions['Ibexa\Bundle\AdminUi\Templating\Twig\IconPathExtension']->getIconPath("bell");
  80. yield "\"></use>
  81. </svg>
  82. <span class=\"ibexa-header-user-menu__notice-dot ibexa-header-user-menu__notice-dot--no-notice\"></span>
  83. </div>
  84. ";
  85. // line 17
  86. yield $this->extensions['Ibexa\Bundle\TwigComponents\Templating\Twig\ComponentExtension']->renderComponentGroup("admin-ui-header-user-menu-middle");
  87. yield "
  88. <button class=\"ibexa-header-user-menu__toggler\">
  89. <div class=\"ibexa-header-user-menu__thumbnail-wrapper\">
  90. ";
  91. // line 20
  92. yield from $this->load("@ibexadesign/ui/component/user_thumbnail/user_thumbnail.html.twig", 20)->unwrap()->yield(CoreExtension::merge($context, ["user" => // line 21
  93. (isset($context["user"]) || array_key_exists("user", $context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.', 21, $this->source); })())]));
  94. // line 23
  95. yield " </div>
  96. <svg class=\"ibexa-icon ibexa-icon--tiny\">
  97. <use xlink:href=\"";
  98. // line 25
  99. yield $this->extensions['Ibexa\Bundle\AdminUi\Templating\Twig\IconPathExtension']->getIconPath("caret-down");
  100. yield "\"></use>
  101. </svg>
  102. </button>
  103. <div class=\"ibexa-side-panel-container\">
  104. ";
  105. // line 29
  106. yield Twig\Extension\CoreExtension::include($this->env, $context, "@ibexadesign/account/notifications/side_panel.html.twig");
  107. yield "
  108. </div>
  109. <div class=\"ibexa-header-user-menu__popup-menu ibexa-popup-menu ibexa-popup-menu--hidden\">
  110. <div class=\"ibexa-header-user-menu__popup-menu-title\">
  111. ";
  112. // line 33
  113. yield from $this->unwrap()->yieldBlock('current_user', $context, $blocks);
  114. // line 36
  115. yield "
  116. ";
  117. // line 37
  118. yield from $this->unwrap()->yieldBlock('focus_mode_toggle', $context, $blocks);
  119. // line 42
  120. yield " </div>
  121. ";
  122. // line 44
  123. yield from $this->yieldParentBlock("root", $context, $blocks);
  124. yield "
  125. </div>
  126. </div>
  127. ";
  128. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  129. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  130. yield from [];
  131. }
  132. // line 33
  133. /**
  134. * @return iterable<null|scalar|\Stringable>
  135. */
  136. public function block_current_user(array $context, array $blocks = []): iterable
  137. {
  138. $macros = $this->macros;
  139. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  140. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "current_user"));
  141. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  142. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "current_user"));
  143. // line 34
  144. yield " ";
  145. yield ((($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("user_menu.popup_menu.title", []) == "user_menu.popup_menu.title")) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::replace("Logged as %userName%", ["%userName%" => Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, (isset($context["user"]) || array_key_exists("user", $context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.', 34, $this->source); })()), "name", [], "any", false, false, false, 34)]), "html", null, true)) : ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("user_menu.popup_menu.title", ["%userName%" => Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, (isset($context["user"]) || array_key_exists("user", $context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.', 34, $this->source); })()), "name", [], "any", false, false, false, 34)]), "html", null, true)));
  146. yield "
  147. ";
  148. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  149. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  150. yield from [];
  151. }
  152. // line 37
  153. /**
  154. * @return iterable<null|scalar|\Stringable>
  155. */
  156. public function block_focus_mode_toggle(array $context, array $blocks = []): iterable
  157. {
  158. $macros = $this->macros;
  159. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  160. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "focus_mode_toggle"));
  161. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  162. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "focus_mode_toggle"));
  163. // line 38
  164. yield " ";
  165. yield $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("Ibexa\\Bundle\\AdminUi\\Controller\\User\\FocusModeController::changeAction", ["returnPath" => Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, // line 39
  166. (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 39, $this->source); })()), "request", [], "any", false, false, false, 39), "attributes", [], "any", false, false, false, 39), "get", ["semanticPathinfo"], "method", false, false, false, 39)]));
  167. // line 40
  168. yield "
  169. ";
  170. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  171. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  172. yield from [];
  173. }
  174. // line 49
  175. /**
  176. * @return iterable<null|scalar|\Stringable>
  177. */
  178. public function block_item(array $context, array $blocks = []): iterable
  179. {
  180. $macros = $this->macros;
  181. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  182. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "item"));
  183. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  184. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "item"));
  185. // line 50
  186. yield " ";
  187. if ((Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 50, $this->source); })()), "name", [], "any", false, false, false, 50) != "root")) {
  188. // line 51
  189. yield " ";
  190. $context["link_attributes"] = Twig\Extension\CoreExtension::merge(Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 51, $this->source); })()), "linkAttributes", [], "any", false, false, false, 51), ["class" => Twig\Extension\CoreExtension::trim((((Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, ($context["item"] ?? null), "linkAttributes", [], "any", false, true, false, 51), "class", [], "any", true, true, false, 51)) ? (Twig\Extension\CoreExtension::default(Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 51, $this->source); })()), "linkAttributes", [], "any", false, false, false, 51), "class", [], "any", false, false, false, 51), "")) : ("")) . " ibexa-popup-menu__item-content"))]);
  191. // line 52
  192. yield " ";
  193. $context["attributes"] = Twig\Extension\CoreExtension::merge(Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 52, $this->source); })()), "attributes", [], "any", false, false, false, 52), ["class" => Twig\Extension\CoreExtension::trim((((Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, ($context["item"] ?? null), "attributes", [], "any", false, true, false, 52), "class", [], "any", true, true, false, 52)) ? (Twig\Extension\CoreExtension::default(Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 52, $this->source); })()), "attributes", [], "any", false, false, false, 52), "class", [], "any", false, false, false, 52), "")) : ("")) . " ibexa-popup-menu__item"))]);
  194. // line 53
  195. yield "
  196. ";
  197. // line 54
  198. Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 54, $this->source); })()), "setLinkAttributes", [(isset($context["link_attributes"]) || array_key_exists("link_attributes", $context) ? $context["link_attributes"] : (function () { throw new RuntimeError('Variable "link_attributes" does not exist.', 54, $this->source); })())], "method", false, false, false, 54);
  199. // line 55
  200. yield " ";
  201. Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 55, $this->source); })()), "setAttributes", [(isset($context["attributes"]) || array_key_exists("attributes", $context) ? $context["attributes"] : (function () { throw new RuntimeError('Variable "attributes" does not exist.', 55, $this->source); })())], "method", false, false, false, 55);
  202. // line 56
  203. yield " ";
  204. }
  205. // line 57
  206. yield "
  207. ";
  208. // line 58
  209. if ((($tmp = !(null === Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 58, $this->source); })()), "getExtra", ["template"], "method", false, false, false, 58))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  210. // line 59
  211. yield " ";
  212. try {
  213. $_v0 = $this->load(Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 59, $this->source); })()), "getExtra", ["template"], "method", false, false, false, 59), 59);
  214. } catch (LoaderError $e) {
  215. // ignore missing template
  216. $_v0 = null;
  217. }
  218. if ($_v0) {
  219. yield from $_v0->unwrap()->yield(CoreExtension::toArray((isset($context["options"]) || array_key_exists("options", $context) ? $context["options"] : (function () { throw new RuntimeError('Variable "options" does not exist.', 59, $this->source); })())));
  220. }
  221. // line 60
  222. yield " ";
  223. }
  224. // line 61
  225. yield "
  226. ";
  227. // line 62
  228. yield from $this->yieldParentBlock("item", $context, $blocks);
  229. yield "
  230. ";
  231. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  232. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  233. yield from [];
  234. }
  235. // line 65
  236. /**
  237. * @return iterable<null|scalar|\Stringable>
  238. */
  239. public function block_linkElement(array $context, array $blocks = []): iterable
  240. {
  241. $macros = $this->macros;
  242. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  243. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "linkElement"));
  244. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  245. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "linkElement"));
  246. // line 66
  247. yield " ";
  248. $macros["knp_menu"] = $this;
  249. // line 67
  250. yield "
  251. <a href=\"";
  252. // line 68
  253. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 68, $this->source); })()), "uri", [], "any", false, false, false, 68), "html", null, true);
  254. yield "\"";
  255. yield $macros["knp_menu"]->getTemplateForMacro("macro_attributes", $context, 68, $this->getSourceContext())->macro_attributes(...[Netgen\Bundle\IbexaSiteApiBundle\Templating\Twig\Node\GetAttrExpressionDecorator::twigGetAttribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 68, $this->source); })()), "linkAttributes", [], "any", false, false, false, 68)]);
  256. yield ">";
  257. yield from $this->unwrap()->yieldBlock("label", $context, $blocks);
  258. yield "</a>
  259. ";
  260. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  261. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  262. yield from [];
  263. }
  264. /**
  265. * @codeCoverageIgnore
  266. */
  267. public function getTemplateName(): string
  268. {
  269. return "@admin/ui/menu/user.html.twig";
  270. }
  271. /**
  272. * @codeCoverageIgnore
  273. */
  274. public function isTraitable(): bool
  275. {
  276. return false;
  277. }
  278. /**
  279. * @codeCoverageIgnore
  280. */
  281. public function getDebugInfo(): array
  282. {
  283. return array ( 298 => 68, 295 => 67, 292 => 66, 279 => 65, 266 => 62, 263 => 61, 260 => 60, 249 => 59, 247 => 58, 244 => 57, 241 => 56, 238 => 55, 236 => 54, 233 => 53, 230 => 52, 227 => 51, 224 => 50, 211 => 49, 199 => 40, 197 => 39, 195 => 38, 182 => 37, 168 => 34, 155 => 33, 140 => 44, 136 => 42, 134 => 37, 131 => 36, 129 => 33, 122 => 29, 115 => 25, 111 => 23, 109 => 21, 108 => 20, 102 => 17, 95 => 13, 86 => 6, 83 => 5, 80 => 4, 67 => 3, 44 => 1,);
  284. }
  285. public function getSourceContext(): Source
  286. {
  287. return new Source("{% extends '@KnpMenu/menu.html.twig' %}
  288. {% block root %}
  289. {% set user = ibexa_admin_ui_config.user.user %}
  290. {% set user_image = user.thumbnail|default() %}
  291. <div class=\"ibexa-header-user-menu\">
  292. <div
  293. class=\"ibexa-header-user-menu__notifications-toggler ibexa-side-panel-trigger\"
  294. data-side-panel-selector=\"#view-notifications\"
  295. >
  296. <svg class=\"ibexa-icon ibexa-icon--small ibexa-icon--light\">
  297. <use xlink:href=\"{{ ibexa_icon_path('bell') }}\"></use>
  298. </svg>
  299. <span class=\"ibexa-header-user-menu__notice-dot ibexa-header-user-menu__notice-dot--no-notice\"></span>
  300. </div>
  301. {{ ibexa_twig_component_group('admin-ui-header-user-menu-middle') }}
  302. <button class=\"ibexa-header-user-menu__toggler\">
  303. <div class=\"ibexa-header-user-menu__thumbnail-wrapper\">
  304. {% include '@ibexadesign/ui/component/user_thumbnail/user_thumbnail.html.twig' with {
  305. user: user,
  306. } %}
  307. </div>
  308. <svg class=\"ibexa-icon ibexa-icon--tiny\">
  309. <use xlink:href=\"{{ ibexa_icon_path('caret-down') }}\"></use>
  310. </svg>
  311. </button>
  312. <div class=\"ibexa-side-panel-container\">
  313. {{ include('@ibexadesign/account/notifications/side_panel.html.twig') }}
  314. </div>
  315. <div class=\"ibexa-header-user-menu__popup-menu ibexa-popup-menu ibexa-popup-menu--hidden\">
  316. <div class=\"ibexa-header-user-menu__popup-menu-title\">
  317. {% block current_user %}
  318. {{ 'user_menu.popup_menu.title'|trans({'%userName%': user.name})|desc('Logged as %userName%') }}
  319. {% endblock %}
  320. {% block focus_mode_toggle %}
  321. {{ render(controller('Ibexa\\\\Bundle\\\\AdminUi\\\\Controller\\\\User\\\\FocusModeController::changeAction', {
  322. returnPath: app.request.attributes.get('semanticPathinfo')
  323. })) }}
  324. {% endblock %}
  325. </div>
  326. {{ parent() }}
  327. </div>
  328. </div>
  329. {% endblock %}
  330. {% block item %}
  331. {% if item.name != 'root' %}
  332. {% set link_attributes = item.linkAttributes|merge({'class': (item.linkAttributes.class|default('') ~ ' ibexa-popup-menu__item-content')|trim}) %}
  333. {% set attributes = item.attributes|merge({'class': (item.attributes.class|default('') ~ ' ibexa-popup-menu__item')|trim}) %}
  334. {% do item.setLinkAttributes(link_attributes) %}
  335. {% do item.setAttributes(attributes) %}
  336. {% endif %}
  337. {% if item.getExtra('template') is not null %}
  338. {% include item.getExtra('template') ignore missing with options only %}
  339. {% endif %}
  340. {{ parent() }}
  341. {% endblock %}
  342. {% block linkElement %}
  343. {% import _self as knp_menu %}
  344. <a href=\"{{ item.uri }}\"{{ knp_menu.attributes(item.linkAttributes) }}>{{ block('label') }}</a>
  345. {% endblock %}
  346. ", "@admin/ui/menu/user.html.twig", "/var/www/vhosts/platformv4.alpha.se7enx.com/httpdocs/platformvlegacy4.alpha.se7enx.com/vendor/se7enxweb/admin-ui/src/bundle/Resources/views/themes/admin/ui/menu/user.html.twig");
  347. }
  348. }