Files
wp-multisite-waas/views/system-info/system-info-table.php
David Stone d88e50df38 Prep Plugin for release on WordPress.org (#23)
* Update translation text domain
* Escape everything that should be escaped.
* Add nonce checks where needed.
* Sanitize all inputs.
* Apply Code style changes across the codebase.
* Correct many deprecation notices.
* Optimize load order of many filters.
* Add Proper Build script
* Use emojii flags
* Fix i18n deprecation  notice for translating too early
* Put all scripts in footer and load async
2025-04-14 11:36:46 -06:00

56 lines
1.2 KiB
PHP

<?php
/**
* System info table view.
*
* @since 2.0.0
*/
?>
<table class='wu-table-auto striped wu-w-full'>
<?php if (empty($data)) : ?>
<tr>
<td colspan="2" class="wu-px-4 wu-py-2">
<?php esc_html_e('No items found.', 'wp-multisite-waas'); ?>
</td>
</tr>
<?php endif; ?>
<?php foreach ($data as $key => $value) : ?>
<tr>
<td class='wu-px-4 wu-py-2 wu-w-4/12'> <?php echo esc_html($value['title']); ?> </td>
<td class='wu-px-4 wu-py-2 wu-text-center wu-w-5'>
<?php echo wu_tooltip($value['tooltip']); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
</td>
<?php if ('Yes' === $value['value'] || 'Enabled' === $value['value']) : ?>
<td class='wu-px-4 wu-py-2'>
<span class="dashicons dashicons-yes wu-text-green-400"></span>
</td>
<?php elseif ('No' === $value['value'] || 'Disabled' === $value['value']) : ?>
<td class='wu-px-4 wu-py-2'>
<span class="dashicons dashicons-no-alt wu-text-red-600"></span>
</td>
<?php else : ?>
<td class='wu-px-4 wu-py-2'> <?php echo esc_html($value['value']); ?> </td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</table>