@@ -1,14 +1,14 @@ discard block |
||
| 1 | -<?php defined('WPINC') || die; ?> |
|
| 1 | +<?php defined( 'WPINC' ) || die; ?> |
|
| 2 | 2 | |
| 3 | 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; ?> |
|
| 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 | 6 | <div id="<?= $module->id(); ?>" class="glbb-panel glbb-hidden"> |
| 7 | 7 | <?php $module->render(); ?> |
| 8 | 8 | </div> |
| 9 | 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; ?> |
|
| 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 | 12 | <div id="<?= $module->id(); ?>" class="glbb-panel glbb-hidden"> |
| 13 | 13 | <?php $module->render(); ?> |
| 14 | 14 | </div> |
@@ -16,19 +16,19 @@ discard block |
||
| 16 | 16 | <div class="glbb-panel-links"> |
| 17 | 17 | <a href="#" class="dashicons-before glbb-toggle"> |
| 18 | 18 | <span class="screen-reader-text"> |
| 19 | - <?= esc_html__('Toggle', 'blackbar'); ?> |
|
| 19 | + <?= esc_html__( 'Toggle', 'blackbar' ); ?> |
|
| 20 | 20 | </span> |
| 21 | 21 | </a> |
| 22 | - <?php foreach ($modules as $module) : ?> |
|
| 23 | - <?php if (!$module->isVisible()) continue; ?> |
|
| 24 | - <a href="#" data-panel="<?= esc_attr($module->id()); ?>" data-info="<?= esc_attr($module->info()); ?>" class="dashicons-before <?= $module->classes(); ?>"> |
|
| 22 | + <?php foreach( $modules as $module ) : ?> |
|
| 23 | + <?php if( !$module->isVisible() ) continue; ?> |
|
| 24 | + <a href="#" data-panel="<?= esc_attr( $module->id() ); ?>" data-info="<?= esc_attr( $module->info() ); ?>" class="dashicons-before <?= $module->classes(); ?>"> |
|
| 25 | 25 | <span><?= $module->label(); ?></span> |
| 26 | 26 | </a> |
| 27 | 27 | <?php endforeach; ?> |
| 28 | 28 | <div> |
| 29 | 29 | <a href="#" class="dashicons-before glbb-close"> |
| 30 | 30 | <span class="screen-reader-text"> |
| 31 | - <?= esc_html__('Close', 'blackbar'); ?> |
|
| 31 | + <?= esc_html__( 'Close', 'blackbar' ); ?> |
|
| 32 | 32 | </span> |
| 33 | 33 | </a> |
| 34 | 34 | </div> |
@@ -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()); ?>" data-info="<?= esc_attr($module->info()); ?>" class="dashicons-before <?= $module->classes(); ?>"> |
| 25 | 34 | <span><?= $module->label(); ?></span> |
| 26 | 35 | </a> |