var/cache/dev/twig/d6/d653d1583be45e76e528981be9a75868.php line 51

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/user_mode_badge.html.twig */
  16. class __TwigTemplate_34b79ec6cb200fb7d44af0603fb36f55 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->parent = false;
  28. $this->blocks = [
  29. ];
  30. }
  31. protected function doDisplay(array $context, array $blocks = []): iterable
  32. {
  33. $macros = $this->macros;
  34. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@admin/ui/user_mode_badge.html.twig"));
  36. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@admin/ui/user_mode_badge.html.twig"));
  38. // line 2
  39. yield "
  40. ";
  41. // line 3
  42. if ((($tmp = $this->env->getFunction('ibexa_is_focus_mode_on')->getCallable()()) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  43. // line 4
  44. yield " <div class=\"ibexa-user-mode-badge\">
  45. ";
  46. // line 5
  47. yield ((($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("user_mode_badge.focus", [], "ibexa_user_mode_badge") == "user_mode_badge.focus")) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::replace("Focus mode", []), "html", null, true)) : ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("user_mode_badge.focus", [], "ibexa_user_mode_badge"), "html", null, true)));
  48. yield "
  49. </div>
  50. ";
  51. }
  52. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  53. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  54. yield from [];
  55. }
  56. /**
  57. * @codeCoverageIgnore
  58. */
  59. public function getTemplateName(): string
  60. {
  61. return "@admin/ui/user_mode_badge.html.twig";
  62. }
  63. /**
  64. * @codeCoverageIgnore
  65. */
  66. public function isTraitable(): bool
  67. {
  68. return false;
  69. }
  70. /**
  71. * @codeCoverageIgnore
  72. */
  73. public function getDebugInfo(): array
  74. {
  75. return array ( 56 => 5, 53 => 4, 51 => 3, 48 => 2,);
  76. }
  77. public function getSourceContext(): Source
  78. {
  79. return new Source("{% trans_default_domain 'ibexa_user_mode_badge' %}
  80. {% if ibexa_is_focus_mode_on() %}
  81. <div class=\"ibexa-user-mode-badge\">
  82. {{ 'user_mode_badge.focus'|trans|desc('Focus mode') }}
  83. </div>
  84. {% endif %}
  85. ", "@admin/ui/user_mode_badge.html.twig", "/var/www/vhosts/alpha.se7enx.com/doc/site.v4.platform.alpha.se7enx.com/vendor/se7enxweb/admin-ui/src/bundle/Resources/views/themes/admin/ui/user_mode_badge.html.twig");
  86. }
  87. }