c5b874fb3e41e82ff0b50774a1b5.php 1.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?php
  2. /* WebProfilerBundle:Profiler:toolbar_js.html.twig */
  3. class __TwigTemplate_09d5c5b874fb3e41e82ff0b50774a1b5 extends Twig_Template
  4. {
  5. protected function doDisplay(array $context, array $blocks = array())
  6. {
  7. $context = array_merge($this->env->getGlobals(), $context);
  8. // line 1
  9. echo "<div id=\"sfwdt";
  10. echo twig_escape_filter($this->env, $this->getContext($context, 'token'), "html");
  11. echo "\" style=\"display: none\"></div>
  12. <script type=\"text/javascript\">/*<![CDATA[*/
  13. (function () {
  14. var wdt, xhr;
  15. wdt = document.getElementById('sfwdt";
  16. // line 5
  17. echo twig_escape_filter($this->env, $this->getContext($context, 'token'), "html");
  18. echo "');
  19. if (window.XMLHttpRequest) {
  20. xhr = new XMLHttpRequest();
  21. } else {
  22. xhr = new ActiveXObject('Microsoft.XMLHTTP');
  23. }
  24. xhr.open('GET', '";
  25. // line 11
  26. echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("_wdt", array("token" => $this->getContext($context, 'token'))), "html");
  27. echo "', true);
  28. xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
  29. xhr.onreadystatechange = function(state) {
  30. if (4 === xhr.readyState && 200 === xhr.status && -1 !== xhr.responseText.indexOf('sf-toolbarreset')) {
  31. wdt.innerHTML = xhr.responseText;
  32. wdt.style.display = 'block';
  33. }
  34. };
  35. xhr.send('');
  36. })();
  37. /*]]>*/</script>
  38. ";
  39. }
  40. public function getTemplateName()
  41. {
  42. return "WebProfilerBundle:Profiler:toolbar_js.html.twig";
  43. }
  44. public function isTraitable()
  45. {
  46. return false;
  47. }
  48. }