Initial Commit

This commit is contained in:
David Stone
2024-11-30 18:24:12 -07:00
commit e8f7955c1c
5432 changed files with 1397750 additions and 0 deletions

View File

@ -0,0 +1,54 @@
<?php
/**
* System info table view.
*
* @since 2.0.0
*/
$text_yes = '<span class="dashicons dashicons-yes wu-text-green-400"></span>';
$text_no = '<span class="dashicons dashicons-no-alt wu-text-red-600"></span>';
?>
<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 _e('No items found.', 'wp-ultimo'); ?>
</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 $value['title']; ?> </td>
<td class='wu-px-4 wu-py-2 wu-text-center wu-w-5'>
<?php echo wu_tooltip($value['tooltip']); ?>
</td>
<?php if ($value['value'] === 'Yes' || $value['value'] === 'Enabled') : ?>
<td class='wu-px-4 wu-py-2'> <?php echo $text_yes; ?> </td>
<?php elseif ($value['value'] === 'No' || $value['value'] === 'Disabled') : ?>
<td class='wu-px-4 wu-py-2'> <?php echo $text_no; ?> </td>
<?php else : ?>
<td class='wu-px-4 wu-py-2'> <?php echo $value['value']; ?> </td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</table>

View File

@ -0,0 +1,70 @@
<?php
/**
* System info view.
*
* @since 2.0.0
*/
?>
<?php wp_nonce_field('meta-box-order', 'meta-box-order-nonce', false); ?>
<?php wp_nonce_field('closedpostboxes', 'closedpostboxesnonce', false); ?>
<div id="wp-ultimo-wrap" class="<?php wu_wrap_use_container() ?> wrap">
<h1 class="wp-heading-inline"><?php _e('System Info', 'wp-ultimo'); ?></h1>
<textarea cols="100" rows="40" aria-hidden="true" class="screen-reader-text" id="hidden_textarea">
<?php foreach ($data as $name_type => $type) : ?>
<?php echo "\n".$name_type."\n"; ?>
<?php foreach ($type as $key => $value) : ?>
<?php echo $value['title'].': '.$value['value']."\n"; ?>
<?php endforeach; ?>
<?php endforeach; ?>
</textarea>
<button data-clipboard-action="copy" data-clipboard-target="#hidden_textarea" class="btn page-title-action">
<span class="dashicons dashicons-admin-page wu-text-sm wu-align-middle wu-h-4 wu-w-4">&nbsp;</span>
<?php _e('Copy Data to Clipboard', 'wp-ultimo'); ?>
</button>
<a href="<?php echo admin_url('admin-ajax.php?action=wu_generate_text_file_system_info'); ?>" class="page-title-action">
<span class="dashicons dashicons-download wu-text-sm wu-align-middle wu-h-4 wu-w-4">&nbsp;</span>
<?php _e('Download File', 'wp-ultimo'); ?>
</a>
<div id="poststuff">
<div id="post-body" class="">
<div id="post-body-content">
<?php do_meta_boxes($screen->id, 'normal', ''); ?>
</div>
</div>
</div>
</div>
<!-- Instantiate clipboard by passing a string selector -->
<script>
var clipboard = new ClipboardJS('.btn');
</script>
<style>
.meta-box-sortables .inside {
margin:0 !important;
padding:0;
}
.meta-box-sortables h2 {
margin:0;
padding:0;
}
</style>