@@ -1,20 +1,20 @@ |
||
1 | -<?php defined('WPINC') || die; ?> |
|
1 | +<?php defined( 'WPINC' ) || die; ?> |
|
2 | 2 | |
3 | 3 | <table> |
4 | 4 | <tbody> |
5 | - <?php if (!$console->hasEntries()) : ?> |
|
5 | + <?php if( !$console->hasEntries() ) : ?> |
|
6 | 6 | <tr> |
7 | - <td><?= __('No entries found.', 'blackbar'); ?></td> |
|
7 | + <td><?= __( 'No entries found.', 'blackbar' ); ?></td> |
|
8 | 8 | </tr> |
9 | 9 | <?php else : ?> |
10 | - <?php foreach ($console->entries() as $entry) : ?> |
|
10 | + <?php foreach( $console->entries() as $entry ) : ?> |
|
11 | 11 | <tr> |
12 | 12 | <td class="glbb-small"> |
13 | - <span class="glbb-info glbb-<?= $entry['errname']; ?>"> |
|
14 | - <?= esc_html($entry['name']); ?> |
|
13 | + <span class="glbb-info glbb-<?= $entry[ 'errname' ]; ?>"> |
|
14 | + <?= esc_html( $entry[ 'name' ] ); ?> |
|
15 | 15 | </span> |
16 | 16 | </td> |
17 | - <td><?= esc_html($entry['message']); ?></td> |
|
17 | + <td><?= esc_html( $entry[ 'message' ] ); ?></td> |
|
18 | 18 | </tr> |
19 | 19 | <?php endforeach; ?> |
20 | 20 | <?php endif; ?> |
@@ -6,11 +6,14 @@ |
||
6 | 6 | <tr> |
7 | 7 | <td><?= __('No entries found.', 'blackbar'); ?></td> |
8 | 8 | </tr> |
9 | - <?php else : ?> |
|
9 | + <?php else { |
|
10 | + : ?> |
|
10 | 11 | <?php foreach ($console->entries() as $entry) : ?> |
11 | 12 | <tr> |
12 | 13 | <td class="glbb-small"> |
13 | - <span class="glbb-info glbb-<?= $entry['errname']; ?>"> |
|
14 | + <span class="glbb-info glbb-<?= $entry['errname']; |
|
15 | +} |
|
16 | +?>"> |
|
14 | 17 | <?= esc_html($entry['name']); ?> |
15 | 18 | </span> |
16 | 19 | </td> |