protected function doDisplay(array $context, array $blocks = array()) { $context = array_merge($this->env->getGlobals(), $context); // line 1 echo "<div class=\"sf-exceptionreset\">\n\n <div class=\"block_exception\">\n <div class=\"block_exception_detected clear_fix\">\n <div class=\"illustration_exception\">\n <img alt=\"Exception detected!\" src=\""; // line 6 echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/framework/images/exception_detected.gif"), "html"); echo "\"/>\n </div>\n <div class=\"text_exception\">\n\n <div class=\"open_quote\">\n <img alt=\"\" src=\""; // line 11 echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/framework/images/open_quote.gif"), "html"); echo "\"/>\n </div>\n\n <h1>\n "; // line 15 echo $this->env->getExtension('code')->formatFileFromText(twig_strtr(twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'exception'), "message", array(), "any", false)), array("\n" => "<br />"))); echo "\n </h1>\n\n <div>\n <strong>"; // line 19 echo twig_escape_filter($this->env, $this->getContext($context, 'status_code'), "html"); echo "</strong> "; echo twig_escape_filter($this->env, $this->getContext($context, 'status_text'), "html"); echo " - "; echo $this->env->getExtension('code')->abbrClass($this->getAttribute($this->getContext($context, 'exception'), "class", array(), "any", false)); echo "\n </div>\n\n "; // line 22 $context['previous_count'] = twig_length_filter($this->env, $this->getAttribute($this->getContext($context, 'exception'), "allPrevious", array(), "any", false)); // line 23 echo " "; if ($this->getContext($context, 'previous_count')) { // line 24 echo " <div class=\"linked\"><span><strong>"; echo twig_escape_filter($this->env, $this->getContext($context, 'previous_count'), "html"); echo "</strong> linked Exception"; echo $this->getContext($context, 'previous_count') > 1 ? "s" : ""; echo ":</span>\n <ul>\n "; // line 26 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getContext($context, 'exception'), "allPrevious", array(), "any", false)); foreach ($context['_seq'] as $context['i'] => $context['previous']) { // line 27 echo " <li>\n "; // line 28 echo $this->env->getExtension('code')->abbrClass($this->getAttribute($this->getContext($context, 'previous'), "class", array(), "any", false)); echo " <a href=\"#traces_link_"; echo twig_escape_filter($this->env, $this->getContext($context, 'i') + 1, "html"); echo "\" onclick=\"toggle('traces_"; echo twig_escape_filter($this->env, $this->getContext($context, 'i') + 1, "html"); echo "', 'traces'); switchIcons('icon_traces_"; echo twig_escape_filter($this->env, $this->getContext($context, 'i') + 1, "html"); echo "_open', 'icon_traces_"; echo twig_escape_filter($this->env, $this->getContext($context, 'i') + 1, "html"); echo "_close');\">»</a>\n </li>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['i'], $context['previous'], $context['_parent'], $context['loop']); $context = array_merge($_parent, array_intersect_key($context, $_parent)); // line 31 echo " </ul>\n </div>\n "; } // line 34 echo "\n <div class=\"close_quote\">\n <img alt=\"\" src=\""; // line 36 echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/framework/images/close_quote.gif"), "html"); echo "\"/>\n </div>\n\n </div>\n </div>\n </div>\n\n "; // line 43 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getContext($context, 'exception'), "toarray", array(), "any", false)); foreach ($context['_seq'] as $context['position'] => $context['e']) { // line 44 echo " "; $this->env->loadTemplate("TwigBundle:Exception:traces.html.twig")->display(array("exception" => $this->getContext($context, 'e'), "position" => $this->getContext($context, 'position'), "count" => $this->getContext($context, 'previous_count'))); // line 45 echo " "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['position'], $context['e'], $context['_parent'], $context['loop']); $context = array_merge($_parent, array_intersect_key($context, $_parent)); // line 46 echo "\n "; // line 47 if ($this->getContext($context, 'logger')) { // line 48 echo " <div class=\"block\">\n <div class=\"logs clear_fix\">\n "; // line 50 ob_start(); // line 51 echo " <h2>\n Logs \n <a href=\"#\" onclick=\"toggle('logs'); switchIcons('icon_logs_open', 'icon_logs_close'); return false;\">\n <img class=\"toggle\" id=\"icon_logs_open\" alt=\"+\" src=\""; // line 54 echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/framework/images/blue_picto_more.gif"), "html"); echo "\" style=\"visibility: hidden\" />\n <img class=\"toggle\" id=\"icon_logs_close\" alt=\"-\" src=\""; // line 55 echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/framework/images/blue_picto_less.gif"), "html"); echo "\" style=\"visibility: visible; margin-left: -18px\" />\n </a>\n </h2>\n "; echo trim(preg_replace('/>\\s+</', '><', ob_get_clean())); // line 59 echo "\n "; // line 60 if ($this->getAttribute($this->getContext($context, 'logger'), "counterrors", array(), "any", false)) { // line 61 echo " <div class=\"error_count\">\n <span>\n "; // line 63 echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'logger'), "counterrors", array(), "any", false), "html"); echo " error"; echo $this->getAttribute($this->getContext($context, 'logger'), "counterrors", array(), "any", false) > 1 ? "s" : ""; echo "\n </span>\n </div>\n "; } // line 67 echo "\n </div>\n\n <div id=\"logs\">\n "; // line 71 $this->env->loadTemplate("TwigBundle:Exception:logs.html.twig")->display(array("logs" => $this->getAttribute($this->getContext($context, 'logger'), "logs", array(), "any", false))); // line 72 echo " </div>\n\n </div>\n "; } // line 76 echo "\n "; // line 77 if ($this->getContext($context, 'currentContent')) { // line 78 echo " <div class=\"block\">\n "; // line 79 ob_start(); // line 80 echo " <h2>\n Content of the Output \n <a href=\"#\" onclick=\"toggle('output_content'); switchIcons('icon_content_open', 'icon_content_close'); return false;\">\n <img class=\"toggle\" id=\"icon_content_close\" alt=\"-\" src=\""; // line 83 echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/framework/images/blue_picto_less.gif"), "html"); echo "\" style=\"visibility: hidden\" />\n <img class=\"toggle\" id=\"icon_content_open\" alt=\"+\" src=\""; // line 84 echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/framework/images/blue_picto_more.gif"), "html"); echo "\" style=\"visibility: visible; margin-left: -18px\" />\n </a>\n </h2>\n "; echo trim(preg_replace('/>\\s+</', '><', ob_get_clean())); // line 88 echo "\n <div id=\"output_content\" style=\"display: none\">\n "; // line 90 echo twig_escape_filter($this->env, $this->getContext($context, 'currentContent'), "html"); echo "\n </div>\n\n <div style=\"clear: both\"></div>\n </div>\n "; } // line 96 echo "\n</div>\n\n<script type=\"text/javascript\">//<![CDATA[\n function toggle(id, clazz) {\n var el = document.getElementById(id),\n current = el.style.display,\n i;\n\n if (clazz) {\n var tags = document.getElementsByTagName('*');\n for (i = tags.length - 1; i >= 0 ; i--) {\n if (tags[i].className === clazz) {\n tags[i].style.display = 'none';\n }\n }\n }\n\n el.style.display = current === 'none' ? 'block' : 'none';\n }\n\n function switchIcons(id1, id2) {\n var icon1, icon2, visibility1, visibility2;\n\n icon1 = document.getElementById(id1);\n icon2 = document.getElementById(id2);\n\n visibility1 = icon1.style.visibility;\n visibility2 = icon2.style.visibility;\n\n icon1.style.visibility = visibility2;\n icon2.style.visibility = visibility1;\n }\n//]]></script>\n"; }
public function block_money_widget($context, array $blocks = array()) { // line 199 ob_start(); // line 200 echo " "; echo twig_strtr($this->getContext($context, 'money_pattern'), array("{{ widget }}" => $this->renderBlock("field_widget", $context, $blocks))); echo "\n"; echo trim(preg_replace('/>\\s+</', '><', ob_get_clean())); }
protected function doDisplay(array $context, array $blocks = array()) { $context = array_merge($this->env->getGlobals(), $context); // line 1 echo "<div class=\"block\">\n "; // line 2 if ($this->getContext($context, 'count') > 0) { // line 3 echo " <h2>\n <span><small>["; // line 4 echo twig_escape_filter($this->env, $this->getContext($context, 'count') - $this->getContext($context, 'position') + 1, "html"); echo "/"; echo twig_escape_filter($this->env, $this->getContext($context, 'count') + 1, "html"); echo "]</small></span>\n "; // line 5 echo $this->env->getExtension('code')->abbrClass($this->getAttribute($this->getContext($context, 'exception'), "class", array(), "any", false)); echo ": "; echo twig_escape_filter($this->env, twig_strtr($this->getAttribute($this->getContext($context, 'exception'), "message", array(), "any", false), array("\n" => "<br />")), "html"); echo " \n "; // line 6 ob_start(); // line 7 echo " <a href=\"#\" onclick=\"toggle('traces_"; echo twig_escape_filter($this->env, $this->getContext($context, 'position'), "html"); echo "', 'traces'); switchIcons('icon_traces_"; echo twig_escape_filter($this->env, $this->getContext($context, 'position'), "html"); echo "_open', 'icon_traces_"; echo twig_escape_filter($this->env, $this->getContext($context, 'position'), "html"); echo "_close'); return false;\">\n <img class=\"toggle\" id=\"icon_traces_"; // line 8 echo twig_escape_filter($this->env, $this->getContext($context, 'position'), "html"); echo "_close\" alt=\"-\" src=\""; echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/framework/images/blue_picto_less.gif"), "html"); echo "\" style=\"visibility: "; echo 0 == $this->getContext($context, 'count') ? "display" : "hidden"; echo "\" />\n <img class=\"toggle\" id=\"icon_traces_"; // line 9 echo twig_escape_filter($this->env, $this->getContext($context, 'position'), "html"); echo "_open\" alt=\"+\" src=\""; echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/framework/images/blue_picto_more.gif"), "html"); echo "\" style=\"visibility: "; echo 0 == $this->getContext($context, 'count') ? "hidden" : "display"; echo "; margin-left: -18px\" />\n </a>\n "; echo trim(preg_replace('/>\\s+</', '><', ob_get_clean())); // line 12 echo " </h2>\n "; } else { // line 14 echo " <h2>Stack Trace</h2>\n "; } // line 16 echo "\n <a id=\"traces_link_"; // line 17 echo twig_escape_filter($this->env, $this->getContext($context, 'position'), "html"); echo "\"></a>\n <ol class=\"traces list_exception\" id=\"traces_"; // line 18 echo twig_escape_filter($this->env, $this->getContext($context, 'position'), "html"); echo "\" style=\"display: "; echo 0 == $this->getContext($context, 'count') ? "block" : "none"; echo "\">\n "; // line 19 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getContext($context, 'exception'), "trace", array(), "any", false)); foreach ($context['_seq'] as $context['i'] => $context['trace']) { // line 20 echo " <li>\n "; // line 21 $this->env->loadTemplate("FrameworkBundle:Exception:trace.html.twig")->display(array("prefix" => $this->getContext($context, 'position'), "i" => $this->getContext($context, 'i'), "trace" => $this->getContext($context, 'trace'))); // line 22 echo " </li>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['i'], $context['trace'], $context['_parent'], $context['loop']); $context = array_merge($_parent, array_intersect_key($context, $_parent)); // line 24 echo " </ol>\n</div>"; }