1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <?php
-
- /* WebProfilerBundle:Profiler:toolbar_js.html.twig */
- class __TwigTemplate_09d5c5b874fb3e41e82ff0b50774a1b5 extends Twig_Template
- {
- protected function doDisplay(array $context, array $blocks = array())
- {
- $context = array_merge($this->env->getGlobals(), $context);
-
- // line 1
- echo "<div id=\"sfwdt";
- echo twig_escape_filter($this->env, $this->getContext($context, 'token'), "html");
- echo "\" style=\"display: none\"></div>
- <script type=\"text/javascript\">/*<![CDATA[*/
- (function () {
- var wdt, xhr;
- wdt = document.getElementById('sfwdt";
- // line 5
- echo twig_escape_filter($this->env, $this->getContext($context, 'token'), "html");
- echo "');
- if (window.XMLHttpRequest) {
- xhr = new XMLHttpRequest();
- } else {
- xhr = new ActiveXObject('Microsoft.XMLHTTP');
- }
- xhr.open('GET', '";
- // line 11
- echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("_wdt", array("token" => $this->getContext($context, 'token'))), "html");
- echo "', true);
- xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
- xhr.onreadystatechange = function(state) {
- if (4 === xhr.readyState && 200 === xhr.status && -1 !== xhr.responseText.indexOf('sf-toolbarreset')) {
- wdt.innerHTML = xhr.responseText;
- wdt.style.display = 'block';
- }
- };
- xhr.send('');
- })();
- /*]]>*/</script>
- ";
- }
-
- public function getTemplateName()
- {
- return "WebProfilerBundle:Profiler:toolbar_js.html.twig";
- }
-
- public function isTraitable()
- {
- return false;
- }
- }
|