|
| 1 | +<?php |
| 2 | +/** |
| 3 | + * CakePHP(tm) : Rapid Development Framework (https://cakephp.org) |
| 4 | + * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org) |
| 5 | + * |
| 6 | + * Licensed under The MIT License |
| 7 | + * Redistributions of files must retain the above copyright notice. |
| 8 | + * |
| 9 | + * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org) |
| 10 | + * @link https://cakephp.org CakePHP(tm) Project |
| 11 | + * @since DebugKit 0.1 |
| 12 | + * @license https://www.opensource.org/licenses/mit-license.php MIT License |
| 13 | + */ |
| 14 | +/** |
| 15 | + * @var \DebugKit\View\AjaxView $this |
| 16 | + * @var bool $hasEmptyAppConfig |
| 17 | + * @var array $plugins |
| 18 | + */ |
| 19 | +?> |
| 20 | +<div class="c-plugins-panel"> |
| 21 | + <?php |
| 22 | + $msg = 'This table shows all available plugins and your plugin configuration in'; |
| 23 | + $msg .= ' <strong>config/plugins.php</strong><br>'; |
| 24 | + printf('<p class="c-flash c-flash--info">%s</p>', $msg); |
| 25 | + ?> |
| 26 | + <section> |
| 27 | + <table class="c-debug-table"> |
| 28 | + <thead> |
| 29 | + <tr> |
| 30 | + <th><?= __d('debug_kit', 'Plugin') ?></th> |
| 31 | + <th><?= __d('debug_kit', 'Is Loaded') ?></th> |
| 32 | + <th><?= __d('debug_kit', 'Only Debug') ?></th> |
| 33 | + <th><?= __d('debug_kit', 'Only CLI') ?></th> |
| 34 | + <th><?= __d('debug_kit', 'Optional') ?></th> |
| 35 | + </tr> |
| 36 | + </thead> |
| 37 | + <tbody> |
| 38 | + <?php foreach ($plugins as $pluginName => $pluginConfig) : ?> |
| 39 | + <tr> |
| 40 | + <td><?= $pluginName ?></td> |
| 41 | + <td><?= $pluginConfig['isLoaded'] ? $this->Html->image('DebugKit./img/cake-red.svg') : '' ?></td> |
| 42 | + <td><?= $pluginConfig['onlyDebug'] ? $this->Html->image('DebugKit./img/cake-red.svg') : '' ?></td> |
| 43 | + <td><?= $pluginConfig['onlyCli'] ? $this->Html->image('DebugKit./img/cake-red.svg') : '' ?></td> |
| 44 | + <td><?= $pluginConfig['optional'] ? $this->Html->image('DebugKit./img/cake-red.svg') : '' ?></td> |
| 45 | + </tr> |
| 46 | + <?php endforeach; ?> |
| 47 | + </tbody> |
| 48 | + </table> |
| 49 | + </section> |
| 50 | +</div> |
0 commit comments