public function block_toolbar($context, array $blocks = array()) { $__internal_9adef72a65a3682859e4bc72838a13faeaf5430cd635e3d606afd366160a6e64 = $this->env->getExtension("native_profiler"); $__internal_9adef72a65a3682859e4bc72838a13faeaf5430cd635e3d606afd366160a6e64->enter($__internal_9adef72a65a3682859e4bc72838a13faeaf5430cd635e3d606afd366160a6e64_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "toolbar")); // line 4 echo " "; ob_start(); // line 5 echo " <span>\n <svg width=\"13\" height=\"28\" xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" x=\"0px\" y=\"0px\" viewBox=\"0 0 13 28\" enable-background=\"new 0 0 13 28\" xml:space=\"preserve\"><g><rect x=\"3\" y=\"11\" fill=\"#BCBCBB\" width=\"7\" height=\"9\"/></g><g><path fill=\"#3F3F3F\" d=\"M11 6V21H2V6H0V22c0 0.6 0.4 1 1 1h11c0.6 0 1-0.4 1-1V6H11z\"/></g></svg>\n <span>"; // line 7 echo twig_escape_filter($this->env, sprintf("%.1f", twig_template_get_attributes($this, isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "memory", array()) / 1024 / 1024), "html", null, true); echo " MB</span>\n </span>\n "; $context["icon"] = '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 10 echo " "; ob_start(); // line 11 echo " <div class=\"sf-toolbar-info-piece\">\n <b>Memory usage</b>\n <span>"; // line 13 echo twig_escape_filter($this->env, sprintf("%.1f", twig_template_get_attributes($this, isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "memory", array()) / 1024 / 1024), "html", null, true); echo " / "; echo twig_template_get_attributes($this, isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "memoryLimit", array()) == -1 ? "∞" : twig_escape_filter($this->env, sprintf("%.1f", twig_template_get_attributes($this, isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "memoryLimit", array()) / 1024 / 1024)); echo " MB</span>\n </div>\n "; $context["text"] = '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 16 echo " "; $this->loadTemplate("@WebProfiler/Profiler/toolbar_item.html.twig", "@WebProfiler/Collector/memory.html.twig", 16)->display(array_merge($context, array("link" => false))); $__internal_9adef72a65a3682859e4bc72838a13faeaf5430cd635e3d606afd366160a6e64->leave($__internal_9adef72a65a3682859e4bc72838a13faeaf5430cd635e3d606afd366160a6e64_prof); }
protected function doDisplay(array $context, array $blocks = array()) { $__internal_a0b93d3d955dec62c41cfd4dabe28b36b1a0f0c8ee46f247f4c1b40a626aeb27 = $this->env->getExtension("native_profiler"); $__internal_a0b93d3d955dec62c41cfd4dabe28b36b1a0f0c8ee46f247f4c1b40a626aeb27->enter($__internal_a0b93d3d955dec62c41cfd4dabe28b36b1a0f0c8ee46f247f4c1b40a626aeb27_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "@Twig/Exception/trace.txt.twig")); // line 1 if (twig_template_get_attributes($this, isset($context["trace"]) ? $context["trace"] : $this->getContext($context, "trace"), "function", array())) { // line 2 echo " at "; echo twig_template_get_attributes($this, isset($context["trace"]) ? $context["trace"] : $this->getContext($context, "trace"), "class", array()) . twig_template_get_attributes($this, isset($context["trace"]) ? $context["trace"] : $this->getContext($context, "trace"), "type", array()) . twig_template_get_attributes($this, isset($context["trace"]) ? $context["trace"] : $this->getContext($context, "trace"), "function", array()); echo "("; echo $this->env->getExtension('code')->formatArgsAsText(twig_template_get_attributes($this, isset($context["trace"]) ? $context["trace"] : $this->getContext($context, "trace"), "args", array())); echo ")\n"; } else { // line 4 echo " at n/a\n"; } // line 6 if (twig_template_get_attributes($this, isset($context["trace"]) ? $context["trace"] : null, "file", array(), "any", true, true) && twig_template_get_attributes($this, isset($context["trace"]) ? $context["trace"] : null, "line", array(), "any", true, true)) { // line 7 echo " in "; echo twig_template_get_attributes($this, isset($context["trace"]) ? $context["trace"] : $this->getContext($context, "trace"), "file", array()); echo " line "; echo twig_template_get_attributes($this, isset($context["trace"]) ? $context["trace"] : $this->getContext($context, "trace"), "line", array()); echo "\n"; } $__internal_a0b93d3d955dec62c41cfd4dabe28b36b1a0f0c8ee46f247f4c1b40a626aeb27->leave($__internal_a0b93d3d955dec62c41cfd4dabe28b36b1a0f0c8ee46f247f4c1b40a626aeb27_prof); }
protected function doDisplay(array $context, array $blocks = array()) { $tags = array("if" => 22, "for" => 33); $filters = array(); $functions = array(); try { $this->env->getExtension('sandbox')->checkSecurity(array('if', 'for'), array(), array()); } catch (Twig_Sandbox_SecurityError $e) { $e->setTemplateFile($this->getTemplateName()); if ($e instanceof Twig_Sandbox_SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) { $e->setTemplateLine($tags[$e->getTagName()]); } elseif ($e instanceof Twig_Sandbox_SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) { $e->setTemplateLine($filters[$e->getFilterName()]); } elseif ($e instanceof Twig_Sandbox_SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) { $e->setTemplateLine($functions[$e->getFunctionName()]); } throw $e; } // line 22 if (isset($context["multiple"]) ? $context["multiple"] : null) { // line 23 echo " <div class=\"js-form-item form-item\">\n "; // line 24 echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, isset($context["table"]) ? $context["table"] : null, "html", null, true)); echo "\n "; // line 25 if (twig_template_get_attributes($this, isset($context["description"]) ? $context["description"] : null, "content", array())) { // line 26 echo " <div"; echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, twig_template_get_attributes($this, twig_template_get_attributes($this, isset($context["description"]) ? $context["description"] : null, "attributes", array()), "addClass", array(0 => "description"), "method"), "html", null, true)); echo " >"; echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, twig_template_get_attributes($this, isset($context["description"]) ? $context["description"] : null, "content", array()), "html", null, true)); echo "</div>\n "; } // line 28 echo " "; if (isset($context["button"]) ? $context["button"] : null) { // line 29 echo " <div class=\"clearfix\">"; echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, isset($context["button"]) ? $context["button"] : null, "html", null, true)); echo "</div>\n "; } // line 31 echo " </div>\n"; } else { // line 33 echo " "; $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(isset($context["elements"]) ? $context["elements"] : null); foreach ($context['_seq'] as $context["_key"] => $context["element"]) { // line 34 echo " "; echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $context["element"], "html", null, true)); echo "\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['element'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; } }
protected function doDisplay(array $context, array $blocks = array()) { $__internal_be655af744011807162b8e2fc96b8dc6d010ebba262f563f899f196b51decc41 = $this->env->getExtension("native_profiler"); $__internal_be655af744011807162b8e2fc96b8dc6d010ebba262f563f899f196b51decc41->enter($__internal_be655af744011807162b8e2fc96b8dc6d010ebba262f563f899f196b51decc41_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "TwigBundle:Exception:traces_text.html.twig")); // line 1 echo "<div class=\"block\">\n <h2>\n Stack Trace (Plain Text) \n "; // line 4 ob_start(); // line 5 echo " <a href=\"#\" onclick=\"toggle('traces-text'); switchIcons('icon-traces-text-open', 'icon-traces-text-close'); return false;\">\n <img class=\"toggle\" id=\"icon-traces-text-close\" alt=\"-\" src=\"data:image/gif;base64,R0lGODlhEgASAMQSANft94TG57Hb8GS44ez1+mC24IvK6ePx+Wa44dXs92+942e54o3L6W2844/M6dnu+P/+/l614P///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAABIALAAAAAASABIAQAVCoCQBTBOd6Kk4gJhGBCTPxysJb44K0qD/ER/wlxjmisZkMqBEBW5NHrMZmVKvv9hMVsO+hE0EoNAstEYGxG9heIhCADs=\" style=\"display: none\" />\n <img class=\"toggle\" id=\"icon-traces-text-open\" alt=\"+\" src=\"data:image/gif;base64,R0lGODlhEgASAMQTANft99/v+Ga44bHb8ITG52S44dXs9+z1+uPx+YvK6WC24G+944/M6W28443L6dnu+Ge54v/+/l614P///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAABMALAAAAAASABIAQAVS4DQBTiOd6LkwgJgeUSzHSDoNaZ4PU6FLgYBA5/vFID/DbylRGiNIZu74I0h1hNsVxbNuUV4d9SsZM2EzWe1qThVzwWFOAFCQFa1RQq6DJB4iIQA7\" style=\"display: inline\" />\n </a>\n "; echo trim(preg_replace('/>\\s+</', '><', ob_get_clean())); // line 10 echo " </h2>\n\n <div id=\"traces-text\" class=\"trace\" style=\"display: none;\">\n<pre>"; // line 13 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable(twig_template_get_attributes($this, isset($context["exception"]) ? $context["exception"] : $this->getContext($context, "exception"), "toarray", array())); foreach ($context['_seq'] as $context["i"] => $context["e"]) { // line 14 echo "["; echo twig_escape_filter($this->env, $context["i"] + 1, "html", null, true); echo "] "; echo twig_escape_filter($this->env, twig_template_get_attributes($this, $context["e"], "class", array()), "html", null, true); echo ": "; echo twig_escape_filter($this->env, twig_template_get_attributes($this, $context["e"], "message", array()), "html", null, true); echo "\n"; // line 15 $this->loadTemplate("TwigBundle:Exception:traces.txt.twig", "TwigBundle:Exception:traces_text.html.twig", 15)->display(array("exception" => $context["e"])); } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['i'], $context['e'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 16 echo "</pre>\n </div>\n</div>\n"; $__internal_be655af744011807162b8e2fc96b8dc6d010ebba262f563f899f196b51decc41->leave($__internal_be655af744011807162b8e2fc96b8dc6d010ebba262f563f899f196b51decc41_prof); }
protected function doDisplay(array $context, array $blocks = array()) { $__internal_690c285c718fbd8c201e4150c92f9df0e5cb8c91ecddb6e3845a6c3f49e20558 = $this->env->getExtension("native_profiler"); $__internal_690c285c718fbd8c201e4150c92f9df0e5cb8c91ecddb6e3845a6c3f49e20558->enter($__internal_690c285c718fbd8c201e4150c92f9df0e5cb8c91ecddb6e3845a6c3f49e20558_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "@WebProfiler/Profiler/base_js.html.twig")); // line 1 echo "<script>/*<![CDATA[*/\n "; // line 5 echo "\n Sfjs = (function() {\n \"use strict\";\n\n var classListIsSupported = 'classList' in document.documentElement;\n\n if (classListIsSupported) {\n var hasClass = function (el, cssClass) { return el.classList.contains(cssClass); };\n var removeClass = function(el, cssClass) { el.classList.remove(cssClass); };\n var addClass = function(el, cssClass) { el.classList.add(cssClass); };\n var toggleClass = function(el, cssClass) { el.classList.toggle(cssClass); };\n } else {\n var hasClass = function (el, cssClass) { return el.className.match(new RegExp('\\\\b' + cssClass + '\\\\b')); };\n var removeClass = function(el, cssClass) { el.className = el.className.replace(new RegExp('\\\\b' + cssClass + '\\\\b'), ' '); };\n var addClass = function(el, cssClass) { if (!hasClass(el, cssClass)) { el.className += \" \" + cssClass; } };\n var toggleClass = function(el, cssClass) { hasClass(el, cssClass) ? removeClass(el, cssClass) : addClass(el, cssClass); };\n }\n\n var noop = function() {},\n\n collectionToArray = function (collection) {\n var length = collection.length || 0,\n results = new Array(length);\n\n while (length--) {\n results[length] = collection[length];\n }\n\n return results;\n },\n\n profilerStorageKey = 'sf2/profiler/',\n\n request = function(url, onSuccess, onError, payload, options) {\n var xhr = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject('Microsoft.XMLHTTP');\n options = options || {};\n options.maxTries = options.maxTries || 0;\n xhr.open(options.method || 'GET', url, true);\n xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest');\n xhr.onreadystatechange = function(state) {\n if (4 !== xhr.readyState) {\n return null;\n }\n\n if (xhr.status == 404 && options.maxTries > 1) {\n setTimeout(function(){\n options.maxTries--;\n request(url, onSuccess, onError, payload, options);\n }, 500);\n\n return null;\n }\n\n if (200 === xhr.status) {\n (onSuccess || noop)(xhr);\n } else {\n (onError || noop)(xhr);\n }\n };\n xhr.send(payload || '');\n },\n\n getPreference = function(name) {\n if (!window.localStorage) {\n return null;\n }\n\n return localStorage.getItem(profilerStorageKey + name);\n },\n\n setPreference = function(name, value) {\n if (!window.localStorage) {\n return null;\n }\n\n localStorage.setItem(profilerStorageKey + name, value);\n },\n\n requestStack = [],\n\n renderAjaxRequests = function() {\n var requestCounter = document.querySelectorAll('.sf-toolbar-ajax-requests');\n if (!requestCounter.length) {\n return;\n }\n\n var ajaxToolbarPanel = document.querySelector('.sf-toolbar-block-ajax');\n var tbodies = document.querySelectorAll('.sf-toolbar-ajax-request-list');\n var state = 'ok';\n if (tbodies.length) {\n var tbody = tbodies[0];\n\n var rows = document.createDocumentFragment();\n\n if (requestStack.length) {\n for (var i = 0; i < requestStack.length; i++) {\n var request = requestStack[i];\n\n var row = document.createElement('tr');\n rows.appendChild(row);\n\n var methodCell = document.createElement('td');\n if (request.error) {\n methodCell.className = 'sf-ajax-request-error';\n }\n methodCell.textContent = request.method;\n row.appendChild(methodCell);\n\n var pathCell = document.createElement('td');\n pathCell.className = 'sf-ajax-request-url';\n if ('GET' === request.method) {\n var pathLink = document.createElement('a');\n pathLink.setAttribute('href', request.url);\n pathLink.textContent = request.url;\n pathCell.appendChild(pathLink);\n } else {\n pathCell.textContent = request.url;\n }\n pathCell.setAttribute('title', request.url);\n row.appendChild(pathCell);\n\n var durationCell = document.createElement('td');\n durationCell.className = 'sf-ajax-request-duration';\n\n if (request.duration) {\n durationCell.textContent = request.duration + \"ms\";\n } else {\n durationCell.textContent = '-';\n }\n row.appendChild(durationCell);\n\n row.appendChild(document.createTextNode(' '));\n var profilerCell = document.createElement('td');\n\n if (request.profilerUrl) {\n var profilerLink = document.createElement('a');\n profilerLink.setAttribute('href', request.profilerUrl);\n profilerLink.textContent = request.profile;\n profilerCell.appendChild(profilerLink);\n } else {\n profilerCell.textContent = 'n/a';\n }\n\n row.appendChild(profilerCell);\n\n var requestState = 'ok';\n if (request.error) {\n requestState = 'error';\n if (state != \"loading\" && i > requestStack.length - 4) {\n state = 'error';\n }\n } else if (request.loading) {\n requestState = 'loading';\n state = 'loading';\n }\n row.className = 'sf-ajax-request sf-ajax-request-' + requestState;\n }\n\n var infoSpan = document.querySelectorAll(\".sf-toolbar-ajax-info\")[0];\n var children = collectionToArray(tbody.children);\n for (var i = 0; i < children.length; i++) {\n tbody.removeChild(children[i]);\n }\n tbody.appendChild(rows);\n\n if (infoSpan) {\n var text = requestStack.length + ' AJAX request' + (requestStack.length > 1 ? 's' : '');\n infoSpan.textContent = text;\n }\n\n ajaxToolbarPanel.style.display = 'block';\n } else {\n ajaxToolbarPanel.style.display = 'none';\n }\n }\n\n requestCounter[0].textContent = requestStack.length;\n\n var className = 'sf-toolbar-ajax-requests sf-toolbar-value';\n requestCounter[0].className = className;\n\n if (state == 'ok') {\n Sfjs.removeClass(ajaxToolbarPanel, 'sf-ajax-request-loading');\n Sfjs.removeClass(ajaxToolbarPanel, 'sf-toolbar-status-red');\n } else if (state == 'error') {\n Sfjs.addClass(ajaxToolbarPanel, 'sf-toolbar-status-red');\n } else {\n Sfjs.addClass(ajaxToolbarPanel, 'sf-ajax-request-loading');\n }\n };\n\n var addEventListener;\n\n var el = document.createElement('div');\n if (!'addEventListener' in el) {\n addEventListener = function (element, eventName, callback) {\n element.attachEvent('on' + eventName, callback);\n };\n } else {\n addEventListener = function (element, eventName, callback) {\n element.addEventListener(eventName, callback, false);\n };\n }\n\n "; // line 209 if (array_key_exists("excluded_ajax_paths", $context)) { // line 210 echo " if (window.XMLHttpRequest && XMLHttpRequest.prototype.addEventListener) {\n var proxied = XMLHttpRequest.prototype.open;\n\n XMLHttpRequest.prototype.open = function(method, url, async, user, pass) {\n var self = this;\n\n /* prevent logging AJAX calls to static and inline files, like templates */\n var path = url;\n if (url.substr(0, 1) === '/') {\n if (0 === url.indexOf('"; // line 219 echo twig_escape_filter($this->env, twig_escape_filter($this->env, twig_template_get_attributes($this, isset($context["request"]) ? $context["request"] : $this->getContext($context, "request"), "basePath", array()), "js"), "html", null, true); echo "')) {\n path = url.substr("; // line 220 echo twig_escape_filter($this->env, twig_length_filter($this->env, twig_template_get_attributes($this, isset($context["request"]) ? $context["request"] : $this->getContext($context, "request"), "basePath", array())), "html", null, true); echo ");\n }\n }\n else if (0 === url.indexOf('"; // line 223 echo twig_escape_filter($this->env, twig_escape_filter($this->env, twig_template_get_attributes($this, isset($context["request"]) ? $context["request"] : $this->getContext($context, "request"), "schemeAndHttpHost", array()) . twig_template_get_attributes($this, isset($context["request"]) ? $context["request"] : $this->getContext($context, "request"), "basePath", array()), "js"), "html", null, true); echo "')) {\n path = url.substr("; // line 224 echo twig_escape_filter($this->env, twig_length_filter($this->env, twig_template_get_attributes($this, isset($context["request"]) ? $context["request"] : $this->getContext($context, "request"), "schemeAndHttpHost", array()) . twig_template_get_attributes($this, isset($context["request"]) ? $context["request"] : $this->getContext($context, "request"), "basePath", array())), "html", null, true); echo ");\n }\n\n if (path.substr(0, 1) === '/' && !path.match(new RegExp("; // line 227 echo twig_jsonencode_filter(isset($context["excluded_ajax_paths"]) ? $context["excluded_ajax_paths"] : $this->getContext($context, "excluded_ajax_paths")); echo "))) {\n var stackElement = {\n loading: true,\n error: false,\n url: url,\n method: method,\n start: new Date()\n };\n\n requestStack.push(stackElement);\n\n this.addEventListener('readystatechange', function() {\n if (self.readyState == 4) {\n stackElement.duration = new Date() - stackElement.start;\n stackElement.loading = false;\n stackElement.error = self.status < 200 || self.status >= 400;\n stackElement.profile = self.getResponseHeader(\"X-Debug-Token\");\n stackElement.profilerUrl = self.getResponseHeader(\"X-Debug-Token-Link\");\n\n Sfjs.renderAjaxRequests();\n }\n }, false);\n\n Sfjs.renderAjaxRequests();\n }\n\n proxied.apply(this, Array.prototype.slice.call(arguments));\n };\n }\n "; } // line 257 echo "\n return {\n hasClass: hasClass,\n\n removeClass: removeClass,\n\n addClass: addClass,\n\n toggleClass: toggleClass,\n\n getPreference: getPreference,\n\n setPreference: setPreference,\n\n addEventListener: addEventListener,\n\n request: request,\n\n renderAjaxRequests: renderAjaxRequests,\n\n load: function(selector, url, onSuccess, onError, options) {\n var el = document.getElementById(selector);\n\n if (el && el.getAttribute('data-sfurl') !== url) {\n request(\n url,\n function(xhr) {\n el.innerHTML = xhr.responseText;\n el.setAttribute('data-sfurl', url);\n removeClass(el, 'loading');\n (onSuccess || noop)(xhr, el);\n },\n function(xhr) { (onError || noop)(xhr, el); },\n '',\n options\n );\n }\n\n return this;\n },\n\n toggle: function(selector, elOn, elOff) {\n var tmp = elOn.style.display,\n el = document.getElementById(selector);\n\n elOn.style.display = elOff.style.display;\n elOff.style.display = tmp;\n\n if (el) {\n el.style.display = 'none' === tmp ? 'none' : 'block';\n }\n\n return this;\n },\n\n createTabs: function() {\n var tabGroups = document.querySelectorAll('.sf-tabs');\n\n /* create the tab navigation for each group of tabs */\n for (var i = 0; i < tabGroups.length; i++) {\n var tabs = tabGroups[i].querySelectorAll('.tab');\n var tabNavigation = document.createElement('ul');\n tabNavigation.className = 'tab-navigation';\n\n for (var j = 0; j < tabs.length; j++) {\n var tabId = 'tab-' + i + '-' + j;\n var tabTitle = tabs[j].querySelector('.tab-title').innerHTML;\n\n var tabNavigationItem = document.createElement('li');\n tabNavigationItem.setAttribute('data-tab-id', tabId);\n if (j == 0) { Sfjs.addClass(tabNavigationItem, 'active'); }\n if (Sfjs.hasClass(tabs[j], 'disabled')) { Sfjs.addClass(tabNavigationItem, 'disabled'); }\n tabNavigationItem.innerHTML = tabTitle;\n tabNavigation.appendChild(tabNavigationItem);\n\n var tabContent = tabs[j].querySelector('.tab-content');\n tabContent.parentElement.setAttribute('id', tabId);\n }\n\n tabGroups[i].insertBefore(tabNavigation, tabGroups[i].firstChild);\n }\n\n /* display the active tab and add the 'click' event listeners */\n for (i = 0; i < tabGroups.length; i++) {\n tabNavigation = tabGroups[i].querySelectorAll('.tab-navigation li');\n\n for (j = 0; j < tabNavigation.length; j++) {\n tabId = tabNavigation[j].getAttribute('data-tab-id');\n document.getElementById(tabId).querySelector('.tab-title').className = 'hidden';\n\n if (Sfjs.hasClass(tabNavigation[j], 'active')) {\n document.getElementById(tabId).className = 'block';\n } else {\n document.getElementById(tabId).className = 'hidden';\n }\n\n tabNavigation[j].addEventListener('click', function(e) {\n var activeTab = e.target || e.srcElement;\n\n /* needed because when the tab contains HTML contents, user can click */\n /* on any of those elements instead of their parent '<li>' element */\n while (activeTab.tagName.toLowerCase() !== 'li') {\n activeTab = activeTab.parentNode;\n }\n\n /* get the full list of tabs through the parent of the active tab element */\n var tabNavigation = activeTab.parentNode.children;\n for (var k = 0; k < tabNavigation.length; k++) {\n var tabId = tabNavigation[k].getAttribute('data-tab-id');\n document.getElementById(tabId).className = 'hidden';\n Sfjs.removeClass(tabNavigation[k], 'active');\n }\n\n Sfjs.addClass(activeTab, 'active');\n var activeTabId = activeTab.getAttribute('data-tab-id');\n document.getElementById(activeTabId).className = 'block';\n });\n }\n }\n },\n\n createToggles: function() {\n var toggles = document.querySelectorAll('.sf-toggle');\n\n for (var i = 0; i < toggles.length; i++) {\n var elementSelector = toggles[i].getAttribute('data-toggle-selector');\n var element = document.querySelector(elementSelector);\n\n Sfjs.addClass(element, 'sf-toggle-content');\n\n if (toggles[i].hasAttribute('data-toggle-initial') && toggles[i].getAttribute('data-toggle-initial') == 'display') {\n Sfjs.addClass(element, 'sf-toggle-visible');\n } else {\n Sfjs.addClass(element, 'sf-toggle-hidden');\n }\n\n Sfjs.addEventListener(toggles[i], 'click', function(e) {\n e.preventDefault();\n\n var toggle = e.target || e.srcElement;\n\n /* needed because when the toggle contains HTML contents, user can click */\n /* on any of those elements instead of their parent '.sf-toggle' element */\n while (!Sfjs.hasClass(toggle, 'sf-toggle')) {\n toggle = toggle.parentNode;\n }\n\n var element = document.querySelector(toggle.getAttribute('data-toggle-selector'));\n\n Sfjs.toggleClass(element, 'sf-toggle-hidden');\n Sfjs.toggleClass(element, 'sf-toggle-visible');\n\n /* the toggle doesn't change its contents when clicking on it */\n if (!toggle.hasAttribute('data-toggle-alt-content')) {\n return;\n }\n\n if (!toggle.hasAttribute('data-toggle-original-content')) {\n toggle.setAttribute('data-toggle-original-content', toggle.innerHTML);\n }\n\n var currentContent = toggle.innerHTML;\n var originalContent = toggle.getAttribute('data-toggle-original-content');\n var altContent = toggle.getAttribute('data-toggle-alt-content');\n toggle.innerHTML = currentContent !== altContent ? altContent : originalContent;\n });\n }\n }\n };\n })();\n\n Sfjs.addEventListener(window, 'load', function() {\n Sfjs.createTabs();\n Sfjs.createToggles();\n });\n\n/*]]>*/</script>\n"; $__internal_690c285c718fbd8c201e4150c92f9df0e5cb8c91ecddb6e3845a6c3f49e20558->leave($__internal_690c285c718fbd8c201e4150c92f9df0e5cb8c91ecddb6e3845a6c3f49e20558_prof); }
protected function doDisplay(array $context, array $blocks = array()) { $__internal_95165891656848f19f1e47c126e1ce92274717466d04410c4af1a4eb86c990da = $this->env->getExtension("native_profiler"); $__internal_95165891656848f19f1e47c126e1ce92274717466d04410c4af1a4eb86c990da->enter($__internal_95165891656848f19f1e47c126e1ce92274717466d04410c4af1a4eb86c990da_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "@WebProfiler/Profiler/base_js.html.twig")); // line 1 echo "<script>/*<![CDATA[*/\n Sfjs = (function() {\n \"use strict\";\n\n var noop = function() {},\n\n collectionToArray = function (collection) {\n var length = collection.length || 0,\n results = new Array(length);\n\n while (length--) {\n results[length] = collection[length];\n }\n\n return results;\n },\n\n profilerStorageKey = 'sf2/profiler/',\n\n request = function(url, onSuccess, onError, payload, options) {\n var xhr = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject('Microsoft.XMLHTTP');\n options = options || {};\n options.maxTries = options.maxTries || 0;\n xhr.open(options.method || 'GET', url, true);\n xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest');\n xhr.onreadystatechange = function(state) {\n if (4 !== xhr.readyState) {\n return null;\n }\n\n if (xhr.status == 404 && options.maxTries > 1) {\n setTimeout(function(){\n options.maxTries--;\n request(url, onSuccess, onError, payload, options);\n }, 500);\n\n return null;\n }\n\n if (200 === xhr.status) {\n (onSuccess || noop)(xhr);\n } else {\n (onError || noop)(xhr);\n }\n };\n xhr.send(payload || '');\n },\n\n hasClass = function(el, klass) {\n return el.className && el.className.match(new RegExp('\\\\b' + klass + '\\\\b'));\n },\n\n removeClass = function(el, klass) {\n if (el.className) {\n el.className = el.className.replace(new RegExp('\\\\b' + klass + '\\\\b'), ' ');\n }\n },\n\n addClass = function(el, klass) {\n if (!hasClass(el, klass)) {\n el.className += \" \" + klass;\n }\n },\n\n getPreference = function(name) {\n if (!window.localStorage) {\n return null;\n }\n\n return localStorage.getItem(profilerStorageKey + name);\n },\n\n setPreference = function(name, value) {\n if (!window.localStorage) {\n return null;\n }\n\n localStorage.setItem(profilerStorageKey + name, value);\n },\n\n requestStack = [],\n\n renderAjaxRequests = function() {\n var requestCounter = document.querySelectorAll('.sf-toolbar-ajax-requests');\n if (!requestCounter.length) {\n return;\n }\n\n var tbodies = document.querySelectorAll('.sf-toolbar-ajax-request-list');\n var state = 'ok';\n if (tbodies.length) {\n var tbody = tbodies[0];\n\n var rows = document.createDocumentFragment();\n\n if (requestStack.length) {\n for (var i = 0; i < requestStack.length; i++) {\n var request = requestStack[i];\n\n var row = document.createElement('tr');\n rows.appendChild(row);\n\n var methodCell = document.createElement('td');\n if (request.error) {\n methodCell.className = 'sf-ajax-request-error';\n }\n methodCell.textContent = request.method;\n row.appendChild(methodCell);\n\n var pathCell = document.createElement('td');\n pathCell.className = 'sf-ajax-request-url';\n if ('GET' === request.method) {\n var pathLink = document.createElement('a');\n pathLink.setAttribute('href', request.url);\n pathLink.textContent = request.url;\n pathCell.appendChild(pathLink);\n } else {\n pathCell.textContent = request.url;\n }\n pathCell.setAttribute('title', request.url);\n row.appendChild(pathCell);\n\n var durationCell = document.createElement('td');\n durationCell.className = 'sf-ajax-request-duration';\n\n if (request.duration) {\n durationCell.textContent = request.duration + \"ms\";\n } else {\n durationCell.textContent = '-';\n }\n row.appendChild(durationCell);\n\n row.appendChild(document.createTextNode(' '));\n var profilerCell = document.createElement('td');\n\n if (request.profilerUrl) {\n var profilerLink = document.createElement('a');\n profilerLink.setAttribute('href', request.profilerUrl);\n profilerLink.textContent = request.profile;\n profilerCell.appendChild(profilerLink);\n } else {\n profilerCell.textContent = 'n/a';\n }\n\n row.appendChild(profilerCell);\n\n var requestState = 'ok';\n if (request.error) {\n requestState = 'error';\n if (state != \"loading\" && i > requestStack.length - 4) {\n state = 'error';\n }\n } else if (request.loading) {\n requestState = 'loading';\n state = 'loading';\n }\n row.className = 'sf-ajax-request sf-ajax-request-' + requestState;\n }\n\n var infoSpan = document.querySelectorAll(\".sf-toolbar-ajax-info\")[0];\n var children = collectionToArray(tbody.children);\n for (var i = 0; i < children.length; i++) {\n tbody.removeChild(children[i]);\n }\n tbody.appendChild(rows);\n\n if (infoSpan) {\n var text = requestStack.length + ' call' + (requestStack.length > 1 ? 's' : '');\n infoSpan.textContent = text;\n }\n } else {\n var cell = document.createElement('td');\n cell.setAttribute('colspan', '4');\n cell.textContent = \"No AJAX requests yet.\";\n var row = document.createElement('tr');\n row.appendChild(cell);\n tbody.appendChild(row);\n }\n }\n\n requestCounter[0].textContent = requestStack.length;\n\n var className = 'sf-toolbar-ajax-requests sf-toolbar-status';\n if (state == 'ok') {\n className += ' sf-toolbar-status-green';\n } else if (state == 'error') {\n className += ' sf-toolbar-status-red';\n } else {\n className += ' sf-ajax-request-loading';\n }\n\n requestCounter[0].className = className;\n };\n\n var addEventListener;\n\n var el = document.createElement('div');\n if (!'addEventListener' in el) {\n addEventListener = function (element, eventName, callback) {\n element.attachEvent('on' + eventName, callback);\n };\n } else {\n addEventListener = function (element, eventName, callback) {\n element.addEventListener(eventName, callback, false);\n };\n }\n\n "; // line 208 if (array_key_exists("excluded_ajax_paths", $context)) { // line 209 echo " if (window.XMLHttpRequest && XMLHttpRequest.prototype.addEventListener) {\n var proxied = XMLHttpRequest.prototype.open;\n\n XMLHttpRequest.prototype.open = function(method, url, async, user, pass) {\n var self = this;\n\n /* prevent logging AJAX calls to static and inline files, like templates */\n var path = url;\n if (url.substr(0, 1) === '/') {\n if (0 === url.indexOf('"; // line 218 echo twig_escape_filter($this->env, twig_escape_filter($this->env, twig_template_get_attributes($this, isset($context["request"]) ? $context["request"] : $this->getContext($context, "request"), "basePath", array()), "js"), "html", null, true); echo "')) {\n path = url.substr("; // line 219 echo twig_escape_filter($this->env, twig_length_filter($this->env, twig_template_get_attributes($this, isset($context["request"]) ? $context["request"] : $this->getContext($context, "request"), "basePath", array())), "html", null, true); echo ");\n }\n }\n else if (0 === url.indexOf('"; // line 222 echo twig_escape_filter($this->env, twig_escape_filter($this->env, twig_template_get_attributes($this, isset($context["request"]) ? $context["request"] : $this->getContext($context, "request"), "schemeAndHttpHost", array()) . twig_template_get_attributes($this, isset($context["request"]) ? $context["request"] : $this->getContext($context, "request"), "basePath", array()), "js"), "html", null, true); echo "')) {\n path = url.substr("; // line 223 echo twig_escape_filter($this->env, twig_length_filter($this->env, twig_template_get_attributes($this, isset($context["request"]) ? $context["request"] : $this->getContext($context, "request"), "schemeAndHttpHost", array()) . twig_template_get_attributes($this, isset($context["request"]) ? $context["request"] : $this->getContext($context, "request"), "basePath", array())), "html", null, true); echo ");\n }\n\n if (path.substr(0, 1) === '/' && !path.match(new RegExp("; // line 226 echo twig_jsonencode_filter(isset($context["excluded_ajax_paths"]) ? $context["excluded_ajax_paths"] : $this->getContext($context, "excluded_ajax_paths")); echo "))) {\n var stackElement = {\n loading: true,\n error: false,\n url: url,\n method: method,\n start: new Date()\n };\n\n requestStack.push(stackElement);\n\n this.addEventListener('readystatechange', function() {\n if (self.readyState == 4) {\n stackElement.duration = new Date() - stackElement.start;\n stackElement.loading = false;\n stackElement.error = self.status < 200 || self.status >= 400;\n stackElement.profile = self.getResponseHeader(\"X-Debug-Token\");\n stackElement.profilerUrl = self.getResponseHeader(\"X-Debug-Token-Link\");\n\n Sfjs.renderAjaxRequests();\n }\n }, false);\n\n Sfjs.renderAjaxRequests();\n }\n\n proxied.apply(this, Array.prototype.slice.call(arguments));\n };\n }\n "; } // line 256 echo "\n return {\n hasClass: hasClass,\n\n removeClass: removeClass,\n\n addClass: addClass,\n\n getPreference: getPreference,\n\n setPreference: setPreference,\n\n addEventListener: addEventListener,\n\n request: request,\n\n renderAjaxRequests: renderAjaxRequests,\n\n load: function(selector, url, onSuccess, onError, options) {\n var el = document.getElementById(selector);\n\n if (el && el.getAttribute('data-sfurl') !== url) {\n request(\n url,\n function(xhr) {\n el.innerHTML = xhr.responseText;\n el.setAttribute('data-sfurl', url);\n removeClass(el, 'loading');\n (onSuccess || noop)(xhr, el);\n },\n function(xhr) { (onError || noop)(xhr, el); },\n '',\n options\n );\n }\n\n return this;\n },\n\n toggle: function(selector, elOn, elOff) {\n var tmp = elOn.style.display,\n el = document.getElementById(selector);\n\n elOn.style.display = elOff.style.display;\n elOff.style.display = tmp;\n\n if (el) {\n el.style.display = 'none' === tmp ? 'none' : 'block';\n }\n\n return this;\n }\n }\n })();\n/*]]>*/</script>\n"; $__internal_95165891656848f19f1e47c126e1ce92274717466d04410c4af1a4eb86c990da->leave($__internal_95165891656848f19f1e47c126e1ce92274717466d04410c4af1a4eb86c990da_prof); }
protected function doDisplay(array $context, array $blocks = array()) { $tags = array("set" => 14); $filters = array("clean_class" => 15); $functions = array(); try { $this->env->getExtension('sandbox')->checkSecurity(array('set'), array('clean_class'), array()); } catch (Twig_Sandbox_SecurityError $e) { $e->setTemplateFile($this->getTemplateName()); if ($e instanceof Twig_Sandbox_SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) { $e->setTemplateLine($tags[$e->getTagName()]); } elseif ($e instanceof Twig_Sandbox_SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) { $e->setTemplateLine($filters[$e->getFilterName()]); } elseif ($e instanceof Twig_Sandbox_SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) { $e->setTemplateLine($functions[$e->getFunctionName()]); } throw $e; } // line 14 $context["classes"] = array(0 => isset($context["style_name"]) ? $context["style_name"] : null ? "image-style-" . \Drupal\Component\Utility\Html::getClass(isset($context["style_name"]) ? $context["style_name"] : null) : ""); // line 18 echo "<img"; echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, twig_template_get_attributes($this, isset($context["attributes"]) ? $context["attributes"] : null, "addClass", array(0 => isset($context["classes"]) ? $context["classes"] : null), "method"), "html", null, true)); echo " />\n"; }
protected function doDisplay(array $context, array $blocks = array()) { $tags = array("set" => 21); $filters = array(); $functions = array(); try { $this->env->getExtension('sandbox')->checkSecurity(array('set'), array(), array()); } catch (Twig_Sandbox_SecurityError $e) { $e->setTemplateFile($this->getTemplateName()); if ($e instanceof Twig_Sandbox_SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) { $e->setTemplateLine($tags[$e->getTagName()]); } elseif ($e instanceof Twig_Sandbox_SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) { $e->setTemplateLine($filters[$e->getFilterName()]); } elseif ($e instanceof Twig_Sandbox_SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) { $e->setTemplateLine($functions[$e->getFunctionName()]); } throw $e; } // line 21 $context["classes"] = array(0 => "filter-guidelines-item", 1 => "filter-guidelines-" . twig_template_get_attributes($this, isset($context["format"]) ? $context["format"] : null, "id", array())); // line 26 echo "<div"; echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, twig_template_get_attributes($this, isset($context["attributes"]) ? $context["attributes"] : null, "addClass", array(0 => isset($context["classes"]) ? $context["classes"] : null), "method"), "html", null, true)); echo ">\n <h4 class=\"label\">"; // line 27 echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, twig_template_get_attributes($this, isset($context["format"]) ? $context["format"] : null, "label", array()), "html", null, true)); echo "</h4>\n "; // line 28 echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, isset($context["tips"]) ? $context["tips"] : null, "html", null, true)); echo "\n</div>\n"; }
protected function doDisplay(array $context, array $blocks = array()) { $__internal_042adf0b7a35694acb18d0424d3a9f4a802235d815d344b19628202aea2ee9b8 = $this->env->getExtension("native_profiler"); $__internal_042adf0b7a35694acb18d0424d3a9f4a802235d815d344b19628202aea2ee9b8->enter($__internal_042adf0b7a35694acb18d0424d3a9f4a802235d815d344b19628202aea2ee9b8_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "TwigBundle:Exception:trace.txt.twig")); // line 1 if (twig_template_get_attributes($this, isset($context["trace"]) ? $context["trace"] : $this->getContext($context, "trace"), "function", array())) { // line 2 echo " at "; echo twig_template_get_attributes($this, isset($context["trace"]) ? $context["trace"] : $this->getContext($context, "trace"), "class", array()) . twig_template_get_attributes($this, isset($context["trace"]) ? $context["trace"] : $this->getContext($context, "trace"), "type", array()) . twig_template_get_attributes($this, isset($context["trace"]) ? $context["trace"] : $this->getContext($context, "trace"), "function", array()); echo "("; echo $this->env->getExtension('code')->formatArgsAsText(twig_template_get_attributes($this, isset($context["trace"]) ? $context["trace"] : $this->getContext($context, "trace"), "args", array())); echo ")\n"; } else { // line 4 echo " at n/a\n"; } // line 6 if (twig_template_get_attributes($this, isset($context["trace"]) ? $context["trace"] : null, "file", array(), "any", true, true) && twig_template_get_attributes($this, isset($context["trace"]) ? $context["trace"] : null, "line", array(), "any", true, true)) { // line 7 echo " in "; echo twig_template_get_attributes($this, isset($context["trace"]) ? $context["trace"] : $this->getContext($context, "trace"), "file", array()); echo " line "; echo twig_template_get_attributes($this, isset($context["trace"]) ? $context["trace"] : $this->getContext($context, "trace"), "line", array()); echo "\n"; } $__internal_042adf0b7a35694acb18d0424d3a9f4a802235d815d344b19628202aea2ee9b8->leave($__internal_042adf0b7a35694acb18d0424d3a9f4a802235d815d344b19628202aea2ee9b8_prof); }
protected function doDisplay(array $context, array $blocks = array()) { $tags = array(); $filters = array(); $functions = array(); try { $this->env->getExtension('sandbox')->checkSecurity(array(), array(), array()); } catch (Twig_Sandbox_SecurityError $e) { $e->setTemplateFile($this->getTemplateName()); if ($e instanceof Twig_Sandbox_SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) { $e->setTemplateLine($tags[$e->getTagName()]); } elseif ($e instanceof Twig_Sandbox_SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) { $e->setTemplateLine($filters[$e->getFilterName()]); } elseif ($e instanceof Twig_Sandbox_SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) { $e->setTemplateLine($functions[$e->getFunctionName()]); } throw $e; } // line 13 echo "<div"; echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, twig_template_get_attributes($this, isset($context["attributes"]) ? $context["attributes"] : null, "addClass", array(0 => "container-inline"), "method"), "html", null, true)); echo ">\n "; // line 14 echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, isset($context["content"]) ? $context["content"] : null, "html", null, true)); echo "\n</div>\n"; }
protected function doDisplay(array $context, array $blocks = array()) { $tags = array(); $filters = array("without" => 20); $functions = array(); try { $this->env->getExtension('sandbox')->checkSecurity(array(), array('without'), array()); } catch (Twig_Sandbox_SecurityError $e) { $e->setTemplateFile($this->getTemplateName()); if ($e instanceof Twig_Sandbox_SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) { $e->setTemplateLine($tags[$e->getTagName()]); } elseif ($e instanceof Twig_Sandbox_SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) { $e->setTemplateLine($filters[$e->getFilterName()]); } elseif ($e instanceof Twig_Sandbox_SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) { $e->setTemplateLine($functions[$e->getFunctionName()]); } throw $e; } // line 18 echo "<div class=\"layout-node-form clearfix\">\n <div class=\"layout-region layout-region-node-main\">\n "; // line 20 echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, twig_without(isset($context["form"]) ? $context["form"] : null, "advanced", "actions"), "html", null, true)); echo "\n </div>\n <div class=\"layout-region layout-region-node-secondary\">\n "; // line 23 echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, twig_template_get_attributes($this, isset($context["form"]) ? $context["form"] : null, "advanced", array()), "html", null, true)); echo "\n </div>\n <div class=\"layout-region layout-region-node-footer\">\n "; // line 26 echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, twig_template_get_attributes($this, isset($context["form"]) ? $context["form"] : null, "actions", array()), "html", null, true)); echo "\n </div>\n</div>\n"; }
protected function doDisplay(array $context, array $blocks = array()) { $__internal_e1940b593956ae6f342389aed5be826172d45f378e712b8a8b705a22cc93a994 = $this->env->getExtension("native_profiler"); $__internal_e1940b593956ae6f342389aed5be826172d45f378e712b8a8b705a22cc93a994->enter($__internal_e1940b593956ae6f342389aed5be826172d45f378e712b8a8b705a22cc93a994_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "TwigBundle:Exception:logs.html.twig")); // line 1 echo "<ol class=\"traces logs\">\n "; // line 2 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable(isset($context["logs"]) ? $context["logs"] : $this->getContext($context, "logs")); foreach ($context['_seq'] as $context["_key"] => $context["log"]) { // line 3 echo " <li"; if (twig_template_get_attributes($this, $context["log"], "priority", array()) >= 400) { echo " class=\"error\""; } elseif (twig_template_get_attributes($this, $context["log"], "priority", array()) >= 300) { echo " class=\"warning\""; } echo ">\n "; // line 4 echo twig_escape_filter($this->env, twig_template_get_attributes($this, $context["log"], "priorityName", array()), "html", null, true); echo " - "; echo twig_escape_filter($this->env, twig_template_get_attributes($this, $context["log"], "message", array()), "html", null, true); echo "\n </li>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['log'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 7 echo "</ol>\n"; $__internal_e1940b593956ae6f342389aed5be826172d45f378e712b8a8b705a22cc93a994->leave($__internal_e1940b593956ae6f342389aed5be826172d45f378e712b8a8b705a22cc93a994_prof); }
protected function doDisplay(array $context, array $blocks = array()) { $__internal_de1335451d803f7f52c92fe52b5646b10e1a66670ce8461037b110b6770dac3e = $this->env->getExtension("native_profiler"); $__internal_de1335451d803f7f52c92fe52b5646b10e1a66670ce8461037b110b6770dac3e->enter($__internal_de1335451d803f7f52c92fe52b5646b10e1a66670ce8461037b110b6770dac3e_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "@Twig/Exception/logs.html.twig")); // line 1 echo "<ol class=\"traces logs\">\n "; // line 2 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(isset($context["logs"]) ? $context["logs"] : $this->getContext($context, "logs")); foreach ($context['_seq'] as $context["_key"] => $context["log"]) { // line 3 echo " <li"; if (twig_template_get_attributes($this, $context["log"], "priority", array()) >= 400) { echo " class=\"error\""; } elseif (twig_template_get_attributes($this, $context["log"], "priority", array()) >= 300) { echo " class=\"warning\""; } echo ">\n "; // line 4 echo twig_escape_filter($this->env, twig_template_get_attributes($this, $context["log"], "priorityName", array()), "html", null, true); echo " - "; echo twig_escape_filter($this->env, twig_template_get_attributes($this, $context["log"], "message", array()), "html", null, true); echo "\n </li>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['log'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 7 echo "</ol>\n"; $__internal_de1335451d803f7f52c92fe52b5646b10e1a66670ce8461037b110b6770dac3e->leave($__internal_de1335451d803f7f52c92fe52b5646b10e1a66670ce8461037b110b6770dac3e_prof); }
public function block_body($context, array $blocks = array()) { $__internal_4da3a15e31e13bc6c7a2711f0964bba1381c9fc3ee1e83fcb236ec17cfdaa658 = $this->env->getExtension("native_profiler"); $__internal_4da3a15e31e13bc6c7a2711f0964bba1381c9fc3ee1e83fcb236ec17cfdaa658->enter($__internal_4da3a15e31e13bc6c7a2711f0964bba1381c9fc3ee1e83fcb236ec17cfdaa658_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "body")); // line 4 echo "<h1>Post list</h1>\n\n <thead>\n <tr>\n <th>Id</th>\n <th>Name</th>\n <th>Dni</th>\n <th>Age</th>\n <th>Active</th>\n <th>Created</th>\n <th>Updated</th>\n <th>Actions</th>\n </tr>\n </thead>\n <tbody>\n "; // line 19 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable(isset($context["entities"]) ? $context["entities"] : $this->getContext($context, "entities")); foreach ($context['_seq'] as $context["_key"] => $context["entity"]) { // line 20 echo " <tr>\n <td><a href=\""; // line 21 echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("_show", array("id" => twig_template_get_attributes($this, $context["entity"], "id", array()))), "html", null, true); echo "\">"; echo twig_escape_filter($this->env, twig_template_get_attributes($this, $context["entity"], "id", array()), "html", null, true); echo "</a></td>\n <td>"; // line 22 echo twig_escape_filter($this->env, twig_template_get_attributes($this, $context["entity"], "name", array()), "html", null, true); echo "</td>\n <td>"; // line 23 echo twig_escape_filter($this->env, twig_template_get_attributes($this, $context["entity"], "dni", array()), "html", null, true); echo "</td>\n <td>"; // line 24 echo twig_escape_filter($this->env, twig_template_get_attributes($this, $context["entity"], "age", array()), "html", null, true); echo "</td>\n <td>"; // line 25 echo twig_escape_filter($this->env, twig_template_get_attributes($this, $context["entity"], "active", array()), "html", null, true); echo "</td>\n <td>"; // line 26 if (twig_template_get_attributes($this, $context["entity"], "created", array())) { echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_template_get_attributes($this, $context["entity"], "created", array()), "Y-m-d H:i:s"), "html", null, true); } echo "</td>\n <td>"; // line 27 if (twig_template_get_attributes($this, $context["entity"], "updated", array())) { echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_template_get_attributes($this, $context["entity"], "updated", array()), "Y-m-d H:i:s"), "html", null, true); } echo "</td>\n <td>\n <ul>\n <li>\n <a type=\"button\" class=\"btn btn-info btn-xs\" href=\""; // line 31 echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("_show", array("id" => twig_template_get_attributes($this, $context["entity"], "id", array()))), "html", null, true); echo "\">show</a>\n </li>\n <li>\n <a type=\"button\" class=\"btn btn-warning btn-xs\" href=\""; // line 34 echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("_edit", array("id" => twig_template_get_attributes($this, $context["entity"], "id", array()))), "html", null, true); echo "\">edit</a>\n </li>\n </ul>\n </td>\n </tr>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['entity'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 40 echo " </tbody>\n\n <ul>\n <li>\n <a type=\"button\" href=\""; // line 44 echo $this->env->getExtension('routing')->getPath("_new"); echo "\" class=\"btn btn-success\">Create a new entry</a>\n \n </li>\n </ul>\n "; $__internal_4da3a15e31e13bc6c7a2711f0964bba1381c9fc3ee1e83fcb236ec17cfdaa658->leave($__internal_4da3a15e31e13bc6c7a2711f0964bba1381c9fc3ee1e83fcb236ec17cfdaa658_prof); }
protected function doDisplay(array $context, array $blocks = array()) { $tags = array("if" => 16, "for" => 18, "set" => 24, "trans" => 25); $filters = array(); $functions = array("path" => 24); try { $this->env->getExtension('sandbox')->checkSecurity(array('if', 'for', 'set', 'trans'), array(), array('path')); } catch (Twig_Sandbox_SecurityError $e) { $e->setTemplateFile($this->getTemplateName()); if ($e instanceof Twig_Sandbox_SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) { $e->setTemplateLine($tags[$e->getTagName()]); } elseif ($e instanceof Twig_Sandbox_SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) { $e->setTemplateLine($filters[$e->getFilterName()]); } elseif ($e instanceof Twig_Sandbox_SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) { $e->setTemplateLine($functions[$e->getFunctionName()]); } throw $e; } // line 16 if (isset($context["content"]) ? $context["content"] : null) { // line 17 echo " <ul class=\"admin-list\">\n "; // line 18 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(isset($context["types"]) ? $context["types"] : null); foreach ($context['_seq'] as $context["_key"] => $context["type"]) { // line 19 echo " <li class=\"clearfix\"><a href=\""; echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, twig_template_get_attributes($this, $context["type"], "url", array()), "html", null, true)); echo "\"><span class=\"label\">"; echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, twig_template_get_attributes($this, $context["type"], "label", array()), "html", null, true)); echo "</span><div class=\"description\">"; echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, twig_template_get_attributes($this, $context["type"], "description", array()), "html", null, true)); echo "</div></a></li>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['type'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 21 echo " </ul>\n"; } else { // line 23 echo " <p>\n "; // line 24 $context["create_content"] = $this->env->getExtension('drupal_core')->getPath("node.type_add"); // line 25 echo " "; echo t("You have not created any content types yet. Go to the <a href=\"@create_content\">content type creation page</a> to add a new content type.", array("@create_content" => isset($context["create_content"]) ? $context["create_content"] : null)); // line 28 echo " </p>\n"; } }
public function block_title($context, array $blocks = array()) { $__internal_54acae8fdde1f8c5c0efd102b5ff3bfd98dd17e6e061ec5b1d066eae8b9f52f3 = $this->env->getExtension("native_profiler"); $__internal_54acae8fdde1f8c5c0efd102b5ff3bfd98dd17e6e061ec5b1d066eae8b9f52f3->enter($__internal_54acae8fdde1f8c5c0efd102b5ff3bfd98dd17e6e061ec5b1d066eae8b9f52f3_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "title")); // line 8 echo " "; echo twig_escape_filter($this->env, twig_template_get_attributes($this, isset($context["exception"]) ? $context["exception"] : $this->getContext($context, "exception"), "message", array()), "html", null, true); echo " ("; echo twig_escape_filter($this->env, isset($context["status_code"]) ? $context["status_code"] : $this->getContext($context, "status_code"), "html", null, true); echo " "; echo twig_escape_filter($this->env, isset($context["status_text"]) ? $context["status_text"] : $this->getContext($context, "status_text"), "html", null, true); echo ")\n"; $__internal_54acae8fdde1f8c5c0efd102b5ff3bfd98dd17e6e061ec5b1d066eae8b9f52f3->leave($__internal_54acae8fdde1f8c5c0efd102b5ff3bfd98dd17e6e061ec5b1d066eae8b9f52f3_prof); }
public function block_title($context, array $blocks = array()) { $__internal_c93b70900d0128b8736a57368868deebff739113c89fc843926d0502e202a08f = $this->env->getExtension("native_profiler"); $__internal_c93b70900d0128b8736a57368868deebff739113c89fc843926d0502e202a08f->enter($__internal_c93b70900d0128b8736a57368868deebff739113c89fc843926d0502e202a08f_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "title")); // line 8 echo " "; echo twig_escape_filter($this->env, twig_template_get_attributes($this, isset($context["exception"]) ? $context["exception"] : $this->getContext($context, "exception"), "message", array()), "html", null, true); echo " ("; echo twig_escape_filter($this->env, isset($context["status_code"]) ? $context["status_code"] : $this->getContext($context, "status_code"), "html", null, true); echo " "; echo twig_escape_filter($this->env, isset($context["status_text"]) ? $context["status_text"] : $this->getContext($context, "status_text"), "html", null, true); echo ")\n"; $__internal_c93b70900d0128b8736a57368868deebff739113c89fc843926d0502e202a08f->leave($__internal_c93b70900d0128b8736a57368868deebff739113c89fc843926d0502e202a08f_prof); }
protected function doDisplay(array $context, array $blocks = array()) { $tags = array("set" => 17, "if" => 23); $filters = array(); $functions = array(); try { $this->env->getExtension('sandbox')->checkSecurity(array('set', 'if'), array(), array()); } catch (Twig_Sandbox_SecurityError $e) { $e->setTemplateFile($this->getTemplateName()); if ($e instanceof Twig_Sandbox_SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) { $e->setTemplateLine($tags[$e->getTagName()]); } elseif ($e instanceof Twig_Sandbox_SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) { $e->setTemplateLine($filters[$e->getFilterName()]); } elseif ($e instanceof Twig_Sandbox_SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) { $e->setTemplateLine($functions[$e->getFunctionName()]); } throw $e; } // line 17 $context["title_classes"] = array(0 => "label", 1 => isset($context["required"]) ? $context["required"] : null ? "js-form-required" : "", 2 => isset($context["required"]) ? $context["required"] : null ? "form-required" : ""); // line 23 if (isset($context["title"]) ? $context["title"] : null) { // line 24 echo " <h4"; echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, twig_template_get_attributes($this, isset($context["title_attributes"]) ? $context["title_attributes"] : null, "addClass", array(0 => isset($context["title_classes"]) ? $context["title_classes"] : null), "method"), "html", null, true)); echo ">"; echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, isset($context["title"]) ? $context["title"] : null, "html", null, true)); echo "</h4>\n"; } // line 26 echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, isset($context["content"]) ? $context["content"] : null, "html", null, true)); echo "\n"; // line 27 if (isset($context["errors"]) ? $context["errors"] : null) { // line 28 echo " <div class=\"form-item--error-message\">\n <strong>"; // line 29 echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, isset($context["errors"]) ? $context["errors"] : null, "html", null, true)); echo "</strong>\n </div>\n"; } // line 32 if (isset($context["description"]) ? $context["description"] : null) { // line 33 echo " <div class=\"description\">"; echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, isset($context["description"]) ? $context["description"] : null, "html", null, true)); echo "</div>\n"; } }
public function block_panel($context, array $blocks = array()) { $__internal_7e39e3ea40132717313a3f60420efa99914870455032d53d48247dfbac27d167 = $this->env->getExtension("native_profiler"); $__internal_7e39e3ea40132717313a3f60420efa99914870455032d53d48247dfbac27d167->enter($__internal_7e39e3ea40132717313a3f60420efa99914870455032d53d48247dfbac27d167_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "panel")); // line 25 echo " <h2>Exception</h2>\n\n "; // line 27 if (!twig_template_get_attributes($this, isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "hasexception", array())) { // line 28 echo " <p>\n <em>No exception was thrown and uncaught during the request.</em>\n </p>\n "; } else { // line 32 echo " <div class=\"sf-reset\">\n "; // line 33 echo $this->env->getExtension('http_kernel')->renderFragment($this->env->getExtension('routing')->getPath("_profiler_exception", array("token" => isset($context["token"]) ? $context["token"] : $this->getContext($context, "token")))); echo "\n </div>\n "; } $__internal_7e39e3ea40132717313a3f60420efa99914870455032d53d48247dfbac27d167->leave($__internal_7e39e3ea40132717313a3f60420efa99914870455032d53d48247dfbac27d167_prof); }
public function block_panel($context, array $blocks = array()) { $__internal_90829add55d6b60578c0a1d61e8a3bf0e4043181b36bcb7031e290da62d87314 = $this->env->getExtension("native_profiler"); $__internal_90829add55d6b60578c0a1d61e8a3bf0e4043181b36bcb7031e290da62d87314->enter($__internal_90829add55d6b60578c0a1d61e8a3bf0e4043181b36bcb7031e290da62d87314_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "panel")); // line 25 echo " <h2>Exceptions</h2>\n\n "; // line 27 if (!twig_template_get_attributes($this, isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "hasexception", array())) { // line 28 echo " <div class=\"empty\">\n <p>No exception was thrown and caught during the request.</p>\n </div>\n "; } else { // line 32 echo " <div class=\"sf-reset\">\n "; // line 33 echo $this->env->getExtension('http_kernel')->renderFragment($this->env->getExtension('routing')->getPath("_profiler_exception", array("token" => isset($context["token"]) ? $context["token"] : $this->getContext($context, "token")))); echo "\n </div>\n "; } $__internal_90829add55d6b60578c0a1d61e8a3bf0e4043181b36bcb7031e290da62d87314->leave($__internal_90829add55d6b60578c0a1d61e8a3bf0e4043181b36bcb7031e290da62d87314_prof); }
protected function doDisplay(array $context, array $blocks = array()) { $__internal_d3643328995384e70b78a78bc27694e6d20ec0a6874cef2ce1cf98dd470a244d = $this->env->getExtension("native_profiler"); $__internal_d3643328995384e70b78a78bc27694e6d20ec0a6874cef2ce1cf98dd470a244d->enter($__internal_d3643328995384e70b78a78bc27694e6d20ec0a6874cef2ce1cf98dd470a244d_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "TwigBundle:Exception:traces.txt.twig")); // line 1 if (twig_length_filter($this->env, twig_template_get_attributes($this, isset($context["exception"]) ? $context["exception"] : $this->getContext($context, "exception"), "trace", array()))) { // line 2 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable(twig_template_get_attributes($this, isset($context["exception"]) ? $context["exception"] : $this->getContext($context, "exception"), "trace", array())); foreach ($context['_seq'] as $context["_key"] => $context["trace"]) { // line 3 $this->loadTemplate("TwigBundle:Exception:trace.txt.twig", "TwigBundle:Exception:traces.txt.twig", 3)->display(array("trace" => $context["trace"])); // line 4 echo "\n"; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['trace'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; } $__internal_d3643328995384e70b78a78bc27694e6d20ec0a6874cef2ce1cf98dd470a244d->leave($__internal_d3643328995384e70b78a78bc27694e6d20ec0a6874cef2ce1cf98dd470a244d_prof); }
protected function doDisplay(array $context, array $blocks = array()) { $__internal_6e7f518bd2ad1b7be2daedabdffc30a2ae124e0a8aae963cb7512f8bae126d72 = $this->env->getExtension("native_profiler"); $__internal_6e7f518bd2ad1b7be2daedabdffc30a2ae124e0a8aae963cb7512f8bae126d72->enter($__internal_6e7f518bd2ad1b7be2daedabdffc30a2ae124e0a8aae963cb7512f8bae126d72_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "@Twig/Exception/traces.txt.twig")); // line 1 if (twig_length_filter($this->env, twig_template_get_attributes($this, isset($context["exception"]) ? $context["exception"] : $this->getContext($context, "exception"), "trace", array()))) { // line 2 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(twig_template_get_attributes($this, isset($context["exception"]) ? $context["exception"] : $this->getContext($context, "exception"), "trace", array())); foreach ($context['_seq'] as $context["_key"] => $context["trace"]) { // line 3 $this->loadTemplate("@Twig/Exception/trace.txt.twig", "@Twig/Exception/traces.txt.twig", 3)->display(array("trace" => $context["trace"])); // line 4 echo "\n"; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['trace'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; } $__internal_6e7f518bd2ad1b7be2daedabdffc30a2ae124e0a8aae963cb7512f8bae126d72->leave($__internal_6e7f518bd2ad1b7be2daedabdffc30a2ae124e0a8aae963cb7512f8bae126d72_prof); }
protected function doDisplay(array $context, array $blocks = array()) { $tags = array("if" => 18, "set" => 20); $filters = array(); $functions = array(); try { $this->env->getExtension('sandbox')->checkSecurity(array('if', 'set'), array(), array()); } catch (Twig_Sandbox_SecurityError $e) { $e->setTemplateFile($this->getTemplateName()); if ($e instanceof Twig_Sandbox_SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) { $e->setTemplateLine($tags[$e->getTagName()]); } elseif ($e instanceof Twig_Sandbox_SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) { $e->setTemplateLine($filters[$e->getFilterName()]); } elseif ($e instanceof Twig_Sandbox_SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) { $e->setTemplateLine($functions[$e->getFunctionName()]); } throw $e; } // line 16 echo "<div class=\"js-text-format-wrapper text-format-wrapper js-form-item form-item\">\n "; // line 17 echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, isset($context["children"]) ? $context["children"] : null, "html", null, true)); echo "\n "; // line 18 if (isset($context["description"]) ? $context["description"] : null) { // line 19 echo " "; // line 20 $context["classes"] = array(0 => isset($context["aria_description"]) ? $context["aria_description"] : null ? "description" : ""); // line 24 echo " <div"; echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, twig_template_get_attributes($this, isset($context["attributes"]) ? $context["attributes"] : null, "addClass", array(0 => isset($context["classes"]) ? $context["classes"] : null), "method"), "html", null, true)); echo ">"; echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, isset($context["description"]) ? $context["description"] : null, "html", null, true)); echo "</div>\n "; } // line 26 echo "</div>\n"; }
public function block_body($context, array $blocks = array()) { $__internal_52ebb7e1133c57c66386ae4afb82e7798c27f55387e05e0c971ba0e6fed39875 = $this->env->getExtension("native_profiler"); $__internal_52ebb7e1133c57c66386ae4afb82e7798c27f55387e05e0c971ba0e6fed39875->enter($__internal_52ebb7e1133c57c66386ae4afb82e7798c27f55387e05e0c971ba0e6fed39875_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "body")); // line 4 echo "<h1>Post</h1>\n\n <table class=\"record_properties\">\n <tbody>\n <tr>\n <th>Id</th>\n <td>"; // line 10 echo twig_escape_filter($this->env, twig_template_get_attributes($this, isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "id", array()), "html", null, true); echo "</td>\n </tr>\n <tr>\n <th>Name</th>\n <td>"; // line 14 echo twig_escape_filter($this->env, twig_template_get_attributes($this, isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "name", array()), "html", null, true); echo "</td>\n </tr>\n <tr>\n <th>Dni</th>\n <td>"; // line 18 echo twig_escape_filter($this->env, twig_template_get_attributes($this, isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "dni", array()), "html", null, true); echo "</td>\n </tr>\n <tr>\n <th>Age</th>\n <td>"; // line 22 echo twig_escape_filter($this->env, twig_template_get_attributes($this, isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "age", array()), "html", null, true); echo "</td>\n </tr>\n <tr>\n <th>Active</th>\n <td>"; // line 26 echo twig_escape_filter($this->env, twig_template_get_attributes($this, isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "active", array()), "html", null, true); echo "</td>\n </tr>\n <tr>\n <th>Created</th>\n <td>"; // line 30 echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_template_get_attributes($this, isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "created", array()), "Y-m-d H:i:s"), "html", null, true); echo "</td>\n </tr>\n <tr>\n <th>Updated</th>\n <td>"; // line 34 echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_template_get_attributes($this, isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "updated", array()), "Y-m-d H:i:s"), "html", null, true); echo "</td>\n </tr>\n </tbody>\n </table>\n\n <ul class=\"record_actions\">\n <li>\n <a href=\""; // line 41 echo $this->env->getExtension('routing')->getPath(""); echo "\">\n Back to the list\n </a>\n </li>\n <li>\n <a href=\""; // line 46 echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("_edit", array("id" => twig_template_get_attributes($this, isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), "id", array()))), "html", null, true); echo "\">\n Edit\n </a>\n </li>\n <li>"; // line 50 echo $this->env->getExtension('form')->renderer->renderBlock(isset($context["delete_form"]) ? $context["delete_form"] : $this->getContext($context, "delete_form"), 'form'); echo "</li>\n</ul>\n"; $__internal_52ebb7e1133c57c66386ae4afb82e7798c27f55387e05e0c971ba0e6fed39875->leave($__internal_52ebb7e1133c57c66386ae4afb82e7798c27f55387e05e0c971ba0e6fed39875_prof); }
public function block_toolbar($context, array $blocks = array()) { $__internal_8c1766ab88d54724a9c6edf169daf0edefc62472f4a0c5e9691f2a65a2a195ec = $this->env->getExtension("native_profiler"); $__internal_8c1766ab88d54724a9c6edf169daf0edefc62472f4a0c5e9691f2a65a2a195ec->enter($__internal_8c1766ab88d54724a9c6edf169daf0edefc62472f4a0c5e9691f2a65a2a195ec_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "toolbar")); // line 4 echo " "; ob_start(); // line 5 echo " "; $context["status_color"] = twig_template_get_attributes($this, isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "memory", array()) / 1024 / 1024 > 50 ? "yellow" : ""; // line 6 echo " "; echo twig_include($this->env, $context, "@WebProfiler/Icon/memory.svg"); echo "\n <span class=\"sf-toolbar-value\">"; // line 7 echo twig_escape_filter($this->env, sprintf("%.1f", twig_template_get_attributes($this, isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "memory", array()) / 1024 / 1024), "html", null, true); echo "</span>\n <span class=\"sf-toolbar-label\">MB</span>\n "; $context["icon"] = '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 10 echo "\n "; // line 11 ob_start(); // line 12 echo " <div class=\"sf-toolbar-info-piece\">\n <b>Peak memory usage</b>\n <span>"; // line 14 echo twig_escape_filter($this->env, sprintf("%.1f", twig_template_get_attributes($this, isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "memory", array()) / 1024 / 1024), "html", null, true); echo " MB</span>\n </div>\n\n <div class=\"sf-toolbar-info-piece\">\n <b>PHP memory limit</b>\n <span>"; // line 19 echo twig_escape_filter($this->env, twig_template_get_attributes($this, isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "memoryLimit", array()) == -1 ? "Unlimited" : sprintf("%.0f MB", twig_template_get_attributes($this, isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "memoryLimit", array()) / 1024 / 1024), "html", null, true); echo "</span>\n </div>\n "; $context["text"] = '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 22 echo "\n "; // line 23 echo twig_include($this->env, $context, "@WebProfiler/Profiler/toolbar_item.html.twig", array("link" => isset($context["profiler_url"]) ? $context["profiler_url"] : $this->getContext($context, "profiler_url"), "name" => "time", "status" => isset($context["status_color"]) ? $context["status_color"] : $this->getContext($context, "status_color"))); echo "\n"; $__internal_8c1766ab88d54724a9c6edf169daf0edefc62472f4a0c5e9691f2a65a2a195ec->leave($__internal_8c1766ab88d54724a9c6edf169daf0edefc62472f4a0c5e9691f2a65a2a195ec_prof); }
public function getform_tree_details($__name__ = null, $__data__ = null, $__forms_by_hash__ = null, ...$__varargs__) { $context = $this->env->mergeGlobals(array("name" => $__name__, "data" => $__data__, "forms_by_hash" => $__forms_by_hash__, "varargs" => $__varargs__)); $blocks = array(); ob_start(); try { $__internal_962eb7e0cbc57e56d2e21d81a2c40cbb8359edbfaa8fa47da4274a12a7bff269 = $this->env->getExtension("native_profiler"); $__internal_962eb7e0cbc57e56d2e21d81a2c40cbb8359edbfaa8fa47da4274a12a7bff269->enter($__internal_962eb7e0cbc57e56d2e21d81a2c40cbb8359edbfaa8fa47da4274a12a7bff269_prof = new Twig_Profiler_Profile($this->getTemplateName(), "macro", "form_tree_details")); // line 458 echo " "; $context["tree"] = $this; // line 459 echo " <div class=\"tree-details\" "; if (twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : null, "id", array(), "any", true, true)) { echo "id=\""; echo twig_escape_filter($this->env, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "id", array()), "html", null, true); echo "-details\""; } echo ">\n <h2>\n "; // line 461 echo twig_escape_filter($this->env, array_key_exists("name", $context) ? _twig_default_filter(isset($context["name"]) ? $context["name"] : $this->getContext($context, "name"), "(no name)") : "(no name)", "html", null, true); echo "\n "; // line 462 if (twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : null, "type_class", array(), "any", true, true) && twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : null, "type", array(), "any", true, true)) { // line 463 echo " <span class=\"form-type\">[<abbr title=\""; echo twig_escape_filter($this->env, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "type_class", array()), "html", null, true); echo "\">"; echo twig_escape_filter($this->env, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "type", array()), "html", null, true); echo "</abbr>]</span>\n "; } // line 465 echo " </h2>\n\n "; // line 467 if (twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : null, "errors", array(), "any", true, true) && twig_length_filter($this->env, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "errors", array())) > 0) { // line 468 echo " <div class=\"errors\">\n <h3>\n <a class=\"toggle-button\" data-toggle-target-id=\""; // line 470 echo twig_escape_filter($this->env, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "id", array()), "html", null, true); echo "-errors\" href=\"#\">\n Errors <span class=\"toggle-icon\"></span>\n </a>\n </h3>\n\n <table id=\""; // line 475 echo twig_escape_filter($this->env, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "id", array()), "html", null, true); echo "-errors\">\n <thead>\n <tr>\n <th>Message</th>\n <th>Origin</th>\n <th>Cause</th>\n </tr>\n </thead>\n <tbody>\n "; // line 484 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "errors", array())); foreach ($context['_seq'] as $context["_key"] => $context["error"]) { // line 485 echo " <tr>\n <td>"; // line 486 echo twig_escape_filter($this->env, twig_template_get_attributes($this, $context["error"], "message", array()), "html", null, true); echo "</td>\n <td>\n "; // line 488 if (twig_test_empty(twig_template_get_attributes($this, $context["error"], "origin", array()))) { // line 489 echo " <em>This form.</em>\n "; } elseif (!twig_template_get_attributes($this, isset($context["forms_by_hash"]) ? $context["forms_by_hash"] : null, twig_template_get_attributes($this, $context["error"], "origin", array()), array(), "array", true, true)) { // line 491 echo " <em>Unknown.</em>\n "; } else { // line 493 echo " "; echo twig_escape_filter($this->env, twig_template_get_attributes($this, twig_template_get_attributes($this, isset($context["forms_by_hash"]) ? $context["forms_by_hash"] : $this->getContext($context, "forms_by_hash"), twig_template_get_attributes($this, $context["error"], "origin", array()), array(), "array"), "name", array()), "html", null, true); echo "\n "; } // line 495 echo " </td>\n <td>\n "; // line 497 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(twig_template_get_attributes($this, $context["error"], "trace", array())); $context['_iterated'] = false; $context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true); if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) { $length = count($context['_seq']); $context['loop']['revindex0'] = $length - 1; $context['loop']['revindex'] = $length; $context['loop']['length'] = $length; $context['loop']['last'] = 1 === $length; } foreach ($context['_seq'] as $context["_key"] => $context["trace"]) { // line 498 echo " "; if (!twig_template_get_attributes($this, $context["loop"], "first", array())) { // line 499 echo " <span class=\"newline\">Caused by:</span>\n "; } // line 501 echo "\n "; // line 502 if (twig_template_get_attributes($this, $context["trace"], "root", array(), "any", true, true)) { // line 503 echo " <strong class=\"newline\">"; echo twig_escape_filter($this->env, twig_template_get_attributes($this, $context["trace"], "class", array()), "html", null, true); echo "</strong>\n <pre>"; // line 505 echo twig_escape_filter($this->env, twig_template_get_attributes($this, $context["trace"], "root", array()), "html", null, true); // line 506 if (!twig_test_empty(twig_template_get_attributes($this, $context["trace"], "path", array()))) { // line 507 if (twig_first($this->env, twig_template_get_attributes($this, $context["trace"], "path", array())) != "[") { echo "."; } // line 508 echo twig_escape_filter($this->env, twig_template_get_attributes($this, $context["trace"], "path", array()), "html", null, true); } // line 509 echo " = "; echo twig_escape_filter($this->env, twig_template_get_attributes($this, $context["trace"], "value", array()), "html", null, true); // line 510 echo "</pre>\n "; } elseif (twig_template_get_attributes($this, $context["trace"], "message", array(), "any", true, true)) { // line 512 echo " <strong class=\"newline\">"; echo twig_escape_filter($this->env, twig_template_get_attributes($this, $context["trace"], "class", array()), "html", null, true); echo "</strong>\n <pre>"; // line 513 echo twig_escape_filter($this->env, twig_template_get_attributes($this, $context["trace"], "message", array()), "html", null, true); echo "</pre>\n "; } else { // line 515 echo " <pre>"; echo twig_escape_filter($this->env, $context["trace"], "html", null, true); echo "</pre>\n "; } // line 517 echo " "; $context['_iterated'] = true; ++$context['loop']['index0']; ++$context['loop']['index']; $context['loop']['first'] = false; if (isset($context['loop']['length'])) { --$context['loop']['revindex0']; --$context['loop']['revindex']; $context['loop']['last'] = 0 === $context['loop']['revindex0']; } } if (!$context['_iterated']) { // line 518 echo " <em>Unknown.</em>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['trace'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 520 echo " </td>\n </tr>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 523 echo " </tbody>\n </table>\n </div>\n "; } // line 527 echo "\n "; // line 528 if (twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : null, "default_data", array(), "any", true, true)) { // line 529 echo " <h3>\n <a class=\"toggle-button\" data-toggle-target-id=\""; // line 530 echo twig_escape_filter($this->env, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "id", array()), "html", null, true); echo "-default_data\" href=\"#\">\n Default Data <span class=\"toggle-icon\"></span>\n </a>\n </h3>\n\n <div id=\""; // line 535 echo twig_escape_filter($this->env, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "id", array()), "html", null, true); echo "-default_data\">\n <table>\n <thead>\n <tr>\n <th width=\"180\">Property</th>\n <th>Value</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <th class=\"font-normal\" scope=\"row\">Model Format</th>\n <td>\n "; // line 547 if (twig_template_get_attributes($this, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : null, "default_data", array(), "any", false, true), "model", array(), "any", true, true)) { // line 548 echo " "; echo twig_escape_filter($this->env, twig_template_get_attributes($this, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "default_data", array()), "model", array()), "html", null, true); echo "\n "; } else { // line 550 echo " <em class=\"font-normal text-muted\">same as normalized format</em>\n "; } // line 552 echo " </td>\n </tr>\n <tr>\n <th class=\"font-normal\" scope=\"row\">Normalized Format</th>\n <td>"; // line 556 echo twig_escape_filter($this->env, twig_template_get_attributes($this, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "default_data", array()), "norm", array()), "html", null, true); echo "</td>\n </tr>\n <tr>\n <th class=\"font-normal\" scope=\"row\">View Format</th>\n <td>\n "; // line 561 if (twig_template_get_attributes($this, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : null, "default_data", array(), "any", false, true), "view", array(), "any", true, true)) { // line 562 echo " "; echo twig_escape_filter($this->env, twig_template_get_attributes($this, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "default_data", array()), "view", array()), "html", null, true); echo "\n "; } else { // line 564 echo " <em class=\"font-normal text-muted\">same as normalized format</em>\n "; } // line 566 echo " </td>\n </tr>\n </tbody>\n </table>\n </div>\n "; } // line 572 echo "\n "; // line 573 if (twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : null, "submitted_data", array(), "any", true, true)) { // line 574 echo " <h3>\n <a class=\"toggle-button\" data-toggle-target-id=\""; // line 575 echo twig_escape_filter($this->env, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "id", array()), "html", null, true); echo "-submitted_data\" href=\"#\">\n Submitted Data <span class=\"toggle-icon\"></span>\n </a>\n </h3>\n\n <div id=\""; // line 580 echo twig_escape_filter($this->env, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "id", array()), "html", null, true); echo "-submitted_data\">\n "; // line 581 if (twig_template_get_attributes($this, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : null, "submitted_data", array(), "any", false, true), "norm", array(), "any", true, true)) { // line 582 echo " <table>\n <thead>\n <tr>\n <th width=\"180\">Property</th>\n <th>Value</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <th class=\"font-normal\" scope=\"row\">View Format</th>\n <td>\n "; // line 593 if (twig_template_get_attributes($this, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : null, "submitted_data", array(), "any", false, true), "view", array(), "any", true, true)) { // line 594 echo " "; echo twig_escape_filter($this->env, twig_template_get_attributes($this, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "submitted_data", array()), "view", array()), "html", null, true); echo "\n "; } else { // line 596 echo " <em class=\"font-normal text-muted\">same as normalized format</em>\n "; } // line 598 echo " </td>\n </tr>\n <tr>\n <th class=\"font-normal\" scope=\"row\">Normalized Format</th>\n <td>"; // line 602 echo twig_escape_filter($this->env, twig_template_get_attributes($this, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "submitted_data", array()), "norm", array()), "html", null, true); echo "</td>\n </tr>\n <tr>\n <th class=\"font-normal\" scope=\"row\">Model Format</th>\n <td>\n "; // line 607 if (twig_template_get_attributes($this, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : null, "submitted_data", array(), "any", false, true), "model", array(), "any", true, true)) { // line 608 echo " "; echo twig_escape_filter($this->env, twig_template_get_attributes($this, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "submitted_data", array()), "model", array()), "html", null, true); echo "\n "; } else { // line 610 echo " <em class=\"font-normal text-muted\">same as normalized format</em>\n "; } // line 612 echo " </td>\n </tr>\n </tbody>\n </table>\n "; } else { // line 617 echo " <div class=\"empty\">\n <p>This form was not submitted.</p>\n </div>\n "; } // line 621 echo " </div>\n "; } // line 623 echo "\n "; // line 624 if (twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : null, "passed_options", array(), "any", true, true)) { // line 625 echo " <h3>\n <a class=\"toggle-button\" data-toggle-target-id=\""; // line 626 echo twig_escape_filter($this->env, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "id", array()), "html", null, true); echo "-passed_options\" href=\"#\">\n Passed Options <span class=\"toggle-icon\"></span>\n </a>\n </h3>\n\n <div id=\""; // line 631 echo twig_escape_filter($this->env, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "id", array()), "html", null, true); echo "-passed_options\">\n "; // line 632 if (twig_length_filter($this->env, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "passed_options", array()))) { // line 633 echo " <table>\n <thead>\n <tr>\n <th width=\"180\">Option</th>\n <th>Passed Value</th>\n <th>Resolved Value</th>\n </tr>\n </thead>\n <tbody>\n "; // line 642 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "passed_options", array())); foreach ($context['_seq'] as $context["option"] => $context["value"]) { // line 643 echo " <tr>\n <th>"; // line 644 echo twig_escape_filter($this->env, $context["option"], "html", null, true); echo "</th>\n <td>"; // line 645 echo twig_escape_filter($this->env, $context["value"], "html", null, true); echo "</td>\n <td>\n "; // line 647 if (twig_template_get_attributes($this, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "resolved_options", array()), $context["option"], array(), "array") === $context["value"]) { // line 648 echo " <em class=\"font-normal text-muted\">same as passed value</em>\n "; } else { // line 650 echo " "; echo twig_escape_filter($this->env, twig_template_get_attributes($this, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "resolved_options", array()), $context["option"], array(), "array"), "html", null, true); echo "\n "; } // line 652 echo " </td>\n </tr>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['option'], $context['value'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 655 echo " </tbody>\n </table>\n "; } else { // line 658 echo " <div class=\"empty\">\n <p>No options where passed when constructing this form.</p>\n </div>\n "; } // line 662 echo " </div>\n "; } // line 664 echo "\n "; // line 665 if (twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : null, "resolved_options", array(), "any", true, true)) { // line 666 echo " <h3>\n <a class=\"toggle-button\" data-toggle-target-id=\""; // line 667 echo twig_escape_filter($this->env, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "id", array()), "html", null, true); echo "-resolved_options\" href=\"#\">\n Resolved Options <span class=\"toggle-icon\"></span>\n </a>\n </h3>\n\n <div id=\""; // line 672 echo twig_escape_filter($this->env, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "id", array()), "html", null, true); echo "-resolved_options\" class=\"hidden\">\n <table>\n <thead>\n <tr>\n <th width=\"180\">Option</th>\n <th>Value</th>\n </tr>\n </thead>\n <tbody>\n "; // line 681 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "resolved_options", array())); foreach ($context['_seq'] as $context["option"] => $context["value"]) { // line 682 echo " <tr>\n <th scope=\"row\">"; // line 683 echo twig_escape_filter($this->env, $context["option"], "html", null, true); echo "</th>\n <td>"; // line 684 echo twig_escape_filter($this->env, $context["value"], "html", null, true); echo "</td>\n </tr>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['option'], $context['value'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 687 echo " </tbody>\n </table>\n </div>\n "; } // line 691 echo "\n "; // line 692 if (twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : null, "view_vars", array(), "any", true, true)) { // line 693 echo " <h3>\n <a class=\"toggle-button\" data-toggle-target-id=\""; // line 694 echo twig_escape_filter($this->env, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "id", array()), "html", null, true); echo "-view_vars\" href=\"#\">\n View Variables <span class=\"toggle-icon\"></span>\n </a>\n </h3>\n\n <div id=\""; // line 699 echo twig_escape_filter($this->env, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "id", array()), "html", null, true); echo "-view_vars\" class=\"hidden\">\n <table>\n <thead>\n <tr>\n <th width=\"180\">Variable</th>\n <th>Value</th>\n </tr>\n </thead>\n <tbody>\n "; // line 708 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "view_vars", array())); foreach ($context['_seq'] as $context["variable"] => $context["value"]) { // line 709 echo " <tr>\n <th scope=\"row\">"; // line 710 echo twig_escape_filter($this->env, $context["variable"], "html", null, true); echo "</th>\n <td>"; // line 711 echo twig_escape_filter($this->env, $context["value"], "html", null, true); echo "</td>\n </tr>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['variable'], $context['value'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 714 echo " </tbody>\n </table>\n </div>\n "; } // line 718 echo " </div>\n\n "; // line 720 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "children", array())); foreach ($context['_seq'] as $context["childName"] => $context["childData"]) { // line 721 echo " "; echo $context["tree"]->getform_tree_details($context["childName"], $context["childData"], isset($context["forms_by_hash"]) ? $context["forms_by_hash"] : $this->getContext($context, "forms_by_hash")); echo "\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['childName'], $context['childData'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; $__internal_962eb7e0cbc57e56d2e21d81a2c40cbb8359edbfaa8fa47da4274a12a7bff269->leave($__internal_962eb7e0cbc57e56d2e21d81a2c40cbb8359edbfaa8fa47da4274a12a7bff269_prof); } catch (Exception $e) { ob_end_clean(); throw $e; } return '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); }
public function block_panel($context, array $blocks = array()) { $__internal_fb2e4745cab0bbeb89a429fec0c6b5eed68e4854ce0407d91176b77a943fa90e = $this->env->getExtension("native_profiler"); $__internal_fb2e4745cab0bbeb89a429fec0c6b5eed68e4854ce0407d91176b77a943fa90e->enter($__internal_fb2e4745cab0bbeb89a429fec0c6b5eed68e4854ce0407d91176b77a943fa90e_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "panel")); // line 55 echo " <h2>dump()</h2>\n\n <style>\n li.sf-dump {\n list-style-type: disc;\n }\n .sf-dump ol>li {\n padding: 0;\n }\n .sf-dump a {\n cursor: pointer;\n }\n .sf-dump-compact {\n display: none;\n }\n </style>\n\n "; // line 72 if (twig_template_get_attributes($this, isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "dumpsCount", array())) { // line 73 echo " <ul class=\"alt\">\n "; // line 74 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable(twig_template_get_attributes($this, isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector"), "getDumps", array(0 => "html"), "method")); foreach ($context['_seq'] as $context["_key"] => $context["dump"]) { // line 75 echo " <li class=\"sf-dump sf-reset\">\n in\n "; // line 77 if (twig_template_get_attributes($this, $context["dump"], "line", array())) { // line 78 echo " "; $context["link"] = $this->env->getExtension('code')->getFileLink(twig_template_get_attributes($this, $context["dump"], "file", array()), twig_template_get_attributes($this, $context["dump"], "line", array())); // line 79 echo " "; if (isset($context["link"]) ? $context["link"] : $this->getContext($context, "link")) { // line 80 echo " <a href=\""; echo twig_escape_filter($this->env, isset($context["link"]) ? $context["link"] : $this->getContext($context, "link"), "html", null, true); echo "\" title=\""; echo twig_escape_filter($this->env, twig_template_get_attributes($this, $context["dump"], "file", array()), "html", null, true); echo "\">"; echo twig_escape_filter($this->env, twig_template_get_attributes($this, $context["dump"], "name", array()), "html", null, true); echo "</a>\n "; } else { // line 82 echo " <abbr title=\""; echo twig_escape_filter($this->env, twig_template_get_attributes($this, $context["dump"], "file", array()), "html", null, true); echo "\">"; echo twig_escape_filter($this->env, twig_template_get_attributes($this, $context["dump"], "name", array()), "html", null, true); echo "</abbr>\n "; } // line 84 echo " "; } else { // line 85 echo " "; echo twig_escape_filter($this->env, twig_template_get_attributes($this, $context["dump"], "name", array()), "html", null, true); echo "\n "; } // line 87 echo " line "; echo twig_escape_filter($this->env, twig_template_get_attributes($this, $context["dump"], "line", array()), "html", null, true); echo ":\n <a onclick=\"var s = this.nextElementSibling; if ('sf-dump-compact' == s.className) {this.innerHTML = '▼'; s.className = 'sf-dump-expanded';} else {this.innerHTML = '▶'; s.className = 'sf-dump-compact';}\">▶</a>\n <span class=\"sf-dump-compact\">\n "; // line 90 if (twig_template_get_attributes($this, $context["dump"], "fileExcerpt", array())) { echo twig_template_get_attributes($this, $context["dump"], "fileExcerpt", array()); } else { echo $this->env->getExtension('code')->fileExcerpt(twig_template_get_attributes($this, $context["dump"], "file", array()), twig_template_get_attributes($this, $context["dump"], "line", array())); } // line 91 echo " </span>\n\n "; // line 93 echo twig_template_get_attributes($this, $context["dump"], "data", array()); echo "\n </li>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['dump'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 96 echo " </ul>\n "; } else { // line 98 echo " <p>\n <em>No dumped variable</em>\n </p>\n "; } $__internal_fb2e4745cab0bbeb89a429fec0c6b5eed68e4854ce0407d91176b77a943fa90e->leave($__internal_fb2e4745cab0bbeb89a429fec0c6b5eed68e4854ce0407d91176b77a943fa90e_prof); }
public function getAttribute($object, $item, array $arguments = array(), $type = Twig_Template::ANY_CALL, $isDefinedTest = false, $ignoreStrictCheck = false) { if ($this->useExtGetAttribute) { return twig_template_get_attributes($this, $object, $item, $arguments, $type, $isDefinedTest, $ignoreStrictCheck); } else { return parent::getAttribute($object, $item, $arguments, $type, $isDefinedTest, $ignoreStrictCheck); } }
protected function doDisplay(array $context, array $blocks = array()) { $tags = array("if" => 19, "for" => 28, "set" => 31); $filters = array("t" => 20, "length" => 23, "clean_class" => 33, "replace" => 45); $functions = array(); try { $this->env->getExtension('sandbox')->checkSecurity(array('if', 'for', 'set'), array('t', 'length', 'clean_class', 'replace'), array()); } catch (Twig_Sandbox_SecurityError $e) { $e->setTemplateFile($this->getTemplateName()); if ($e instanceof Twig_Sandbox_SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) { $e->setTemplateLine($tags[$e->getTagName()]); } elseif ($e instanceof Twig_Sandbox_SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) { $e->setTemplateLine($filters[$e->getFilterName()]); } elseif ($e instanceof Twig_Sandbox_SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) { $e->setTemplateLine($functions[$e->getFunctionName()]); } throw $e; } // line 19 if (isset($context["multiple"]) ? $context["multiple"] : null) { // line 20 echo " <h2>"; echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->renderVar(t("Text Formats"))); echo "</h2>\n"; } // line 22 echo "\n"; // line 23 if (twig_length_filter($this->env, isset($context["tips"]) ? $context["tips"] : null)) { // line 24 echo " "; if (isset($context["multiple"]) ? $context["multiple"] : null) { // line 25 echo " <div class=\"compose-tips\">\n "; } // line 27 echo "\n "; // line 28 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(isset($context["tips"]) ? $context["tips"] : null); foreach ($context['_seq'] as $context["name"] => $context["tip"]) { // line 29 echo " "; if (isset($context["multiple"]) ? $context["multiple"] : null) { // line 30 echo " "; // line 31 $context["tip_classes"] = array(0 => "filter-type", 1 => "filter-" . \Drupal\Component\Utility\Html::getClass($context["name"])); // line 36 echo " <div"; echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, twig_template_get_attributes($this, twig_template_get_attributes($this, $context["tip"], "attributes", array()), "addClass", array(0 => isset($context["tip_classes"]) ? $context["tip_classes"] : null), "method"), "html", null, true)); echo ">\n <h3>"; // line 37 echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, twig_template_get_attributes($this, $context["tip"], "name", array()), "html", null, true)); echo "</h3>\n "; } // line 39 echo "\n "; // line 40 if (twig_length_filter($this->env, twig_template_get_attributes($this, $context["tip"], "list", array()))) { // line 41 echo " <ul class=\"tips\">\n "; // line 42 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(twig_template_get_attributes($this, $context["tip"], "list", array())); foreach ($context['_seq'] as $context["_key"] => $context["item"]) { // line 43 echo " "; // line 44 $context["item_classes"] = array(0 => isset($context["long"]) ? $context["long"] : null ? "filter-" . twig_replace_filter(twig_template_get_attributes($this, $context["item"], "id", array()), array("/" => "-")) : ""); // line 48 echo " <li"; echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, twig_template_get_attributes($this, twig_template_get_attributes($this, $context["item"], "attributes", array()), "addClass", array(0 => isset($context["item_classes"]) ? $context["item_classes"] : null), "method"), "html", null, true)); echo ">"; echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, twig_template_get_attributes($this, $context["item"], "tip", array()), "html", null, true)); echo "</li>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 50 echo " </ul>\n "; } // line 52 echo "\n "; // line 53 if (isset($context["multiple"]) ? $context["multiple"] : null) { // line 54 echo " </div>\n "; } // line 56 echo " "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['name'], $context['tip'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 57 echo "\n "; // line 58 if (isset($context["multiple"]) ? $context["multiple"] : null) { // line 59 echo " </div>\n "; } } }
public function getdisplay_message($__log_index__ = null, $__log__ = null, $__is_deprecation__ = null) { $context = $this->env->mergeGlobals(array("log_index" => $__log_index__, "log" => $__log__, "is_deprecation" => $__is_deprecation__)); $blocks = array(); ob_start(); try { $__internal_3b0f944a3245f3c6dd14a0db57566096e11b106b123288174f06817a1b9dce73 = $this->env->getExtension("native_profiler"); $__internal_3b0f944a3245f3c6dd14a0db57566096e11b106b123288174f06817a1b9dce73->enter($__internal_3b0f944a3245f3c6dd14a0db57566096e11b106b123288174f06817a1b9dce73_prof = new Twig_Profiler_Profile($this->getTemplateName(), "macro", "display_message")); // line 113 echo " "; if (isset($context["is_deprecation"]) ? $context["is_deprecation"] : $this->getContext($context, "is_deprecation")) { // line 114 echo " "; $context["stack"] = twig_template_get_attributes($this, twig_template_get_attributes($this, isset($context["log"]) ? $context["log"] : null, "context", array(), "any", false, true), "stack", array(), "any", true, true) ? _twig_default_filter(twig_template_get_attributes($this, twig_template_get_attributes($this, isset($context["log"]) ? $context["log"] : null, "context", array(), "any", false, true), "stack", array()), array()) : array(); // line 115 echo " "; $context["id"] = "sf-call-stack-" . (isset($context["log_index"]) ? $context["log_index"] : $this->getContext($context, "log_index")); // line 116 echo "\n DEPRECATED - "; // line 117 echo twig_escape_filter($this->env, twig_template_get_attributes($this, isset($context["log"]) ? $context["log"] : $this->getContext($context, "log"), "message", array()), "html", null, true); echo "\n\n "; // line 119 if (isset($context["stack"]) ? $context["stack"] : $this->getContext($context, "stack")) { // line 120 echo " <a href=\"#\" onclick=\"Sfjs.toggle('"; echo twig_escape_filter($this->env, isset($context["id"]) ? $context["id"] : $this->getContext($context, "id"), "html", null, true); echo "', document.getElementById('"; echo twig_escape_filter($this->env, isset($context["id"]) ? $context["id"] : $this->getContext($context, "id"), "html", null, true); echo "-on'), document.getElementById('"; echo twig_escape_filter($this->env, isset($context["id"]) ? $context["id"] : $this->getContext($context, "id"), "html", null, true); echo "-off')); return false;\">\n <img class=\"toggle\" id=\""; // line 121 echo twig_escape_filter($this->env, isset($context["id"]) ? $context["id"] : $this->getContext($context, "id"), "html", null, true); echo "-off\" alt=\"-\" src=\"data:image/gif;base64,R0lGODlhEgASAMQSANft94TG57Hb8GS44ez1+mC24IvK6ePx+Wa44dXs92+942e54o3L6W2844/M6dnu+P/+/l614P///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAABIALAAAAAASABIAQAVCoCQBTBOd6Kk4gJhGBCTPxysJb44K0qD/ER/wlxjmisZkMqBEBW5NHrMZmVKvv9hMVsO+hE0EoNAstEYGxG9heIhCADs=\" style=\"display:none\">\n <img class=\"toggle\" id=\""; // line 122 echo twig_escape_filter($this->env, isset($context["id"]) ? $context["id"] : $this->getContext($context, "id"), "html", null, true); echo "-on\" alt=\"+\" src=\"data:image/gif;base64,R0lGODlhEgASAMQTANft99/v+Ga44bHb8ITG52S44dXs9+z1+uPx+YvK6WC24G+944/M6W28443L6dnu+Ge54v/+/l614P///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAABMALAAAAAASABIAQAVS4DQBTiOd6LkwgJgeUSzHSDoNaZ4PU6FLgYBA5/vFID/DbylRGiNIZu74I0h1hNsVxbNuUV4d9SsZM2EzWe1qThVzwWFOAFCQFa1RQq6DJB4iIQA7\" style=\"display:inline\">\n </a>\n "; } // line 125 echo "\n "; // line 126 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable(isset($context["stack"]) ? $context["stack"] : $this->getContext($context, "stack")); foreach ($context['_seq'] as $context["index"] => $context["call"]) { if ($context["index"] > 1) { // line 127 echo " "; if ($context["index"] == 2) { // line 128 echo " <ul class=\"sf-call-stack\" id=\""; echo twig_escape_filter($this->env, isset($context["id"]) ? $context["id"] : $this->getContext($context, "id"), "html", null, true); echo "\" style=\"display: none\">\n "; } // line 130 echo " "; if (twig_template_get_attributes($this, $context["call"], "class", array(), "any", true, true)) { // line 131 echo " "; $context["from"] = $this->env->getExtension('code')->abbrClass(twig_template_get_attributes($this, $context["call"], "class", array())) . "::" . $this->env->getExtension('code')->abbrMethod(twig_template_get_attributes($this, $context["call"], "function", array())); // line 132 echo " "; } elseif (twig_template_get_attributes($this, $context["call"], "function", array(), "any", true, true)) { // line 133 echo " "; $context["from"] = $this->env->getExtension('code')->abbrMethod(twig_template_get_attributes($this, $context["call"], "function", array())); // line 134 echo " "; } elseif (twig_template_get_attributes($this, $context["call"], "file", array(), "any", true, true)) { // line 135 echo " "; $context["from"] = twig_template_get_attributes($this, $context["call"], "file", array()); // line 136 echo " "; } else { // line 137 echo " "; $context["from"] = "-"; // line 138 echo " "; } // line 139 echo "\n <li>Called from "; // line 140 echo twig_template_get_attributes($this, $context["call"], "file", array(), "any", true, true) && twig_template_get_attributes($this, $context["call"], "line", array(), "any", true, true) ? $this->env->getExtension('code')->formatFile(twig_template_get_attributes($this, $context["call"], "file", array()), twig_template_get_attributes($this, $context["call"], "line", array()), isset($context["from"]) ? $context["from"] : $this->getContext($context, "from")) : (isset($context["from"]) ? $context["from"] : $this->getContext($context, "from")); echo "</li>\n\n "; // line 142 if ($context["index"] == twig_length_filter($this->env, isset($context["stack"]) ? $context["stack"] : $this->getContext($context, "stack")) - 1) { // line 143 echo " </ul>\n "; } // line 145 echo " "; } } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['index'], $context['call'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 146 echo " "; } else { // line 147 echo " "; echo twig_escape_filter($this->env, twig_template_get_attributes($this, isset($context["log"]) ? $context["log"] : $this->getContext($context, "log"), "priorityName", array()), "html", null, true); echo " - "; echo twig_escape_filter($this->env, twig_template_get_attributes($this, isset($context["log"]) ? $context["log"] : $this->getContext($context, "log"), "message", array()), "html", null, true); echo "\n "; // line 148 if (twig_template_get_attributes($this, isset($context["log"]) ? $context["log"] : null, "context", array(), "any", true, true) && !twig_test_empty(twig_template_get_attributes($this, isset($context["log"]) ? $context["log"] : $this->getContext($context, "log"), "context", array()))) { // line 149 echo " <br />\n <small>\n <strong>Context</strong>: "; // line 151 echo twig_escape_filter($this->env, twig_jsonencode_filter(twig_template_get_attributes($this, isset($context["log"]) ? $context["log"] : $this->getContext($context, "log"), "context", array()), 64 | 256), "html", null, true); echo "\n </small>\n "; } // line 154 echo " "; } $__internal_3b0f944a3245f3c6dd14a0db57566096e11b106b123288174f06817a1b9dce73->leave($__internal_3b0f944a3245f3c6dd14a0db57566096e11b106b123288174f06817a1b9dce73_prof); } catch (Exception $e) { ob_end_clean(); throw $e; } return '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); }