PageRenderTime 57ms CodeModel.GetById 32ms RepoModel.GetById 0ms app.codeStats 0ms

/app/cache/dev/twig/49/69/164b22aa413738389e21edc6a686.php

https://bitbucket.org/polipetr/cms
PHP | 124 lines | 101 code | 7 blank | 16 comment | 2 complexity | e7b5af239989423e574a5b6e281e5a4d MD5 | raw file
Possible License(s): Apache-2.0, LGPL-3.0, BSD-3-Clause, BSD-2-Clause
  1. <?php
  2. /* TwigBundle:Exception:traces.html.twig */
  3. class __TwigTemplate_4969164b22aa413738389e21edc6a686 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=\"block\">
  16. ";
  17. // line 2
  18. if (((isset($context["count"]) ? $context["count"] : $this->getContext($context, "count")) > 0)) {
  19. // line 3
  20. echo " <h2>
  21. <span><small>[";
  22. // line 4
  23. echo twig_escape_filter($this->env, (((isset($context["count"]) ? $context["count"] : $this->getContext($context, "count")) - (isset($context["position"]) ? $context["position"] : $this->getContext($context, "position"))) + 1), "html", null, true);
  24. echo "/";
  25. echo twig_escape_filter($this->env, ((isset($context["count"]) ? $context["count"] : $this->getContext($context, "count")) + 1), "html", null, true);
  26. echo "]</small></span>
  27. ";
  28. // line 5
  29. echo $this->env->getExtension('code')->abbrClass($this->getAttribute((isset($context["exception"]) ? $context["exception"] : $this->getContext($context, "exception")), "class"));
  30. echo ": ";
  31. echo $this->env->getExtension('code')->formatFileFromText(nl2br(twig_escape_filter($this->env, $this->getAttribute((isset($context["exception"]) ? $context["exception"] : $this->getContext($context, "exception")), "message"), "html", null, true)));
  32. echo "&nbsp;
  33. ";
  34. // line 6
  35. ob_start();
  36. // line 7
  37. echo " <a href=\"#\" onclick=\"toggle('traces_";
  38. echo twig_escape_filter($this->env, (isset($context["position"]) ? $context["position"] : $this->getContext($context, "position")), "html", null, true);
  39. echo "', 'traces'); switchIcons('icon_traces_";
  40. echo twig_escape_filter($this->env, (isset($context["position"]) ? $context["position"] : $this->getContext($context, "position")), "html", null, true);
  41. echo "_open', 'icon_traces_";
  42. echo twig_escape_filter($this->env, (isset($context["position"]) ? $context["position"] : $this->getContext($context, "position")), "html", null, true);
  43. echo "_close'); return false;\">
  44. <img class=\"toggle\" id=\"icon_traces_";
  45. // line 8
  46. echo twig_escape_filter($this->env, (isset($context["position"]) ? $context["position"] : $this->getContext($context, "position")), "html", null, true);
  47. echo "_close\" alt=\"-\" src=\"";
  48. echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/framework/images/blue_picto_less.gif"), "html", null, true);
  49. echo "\" style=\"visibility: ";
  50. echo (((0 == (isset($context["count"]) ? $context["count"] : $this->getContext($context, "count")))) ? ("visible") : ("hidden"));
  51. echo "\" />
  52. <img class=\"toggle\" id=\"icon_traces_";
  53. // line 9
  54. echo twig_escape_filter($this->env, (isset($context["position"]) ? $context["position"] : $this->getContext($context, "position")), "html", null, true);
  55. echo "_open\" alt=\"+\" src=\"";
  56. echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/framework/images/blue_picto_more.gif"), "html", null, true);
  57. echo "\" style=\"visibility: ";
  58. echo (((0 == (isset($context["count"]) ? $context["count"] : $this->getContext($context, "count")))) ? ("hidden") : ("visible"));
  59. echo "; margin-left: -18px\" />
  60. </a>
  61. ";
  62. echo trim(preg_replace('/>\s+</', '><', ob_get_clean()));
  63. // line 12
  64. echo " </h2>
  65. ";
  66. } else {
  67. // line 14
  68. echo " <h2>Stack Trace</h2>
  69. ";
  70. }
  71. // line 16
  72. echo "
  73. <a id=\"traces_link_";
  74. // line 17
  75. echo twig_escape_filter($this->env, (isset($context["position"]) ? $context["position"] : $this->getContext($context, "position")), "html", null, true);
  76. echo "\"></a>
  77. <ol class=\"traces list_exception\" id=\"traces_";
  78. // line 18
  79. echo twig_escape_filter($this->env, (isset($context["position"]) ? $context["position"] : $this->getContext($context, "position")), "html", null, true);
  80. echo "\" style=\"display: ";
  81. echo (((0 == (isset($context["count"]) ? $context["count"] : $this->getContext($context, "count")))) ? ("block") : ("none"));
  82. echo "\">
  83. ";
  84. // line 19
  85. $context['_parent'] = (array) $context;
  86. $context['_seq'] = twig_ensure_traversable($this->getAttribute((isset($context["exception"]) ? $context["exception"] : $this->getContext($context, "exception")), "trace"));
  87. foreach ($context['_seq'] as $context["i"] => $context["trace"]) {
  88. // line 20
  89. echo " <li>
  90. ";
  91. // line 21
  92. $this->env->loadTemplate("TwigBundle:Exception:trace.html.twig")->display(array("prefix" => (isset($context["position"]) ? $context["position"] : $this->getContext($context, "position")), "i" => (isset($context["i"]) ? $context["i"] : $this->getContext($context, "i")), "trace" => (isset($context["trace"]) ? $context["trace"] : $this->getContext($context, "trace"))));
  93. // line 22
  94. echo " </li>
  95. ";
  96. }
  97. $_parent = $context['_parent'];
  98. unset($context['_seq'], $context['_iterated'], $context['i'], $context['trace'], $context['_parent'], $context['loop']);
  99. $context = array_merge($_parent, array_intersect_key($context, $_parent));
  100. // line 24
  101. echo " </ol>
  102. </div>
  103. ";
  104. }
  105. public function getTemplateName()
  106. {
  107. return "TwigBundle:Exception:traces.html.twig";
  108. }
  109. public function isTraitable()
  110. {
  111. return false;
  112. }
  113. public function getDebugInfo()
  114. {
  115. return array ( 105 => 24, 98 => 22, 96 => 21, 93 => 20, 89 => 19, 83 => 18, 76 => 16, 72 => 14, 68 => 12, 50 => 8, 33 => 5, 27 => 4, 24 => 3, 22 => 2, 225 => 96, 216 => 90, 212 => 88, 205 => 84, 201 => 83, 196 => 80, 194 => 79, 191 => 78, 189 => 77, 186 => 76, 180 => 72, 178 => 71, 172 => 67, 163 => 63, 159 => 61, 157 => 60, 154 => 59, 147 => 55, 143 => 54, 138 => 51, 136 => 50, 132 => 48, 130 => 47, 127 => 46, 121 => 45, 118 => 44, 114 => 43, 104 => 36, 100 => 34, 95 => 31, 78 => 28, 75 => 27, 71 => 26, 63 => 24, 60 => 23, 58 => 9, 41 => 7, 34 => 11, 19 => 1, 94 => 39, 88 => 6, 81 => 40, 79 => 17, 59 => 22, 48 => 19, 39 => 6, 35 => 7, 31 => 6, 26 => 6, 21 => 1, 46 => 8, 43 => 7, 32 => 4, 29 => 3,);
  116. }
  117. }