| 1 |
<?php defined('WPINC') || exit; ?> |
| 2 |
|
| 3 |
<div id="glbb"> |
| 4 |
<?php foreach ($modules as $module) : /* Ensure that the console entries are loaded last */ ?> |
| 5 |
<?php if (!$module->isVisible() || 'glbb-console' === $module->id()) continue; ?> |
| 6 |
<div id="<?= $module->id(); ?>" class="glbb-panel glbb-hidden"> |
| 7 |
<?php $module->render(); ?> |
| 8 |
</div> |
| 9 |
<?php endforeach; ?> |
| 10 |
<?php foreach ($modules as $module) : /* Ensure that the console entries are loaded last */ ?> |
| 11 |
<?php if (!$module->isVisible() || 'glbb-console' !== $module->id()) continue; ?> |
| 12 |
<div id="<?= $module->id(); ?>" class="glbb-panel glbb-hidden"> |
| 13 |
<?php $module->render(); ?> |
| 14 |
</div> |
| 15 |
<?php endforeach; ?> |
| 16 |
<div class="glbb-panel-links"> |
| 17 |
<div> |
| 18 |
<a class="dashicons-before dashicons-no-alt glbb-close"> |
| 19 |
<span class="screen-reader-text"> |
| 20 |
<?= esc_html__('Close', 'blackbar'); ?> |
| 21 |
</span> |
| 22 |
</a> |
| 23 |
<a class="dashicons-before dashicons-arrow-left-alt glbb-toggle" tabindex="0"> |
| 24 |
<span class="screen-reader-text"> |
| 25 |
<?= esc_html__('Toggle', 'blackbar'); ?> |
| 26 |
</span> |
| 27 |
</a> |
| 28 |
</div> |
| 29 |
<?php foreach ($modules as $module) : ?> |
| 30 |
<?php if (!$module->isVisible()) continue; ?> |
| 31 |
<a data-panel="<?= esc_attr($module->id()); ?>" data-info="<?= esc_attr($module->info()); ?>" class="dashicons-before <?= $module->icon(); ?> <?= $module->classes(); ?>" tabindex="0"> |
| 32 |
<span><?= $module->label(); ?></span> |
| 33 |
</a> |
| 34 |
<?php endforeach; ?> |
| 35 |
</div> |
| 36 |
</div> |
| 37 |
|