PageRenderTime 61ms CodeModel.GetById 28ms RepoModel.GetById 1ms app.codeStats 0ms

/app/cache/prod/twig/53/fe/156e411c9e457e62a0c2efe7eeb8.php

https://bitbucket.org/pyneff/carsharing
PHP | 276 lines | 216 code | 24 blank | 36 comment | 7 complexity | 5b0de7d90c4dad5704285e9d012be704 MD5 | raw file
Possible License(s): Apache-2.0, LGPL-3.0, BSD-3-Clause, BSD-2-Clause
  1. <?php
  2. /* TwigBundle:Exception:exception.html.twig */
  3. class __TwigTemplate_53fe156e411c9e457e62a0c2efe7eeb8 extends Twig_Template
  4. {
  5. public function __construct(Twig_Environment $env)
  6. {
  7. parent::__construct($env);
  8. $this->parent = false;
  9. $this->blocks = array(
  10. );
  11. }
  12. protected function doDisplay(array $context, array $blocks = array())
  13. {
  14. // line 1
  15. echo "<div class=\"sf-exceptionreset\">
  16. <div class=\"block_exception\">
  17. <div class=\"block_exception_detected clear_fix\">
  18. <div class=\"illustration_exception\">
  19. <img alt=\"Exception detected!\" src=\"";
  20. // line 6
  21. echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/framework/images/exception_detected.png"), "html", null, true);
  22. echo "\"/>
  23. </div>
  24. <div class=\"text_exception\">
  25. <div class=\"open_quote\">
  26. <img alt=\"\" src=\"";
  27. // line 11
  28. echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/framework/images/open_quote.gif"), "html", null, true);
  29. echo "\"/>
  30. </div>
  31. <h1>
  32. ";
  33. // line 15
  34. echo $this->env->getExtension('code')->formatFileFromText(nl2br(twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "exception"), "message"), "html", null, true)));
  35. echo "
  36. </h1>
  37. <div>
  38. <strong>";
  39. // line 19
  40. echo twig_escape_filter($this->env, $this->getContext($context, "status_code"), "html", null, true);
  41. echo "</strong> ";
  42. echo twig_escape_filter($this->env, $this->getContext($context, "status_text"), "html", null, true);
  43. echo " - ";
  44. echo $this->env->getExtension('code')->abbrClass($this->getAttribute($this->getContext($context, "exception"), "class"));
  45. echo "
  46. </div>
  47. ";
  48. // line 22
  49. $context["previous_count"] = twig_length_filter($this->env, $this->getAttribute($this->getContext($context, "exception"), "allPrevious"));
  50. // line 23
  51. echo " ";
  52. if ($this->getContext($context, "previous_count")) {
  53. // line 24
  54. echo " <div class=\"linked\"><span><strong>";
  55. echo twig_escape_filter($this->env, $this->getContext($context, "previous_count"), "html", null, true);
  56. echo "</strong> linked Exception";
  57. echo ((($this->getContext($context, "previous_count") > 1)) ? ("s") : (""));
  58. echo ":</span>
  59. <ul>
  60. ";
  61. // line 26
  62. $context['_parent'] = (array) $context;
  63. $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getContext($context, "exception"), "allPrevious"));
  64. foreach ($context['_seq'] as $context["i"] => $context["previous"]) {
  65. // line 27
  66. echo " <li>
  67. ";
  68. // line 28
  69. echo $this->env->getExtension('code')->abbrClass($this->getAttribute($this->getContext($context, "previous"), "class"));
  70. echo " <a href=\"#traces_link_";
  71. echo twig_escape_filter($this->env, ($this->getContext($context, "i") + 1), "html", null, true);
  72. echo "\" onclick=\"toggle('traces_";
  73. echo twig_escape_filter($this->env, ($this->getContext($context, "i") + 1), "html", null, true);
  74. echo "', 'traces'); switchIcons('icon_traces_";
  75. echo twig_escape_filter($this->env, ($this->getContext($context, "i") + 1), "html", null, true);
  76. echo "_open', 'icon_traces_";
  77. echo twig_escape_filter($this->env, ($this->getContext($context, "i") + 1), "html", null, true);
  78. echo "_close');\">&#187;</a>
  79. </li>
  80. ";
  81. }
  82. $_parent = $context['_parent'];
  83. unset($context['_seq'], $context['_iterated'], $context['i'], $context['previous'], $context['_parent'], $context['loop']);
  84. $context = array_merge($_parent, array_intersect_key($context, $_parent));
  85. // line 31
  86. echo " </ul>
  87. </div>
  88. ";
  89. }
  90. // line 34
  91. echo "
  92. <div class=\"close_quote\">
  93. <img alt=\"\" src=\"";
  94. // line 36
  95. echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/framework/images/close_quote.gif"), "html", null, true);
  96. echo "\"/>
  97. </div>
  98. </div>
  99. </div>
  100. </div>
  101. ";
  102. // line 43
  103. $context['_parent'] = (array) $context;
  104. $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getContext($context, "exception"), "toarray"));
  105. foreach ($context['_seq'] as $context["position"] => $context["e"]) {
  106. // line 44
  107. echo " ";
  108. $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")));
  109. // line 45
  110. echo " ";
  111. }
  112. $_parent = $context['_parent'];
  113. unset($context['_seq'], $context['_iterated'], $context['position'], $context['e'], $context['_parent'], $context['loop']);
  114. $context = array_merge($_parent, array_intersect_key($context, $_parent));
  115. // line 46
  116. echo "
  117. ";
  118. // line 47
  119. if ($this->getContext($context, "logger")) {
  120. // line 48
  121. echo " <div class=\"block\">
  122. <div class=\"logs clear_fix\">
  123. ";
  124. // line 50
  125. ob_start();
  126. // line 51
  127. echo " <h2>
  128. Logs&nbsp;
  129. <a href=\"#\" onclick=\"toggle('logs'); switchIcons('icon_logs_open', 'icon_logs_close'); return false;\">
  130. <img class=\"toggle\" id=\"icon_logs_open\" alt=\"+\" src=\"";
  131. // line 54
  132. echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/framework/images/blue_picto_more.gif"), "html", null, true);
  133. echo "\" style=\"visibility: hidden\" />
  134. <img class=\"toggle\" id=\"icon_logs_close\" alt=\"-\" src=\"";
  135. // line 55
  136. echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/framework/images/blue_picto_less.gif"), "html", null, true);
  137. echo "\" style=\"visibility: visible; margin-left: -18px\" />
  138. </a>
  139. </h2>
  140. ";
  141. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  142. // line 59
  143. echo "
  144. ";
  145. // line 60
  146. if ($this->getAttribute($this->getContext($context, "logger"), "counterrors")) {
  147. // line 61
  148. echo " <div class=\"error_count\">
  149. <span>
  150. ";
  151. // line 63
  152. echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "logger"), "counterrors"), "html", null, true);
  153. echo " error";
  154. echo ((($this->getAttribute($this->getContext($context, "logger"), "counterrors") > 1)) ? ("s") : (""));
  155. echo "
  156. </span>
  157. </div>
  158. ";
  159. }
  160. // line 67
  161. echo "
  162. </div>
  163. <div id=\"logs\">
  164. ";
  165. // line 71
  166. $this->env->loadTemplate("TwigBundle:Exception:logs.html.twig")->display(array("logs" => $this->getAttribute($this->getContext($context, "logger"), "logs")));
  167. // line 72
  168. echo " </div>
  169. </div>
  170. ";
  171. }
  172. // line 76
  173. echo "
  174. ";
  175. // line 77
  176. if ($this->getContext($context, "currentContent")) {
  177. // line 78
  178. echo " <div class=\"block\">
  179. ";
  180. // line 79
  181. ob_start();
  182. // line 80
  183. echo " <h2>
  184. Content of the Output&nbsp;
  185. <a href=\"#\" onclick=\"toggle('output_content'); switchIcons('icon_content_open', 'icon_content_close'); return false;\">
  186. <img class=\"toggle\" id=\"icon_content_close\" alt=\"-\" src=\"";
  187. // line 83
  188. echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/framework/images/blue_picto_less.gif"), "html", null, true);
  189. echo "\" style=\"visibility: hidden\" />
  190. <img class=\"toggle\" id=\"icon_content_open\" alt=\"+\" src=\"";
  191. // line 84
  192. echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/framework/images/blue_picto_more.gif"), "html", null, true);
  193. echo "\" style=\"visibility: visible; margin-left: -18px\" />
  194. </a>
  195. </h2>
  196. ";
  197. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  198. // line 88
  199. echo "
  200. <div id=\"output_content\" style=\"display: none\">
  201. ";
  202. // line 90
  203. echo twig_escape_filter($this->env, $this->getContext($context, "currentContent"), "html", null, true);
  204. echo "
  205. </div>
  206. <div style=\"clear: both\"></div>
  207. </div>
  208. ";
  209. }
  210. // line 96
  211. echo "
  212. </div>
  213. <script type=\"text/javascript\">//<![CDATA[
  214. function toggle(id, clazz) {
  215. var el = document.getElementById(id),
  216. current = el.style.display,
  217. i;
  218. if (clazz) {
  219. var tags = document.getElementsByTagName('*');
  220. for (i = tags.length - 1; i >= 0 ; i--) {
  221. if (tags[i].className === clazz) {
  222. tags[i].style.display = 'none';
  223. }
  224. }
  225. }
  226. el.style.display = current === 'none' ? 'block' : 'none';
  227. }
  228. function switchIcons(id1, id2) {
  229. var icon1, icon2, visibility1, visibility2;
  230. icon1 = document.getElementById(id1);
  231. icon2 = document.getElementById(id2);
  232. visibility1 = icon1.style.visibility;
  233. visibility2 = icon2.style.visibility;
  234. icon1.style.visibility = visibility2;
  235. icon2.style.visibility = visibility1;
  236. }
  237. //]]></script>
  238. ";
  239. }
  240. public function getTemplateName()
  241. {
  242. return "TwigBundle:Exception:exception.html.twig";
  243. }
  244. public function isTraitable()
  245. {
  246. return false;
  247. }
  248. public function getDebugInfo()
  249. {
  250. return array ( 223 => 96, 214 => 90, 210 => 88, 203 => 84, 199 => 83, 194 => 80, 192 => 79, 189 => 78, 187 => 77, 184 => 76, 178 => 72, 176 => 71, 170 => 67, 161 => 63, 157 => 61, 155 => 60, 152 => 59, 145 => 55, 141 => 54, 136 => 51, 134 => 50, 130 => 48, 128 => 47, 125 => 46, 119 => 45, 116 => 44, 112 => 43, 102 => 36, 98 => 34, 93 => 31, 76 => 28, 73 => 27, 69 => 26, 61 => 24, 58 => 23, 56 => 22, 39 => 15, 32 => 11, 17 => 1, 92 => 39, 86 => 6, 79 => 40, 77 => 39, 57 => 22, 46 => 19, 37 => 8, 33 => 7, 29 => 6, 24 => 6, 19 => 1, 44 => 8, 41 => 7, 30 => 4, 27 => 3,);
  251. }
  252. }