You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.9KB

  1. <?php
  2. /* @var $file string|null */
  3. /* @var $line integer|null */
  4. /* @var $class string|null */
  5. /* @var $method string|null */
  6. /* @var $index integer */
  7. /* @var $lines string[] */
  8. /* @var $begin integer */
  9. /* @var $end integer */
  10. /* @var $handler \yii\web\ErrorHandler */
  11. ?>
  12. <li class="<?php if ($index === 1 || !$handler->isCoreFile($file)) echo 'application'; ?> call-stack-item"
  13. data-line="<?= (int) ($line - $begin) ?>">
  14. <div class="element-wrap">
  15. <div class="element">
  16. <span class="item-number"><?= (int) $index ?>.</span>
  17. <span class="text"><?php if ($file !== null) echo 'in ' . $handler->htmlEncode($file); ?></span>
  18. <?php if ($method !== null): ?>
  19. <span class="call">
  20. <?php if ($file !== null) echo '&ndash;'; ?>
  21. <?= ($class !== null ? $handler->addTypeLinks("$class::$method") : $handler->htmlEncode($method)) . '(' . $handler->argumentsToString($args) . ')' ?>
  22. </span>
  23. <?php endif; ?>
  24. <span class="at"><?php if ($line !== null) echo 'at line'; ?></span>
  25. <span class="line"><?php if ($line !== null) echo (int) $line + 1; ?></span>
  26. </div>
  27. </div>
  28. <?php if (!empty($lines)): ?>
  29. <div class="code-wrap">
  30. <div class="error-line"></div>
  31. <?php for ($i = $begin; $i <= $end; ++$i): ?><div class="hover-line"></div><?php endfor; ?>
  32. <div class="code">
  33. <?php for ($i = $begin; $i <= $end; ++$i): ?><span class="lines-item"><?= (int) ($i + 1) ?></span><?php endfor; ?>
  34. <pre><?php
  35. // fill empty lines with a whitespace to avoid rendering problems in opera
  36. for ($i = $begin; $i <= $end; ++$i) {
  37. echo (trim($lines[$i]) == '') ? " \n" : $handler->htmlEncode($lines[$i]);
  38. }
  39. ?></pre>
  40. </div>
  41. </div>
  42. <?php endif; ?>
  43. </li>