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.
		
		
		
		
			
				
					39 lines
				
				1.1 KiB
			
		
		
			
		
	
	
					39 lines
				
				1.1 KiB
			| 
											13 years ago
										 | <?php
 | ||
|  | /**
 | ||
| 
											12 years ago
										 |  * @var \yii\web\View $this
 | ||
| 
											13 years ago
										 |  * @var \yii\debug\Panel[] $panels
 | ||
| 
											13 years ago
										 |  * @var string $tag
 | ||
| 
											13 years ago
										 |  */
 | ||
| 
											12 years ago
										 | use yii\debug\panels\ConfigPanel;
 | ||
|  | 
 | ||
|  | $minJs = <<<EOD
 | ||
|  | document.getElementById('yii-debug-toolbar').style.display = 'none';
 | ||
|  | document.getElementById('yii-debug-toolbar-min').style.display = 'block';
 | ||
|  | if (window.localStorage) {
 | ||
|  | 	localStorage.setItem('yii-debug-toolbar', 'minimized');
 | ||
|  | }
 | ||
|  | EOD;
 | ||
|  | 
 | ||
|  | $maxJs = <<<EOD
 | ||
|  | document.getElementById('yii-debug-toolbar-min').style.display = 'none';
 | ||
|  | document.getElementById('yii-debug-toolbar').style.display = 'block';
 | ||
|  | if (window.localStorage) {
 | ||
|  | 	localStorage.setItem('yii-debug-toolbar', 'maximized');
 | ||
|  | }
 | ||
|  | EOD;
 | ||
|  | 
 | ||
|  | $url = $panels['request']->getUrl();
 | ||
| 
											13 years ago
										 | ?>
 | ||
|  | <div id="yii-debug-toolbar">
 | ||
|  | 	<?php foreach ($panels as $panel): ?>
 | ||
| 
											12 years ago
										 | 	<?= $panel->getSummary() ?>
 | ||
| 
											13 years ago
										 | 	<?php endforeach; ?>
 | ||
| 
											12 years ago
										 | 	<span class="yii-debug-toolbar-toggler" onclick="<?= $minJs ?>">›</span>
 | ||
| 
											12 years ago
										 | </div>
 | ||
|  | <div id="yii-debug-toolbar-min">
 | ||
| 
											12 years ago
										 | 	<a href="<?= $url ?>" title="Open Yii Debugger" id="yii-debug-toolbar-logo">
 | ||
|  | 		<img width="29" height="30" alt="" src="<?= ConfigPanel::getYiiLogo() ?>">
 | ||
| 
											12 years ago
										 | 	</a>
 | ||
| 
											12 years ago
										 | 	<span class="yii-debug-toolbar-toggler" onclick="<?= $maxJs ?>">‹</span>
 | ||
| 
											13 years ago
										 | </div>
 |