var/cache/dev/twig/a6/a64d6ee13bec5684a1e0899c561b46ba.php line 49

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. /* @WebProfiler/Profiler/toolbar_js.html.twig */
  16. class __TwigTemplate_f391a6738db4cc6bf246cb10c9cead95 extends Template
  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", "@WebProfiler/Profiler/toolbar_js.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", "@WebProfiler/Profiler/toolbar_js.html.twig"));
  38. // line 1
  39. yield "<div id=\"sfwdt";
  40. yield $this->env->getFilter('escape')->getCallable()($this->env, (isset($context["token"]) || array_key_exists("token", $context) ? $context["token"] : (function () { throw new RuntimeError('Variable "token" does not exist.', 1, $this->source); })()), "html", null, true);
  41. yield "\" class=\"sf-toolbar sf-display-none\" role=\"region\" aria-label=\"Symfony Web Debug Toolbar\">
  42. ";
  43. // line 2
  44. yield from $this->load("@WebProfiler/Profiler/toolbar.html.twig", 2)->unwrap()->yield(CoreExtension::merge($context, ["templates" => ["request" => "@WebProfiler/Profiler/cancel.html.twig"], "profile" => null, "profiler_url" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("_profiler", ["token" => // line 7
  45. (isset($context["token"]) || array_key_exists("token", $context) ? $context["token"] : (function () { throw new RuntimeError('Variable "token" does not exist.', 7, $this->source); })())]), "profiler_markup_version" => 2]));
  46. // line 10
  47. yield "</div>
  48. ";
  49. // line 12
  50. yield $this->env->getFunction('include')->getCallable()($this->env, $context, "@WebProfiler/Profiler/base_js.html.twig");
  51. yield "
  52. <style";
  53. // line 14
  54. if ((($tmp = (isset($context["csp_style_nonce"]) || array_key_exists("csp_style_nonce", $context) ? $context["csp_style_nonce"] : (function () { throw new RuntimeError('Variable "csp_style_nonce" does not exist.', 14, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  55. yield " nonce=\"";
  56. yield $this->env->getFilter('escape')->getCallable()($this->env, (isset($context["csp_style_nonce"]) || array_key_exists("csp_style_nonce", $context) ? $context["csp_style_nonce"] : (function () { throw new RuntimeError('Variable "csp_style_nonce" does not exist.', 14, $this->source); })()), "html", null, true);
  57. yield "\"";
  58. }
  59. yield ">
  60. ";
  61. // line 15
  62. yield $this->env->getFunction('include')->getCallable()($this->env, $context, "@WebProfiler/Profiler/toolbar.css.twig");
  63. yield "
  64. </style>
  65. <script";
  66. // line 17
  67. if ((($tmp = (isset($context["csp_script_nonce"]) || array_key_exists("csp_script_nonce", $context) ? $context["csp_script_nonce"] : (function () { throw new RuntimeError('Variable "csp_script_nonce" does not exist.', 17, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  68. yield " nonce=\"";
  69. yield $this->env->getFilter('escape')->getCallable()($this->env, (isset($context["csp_script_nonce"]) || array_key_exists("csp_script_nonce", $context) ? $context["csp_script_nonce"] : (function () { throw new RuntimeError('Variable "csp_script_nonce" does not exist.', 17, $this->source); })()), "html", null, true);
  70. yield "\"";
  71. }
  72. yield ">/*<![CDATA[*/
  73. (function () {
  74. Sfjs.loadToolbar('";
  75. // line 19
  76. yield $this->env->getFilter('escape')->getCallable()($this->env, (isset($context["token"]) || array_key_exists("token", $context) ? $context["token"] : (function () { throw new RuntimeError('Variable "token" does not exist.', 19, $this->source); })()), "html", null, true);
  77. yield "');
  78. })();
  79. /*]]>*/</script>
  80. ";
  81. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  82. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  83. yield from [];
  84. }
  85. /**
  86. * @codeCoverageIgnore
  87. */
  88. public function getTemplateName(): string
  89. {
  90. return "@WebProfiler/Profiler/toolbar_js.html.twig";
  91. }
  92. /**
  93. * @codeCoverageIgnore
  94. */
  95. public function isTraitable(): bool
  96. {
  97. return false;
  98. }
  99. /**
  100. * @codeCoverageIgnore
  101. */
  102. public function getDebugInfo(): array
  103. {
  104. return array ( 87 => 19, 78 => 17, 73 => 15, 65 => 14, 60 => 12, 56 => 10, 54 => 7, 53 => 2, 48 => 1,);
  105. }
  106. public function getSourceContext(): Source
  107. {
  108. return new Source("<div id=\"sfwdt{{ token }}\" class=\"sf-toolbar sf-display-none\" role=\"region\" aria-label=\"Symfony Web Debug Toolbar\">
  109. {% include('@WebProfiler/Profiler/toolbar.html.twig') with {
  110. templates: {
  111. 'request': '@WebProfiler/Profiler/cancel.html.twig'
  112. },
  113. profile: null,
  114. profiler_url: url('_profiler', {token: token}),
  115. profiler_markup_version: 2,
  116. } %}
  117. </div>
  118. {{ include('@WebProfiler/Profiler/base_js.html.twig') }}
  119. <style{% if csp_style_nonce %} nonce=\"{{ csp_style_nonce }}\"{% endif %}>
  120. {{ include('@WebProfiler/Profiler/toolbar.css.twig') }}
  121. </style>
  122. <script{% if csp_script_nonce %} nonce=\"{{ csp_script_nonce }}\"{% endif %}>/*<![CDATA[*/
  123. (function () {
  124. Sfjs.loadToolbar('{{ token }}');
  125. })();
  126. /*]]>*/</script>
  127. ", "@WebProfiler/Profiler/toolbar_js.html.twig", "/home/hood/published/iconicawards/vendor/symfony/web-profiler-bundle/Resources/views/Profiler/toolbar_js.html.twig");
  128. }
  129. }