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">
 
   13              <strong><?php echo 
$tpl->escape($filePath ?: 
'<#unknown>') ?></strong>
 
   16            <strong><?php echo 
$tpl->escape($filePath ?: 
'<#unknown>') ?></strong>
 
   24          $range = $frame->getFileLines($line - 8, 10);
 
   28            $range = array_map(
function ($line) { 
return empty($line) ? 
' ' : $line;}, $range);
 
   29            $start = key($range) + 1;
 
   30            $code  = join(
"\n", $range);
 
   32            <pre 
class=
"code-block prettyprint linenums:<?php echo $start ?>"><?php echo 
$tpl->escape(
$code) ?></pre>
 
   38          $comments = $frame->getComments();
 
   40        <div 
class=
"frame-comments <?php echo empty($comments) ? 'empty' : '' ?>">
 
   41          <?php 
foreach ($comments as $commentNo => 
$comment): ?>
 
   43            <div 
class=
"frame-comment" id=
"comment-<?php echo $i . '-' . $commentNo ?>">
 
   44              <span 
class=
"frame-comment-context"><?php echo 
$tpl->escape($context) ?></span>