4 <div
class=
"frame-code-container <?php echo (!$has_frames ? 'empty' : '') ?>">
5 <?php
foreach ($frames as
$i => $frame): ?>
6 <?php $line = $frame->getLine(); ?>
7 <div
class=
"frame-code <?php echo ($i == 0 ) ? 'active' : '' ?>" id=
"frame-code-<?php echo $i ?>">
8 <div
class=
"frame-file">
9 <?php $filePath = $frame->getFile(); ?>
10 <?php
if ($filePath && $editorHref =
$handler->getEditorHref($filePath, (
int) $line)): ?>
12 <a href=
"<?php echo $editorHref ?>" class=
"editor-link"<?php echo (
$handler->getEditorAjax($filePath, (
int) $line) ?
' data-ajax' :
'') ?>>
13 <strong><?php echo
$tpl->breakOnDelimiter(
'/',
$tpl->escape($filePath ?:
'<#unknown>')) ?></strong>
16 <strong><?php echo
$tpl->breakOnDelimiter(
'/',
$tpl->escape($filePath ?:
'<#unknown>')) ?></strong>
24 $range = $frame->getFileLines($line - 20, 40);
28 $range = array_map(
function ($line) {
return empty($line) ?
' ' : $line;}, $range);
29 $start = key($range) + 1;
30 $code = join(
"\n", $range);
32 <pre
id=
"frame-code-linenums-<?=$i?>" class=
"code-block linenums:<?php echo $start ?>"><?php echo
$tpl->escape(
$code) ?></pre>
37 <?php $frameArgs =
$tpl->dumpArgs($frame); ?>
38 <?php
if ($frameArgs): ?>
39 <div
class=
"frame-file">
42 <div
id=
"frame-code-args-<?=$i?>" class=
"code-block frame-args">
43 <?php echo $frameArgs; ?>
49 $comments = $frame->getComments();
51 <div
class=
"frame-comments <?php echo empty($comments) ? 'empty' : '' ?>">
52 <?php
foreach ($comments as $commentNo =>
$comment): ?>
54 <div
class=
"frame-comment" id=
"comment-<?php echo $i . '-' . $commentNo ?>">
55 <span
class=
"frame-comment-context"><?php echo
$tpl->escape($context) ?></span>