/app/cache/dev/twig/e0/95/503c09687dd10feaacb6b9cfbd22.php
PHP | 276 lines | 216 code | 24 blank | 36 comment | 7 complexity | 68c5d681b79e8efd07524c1ff212e0c1 MD5 | raw file
Possible License(s): Apache-2.0, LGPL-3.0, BSD-3-Clause, BSD-2-Clause
- <?php
- /* TwigBundle:Exception:exception.html.twig */
- class __TwigTemplate_e095503c09687dd10feaacb6b9cfbd22 extends Twig_Template
- {
- public function __construct(Twig_Environment $env)
- {
- parent::__construct($env);
- $this->parent = false;
- $this->blocks = array(
- );
- }
- protected function doDisplay(array $context, array $blocks = array())
- {
- // line 1
- echo "<div class=\"sf-exceptionreset\">
- <div class=\"block_exception\">
- <div class=\"block_exception_detected clear_fix\">
- <div class=\"illustration_exception\">
- <img alt=\"Exception detected!\" src=\"";
- // line 6
- echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/framework/images/exception_detected.png"), "html", null, true);
- echo "\"/>
- </div>
- <div class=\"text_exception\">
- <div class=\"open_quote\">
- <img alt=\"\" src=\"";
- // line 11
- echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/framework/images/open_quote.gif"), "html", null, true);
- echo "\"/>
- </div>
- <h1>
- ";
- // line 15
- echo $this->env->getExtension('code')->formatFileFromText(nl2br(twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "exception"), "message"), "html", null, true)));
- echo "
- </h1>
- <div>
- <strong>";
- // line 19
- echo twig_escape_filter($this->env, $this->getContext($context, "status_code"), "html", null, true);
- echo "</strong> ";
- echo twig_escape_filter($this->env, $this->getContext($context, "status_text"), "html", null, true);
- echo " - ";
- echo $this->env->getExtension('code')->abbrClass($this->getAttribute($this->getContext($context, "exception"), "class"));
- echo "
- </div>
- ";
- // line 22
- $context["previous_count"] = twig_length_filter($this->env, $this->getAttribute($this->getContext($context, "exception"), "allPrevious"));
- // 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", null, true);
- echo "</strong> linked Exception";
- echo ((($this->getContext($context, "previous_count") > 1)) ? ("s") : (""));
- echo ":</span>
- <ul>
- ";
- // line 26
- $context['_parent'] = (array) $context;
- $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getContext($context, "exception"), "allPrevious"));
- foreach ($context['_seq'] as $context["i"] => $context["previous"]) {
- // line 27
- echo " <li>
- ";
- // line 28
- echo $this->env->getExtension('code')->abbrClass($this->getAttribute($this->getContext($context, "previous"), "class"));
- echo " <a href=\"#traces_link_";
- echo twig_escape_filter($this->env, ($this->getContext($context, "i") + 1), "html", null, true);
- echo "\" onclick=\"toggle('traces_";
- echo twig_escape_filter($this->env, ($this->getContext($context, "i") + 1), "html", null, true);
- echo "', 'traces'); switchIcons('icon_traces_";
- echo twig_escape_filter($this->env, ($this->getContext($context, "i") + 1), "html", null, true);
- echo "_open', 'icon_traces_";
- echo twig_escape_filter($this->env, ($this->getContext($context, "i") + 1), "html", null, true);
- echo "_close');\">»</a>
- </li>
- ";
- }
- $_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>
- </div>
- ";
- }
- // line 34
- echo "
- <div class=\"close_quote\">
- <img alt=\"\" src=\"";
- // line 36
- echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/framework/images/close_quote.gif"), "html", null, true);
- echo "\"/>
- </div>
- </div>
- </div>
- </div>
- ";
- // line 43
- $context['_parent'] = (array) $context;
- $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getContext($context, "exception"), "toarray"));
- 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 "
- ";
- // line 47
- if ($this->getContext($context, "logger")) {
- // line 48
- echo " <div class=\"block\">
- <div class=\"logs clear_fix\">
- ";
- // line 50
- ob_start();
- // line 51
- echo " <h2>
- Logs
- <a href=\"#\" onclick=\"toggle('logs'); switchIcons('icon_logs_open', 'icon_logs_close'); return false;\">
- <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", null, true);
- echo "\" style=\"visibility: hidden\" />
- <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", null, true);
- echo "\" style=\"visibility: visible; margin-left: -18px\" />
- </a>
- </h2>
- ";
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- // line 59
- echo "
- ";
- // line 60
- if ($this->getAttribute($this->getContext($context, "logger"), "counterrors")) {
- // line 61
- echo " <div class=\"error_count\">
- <span>
- ";
- // line 63
- echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "logger"), "counterrors"), "html", null, true);
- echo " error";
- echo ((($this->getAttribute($this->getContext($context, "logger"), "counterrors") > 1)) ? ("s") : (""));
- echo "
- </span>
- </div>
- ";
- }
- // line 67
- echo "
- </div>
- <div id=\"logs\">
- ";
- // line 71
- $this->env->loadTemplate("TwigBundle:Exception:logs.html.twig")->display(array("logs" => $this->getAttribute($this->getContext($context, "logger"), "logs")));
- // line 72
- echo " </div>
- </div>
- ";
- }
- // line 76
- echo "
- ";
- // line 77
- if ($this->getContext($context, "currentContent")) {
- // line 78
- echo " <div class=\"block\">
- ";
- // line 79
- ob_start();
- // line 80
- echo " <h2>
- Content of the Output
- <a href=\"#\" onclick=\"toggle('output_content'); switchIcons('icon_content_open', 'icon_content_close'); return false;\">
- <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", null, true);
- echo "\" style=\"visibility: hidden\" />
- <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", null, true);
- echo "\" style=\"visibility: visible; margin-left: -18px\" />
- </a>
- </h2>
- ";
- echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
- // line 88
- echo "
- <div id=\"output_content\" style=\"display: none\">
- ";
- // line 90
- echo twig_escape_filter($this->env, $this->getContext($context, "currentContent"), "html", null, true);
- echo "
- </div>
- <div style=\"clear: both\"></div>
- </div>
- ";
- }
- // line 96
- echo "
- </div>
- <script type=\"text/javascript\">//<![CDATA[
- function toggle(id, clazz) {
- var el = document.getElementById(id),
- current = el.style.display,
- i;
- if (clazz) {
- var tags = document.getElementsByTagName('*');
- for (i = tags.length - 1; i >= 0 ; i--) {
- if (tags[i].className === clazz) {
- tags[i].style.display = 'none';
- }
- }
- }
- el.style.display = current === 'none' ? 'block' : 'none';
- }
- function switchIcons(id1, id2) {
- var icon1, icon2, visibility1, visibility2;
- icon1 = document.getElementById(id1);
- icon2 = document.getElementById(id2);
- visibility1 = icon1.style.visibility;
- visibility2 = icon2.style.visibility;
- icon1.style.visibility = visibility2;
- icon2.style.visibility = visibility1;
- }
- //]]></script>
- ";
- }
- public function getTemplateName()
- {
- return "TwigBundle:Exception:exception.html.twig";
- }
- public function isTraitable()
- {
- return false;
- }
- public function getDebugInfo()
- {
- return array ( 223 => 96, 214 => 90, 210 => 88, 203 => 84, 199 => 83, 194 => 80, 192 => 79, 189 => 78, 187 => 77, 184 => 76, 178 => 72, 170 => 67, 157 => 61, 152 => 59, 145 => 55, 130 => 48, 125 => 46, 119 => 45, 116 => 44, 112 => 43, 102 => 36, 98 => 34, 76 => 28, 73 => 27, 69 => 26, 56 => 22, 32 => 11, 24 => 6, 22 => 3, 23 => 3, 17 => 1, 68 => 14, 61 => 24, 44 => 14, 20 => 2, 161 => 63, 153 => 50, 150 => 49, 147 => 48, 143 => 46, 137 => 45, 129 => 42, 121 => 41, 118 => 40, 113 => 39, 104 => 36, 99 => 33, 94 => 31, 81 => 25, 78 => 24, 72 => 22, 64 => 20, 53 => 16, 50 => 15, 48 => 14, 41 => 9, 39 => 15, 35 => 8, 33 => 5, 30 => 9, 27 => 6, 182 => 70, 176 => 71, 169 => 62, 163 => 58, 160 => 57, 155 => 60, 151 => 54, 149 => 53, 141 => 54, 136 => 51, 134 => 50, 131 => 43, 128 => 47, 120 => 37, 117 => 36, 114 => 35, 109 => 38, 106 => 37, 100 => 30, 96 => 32, 93 => 31, 90 => 29, 87 => 26, 83 => 24, 79 => 22, 71 => 19, 62 => 19, 58 => 23, 55 => 12, 52 => 6, 49 => 10, 46 => 19, 43 => 8, 40 => 12, 37 => 11, 34 => 5, 31 => 7, 28 => 3,);
- }
- }