Merge pull request #3103 from githubjeka/patch-3

Hide debug toolbar when media = print
This commit is contained in:
Alexander Makarov
2014-04-15 13:55:19 +04:00

View File

@@ -26,7 +26,7 @@ EOD;
$firstPanel = reset($panels);
$url = $firstPanel->getUrl();
?>
<div id="yii-debug-toolbar" class="yii-debug-toolbar-<?= $position ?>">
<div id="yii-debug-toolbar" class="yii-debug-toolbar-<?= $position ?> hidden-print">
<div class="yii-debug-toolbar-block title">
<a href="<?= Url::to(['index']) ?>">
<img width="29" height="30" alt="" src="<?= \yii\debug\Module::getYiiLogo() ?>">
@@ -39,7 +39,7 @@ $url = $firstPanel->getUrl();
<?php endforeach; ?>
<span class="yii-debug-toolbar-toggler" onclick="<?= $minJs ?>"></span>
</div>
<div id="yii-debug-toolbar-min">
<div id="yii-debug-toolbar-min" class="hidden-print">
<a href="<?= $url ?>" title="Open Yii Debugger" id="yii-debug-toolbar-logo">
<img width="29" height="30" alt="" src="<?= \yii\debug\Module::getYiiLogo() ?>">
</a>