Use new code style

This commit is contained in:
David Stone
2025-02-07 19:02:33 -07:00
parent 0181024ae1
commit 8433379d90
672 changed files with 37107 additions and 45249 deletions

View File

@ -7,36 +7,36 @@
?>
<div class="wu-bg-white wu-p-4 wu--mx-6 wu-flex wu-content-center" style="height: 400px;">
<div class="wu-self-center wu-text-center wu-w-full">
<div class="wu-self-center wu-text-center wu-w-full">
<span class="dashicons dashicons-warning wu-w-auto wu-h-auto wu-text-5xl wu-mb-2"></span>
<span class="dashicons dashicons-warning wu-w-auto wu-h-auto wu-text-5xl wu-mb-2"></span>
<h1 class="wu-text-gray-800">
<?php _e('Caution!', 'wp-ultimo'); ?>
</h1>
<h1 class="wu-text-gray-800">
<?php _e('Caution!', 'wp-ultimo'); ?>
</h1>
<p class="wu-text-lg wu-text-gray-600 wu-my-4">
<?php _e('This action is irreversible and may cause unexpected behavior in your data, be sure of what you are doing and have a backup in case of some trouble!', 'wp-ultimo'); ?>
</p>
<p class="wu-text-lg wu-text-gray-600 wu-my-4">
<?php _e('This action is irreversible and may cause unexpected behavior in your data, be sure of what you are doing and have a backup in case of some trouble!', 'wp-ultimo'); ?>
</p>
<p class="wu-text-lg wu-text-gray-600 wu-my-4">
<?php _e('This will forcely rerun our Migration Wizard on your installation. If you tried to migrate after install but your v1 data is missing, this can resolve.', 'wp-ultimo'); ?>
</p>
<p class="wu-text-lg wu-text-gray-600 wu-my-4">
<?php _e('This will forcely rerun our Migration Wizard on your installation. If you tried to migrate after install but your v1 data is missing, this can resolve.', 'wp-ultimo'); ?>
</p>
</div>
</div>
</div>
<!-- Submit Box -->
<div class="wu-bg-gray-100 wu--m-in wu-mt-4 wu-p-4 wu-overflow-hidden wu-border-t wu-border-solid wu-border-l-0 wu-border-r-0 wu-border-b-0 wu-border-gray-300">
<span class="wu-float-right">
<span class="wu-float-right">
<button name="next" value="1" class="wu-next-button button button-primary button-large wu-ml-2">
<?php _e('Proceed', 'wp-ultimo'); ?>
</button>
<button name="next" value="1" class="wu-next-button button button-primary button-large wu-ml-2">
<?php _e('Proceed', 'wp-ultimo'); ?>
</button>
</span>
</span>
</div>
<!-- End Submit Box -->

View File

@ -6,53 +6,53 @@
*/
?>
<h1>
<?php echo $title; ?>
<?php echo $title; ?>
</h1>
<?php if ($description) : ?>
<p class="wu-text-lg wu-text-gray-600 wu-mt-4 wu-mb-0">
<?php echo $description; ?>
</p>
<p class="wu-text-lg wu-text-gray-600 wu-mt-4 wu-mb-0">
<?php echo $description; ?>
</p>
<?php endif; ?>
<div class="wu-bg-white wu-p-4 wu--mx-5">
<?php echo $content; ?>
<?php echo $content; ?>
</div>
<!-- Submit Box -->
<div class="wu-flex wu-justify-between wu-bg-gray-100 wu--m-in wu-mt-4 wu-p-4 wu-overflow-hidden wu-border-t wu-border-solid wu-border-l-0 wu-border-r-0 wu-border-b-0 wu-border-gray-300">
<?php if ($back) : ?>
<?php if ($back) : ?>
<a href="<?php echo esc_attr($page->get_prev_section_link()); ?>" class="wu-self-center button button-large wu-float-left">
<?php echo $back_label; ?>
</a>
<a href="<?php echo esc_attr($page->get_prev_section_link()); ?>" class="wu-self-center button button-large wu-float-left">
<?php echo $back_label; ?>
</a>
<?php endif; ?>
<?php endif; ?>
<div class="wu-text-right wu-relative wu-w-full">
<div class="wu-text-right wu-relative wu-w-full">
<?php if ($skip) : ?>
<?php if ($skip) : ?>
<a href="<?php echo esc_attr($page->get_next_section_link()); ?>" class="wu-skip-button button button-large">
<?php echo $skip_label; ?>
</a>
<a href="<?php echo esc_attr($page->get_next_section_link()); ?>" class="wu-skip-button button button-large">
<?php echo $skip_label; ?>
</a>
<?php endif; ?>
<?php endif; ?>
<?php if ($next) : ?>
<?php if ($next) : ?>
<button name="next" value="1" class="wu-next-button button button-primary button-large wu-ml-2">
<?php echo $next_label; ?>
</button>
<button name="next" value="1" class="wu-next-button button button-primary button-large wu-ml-2">
<?php echo $next_label; ?>
</button>
<?php endif; ?>
<?php endif; ?>
</div>
</div>
</div>
<!-- End Submit Box -->

View File

@ -6,62 +6,62 @@
*/
?>
<div class="wu-advanced-filters">
<table class="widefat fixed striped wu-border-b" data-id="<?php echo esc_attr($page->get_current_section()); ?>">
<thead>
<tr>
<?php if ($checks) : ?>
<th class="check" style="width: 30px;"></th>
<?php endif ?>
<th class="item"><?php _e( 'Item', 'wp-ultimo'); ?></th>
<th class="status" style="width: 40%;"><?php _e( 'Status', 'wp-ultimo'); ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($steps as $slug => $default) : ?>
<table class="widefat fixed striped wu-border-b" data-id="<?php echo esc_attr($page->get_current_section()); ?>">
<thead>
<tr>
<?php if ($checks) : ?>
<th class="check" style="width: 30px;"></th>
<?php endif ?>
<th class="item"><?php _e('Item', 'wp-ultimo'); ?></th>
<th class="status" style="width: 40%;"><?php _e('Status', 'wp-ultimo'); ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($steps as $slug => $default) : ?>
<tr
<?php echo !$default['done'] ? 'data-content="'.esc_attr($slug).'"' : ''; ?>
<?php echo wu_array_to_html_attrs(wu_get_isset($default, 'html_attr', array())); ?>
>
<tr
<?php echo ! $default['done'] ? 'data-content="' . esc_attr($slug) . '"' : ''; ?>
<?php echo wu_array_to_html_attrs(wu_get_isset($default, 'html_attr', array())); ?>
>
<?php if ($checks) : ?>
<td>
<?php if (!$default['done']) : ?>
<input type="checkbox" name="default_content[<?php echo esc_attr($slug); ?>]" id="default_content_<?php echo esc_attr($slug); ?>" value="1" checked>
<?php endif ?>
</td>
<?php endif ?>
<?php if ($checks) : ?>
<td>
<?php if ( ! $default['done']) : ?>
<input type="checkbox" name="default_content[<?php echo esc_attr($slug); ?>]" id="default_content_<?php echo esc_attr($slug); ?>" value="1" checked>
<?php endif ?>
</td>
<?php endif ?>
<td>
<label class="wu-font-semibold wu-text-gray-700" for="default_content_<?php echo esc_attr( $slug ); ?>">
<?php echo $default['title']; ?>
</label>
<span class="wu-text-xs wu-block wu-mt-1">
<?php echo $default['description']; ?>
</span>
</td>
<td>
<label class="wu-font-semibold wu-text-gray-700" for="default_content_<?php echo esc_attr($slug); ?>">
<?php echo $default['title']; ?>
</label>
<span class="wu-text-xs wu-block wu-mt-1">
<?php echo $default['description']; ?>
</span>
</td>
<?php if ($default['done']) : ?>
<td class="status">
<span class="wu-text-green-600">
<?php echo isset($default['completed']) ? $default['completed'] : __('Completed!', 'wp-ultimo'); ?>
</span>
</td>
<?php else : ?>
<td class="status">
<span><?php echo $default['pending']; ?></span>
<div class="spinner"></div>
<!-- <a style="display: none;" class="wu-no-underline wu-block help" href="<?php echo $default['help']; ?>" title="<?php esc_attr_e('Help', 'wp-ultimo'); ?>">
<?php _e('Read More', 'wp-ultimo'); ?>
<span class="dashicons-wu-help-with-circle"></span>
</a> -->
</td>
<?php endif; ?>
<?php if ($default['done']) : ?>
<td class="status">
<span class="wu-text-green-600">
<?php echo isset($default['completed']) ? $default['completed'] : __('Completed!', 'wp-ultimo'); ?>
</span>
</td>
<?php else : ?>
<td class="status">
<span><?php echo $default['pending']; ?></span>
<div class="spinner"></div>
<!-- <a style="display: none;" class="wu-no-underline wu-block help" href="<?php echo $default['help']; ?>" title="<?php esc_attr_e('Help', 'wp-ultimo'); ?>">
<?php _e('Read More', 'wp-ultimo'); ?>
<span class="dashicons-wu-help-with-circle"></span>
</a> -->
</td>
<?php endif; ?>
</tr>
</tr>
<?php endforeach; ?>
<?php endforeach; ?>
</tbody>
</table>
</tbody>
</table>
</div>

View File

@ -7,49 +7,49 @@
?>
<div class="wu-bg-white wu-p-4 wu--mx-6 wu-flex wu-content-center" style="height: 400px;">
<div class="wu-self-center wu-text-center wu-w-full">
<div class="wu-self-center wu-text-center wu-w-full">
<span class="dashicons dashicons-yes-alt wu-text-green-400 wu-w-auto wu-h-auto wu-text-5xl wu-mb-2"></span>
<span class="dashicons dashicons-yes-alt wu-text-green-400 wu-w-auto wu-h-auto wu-text-5xl wu-mb-2"></span>
<h1 class="wu-text-gray-800">
<?php echo sprintf(__('We are ready, %s!', 'wp-ultimo'), apply_filters('wu_setup_step_done_name', isset($page->customer->first) ? $page->customer->first : __('my friend', 'wp-ultimo'))); ?>
</h1>
<h1 class="wu-text-gray-800">
<?php printf(__('We are ready, %s!', 'wp-ultimo'), apply_filters('wu_setup_step_done_name', isset($page->customer->first) ? $page->customer->first : __('my friend', 'wp-ultimo'))); ?>
</h1>
<p class="wu-text-lg wu-text-gray-600 wu-my-4">
<?php _e('WP Multisite WaaS would not be possible without the work of <a href="https://wpultimo.com/" target="_blank">Arindo Duque</a> and <a href="https://nextpress.co" target="_blank">NextPress</a>.', 'wp-ultimo'); ?>
</p>
<p class="wu-text-lg wu-text-gray-600 wu-my-4">
<?php _e('WP Multisite WaaS would not be possible without the work of <a href="https://wpultimo.com/" target="_blank">Arindo Duque</a> and <a href="https://nextpress.co" target="_blank">NextPress</a>.', 'wp-ultimo'); ?>
</p>
<p class="wu-text-lg wu-text-gray-600 wu-my-4">
<?php _e('WP Multisite WaaS is maintained by volunteer open source developers. Please consider sponsoring the project on <a href="https://github.com/superdav42/wp-multisite-waas" target="_blank">GitHub</a>', 'wp-ultimo');?>
</p>
<p class="wu-text-lg wu-text-gray-600 wu-my-4">
<?php _e('WP Multisite WaaS is maintained by volunteer open source developers. Please consider sponsoring the project on <a href="https://github.com/superdav42/wp-multisite-waas" target="_blank">GitHub</a>', 'wp-ultimo'); ?>
</p>
<p class="wu-text-lg wu-text-gray-600 wu-my-4">
<?php _e('Paid support is available. Go to <a href="https://wpmultisitewaas.org/support" target="_blank">The Support Page</a> to find an expert who can assist in setting up WP Multisite WaaS or custom development.', 'wp-ultimo');?>
</p>
<p class="wu-text-lg wu-text-gray-600 wu-my-4">
<?php _e('Paid support is available. Go to <a href="https://wpmultisitewaas.org/support" target="_blank">The Support Page</a> to find an expert who can assist in setting up WP Multisite WaaS or custom development.', 'wp-ultimo'); ?>
</p>
<p class="wu-text-lg wu-text-gray-600 wu-my-4">
<?php _e('You now have everything you need in place to start building your Website as a Service business!', 'wp-ultimo'); ?>
</p>
<p class="wu-text-lg wu-text-gray-600 wu-my-4">
<?php _e('You now have everything you need in place to start building your Website as a Service business!', 'wp-ultimo'); ?>
</p>
<p>
<a href="https://twitter.com/share" class="twitter-share-button" data-url="https://wpmultisitewaas.org" data-text="<?php echo esc_attr('I just created my own premium WordPress site network with #wpmultisitewaas'); ?>" data-via="WPUltimo" data-size="large">Tell the World!</a>
<p>
<a href="https://twitter.com/share" class="twitter-share-button" data-url="https://wpmultisitewaas.org" data-text="<?php echo esc_attr('I just created my own premium WordPress site network with #wpmultisitewaas'); ?>" data-via="WPUltimo" data-size="large">Tell the World!</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
</p>
</p>
</div>
</div>
</div>
<!-- Submit Box -->
<div class="wu-bg-gray-100 wu--m-in wu-mt-4 wu-p-4 wu-overflow-hidden wu-border-t wu-border-solid wu-border-l-0 wu-border-r-0 wu-border-b-0 wu-border-gray-300">
<span class="wu-float-right">
<span class="wu-float-right">
<a href="<?php echo esc_url(network_admin_url('index.php')); ?>" class="button button-primary button-large">
<?php _e('Thanks!', 'wp-ultimo'); ?>
</a>
<a href="<?php echo esc_url(network_admin_url('index.php')); ?>" class="button button-primary button-large">
<?php _e('Thanks!', 'wp-ultimo'); ?>
</a>
</span>
</span>
</div>
<!-- End Submit Box -->

View File

@ -7,89 +7,89 @@
?>
<div class="wu-block">
<div class="wu-block wu-text-gray-700 wu-font-bold wu-uppercase wu-text-xs wu-py-2">
<?php echo __('WP Multisite WaaS Requires:', 'wp-ultimo'); ?>
</div>
<div class="wu-block wu-text-gray-700 wu-font-bold wu-uppercase wu-text-xs wu-py-2">
<?php echo __('WP Multisite WaaS Requires:', 'wp-ultimo'); ?>
</div>
<div class="wu-advanced-filters">
<table class="widefat fixed striped wu-border-b">
<thead>
<tr>
<th><?php _e('Item', 'wp-ultimo'); ?></th>
<th><?php _e('Minimum Version', 'wp-ultimo'); ?></th>
<th><?php _e('Recommended', 'wp-ultimo'); ?></th>
<th><?php _e('Installed', 'wp-ultimo'); ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($requirements as $req) : ?>
<tr class="">
<td><?php echo $req['name']; ?></td>
<td><?php echo $req['required_version']; ?></td>
<?php // translators: %s is the requirement version ?>
<td><?php echo sprintf(__('%s or later'), $req['recommended_version']); ?></td>
<td class="<?php echo $req['pass_requirements'] ? 'wu-text-green-600' : 'wu-text-red-600'; ?>">
<?php echo $req['installed_version']; ?>
<?php echo $req['pass_requirements'] ? '<span class="dashicons-wu-check"></span>' : '<span class="dashicons-wu-cross"></span>'; ?>
<div class="wu-advanced-filters">
<table class="widefat fixed striped wu-border-b">
<thead>
<tr>
<th><?php _e('Item', 'wp-ultimo'); ?></th>
<th><?php _e('Minimum Version', 'wp-ultimo'); ?></th>
<th><?php _e('Recommended', 'wp-ultimo'); ?></th>
<th><?php _e('Installed', 'wp-ultimo'); ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($requirements as $req) : ?>
<tr class="">
<td><?php echo $req['name']; ?></td>
<td><?php echo $req['required_version']; ?></td>
<?php // translators: %s is the requirement version ?>
<td><?php printf(__('%s or later'), $req['recommended_version']); ?></td>
<td class="<?php echo $req['pass_requirements'] ? 'wu-text-green-600' : 'wu-text-red-600'; ?>">
<?php echo $req['installed_version']; ?>
<?php echo $req['pass_requirements'] ? '<span class="dashicons-wu-check"></span>' : '<span class="dashicons-wu-cross"></span>'; ?>
<?php if (!$req['pass_requirements']) : ?>
<?php if ( ! $req['pass_requirements']) : ?>
<a class="wu-no-underline wu-block" href="<?php echo $req['help']; ?>" title="<?php esc_attr_e('Help', 'wp-ultimo'); ?>">
<?php _e('Read More', 'wp-ultimo'); ?>
<span class="dashicons-wu-help-with-circle"></span>
</a>
<a class="wu-no-underline wu-block" href="<?php echo $req['help']; ?>" title="<?php esc_attr_e('Help', 'wp-ultimo'); ?>">
<?php _e('Read More', 'wp-ultimo'); ?>
<span class="dashicons-wu-help-with-circle"></span>
</a>
<?php endif; ?>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<br>
</div>
<?php endif; ?>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<br>
</div>
<div class="wu-block wu-text-gray-700 wu-font-bold wu-uppercase wu-text-xs wu-py-2">
<?php echo __('And', 'wp-ultimo'); ?>
</div>
<div class="wu-block wu-text-gray-700 wu-font-bold wu-uppercase wu-text-xs wu-py-2">
<?php echo __('And', 'wp-ultimo'); ?>
</div>
<div class="wu-advanced-filters">
<table class="widefat fixed striped wu-border-b">
<thead>
<tr>
<th><?php _e('Item', 'wp-ultimo'); ?></th>
<th><?php _e('Condition', 'wp-ultimo'); ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($plugin_requirements as $req) : ?>
<tr class="">
<td><?php echo $req['name']; ?></td>
<td class="<?php echo $req['pass_requirements'] ? 'wu-text-green-600' : 'wu-text-red-600'; ?>">
<?php echo $req['condition']; ?>
<?php echo $req['pass_requirements'] ? '<span class="dashicons-wu-check"></span>' : '<span class="dashicons-wu-cross wu-align-middle"></span>'; ?>
<div class="wu-advanced-filters">
<table class="widefat fixed striped wu-border-b">
<thead>
<tr>
<th><?php _e('Item', 'wp-ultimo'); ?></th>
<th><?php _e('Condition', 'wp-ultimo'); ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($plugin_requirements as $req) : ?>
<tr class="">
<td><?php echo $req['name']; ?></td>
<td class="<?php echo $req['pass_requirements'] ? 'wu-text-green-600' : 'wu-text-red-600'; ?>">
<?php echo $req['condition']; ?>
<?php echo $req['pass_requirements'] ? '<span class="dashicons-wu-check"></span>' : '<span class="dashicons-wu-cross wu-align-middle"></span>'; ?>
<?php if (!$req['pass_requirements']) : ?>
<?php if ( ! $req['pass_requirements']) : ?>
<a target="_blank" class="wu-no-underline wu-ml-2" href="<?php echo $req['help']; ?>" title="<?php esc_attr_e('Help', 'wp-ultimo'); ?>">
<span class="dashicons-wu-help-with-circle wu-align-baseline"></span>
<?php _e('Read More', 'wp-ultimo'); ?>
</a>
<a target="_blank" class="wu-no-underline wu-ml-2" href="<?php echo $req['help']; ?>" title="<?php esc_attr_e('Help', 'wp-ultimo'); ?>">
<span class="dashicons-wu-help-with-circle wu-align-baseline"></span>
<?php _e('Read More', 'wp-ultimo'); ?>
</a>
<?php endif; ?>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<br>
</div>
<?php endif; ?>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<br>
</div>
<?php if (\WP_Ultimo\Requirements::met() === false) : ?>
<?php if (\WP_Ultimo\Requirements::met() === false) : ?>
<div class="wu-mt-4 wu-p-4 wu-bg-red-100 wu-border wu-border-solid wu-border-red-200 wu-rounded-sm wu-text-red-500">
<?php _e('It looks like your hosting environment does not support the current version of WP Multisite WaaS. Visit the <strong>Read More</strong> links on each item to see what steps you need to take to bring your environment up to the WP Multisite WaaS current requirements.', 'wp-ultimo'); ?>
</div>
<div class="wu-mt-4 wu-p-4 wu-bg-red-100 wu-border wu-border-solid wu-border-red-200 wu-rounded-sm wu-text-red-500">
<?php _e('It looks like your hosting environment does not support the current version of WP Multisite WaaS. Visit the <strong>Read More</strong> links on each item to see what steps you need to take to bring your environment up to the WP Multisite WaaS current requirements.', 'wp-ultimo'); ?>
</div>
<?php endif; ?>
<?php endif; ?>
</div>

View File

@ -6,38 +6,38 @@
*/
?>
<div class="wu--mt-7">
<p><?php _e('This plugin comes with support for issues you may have. Support can be requested via email on <a class="wu-no-underline" href="mailto:support@wpultimo.com" target="_blank">support@wpultimo.com</a> and includes:', 'wp-ultimo'); ?></p>
<p><?php _e('This plugin comes with support for issues you may have. Support can be requested via email on <a class="wu-no-underline" href="mailto:support@wpultimo.com" target="_blank">support@wpultimo.com</a> and includes:', 'wp-ultimo'); ?></p>
<ul class="support-available">
<li class="wu-text-green-700">
<span class="dashicons-wu-check"></span>
<?php _e('Availability of the author to answer questions', 'wp-ultimo'); ?>
</li>
<li class="wu-text-green-700">
<span class="dashicons-wu-check"></span>
<?php _e('Answering technical questions about item features', 'wp-ultimo'); ?>
</li>
<li class="wu-text-green-700">
<span class="dashicons-wu-check"></span>
<?php _e('Assistance with reported bugs and issues', 'wp-ultimo'); ?>
</li>
</ul>
<ul class="support-available">
<li class="wu-text-green-700">
<span class="dashicons-wu-check"></span>
<?php _e('Availability of the author to answer questions', 'wp-ultimo'); ?>
</li>
<li class="wu-text-green-700">
<span class="dashicons-wu-check"></span>
<?php _e('Answering technical questions about item features', 'wp-ultimo'); ?>
</li>
<li class="wu-text-green-700">
<span class="dashicons-wu-check"></span>
<?php _e('Assistance with reported bugs and issues', 'wp-ultimo'); ?>
</li>
</ul>
<p><?php _e('Support <strong>DOES NOT</strong> Include:', 'wp-ultimo'); ?></p>
<p><?php _e('Support <strong>DOES NOT</strong> Include:', 'wp-ultimo'); ?></p>
<ul class="support-unavailable">
<li class="wu-text-red-500">
<span class="dashicons-wu-circle-with-cross wu-align-middle"></span>
<?php _e('Customization services', 'wp-ultimo'); ?>
</li>
<li class="wu-text-red-500">
<span class="dashicons-wu-circle-with-cross wu-align-middle"></span>
<?php _e('Installation services', 'wp-ultimo'); ?>
</li>
<li class="wu-text-red-500">
<span class="dashicons-wu-circle-with-cross wu-align-middle"></span>
<?php _e('Support for 3rd party plugins (i.e. plugins you install yourself later on)', 'wp-ultimo'); ?>
</li>
</ul>
<ul class="support-unavailable">
<li class="wu-text-red-500">
<span class="dashicons-wu-circle-with-cross wu-align-middle"></span>
<?php _e('Customization services', 'wp-ultimo'); ?>
</li>
<li class="wu-text-red-500">
<span class="dashicons-wu-circle-with-cross wu-align-middle"></span>
<?php _e('Installation services', 'wp-ultimo'); ?>
</li>
<li class="wu-text-red-500">
<span class="dashicons-wu-circle-with-cross wu-align-middle"></span>
<?php _e('Support for 3rd party plugins (i.e. plugins you install yourself later on)', 'wp-ultimo'); ?>
</li>
</ul>
</div>