@@ -2,13 +2,19 @@ discard block |
||
| 2 | 2 | |
| 3 | 3 | <div id="glbb"> |
| 4 | 4 | <?php foreach ($modules as $module) : /* Ensure that the console entries are loaded last */ ?> |
| 5 | - <?php if (!$module->isVisible() || 'glbb-console' === $module->id()) continue; ?> |
|
| 5 | + <?php if (!$module->isVisible() || 'glbb-console' === $module->id()) { |
|
| 6 | + continue; |
|
| 7 | +} |
|
| 8 | +?> |
|
| 6 | 9 | <div id="<?= $module->id(); ?>" class="glbb-panel glbb-hidden"> |
| 7 | 10 | <?php $module->render(); ?> |
| 8 | 11 | </div> |
| 9 | 12 | <?php endforeach; ?> |
| 10 | 13 | <?php foreach ($modules as $module) : /* Ensure that the console entries are loaded last */ ?> |
| 11 | - <?php if (!$module->isVisible() || 'glbb-console' !== $module->id()) continue; ?> |
|
| 14 | + <?php if (!$module->isVisible() || 'glbb-console' !== $module->id()) { |
|
| 15 | + continue; |
|
| 16 | +} |
|
| 17 | +?> |
|
| 12 | 18 | <div id="<?= $module->id(); ?>" class="glbb-panel glbb-hidden"> |
| 13 | 19 | <?php $module->render(); ?> |
| 14 | 20 | </div> |
@@ -20,7 +26,10 @@ discard block |
||
| 20 | 26 | </span> |
| 21 | 27 | </a> |
| 22 | 28 | <?php foreach ($modules as $module) : ?> |
| 23 | - <?php if (!$module->isVisible()) continue; ?> |
|
| 29 | + <?php if (!$module->isVisible()) { |
|
| 30 | + continue; |
|
| 31 | +} |
|
| 32 | +?> |
|
| 24 | 33 | <a href="#" data-panel="<?= esc_attr($module->id()); ?>" class="dashicons-before <?= $module->id(); ?>"> |
| 25 | 34 | <span><?= $module->label(); ?></span> |
| 26 | 35 | </a> |
@@ -8,9 +8,12 @@ |
||
| 8 | 8 | </tr> |
| 9 | 9 | </tbody> |
| 10 | 10 | </table> |
| 11 | -<?php else : ?> |
|
| 11 | +<?php else { |
|
| 12 | + : ?> |
|
| 12 | 13 | <form> |
| 13 | - <input type="text" id="glbb_queries_sql" placeholder="<?= esc_attr__('Find SQL containing', 'blackbar'); ?>"> |
|
| 14 | + <input type="text" id="glbb_queries_sql" placeholder="<?= esc_attr__('Find SQL containing', 'blackbar'); |
|
| 15 | +} |
|
| 16 | +?>"> |
|
| 14 | 17 | <input type="text" id="glbb_queries_min_time" placeholder="<?= esc_attr__('Minimum execution time', 'blackbar'); ?>"> |
| 15 | 18 | <select id="glbb_queries_sort_by"> |
| 16 | 19 | <option value><?= esc_html__('Sort by execution time', 'blackbar'); ?></option> |
@@ -7,7 +7,8 @@ discard block |
||
| 7 | 7 | <td><?= __('No entries found.', 'blackbar'); ?></td> |
| 8 | 8 | </tr> |
| 9 | 9 | </tbody> |
| 10 | - <?php else : ?> |
|
| 10 | + <?php else { |
|
| 11 | + : ?> |
|
| 11 | 12 | <thead> |
| 12 | 13 | <tr> |
| 13 | 14 | <th>Timer Name</th> |
@@ -20,7 +21,9 @@ discard block |
||
| 20 | 21 | <tbody> |
| 21 | 22 | <?php foreach ($profiler->entries() as $entry) : ?> |
| 22 | 23 | <tr> |
| 23 | - <td><?= esc_html($entry['name']); ?></td> |
|
| 24 | + <td><?= esc_html($entry['name']); |
|
| 25 | +} |
|
| 26 | +?></td> |
|
| 24 | 27 | <td style="text-align: right;"><?= esc_html($entry['memory']); ?> KB</td> |
| 25 | 28 | <td style="text-align: right;"><?= esc_html($entry['start']); ?></td> |
| 26 | 29 | <td style="text-align: right;"><?= esc_html($entry['stop']); ?></td> |
@@ -8,9 +8,12 @@ |
||
| 8 | 8 | </tr> |
| 9 | 9 | </tbody> |
| 10 | 10 | </table> |
| 11 | -<?php else : ?> |
|
| 11 | +<?php else { |
|
| 12 | + : ?> |
|
| 12 | 13 | <form> |
| 13 | - <input type="text" id="glbb_actions_callback" placeholder="<?= esc_attr__('Find callbacks containing', 'blackbar'); ?>"> |
|
| 14 | + <input type="text" id="glbb_actions_callback" placeholder="<?= esc_attr__('Find callbacks containing', 'blackbar'); |
|
| 15 | +} |
|
| 16 | +?>"> |
|
| 14 | 17 | <input type="text" id="glbb_actions_min_time" placeholder="<?= esc_attr__('Minimum total time', 'blackbar'); ?>"> |
| 15 | 18 | <select id="glbb_actions_sort_by"> |
| 16 | 19 | <option value><?= esc_html__('Sort by total time', 'blackbar'); ?></option> |
@@ -10,12 +10,15 @@ |
||
| 10 | 10 | </tbody> |
| 11 | 11 | </table> |
| 12 | 12 | </div> |
| 13 | -<?php else : ?> |
|
| 13 | +<?php else { |
|
| 14 | + : ?> |
|
| 14 | 15 | <div> |
| 15 | 16 | <table class="glbb-grid"> |
| 16 | 17 | <tbody> |
| 17 | 18 | <?php foreach ($console->entries() as $entry) : ?> |
| 18 | - <tr data-errname="<?= esc_attr__($entry['errname']); ?>"> |
|
| 19 | + <tr data-errname="<?= esc_attr__($entry['errname']); |
|
| 20 | +} |
|
| 21 | +?>"> |
|
| 19 | 22 | <td> |
| 20 | 23 | <span class="glbb-info glbb-<?= $entry['errname']; ?>"><?= esc_html($entry['name']); ?></span> |
| 21 | 24 | </td> |