Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
12345 anikendra 1
<?php
2
/**
3
 * Debug Toolbar Element
4
 *
5
 * Renders all of the other panel elements.
6
 *
7
 * PHP 5
8
 *
9
 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
10
 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
11
 *
12
 * Licensed under The MIT License
13
 * Redistributions of files must retain the above copyright notice.
14
 *
15
 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
16
 * @link          http://cakephp.org CakePHP(tm) Project
17
 * @since         DebugKit 0.1
18
 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
19
 */
20
?>
21
<div id="debug-kit-toolbar">
22
	<?php if (empty($debugToolbarPanels)) :?>
23
		<p class="warning"><?php echo __d('debug_kit', 'There are no active panels. You must enable a panel to see its output.'); ?></p>
24
	<?php else: ?>
25
		<ul id="panel-tabs">
26
			<li class="panel-tab icon">
27
				<a href="#hide" id="hide-toolbar">
28
					<?php echo $this->Html->image('/debug_kit/img/cake.icon.png', array('alt' => 'CakePHP')); ?>
29
				</a>
30
			</li>
31
		<?php foreach ($debugToolbarPanels as $panelName => $panelInfo): ?>
32
			<?php $panelUnderscore = Inflector::underscore($panelName);?>
33
			<li class="panel-tab">
34
			<?php
35
				$title = (empty($panelInfo['title'])) ? Inflector::humanize($panelUnderscore) : $panelInfo['title'];
36
				echo $this->Toolbar->panelStart($title, $panelUnderscore);
37
			?>
38
				<div class="panel-content" id="<?php echo $panelUnderscore ?>-tab">
39
					<a href="#" class="panel-toggle ui-control ui-button">+</a>
40
					<div class="panel-resize-region">
41
						<div class="panel-content-data">
42
							<?php
43
								echo $this->element($panelInfo['elementName'], $panelInfo, array(
44
									'plugin' => (empty($panelInfo['plugin'])) ? null : Inflector::camelize($panelInfo['plugin'])
45
								));
46
							?>
47
						</div>
48
						<div class="panel-content-data panel-history" id="<?php echo $panelUnderscore; ?>-history">
49
							<!-- content here -->
50
						</div>
51
					</div>
52
					<div class="panel-resize-handle ui-control">====</div>
53
				</div>
54
			<?php $this->Toolbar->panelEnd(); ?>
55
			</li>
56
		<?php endforeach; ?>
57
		</ul>
58
	<?php endif; ?>
59
</div>