forked from nette/nette
/
bar.dumps.panel.phtml
64 lines (50 loc) · 1.2 KB
/
bar.dumps.panel.phtml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?php
/**
* Debug Bar: panel "dumps" template.
*
* This file is part of the Nette Framework (http://nette.org)
* Copyright (c) 2004 David Grudl (http://davidgrudl.com)
*/
namespace Nette\Diagnostics;
use Nette;
?>
<style>
#nette-debug .nette-DumpPanel h2 {
font: 11pt/1.5 sans-serif;
margin: 0;
padding: 2px 8px;
background: #3484d2;
color: white;
}
#nette-debug .nette-DumpPanel table {
width: 100%;
}
#nette-debug .nette-DumpPanel a {
color: #333;
background: transparent;
}
#nette-debug .nette-DumpPanel a abbr {
font-family: sans-serif;
color: #999;
}
#nette-debug .nette-DumpPanel pre .nette-dump-array, #nette-debug .nette-DumpPanel pre .nette-dump-object {
color: #c16549;
}
</style>
<h1>Dumped variables</h1>
<div class="nette-inner nette-DumpPanel">
<?php foreach ($data as $item): ?>
<?php if ($item['title']):?>
<h2><?php echo htmlspecialchars($item['title']) ?></h2>
<?php endif ?>
<table>
<?php $i = 0 ?>
<?php foreach ($item['dump'] as $key => $dump): ?>
<tr class="<?php echo $i++ % 2 ? 'nette-alt' : '' ?>">
<th><?php echo htmlspecialchars($key) ?></th>
<td><?php echo $dump ?></td>
</tr>
<?php endforeach ?>
</table>
<?php endforeach ?>
</div>