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
This commit is contained in:
@ -6,11 +6,11 @@
|
||||
*/
|
||||
?>
|
||||
<h1>
|
||||
<?php printf(__('Activate %s Integration', 'wp-ultimo'), $integration->get_title()); ?>
|
||||
<?php printf(__('Activate %s Integration', 'wp-multisite-waas'), $integration->get_title()); ?>
|
||||
</h1>
|
||||
|
||||
<p class="wu-text-lg wu-text-gray-600 wu-my-4">
|
||||
<?php echo $integration->get_description(); ?>
|
||||
<?php echo $integration->get_description(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
|
||||
</p>
|
||||
|
||||
<div class="wu-bg-white wu-p-4 wu--mx-6">
|
||||
@ -18,7 +18,7 @@
|
||||
<div class="wu-flex wu-justify-center">
|
||||
|
||||
<div class="wu-flex wu-content-center">
|
||||
<img style="width: 150px;" class="wu-self-center" src="<?php echo wu_get_network_logo(); ?>">
|
||||
<img style="width: 150px;" class="wu-self-center" src="<?php echo esc_url(wu_get_network_logo()); ?>">
|
||||
</div>
|
||||
|
||||
<div class="wu-text-2xl wu-self-center wu-m-8">→</div>
|
||||
@ -32,7 +32,7 @@
|
||||
<div>
|
||||
|
||||
<span class="wu-text-sm wu-text-gray-800 wu-inline-block wu-py-4">
|
||||
<?php _e('This integration will:', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('This integration will:', 'wp-multisite-waas'); ?>
|
||||
</span>
|
||||
|
||||
<ul class="wu--mx-5 wu-my-0 wu-border-t wu-border-solid wu-border-l-0 wu-border-r-0 wu-border-b-0 wu-border-gray-300">
|
||||
@ -41,7 +41,7 @@
|
||||
|
||||
<li class="wu-flex wu-content-center wu-py-2 wu-px-4 wu-bg-gray-100 wu-border-t-0 wu-border-solid wu-border-l-0 wu-border-r-0 wu-border-b wu-border-gray-300 wu-m-0">
|
||||
<span class="dashicons dashicons-yes-alt wu-text-green-400 wu-self-center wu-mr-2"></span>
|
||||
<span><?php echo $line; ?></span>
|
||||
<span><?php echo esc_html($line); ?></span>
|
||||
</li>
|
||||
|
||||
<?php endforeach; ?>
|
||||
@ -54,7 +54,7 @@
|
||||
<div>
|
||||
|
||||
<span class="wu-text-sm wu-text-gray-800 wu-inline-block wu-py-4">
|
||||
<?php _e('This integration will <strong>not</strong>:', 'wp-ultimo'); ?>
|
||||
<?php echo wp_kses(__('This integration will <strong>not</strong>:', 'wp-multisite-waas'), ['strong' => []]); ?>
|
||||
</span>
|
||||
|
||||
<ul class="wu--mx-5 wu-my-0 wu-border-t wu-border-solid wu-border-l-0 wu-border-r-0 wu-border-b-0 wu-border-gray-300">
|
||||
@ -63,7 +63,7 @@
|
||||
|
||||
<li class="wu-flex wu-content-center wu-py-2 wu-px-4 wu-bg-gray-100 wu-border-t-0 wu-border-solid wu-border-l-0 wu-border-r-0 wu-border-b wu-border-gray-300 wu-m-0">
|
||||
<span class="dashicons dashicons-dismiss wu-text-red-400 wu-self-center wu-mr-2"></span>
|
||||
<span><?php echo $line; ?></span>
|
||||
<span><?php echo esc_html($line); ?></span>
|
||||
</li>
|
||||
|
||||
<?php endforeach; ?>
|
||||
@ -79,27 +79,27 @@
|
||||
<!-- 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">
|
||||
|
||||
<a href="<?php echo esc_url(wu_network_admin_url('wp-ultimo-settings&tab=integrations')); ?>" class="wu-self-center button button-large wu-float-left"><?php _e('← Cancel', 'wp-ultimo'); ?></a>
|
||||
<a href="<?php echo esc_url(wu_network_admin_url('wp-ultimo-settings&tab=integrations')); ?>" class="wu-self-center button button-large wu-float-left"><?php esc_html_e('← Cancel', 'wp-multisite-waas'); ?></a>
|
||||
|
||||
<span class="wu-self-center wu-content-center wu-flex">
|
||||
|
||||
<?php if ($integration->is_enabled()) : ?>
|
||||
|
||||
<span class="wu-self-center wu-text-green-800 wu-mr-4">
|
||||
<?php _e('Integration already activated.', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('Integration already activated.', 'wp-multisite-waas'); ?>
|
||||
</span>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<button name="submit" value="1" class="button button-primary button-large">
|
||||
<?php echo $integration->is_enabled() ? __('Deactivate', 'wp-ultimo') : __('Activate', 'wp-ultimo'); ?>
|
||||
<?php echo esc_html($integration->is_enabled() ? __('Deactivate', 'wp-multisite-waas') : __('Activate', 'wp-multisite-waas')); ?>
|
||||
</button>
|
||||
|
||||
|
||||
|
||||
<?php if ($integration->is_enabled()) : ?>
|
||||
<a href="<?php echo esc_attr($page->get_next_section_link()); ?>" class="button button-large">
|
||||
<?php _e('Continue', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('Continue', 'wp-multisite-waas'); ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
|
||||
|
@ -6,64 +6,65 @@
|
||||
*/
|
||||
?>
|
||||
<h1>
|
||||
<?php _e('Instructions', 'wp-ultimo'); ?></h1>
|
||||
<?php esc_html_e('Instructions', 'wp-multisite-waas'); ?></h1>
|
||||
|
||||
<p class="wu-text-lg wu-text-gray-600 wu-my-4 wu-mb-6">
|
||||
|
||||
<?php _e('You’ll need to get your', 'wp-ultimo'); ?> <strong><?php _e('API Key', 'wp-ultimo'); ?></strong> <?php _e('and', 'wp-ultimo'); ?> <strong><?php _e('Zone ID', 'wp-ultimo'); ?></strong> <?php _e('for your Cloudflare DNS zone.', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('You’ll need to get your', 'wp-multisite-waas'); ?> <strong><?php esc_html_e('API Key', 'wp-multisite-waas'); ?></strong> <?php esc_html_e('and', 'wp-multisite-waas'); ?> <strong><?php esc_html_e('Zone ID', 'wp-multisite-waas'); ?></strong> <?php esc_html_e('for your Cloudflare DNS zone.', 'wp-multisite-waas'); ?>
|
||||
|
||||
</p>
|
||||
|
||||
<p class="wu-text-sm wu-bg-blue-100 wu-p-4 wu-text-blue-600 wu-rounded">
|
||||
<strong><?php _e('Before we start...', 'wp-ultimo'); ?></strong><br>
|
||||
<?php printf(__('This integration is really aimed at people that do not have access to an Enterprise Cloudflare account, since that particular tier supports proxying on wildcard DNS entries, which makes adding each subdomain unecessary. If you own an enterprise tier account, you can simply follow <a class="wu-no-underline" href="%s" target="_blank">this tutorial</a> to create the wildcard entry and deactivate this integration entirely.', 'wp-ultimo'), 'https://support.cloudflare.com/hc/en-us/articles/200169356-How-do-I-use-WordPress-Multi-Site-WPMU-With-Cloudflare'); ?>
|
||||
<strong><?php esc_html_e('Before we start...', 'wp-multisite-waas'); ?></strong><br>
|
||||
<?php // translators: %s the url ?>
|
||||
<?php wp_kses_post(sprintf(__('This integration is really aimed at people that do not have access to an Enterprise Cloudflare account, since that particular tier supports proxying on wildcard DNS entries, which makes adding each subdomain unecessary. If you own an enterprise tier account, you can simply follow <a class="wu-no-underline" href="%s" target="_blank">this tutorial</a> to create the wildcard entry and deactivate this integration entirely.', 'wp-multisite-waas'), 'https://support.cloudflare.com/hc/en-us/articles/200169356-How-do-I-use-WordPress-Multi-Site-WPMU-With-Cloudflare')); ?>
|
||||
</p>
|
||||
|
||||
<h3 class="wu-m-0 wu-py-4 wu-text-lg" id="step-1-getting-the-api-key-and-secret">
|
||||
<?php _e('Getting the Zone ID and API Key', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('Getting the Zone ID and API Key', 'wp-multisite-waas'); ?>
|
||||
</h3>
|
||||
|
||||
<p class="wu-text-sm">
|
||||
<?php _e('On the Cloudflare overview page of your Zone (the domain managed), you\'ll see a block on the sidebar containing the Zone ID. Copy that value.', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('On the Cloudflare overview page of your Zone (the domain managed), you\'ll see a block on the sidebar containing the Zone ID. Copy that value.', 'wp-multisite-waas'); ?>
|
||||
</p>
|
||||
|
||||
<div class="">
|
||||
<img class="wu-w-full" src="https://wpultimo.com/wp-content/uploads/2021/04/Captura-de-Pantalla-2021-04-01-a-las-23.08.14.png">
|
||||
</div>
|
||||
|
||||
<p class="wu-text-center"><i><?php _e('DNS Zone ID on the Sidebar', 'wp-ultimo'); ?></i></p>
|
||||
<p class="wu-text-center"><i><?php esc_html_e('DNS Zone ID on the Sidebar', 'wp-multisite-waas'); ?></i></p>
|
||||
|
||||
<p class="wu-text-sm"><?php _e('On that same sidebar block, you will see the Get your API token link. Click on it to go to the token generation screen.', 'wp-ultimo'); ?></p>
|
||||
<p class="wu-text-sm"><?php esc_html_e('On that same sidebar block, you will see the Get your API token link. Click on it to go to the token generation screen.', 'wp-multisite-waas'); ?></p>
|
||||
|
||||
<div class="">
|
||||
<img class="wu-w-full" src="https://wpultimo.com/wp-content/uploads/2021/04/Captura-de-Pantalla-2021-04-01-a-las-23.12.19.png">
|
||||
</div>
|
||||
<p class="wu-text-center"><i><?php _e('Go to the API Tokens tab, then click on Create Token', 'wp-ultimo'); ?></i></p>
|
||||
<p class="wu-text-center"><i><?php esc_html_e('Go to the API Tokens tab, then click on Create Token', 'wp-multisite-waas'); ?></i></p>
|
||||
|
||||
<p class="wu-text-sm"><?php _e('We want an API token that will allow us to edit DNS records, so select the Edit zone DNS template.', 'wp-ultimo'); ?></p>
|
||||
<p class="wu-text-sm"><?php esc_html_e('We want an API token that will allow us to edit DNS records, so select the Edit zone DNS template.', 'wp-multisite-waas'); ?></p>
|
||||
|
||||
<div class="">
|
||||
<img class="wu-w-full" src="https://wpultimo.com/wp-content/uploads/2021/04/Captura-de-Pantalla-2021-04-01-a-las-23.15.03.png">
|
||||
</div>
|
||||
<p class="wu-text-center"><i><?php _e('Use the Edit Zone DNS template', 'wp-ultimo'); ?></i></p>
|
||||
<p class="wu-text-center"><i><?php esc_html_e('Use the Edit Zone DNS template', 'wp-multisite-waas'); ?></i></p>
|
||||
|
||||
<p class="wu-text-sm"><?php _e('On the next screen, set the permissions to Edit, and select the zone that corresponds to your target domain. Then, move to the next step.', 'wp-ultimo'); ?></p>
|
||||
<p class="wu-text-sm"><?php esc_html_e('On the next screen, set the permissions to Edit, and select the zone that corresponds to your target domain. Then, move to the next step.', 'wp-multisite-waas'); ?></p>
|
||||
|
||||
<div class="">
|
||||
<img class="wu-w-full" src="https://wpultimo.com/wp-content/uploads/2021/04/Captura-de-Pantalla-2021-04-01-a-las-23.17.58.png">
|
||||
</div>
|
||||
<p class="wu-text-center"><i><?php _e('Permission and Zone Settings', 'wp-ultimo'); ?></i></p>
|
||||
<p class="wu-text-center"><i><?php esc_html_e('Permission and Zone Settings', 'wp-multisite-waas'); ?></i></p>
|
||||
|
||||
<p class="wu-text-sm"><?php _e('Finally, click Create Token.', 'wp-ultimo'); ?></p>
|
||||
<p class="wu-text-sm"><?php esc_html_e('Finally, click Create Token.', 'wp-multisite-waas'); ?></p>
|
||||
|
||||
<div class="">
|
||||
<img class="wu-w-full" src="https://wpultimo.com/wp-content/uploads/2021/04/Captura-de-Pantalla-2021-04-01-a-las-23.19.52.png">
|
||||
</div>
|
||||
<p class="wu-text-center"><i><?php _e('Finishing up.', 'wp-ultimo'); ?></i></p>
|
||||
<p class="wu-text-center"><i><?php esc_html_e('Finishing up.', 'wp-multisite-waas'); ?></i></p>
|
||||
|
||||
<p class="wu-text-sm"><?php _e('Copy the API Token (it won\'t be shown again, so you need to copy it now!). We will use it on the next step alongside with the Zone ID', 'wp-ultimo'); ?></p>
|
||||
<p class="wu-text-sm"><?php esc_html_e('Copy the API Token (it won\'t be shown again, so you need to copy it now!). We will use it on the next step alongside with the Zone ID', 'wp-multisite-waas'); ?></p>
|
||||
|
||||
<div class="">
|
||||
<img class="wu-w-full" src="https://wpultimo.com/wp-content/uploads/2021/04/Captura-de-Pantalla-2021-04-01-a-las-23.21.47.png">
|
||||
</div>
|
||||
<p class="wu-text-center"><i><?php _e('Done!', 'wp-ultimo'); ?></i></p>
|
||||
<p class="wu-text-center"><i><?php esc_html_e('Done!', 'wp-multisite-waas'); ?></i></p>
|
||||
|
@ -6,11 +6,11 @@
|
||||
*/
|
||||
?>
|
||||
<h1>
|
||||
<?php _e('We are almost there!', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('We are almost there!', 'wp-multisite-waas'); ?>
|
||||
</h1>
|
||||
|
||||
<p class="wu-text-lg wu-text-gray-600 wu-my-4">
|
||||
<?php _e('You should have all the information we need in hand right now. The next step is to configure it.', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('You should have all the information we need in hand right now. The next step is to configure it.', 'wp-multisite-waas'); ?>
|
||||
</p>
|
||||
|
||||
<div class="wu-mt-6">
|
||||
@ -20,19 +20,19 @@
|
||||
<li class="wu-flex wu-rounded wu-content-center wu-py-2 wu-px-4 wu-bg-gray-100 wu-border wu-border-solid wu-border-gray-300 wu-m-0">
|
||||
<span class="dashicons dashicons-yes-alt wu-text-green-400 wu-self-center wu-mr-2"></span>
|
||||
<span>
|
||||
<?php _e('All set! We have made all the adjustments to and the Integration should work.', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('All set! We have made all the adjustments to and the Integration should work.', 'wp-multisite-waas'); ?>
|
||||
</span>
|
||||
</li>
|
||||
|
||||
<?php else : ?>
|
||||
|
||||
<li class="wu-flex wu-rounded wu-content-center wu-py-2 wu-px-4 wu-bg-gray-100 wu-border wu-border-solid wu-border-gray-300 wu-m-0">
|
||||
<span><?php _e('You will need to edit your wp-config.php file manually. Copy the contents of the box below and paste it on your wp-config.php file, right before the line containing <code>/* That\'s all, stop editing! Happy publishing. */</code>', 'wp-ultimo'); ?></span>
|
||||
<span><?php esc_html_e('You will need to edit your wp-config.php file manually. Copy the contents of the box below and paste it on your wp-config.php file, right before the line containing:', 'wp-multisite-waas'); ?> <code>/* That\'s all, stop editing! Happy publishing. */</code></span>
|
||||
</li>
|
||||
|
||||
<h3 class="wu-mt-6"><?php _e('Your wp-config.php settings:', 'wp-ultimo'); ?></h3>
|
||||
<h3 class="wu-mt-6"><?php esc_html_e('Your wp-config.php settings:', 'wp-multisite-waas'); ?></h3>
|
||||
|
||||
<pre class="wu-overflow-auto wu-p-4 wu-rounded wu-content-center wu-bg-gray-800 wu-text-white wu-font-mono wu-border wu-border-solid wu-border-gray-300"><?php echo $integration->get_constants_string($post); ?></pre>
|
||||
<pre class="wu-overflow-auto wu-p-4 wu-rounded wu-content-center wu-bg-gray-800 wu-text-white wu-font-mono wu-border wu-border-solid wu-border-gray-300"><?php echo esc_html($integration->get_constants_string($post)); ?></pre>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
@ -41,12 +41,12 @@
|
||||
<!-- 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">
|
||||
|
||||
<a href="<?php echo esc_url(wu_network_admin_url('wp-ultimo-settings&tab=integrations')); ?>" class="wu-self-center button button-large wu-float-left"><?php _e('← Cancel', 'wp-ultimo'); ?></a>
|
||||
<a href="<?php echo esc_url(wu_network_admin_url('wp-ultimo-settings&tab=integrations')); ?>" class="wu-self-center button button-large wu-float-left"><?php esc_html_e('← Cancel', 'wp-multisite-waas'); ?></a>
|
||||
|
||||
<span class="wu-self-center wu-content-center wu-flex">
|
||||
|
||||
<button name="submit" value="3" class="wu-ml-2 button button-primary button-large">
|
||||
<?php _e('Test Integration →', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('Test Integration →', 'wp-multisite-waas'); ?>
|
||||
</button>
|
||||
|
||||
</span>
|
||||
|
@ -6,11 +6,11 @@
|
||||
*/
|
||||
?>
|
||||
<h1>
|
||||
<?php _e('We are almost there!', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('We are almost there!', 'wp-multisite-waas'); ?>
|
||||
</h1>
|
||||
|
||||
<p class="wu-text-lg wu-text-gray-600 wu-my-4">
|
||||
<?php _e('You should have all the information we need in hand right now. The next step is to configure it.', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('You should have all the information we need in hand right now. The next step is to configure it.', 'wp-multisite-waas'); ?>
|
||||
</p>
|
||||
|
||||
<div class="wu-mt-6 wu--mx-4">
|
||||
@ -33,17 +33,17 @@
|
||||
href="<?php echo esc_url(wu_network_admin_url('wp-ultimo-settings', ['tab' => 'integrations'])); ?>"
|
||||
class="wu-self-center button button-large wu-float-left"
|
||||
>
|
||||
<?php _e('← Cancel', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('← Cancel', 'wp-multisite-waas'); ?>
|
||||
</a>
|
||||
|
||||
<span class="wu-self-center wu-content-center">
|
||||
|
||||
<button name="submit" value="0" class="button button-large">
|
||||
<?php _e('Add manually', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('Add manually', 'wp-multisite-waas'); ?>
|
||||
</button>
|
||||
|
||||
<button name="submit" value="1" class="wu-ml-2 button button-primary button-large">
|
||||
<?php _e('Add automatically', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('Add automatically', 'wp-multisite-waas'); ?>
|
||||
</button>
|
||||
|
||||
</span>
|
||||
|
@ -5,28 +5,28 @@
|
||||
* @since 2.0.0
|
||||
*/
|
||||
?>
|
||||
<h1><?php _e('Instructions', 'wp-ultimo'); ?></h1>
|
||||
<h1><?php esc_html_e('Instructions', 'wp-multisite-waas'); ?></h1>
|
||||
|
||||
<p class="wu-text-lg wu-text-gray-600 wu-my-4 wu-mb-6"><?php _e('Setting up GridPane with WP Ultimo is as easy as toggling a switch', 'wp-ultimo'); ?>!</p>
|
||||
<p class="wu-text-lg wu-text-gray-600 wu-my-4 wu-mb-6"><?php esc_html_e('Setting up GridPane with WP Ultimo is as easy as toggling a switch', 'wp-multisite-waas'); ?>!</p>
|
||||
|
||||
<p class="wu-text-sm">
|
||||
<?php _e('On the GridPane panel, go to', 'wp-ultimo'); ?> <a class="wu-no-underline" href="https://my.gridpane.com/sites" target="_blank"><?php _e('Sites', 'wp-ultimo'); ?></a>. <?php _e('Click on your network site to bring up the options modal', 'wp-ultimo'); ?>.
|
||||
<?php esc_html_e('On the GridPane panel, go to', 'wp-multisite-waas'); ?> <a class="wu-no-underline" href="https://my.gridpane.com/sites" target="_blank"><?php esc_html_e('Sites', 'wp-multisite-waas'); ?></a>. <?php esc_html_e('Click on your network site to bring up the options modal', 'wp-multisite-waas'); ?>.
|
||||
</p>
|
||||
|
||||
<div class="">
|
||||
<img class="wu-w-full" src="<?php echo wu_get_asset('gridpane-1.webp', 'img/hosts'); ?>">
|
||||
<img class="wu-w-full" src="<?php echo esc_url(wu_get_asset('gridpane-1.webp', 'img/hosts')); ?>">
|
||||
</div>
|
||||
|
||||
<p class="wu-text-sm">
|
||||
|
||||
<?php _e('Go to the', 'wp-ultimo'); ?> <strong><?php _e('Multisite', 'wp-ultimo'); ?></strong> <?php _e('tab and toggle the', 'wp-ultimo'); ?> <strong><?php _e('WP Ultimo Integration', 'wp-ultimo'); ?></strong> <?php _e('switch', 'wp-ultimo'); ?>.
|
||||
<?php esc_html_e('Go to the', 'wp-multisite-waas'); ?> <strong><?php esc_html_e('Multisite', 'wp-multisite-waas'); ?></strong> <?php esc_html_e('tab and toggle the', 'wp-multisite-waas'); ?> <strong><?php esc_html_e('WP Ultimo Integration', 'wp-multisite-waas'); ?></strong> <?php esc_html_e('switch', 'wp-multisite-waas'); ?>.
|
||||
|
||||
</p>
|
||||
|
||||
<div class="">
|
||||
<img class="wu-w-full" src="<?php echo wu_get_asset('gridpane-2.webp', 'img/hosts'); ?>">
|
||||
<img class="wu-w-full" src="<?php echo esc_url(wu_get_asset('gridpane-2.webp', 'img/hosts')); ?>">
|
||||
</div>
|
||||
|
||||
<p class="wu-text-sm">
|
||||
<?php _e("You're all set", 'wp-ultimo'); ?>!
|
||||
<?php esc_html_e("You're all set", 'wp-multisite-waas'); ?>!
|
||||
</p>
|
||||
|
@ -10,10 +10,11 @@
|
||||
<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>
|
||||
<h1>
|
||||
<?php _e('That\'s it! We are ready!', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('That\'s it! We are ready!', 'wp-multisite-waas'); ?>
|
||||
</h1>
|
||||
<p class="wu-text-lg wu-text-gray-600 wu-my-4">
|
||||
<?php printf(__('The integration with %s was correctly setup and is now ready! Now, every time a new domain is added to your platform, WP Multisite WaaS will sync that with your application automatically.', 'wp-ultimo'), $integration->get_title()); ?>
|
||||
<?php // translators: % site title ?>
|
||||
<?php esc_html(sprintf(__('The integration with %s was correctly setup and is now ready! Now, every time a new domain is added to your platform, WP Multisite WaaS will sync that with your application automatically.', 'wp-multisite-waas'), $integration->get_title())); ?>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@ -25,7 +26,7 @@
|
||||
<span class="wu-float-right">
|
||||
|
||||
<a href="<?php echo esc_url(wu_network_admin_url('wp-ultimo')); ?>" class="button button-primary button-large">
|
||||
<?php _e('Finish!', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('Finish!', 'wp-multisite-waas'); ?>
|
||||
</a>
|
||||
|
||||
</span>
|
||||
|
@ -5,47 +5,44 @@
|
||||
* @since 2.0.0
|
||||
*/
|
||||
?>
|
||||
<h1>
|
||||
<?php _e('Instructions', 'wp-ultimo'); ?></h1>
|
||||
<h1><?php esc_html_e('Instructions', 'wp-multisite-waas'); ?></h1>
|
||||
|
||||
<p class="wu-text-lg wu-text-gray-600 wu-my-4 wu-mb-6">
|
||||
|
||||
<?php _e('You’ll need to get your', 'wp-ultimo'); ?> <strong><?php _e('API Key', 'wp-ultimo'); ?></strong> <?php _e('and', 'wp-ultimo'); ?> <strong><?php _e('API Secret', 'wp-ultimo'); ?></strong>, <?php _e('as well as find the', 'wp-ultimo'); ?> <strong><?php _e('Server ID', 'wp-ultimo'); ?></strong> <?php _e('and', 'wp-ultimo'); ?> <strong><?php _e('APP ID', 'wp-ultimo'); ?></strong> <?php _e('for your WordPress application', 'wp-ultimo'); ?>.
|
||||
|
||||
<?php esc_html_e('You’ll need to get your', 'wp-multisite-waas'); ?> <strong><?php esc_html_e('API Key', 'wp-multisite-waas'); ?></strong> <?php esc_html_e('and', 'wp-multisite-waas'); ?> <strong><?php esc_html_e('API Secret', 'wp-multisite-waas'); ?></strong>, <?php esc_html_e('as well as find the', 'wp-multisite-waas'); ?> <strong><?php esc_html_e('Server ID', 'wp-multisite-waas'); ?></strong> <?php esc_html_e('and', 'wp-multisite-waas'); ?> <strong><?php esc_html_e('APP ID', 'wp-multisite-waas'); ?></strong> <?php esc_html_e('for your WordPress application', 'wp-multisite-waas'); ?>.
|
||||
</p>
|
||||
|
||||
<h3 class="wu-m-0 wu-py-4 wu-text-lg" id="step-1-getting-the-api-key-and-secret">
|
||||
<?php _e('Getting the API Key and API Secret', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('Getting the API Key and API Secret', 'wp-multisite-waas'); ?>
|
||||
</h3>
|
||||
|
||||
<p class="wu-text-sm">
|
||||
<?php _e('On your RunCloud admin panel, click the cog icon (settings) to go to the settings page', 'wp-ultimo'); ?>.
|
||||
<?php esc_html_e('On your RunCloud admin panel, click the cog icon (settings) to go to the settings page', 'wp-multisite-waas'); ?>.
|
||||
</p>
|
||||
|
||||
<div class="">
|
||||
<img class="wu-w-full" src="<?php echo wu_get_asset('runcloud-1.webp', 'img/hosts'); ?>">
|
||||
<img class="wu-w-full" src="<?php echo esc_url(wu_get_asset('runcloud-1.webp', 'img/hosts')); ?>">
|
||||
</div>
|
||||
|
||||
<p class="wu-text-center"><i><?php _e('Settings Page Link', 'wp-ultimo'); ?></i></p>
|
||||
<p class="wu-text-center"><i><?php esc_html_e('Settings Page Link', 'wp-multisite-waas'); ?></i></p>
|
||||
|
||||
<p class="wu-text-sm"><?php _e('On the new page, click in the', 'wp-ultimo'); ?><b> <?php _e('API Key', 'wp-ultimo'); ?> </b> <?php _e('menu item on the left', 'wp-ultimo'); ?>.</p>
|
||||
<p class="wu-text-sm"><?php esc_html_e('On the new page, click in the', 'wp-multisite-waas'); ?><b> <?php esc_html_e('API Key', 'wp-multisite-waas'); ?> </b> <?php esc_html_e('menu item on the left', 'wp-multisite-waas'); ?>.</p>
|
||||
|
||||
<div class="">
|
||||
<img class="wu-w-full" src="<?php echo wu_get_asset('runcloud-2.webp', 'img/hosts'); ?>">
|
||||
<img class="wu-w-full" src="<?php echo esc_url(wu_get_asset('runcloud-2.webp', 'img/hosts')); ?>">
|
||||
</div>
|
||||
<p class="wu-text-center"><i><?php _e('API Key page link', 'wp-ultimo'); ?></i></p>
|
||||
<p class="wu-text-sm"> <?php _e('Copy the', 'wp-ultimo'); ?> <b> <?php _e('API Key and Secret values', 'wp-ultimo'); ?> </b>, <?php _e('we will need them in the next steps', 'wp-ultimo'); ?>. <b> <?php _e('Make sure the RunCloud API toggle is turned ON', 'wp-ultimo'); ?>, </b> <?php _e('otherwise RunCloud won’t accept WP Multisite WaaS API calls', 'wp-ultimo'); ?>.</p>
|
||||
<p class="wu-text-center"><i><?php esc_html_e('API Key page link', 'wp-multisite-waas'); ?></i></p>
|
||||
<p class="wu-text-sm"> <?php esc_html_e('Copy the', 'wp-multisite-waas'); ?> <b> <?php esc_html_e('API Key and Secret values', 'wp-multisite-waas'); ?> </b>, <?php esc_html_e('we will need them in the next steps', 'wp-multisite-waas'); ?>. <b> <?php esc_html_e('Make sure the RunCloud API toggle is turned ON', 'wp-multisite-waas'); ?>, </b> <?php esc_html_e('otherwise RunCloud won’t accept WP Multisite WaaS API calls', 'wp-multisite-waas'); ?>.</p>
|
||||
<div class="">
|
||||
<img class="wu-w-full" src="<?php echo wu_get_asset('runcloud-3.webp', 'img/hosts'); ?>">
|
||||
<img class="wu-w-full" src="<?php echo esc_url(wu_get_asset('runcloud-3.webp', 'img/hosts')); ?>">
|
||||
</div>
|
||||
<p class="wu-text-center"><i><?php _e('Copy the API Key and API Secret values', 'wp-ultimo'); ?></i></p>
|
||||
<p class="wu-text-center"><i><?php esc_html_e('Copy the API Key and API Secret values', 'wp-multisite-waas'); ?></i></p>
|
||||
|
||||
<h3 class="wu-m-0 wu-py-4 wu-text-lg" id="step-1-getting-the-api-key-and-secret">
|
||||
<?php _e('Getting the Server and App IDs', 'wp-ultimo'); ?>
|
||||
<h3 class="wu-m-0 wu-py-4 wu-text-lg" id="step-1-getting-the-api-key-and-secret">
|
||||
<?php esc_html_e('Getting the Server and App IDs', 'wp-multisite-waas'); ?>
|
||||
</h3>
|
||||
<p class="wu-text-sm"><?php _e('To find what are the server and app ids for your application, navigate to your web application manage page inside the RunCloud panel. Once you are there, you’ll be able to extract the values from the URL', 'wp-ultimo'); ?>.</p>
|
||||
<p class="wu-text-sm"><?php esc_html_e('To find what are the server and app ids for your application, navigate to your web application manage page inside the RunCloud panel. Once you are there, you’ll be able to extract the values from the URL', 'wp-multisite-waas'); ?>.</p>
|
||||
<div class="">
|
||||
<img class="wu-w-full" src="<?php echo wu_get_asset('runcloud-4.webp', 'img/hosts'); ?>">
|
||||
<img class="wu-w-full" src="<?php echo esc_url(wu_get_asset('runcloud-4.webp', 'img/hosts')); ?>">
|
||||
</div>
|
||||
<p class="wu-text-center"><i><?php _e('Server ID is the first one, the second one is App ID.', 'wp-ultimo'); ?></i></p>
|
||||
<p class="wu-text-sm"><?php _e('Save the Server and APP id values as they will be necessary in the next step', 'wp-ultimo'); ?>.</p>
|
||||
<p class="wu-text-center"><i><?php esc_html_e('Server ID is the first one, the second one is App ID.', 'wp-multisite-waas'); ?></i></p>
|
||||
<p class="wu-text-sm"><?php esc_html_e('Save the Server and APP id values as they will be necessary in the next step', 'wp-multisite-waas'); ?>.</p>
|
||||
|
@ -9,21 +9,20 @@
|
||||
<h1 id="step-1-getting-a-serverpilot-api-key" class="intercom-align-left" data-post-processed="true">Step 1: Getting the API Key and the Client ID</h1>
|
||||
<p class="intercom-align-left">In Your ServerPilot admin panel, first go to the Account Settings page and navigate to the API link, there you can get the API Key and Client ID (if the API Key field is empty, click the New API Key button). <b>Paste those values somewhere as we'll need them in a later step.</b> </p>
|
||||
<div class="intercom-container intercom-align-left">
|
||||
<img class="wu-w-full" src="<?php echo wu_get_asset('serverpilot-1.webp', 'img/hosts'); ?>">
|
||||
<img class="wu-w-full" src="<?php echo esc_url(wu_get_asset('serverpilot-1.webp', 'img/hosts')); ?>">
|
||||
</div>
|
||||
|
||||
<h1 id="step-2-get-the-server-id" class="intercom-align-left" data-post-processed="true">Step 2: Getting the App ID</h1>
|
||||
<p class="intercom-align-left">Next, we’ll need to get the App ID for your WordPress site. To find that ID, navigate to your app’s manage page:</p>
|
||||
<div class="intercom-container intercom-align-left">
|
||||
<img class="wu-w-full" src="<?php echo wu_get_asset('serverpilot-2.webp', 'img/hosts'); ?>">
|
||||
<img class="wu-w-full" src="<?php echo esc_url(wu_get_asset('serverpilot-2.webp', 'img/hosts')); ?>">
|
||||
</div>
|
||||
<p class="intercom-align-left">Then, take a look at the URL at the top of your browser. The APP ID is the portion between the app/ and the /settings segments of the URL.</p>
|
||||
|
||||
<div class="intercom-container intercom-align-left">
|
||||
<img class="wu-w-full" src="<?php echo wu_get_asset('serverpilot-3.webp', 'img/hosts'); ?>">
|
||||
<img class="wu-w-full" src="<?php echo esc_url(wu_get_asset('serverpilot-3.webp', 'img/hosts')); ?>">
|
||||
</div>
|
||||
|
||||
<p class="intercom-align-left">After this you can proceed to the next integration step where you can paste these values in the related fields.</p>
|
||||
|
||||
|
||||
</article>
|
||||
|
@ -5,10 +5,10 @@
|
||||
* @since 2.0.0
|
||||
*/
|
||||
?>
|
||||
<h1><?php _e('Testing the Integration', 'wp-ultimo'); ?></h1>
|
||||
<h1><?php esc_html_e('Testing the Integration', 'wp-multisite-waas'); ?></h1>
|
||||
|
||||
<p class="wu-text-lg wu-text-gray-600 wu-my-4 wu-mb-6">
|
||||
<?php printf(__('We will send a test API call to %s to make sure we are able to connect. This will confirm if everything we did so far have worked.', 'wp-ultimo'), $integration->get_title()); ?>
|
||||
<?php printf(__('We will send a test API call to %s to make sure we are able to connect. This will confirm if everything we did so far have worked.', 'wp-multisite-waas'), $integration->get_title()); ?>
|
||||
</p>
|
||||
|
||||
<div id="integration-test">
|
||||
@ -16,39 +16,39 @@
|
||||
<div v-if="loading" class="wu-flex wu-rounded wu-content-center wu-py-2 wu-px-4 wu-bg-gray-100 wu-border wu-border-solid wu-border-gray-300 wu-m-0">
|
||||
<span class="dashicons dashicons-warning wu-text-blue-400 wu-self-center wu-mr-2"></span>
|
||||
<span>
|
||||
<?php _e('Sending API call...', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('Sending API call...', 'wp-multisite-waas'); ?>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div v-cloak v-if="!loading && success" class="wu-flex wu-rounded wu-content-center wu-py-2 wu-px-4 wu-bg-gray-100 wu-border wu-border-solid wu-border-gray-300 wu-m-0">
|
||||
<span class="dashicons dashicons-yes-alt wu-text-green-400 wu-self-center wu-mr-2"></span>
|
||||
<span>
|
||||
<?php _e('Yey! Everything seems to be working!', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('Yey! Everything seems to be working!', 'wp-multisite-waas'); ?>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div v-cloak v-if="!loading && !success" class="wu-flex wu-rounded wu-content-center wu-py-2 wu-px-4 wu-bg-gray-100 wu-border wu-border-solid wu-border-gray-300 wu-m-0">
|
||||
<span class="dashicons dashicons-dismiss wu-text-red-400 wu-self-center wu-mr-2"></span>
|
||||
<span>
|
||||
<?php _e('Something wrong happened... We might need to make some adjustments to make this work.', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('Something wrong happened... We might need to make some adjustments to make this work.', 'wp-multisite-waas'); ?>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<pre class="wu-overflow-auto wu-p-4 wu-rounded wu-content-center wu-bg-gray-800 wu-text-white wu-font-mono wu-border wu-border-solid wu-border-gray-300" v-html="results"><?php _e('Waiting for results...', 'wp-ultimo'); ?></pre>
|
||||
<pre class="wu-overflow-auto wu-p-4 wu-rounded wu-content-center wu-bg-gray-800 wu-text-white wu-font-mono wu-border wu-border-solid wu-border-gray-300" v-html="results"><?php esc_html_e('Waiting for results...', 'wp-multisite-waas'); ?></pre>
|
||||
|
||||
<div v-cloak v-if="!loading && !success">
|
||||
|
||||
<h1><?php _e('Troubleshooting', 'wp-ultimo'); ?></h1>
|
||||
<h1><?php esc_html_e('Troubleshooting', 'wp-multisite-waas'); ?></h1>
|
||||
|
||||
<ol>
|
||||
<li>
|
||||
<?php _e('Go back to the <strong>Configuration</strong> step - if available - and make sure you entered all the necessary information correctly;', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('Go back to the <strong>Configuration</strong> step - if available - and make sure you entered all the necessary information correctly;', 'wp-multisite-waas'); ?>
|
||||
</li>
|
||||
<li>
|
||||
<?php _e('If you have added the constants to your wp-config.php file manually, double check to make sure you\'ve added them to the right wp-config.php file and in the right place (just above the <code>/* That\'s all, stop editing! Happy publishing. */)', 'wp-ultimo'); ?></code>);
|
||||
<?php echo wp_kses_post(__('If you have added the constants to your wp-config.php file manually, double check to make sure you\'ve added them to the right wp-config.php file and in the right place (just above the <code>/* That\'s all, stop editing! Happy publishing. */</code>)', 'wp-multisite-waas')); ?>);
|
||||
</li>
|
||||
<li>
|
||||
<?php _e('If you are sure everything is right, take a screenshot of this screen and contact support.', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('If you are sure everything is right, take a screenshot of this screen and contact support.', 'wp-multisite-waas'); ?>
|
||||
</li>
|
||||
</ol>
|
||||
|
||||
@ -58,7 +58,7 @@
|
||||
<div v-cloak v-if="!loading && !success" 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">
|
||||
|
||||
<a href="<?php echo esc_url($page->get_prev_section_link()); ?>" class="wu-self-center button button-large wu-float-left">
|
||||
<?php _e('← Go Back', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('← Go Back', 'wp-multisite-waas'); ?>
|
||||
</a>
|
||||
|
||||
</div>
|
||||
@ -84,7 +84,7 @@
|
||||
data: {
|
||||
success: false,
|
||||
loading: false,
|
||||
results: '<?php echo esc_js(__('Waiting for results...', 'wp-ultimo')); ?>',
|
||||
results: '<?php echo esc_js(__('Waiting for results...', 'wp-multisite-waas')); ?>',
|
||||
},
|
||||
mounted: function() {
|
||||
|
||||
|
@ -4,40 +4,28 @@
|
||||
*
|
||||
* @since 2.0.0
|
||||
*/
|
||||
|
||||
?>
|
||||
<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">
|
||||
|
||||
<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>
|
||||
|
||||
<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>
|
||||
|
||||
<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 esc_html_e('Caution!', 'wp-multisite-waas'); ?>
|
||||
</h1>
|
||||
<p class="wu-text-lg wu-text-gray-600 wu-my-4">
|
||||
<?php esc_html_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-multisite-waas'); ?>
|
||||
</p>
|
||||
<p class="wu-text-lg wu-text-gray-600 wu-my-4">
|
||||
<?php esc_html_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-multisite-waas'); ?>
|
||||
</p>
|
||||
</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">
|
||||
|
||||
<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 esc_html_e('Proceed', 'wp-multisite-waas'); ?>
|
||||
</button>
|
||||
</span>
|
||||
|
||||
</div>
|
||||
<!-- End Submit Box -->
|
||||
|
||||
<!-- End Submit Box -->
|
@ -6,54 +6,37 @@
|
||||
*/
|
||||
?>
|
||||
<h1>
|
||||
<?php echo $title; ?>
|
||||
<?php echo esc_html($title); ?>
|
||||
</h1>
|
||||
|
||||
<?php if ($description) : ?>
|
||||
|
||||
<p class="wu-text-lg wu-text-gray-600 wu-mt-4 wu-mb-0">
|
||||
<?php echo $description; ?>
|
||||
<?php echo esc_html($description); ?>
|
||||
</p>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="wu-bg-white wu-p-4 wu--mx-5">
|
||||
|
||||
<?php echo $content; ?>
|
||||
|
||||
<?php echo $content; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
|
||||
</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) : ?>
|
||||
|
||||
<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; ?>
|
||||
|
||||
<div class="wu-text-right wu-relative wu-w-full">
|
||||
|
||||
<?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 href="<?php echo esc_url($page->get_prev_section_link()); ?>" class="wu-self-center button button-large wu-float-left">
|
||||
<?php echo esc_html($back_label); ?>
|
||||
</a>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?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>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="wu-text-right wu-relative wu-w-full">
|
||||
<?php if ($skip) : ?>
|
||||
<a href="<?php echo esc_url($page->get_next_section_link()); ?>" class="wu-skip-button button button-large">
|
||||
<?php echo esc_html($skip_label); ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<?php if ($next) : ?>
|
||||
<button name="next" value="1" class="wu-next-button button button-primary button-large wu-ml-2">
|
||||
<?php echo esc_html($next_label); ?>
|
||||
</button>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- End Submit Box -->
|
||||
|
||||
|
@ -7,61 +7,48 @@
|
||||
?>
|
||||
<div class="wu-advanced-filters">
|
||||
<table class="widefat fixed striped wu-border-b" data-id="<?php echo esc_attr($page->get_current_section()); ?>">
|
||||
<thead>
|
||||
<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', [])); ?>
|
||||
>
|
||||
|
||||
<?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>
|
||||
<th class="check" style="width: 30px;"></th>
|
||||
<?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>
|
||||
|
||||
<?php if ($default['done']) : ?>
|
||||
<td class="status">
|
||||
<span class="wu-text-green-600">
|
||||
<?php echo $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; ?>
|
||||
|
||||
<th class="item"><?php esc_html_e('Item', 'wp-multisite-waas'); ?></th>
|
||||
<th class="status" style="width: 40%;"><?php esc_html_e('Status', 'wp-multisite-waas'); ?></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', [])); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>>
|
||||
<?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" <?php checked(true, isset($default['checked']) ? $default['checked'] : false); ?>>
|
||||
<?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 esc_html($default['title']); ?>
|
||||
</label>
|
||||
<span class="wu-text-xs wu-block wu-mt-1">
|
||||
<?php echo esc_html($default['description']); ?>
|
||||
</span>
|
||||
</td>
|
||||
<?php if ($default['done']) : ?>
|
||||
<td class="status">
|
||||
<span class="wu-text-green-600">
|
||||
<?php echo esc_html($default['completed'] ?? __('Completed!', 'wp-multisite-waas')); ?>
|
||||
</span>
|
||||
</td>
|
||||
<?php else : ?>
|
||||
<td class="status">
|
||||
<span><?php echo esc_html($default['pending']); ?></span>
|
||||
<div class="spinner"></div>
|
||||
<!-- Removed the help link as it was not properly escaped -->
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
|
||||
</tbody>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
@ -12,23 +12,24 @@
|
||||
<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 printf(__('We are ready, %s!', 'wp-ultimo'), apply_filters('wu_setup_step_done_name', $page->customer->first ?? __('my friend', 'wp-ultimo'))); ?>
|
||||
<?php // translators: %s customer's name ?>
|
||||
<?php echo esc_html(sprintf(__('We are ready, %s!', 'wp-multisite-waas'), apply_filters('wu_setup_step_done_name', $page->customer->first ?? __('my friend', 'wp-multisite-waas')))); ?>
|
||||
</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'); ?>
|
||||
<?php esc_html_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-multisite-waas'); ?>
|
||||
</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'); ?>
|
||||
<?php esc_html_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-multisite-waas'); ?>
|
||||
</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'); ?>
|
||||
<?php esc_html_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-multisite-waas'); ?>
|
||||
</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'); ?>
|
||||
<?php esc_html_e('You now have everything you need in place to start building your Website as a Service business!', 'wp-multisite-waas'); ?>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
@ -46,7 +47,7 @@
|
||||
<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'); ?>
|
||||
<?php esc_html_e('Thanks!', 'wp-multisite-waas'); ?>
|
||||
</a>
|
||||
|
||||
</span>
|
||||
|
@ -8,38 +8,38 @@
|
||||
<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'); ?>
|
||||
<?php echo __('WP Multisite WaaS Requires:', 'wp-multisite-waas'); ?>
|
||||
</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>
|
||||
<th><?php esc_html_e('Item', 'wp-multisite-waas'); ?></th>
|
||||
<th><?php esc_html_e('Minimum Version', 'wp-multisite-waas'); ?></th>
|
||||
<th><?php esc_html_e('Recommended', 'wp-multisite-waas'); ?></th>
|
||||
<th><?php esc_html_e('Installed', 'wp-multisite-waas'); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach ($requirements as $req) : ?>
|
||||
<tr class="">
|
||||
<td><?php echo $req['name']; ?></td>
|
||||
<td><?php echo $req['required_version']; ?></td>
|
||||
<td><?php echo esc_html($req['name']); ?></td>
|
||||
<td><?php echo esc_html($req['required_version']); ?></td>
|
||||
<?php // translators: %s is the requirement version ?>
|
||||
<td><?php printf(__('%s or later'), $req['recommended_version']); ?></td>
|
||||
<td><?php printf(esc_html__('%s or later', 'wp-multisite-waas'), esc_html($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 echo esc_html($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 esc_url($req['help']); ?>" title="<?php esc_attr_e('Help', 'wp-multisite-waas'); ?>">
|
||||
<?php esc_html_e('Read More', 'wp-multisite-waas'); ?>
|
||||
<span class="dashicons-wu-help-with-circle"></span>
|
||||
</a>
|
||||
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
@ -49,30 +49,30 @@
|
||||
</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'); ?>
|
||||
<?php echo esc_html__('And', 'wp-multisite-waas'); ?>
|
||||
</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>
|
||||
<th><?php esc_html_e('Item', 'wp-multisite-waas'); ?></th>
|
||||
<th><?php esc_html_e('Condition', 'wp-multisite-waas'); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach ($plugin_requirements as $req) : ?>
|
||||
<tr class="">
|
||||
<td><?php echo $req['name']; ?></td>
|
||||
<td><?php echo esc_html($req['name']); ?></td>
|
||||
<td class="<?php echo $req['pass_requirements'] ? 'wu-text-green-600' : 'wu-text-red-600'; ?>">
|
||||
<?php echo $req['condition']; ?>
|
||||
<?php echo esc_html($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']) : ?>
|
||||
|
||||
<a target="_blank" class="wu-no-underline wu-ml-2" href="<?php echo $req['help']; ?>" title="<?php esc_attr_e('Help', 'wp-ultimo'); ?>">
|
||||
<a target="_blank" class="wu-no-underline wu-ml-2" href="<?php echo esc_url($req['help']); ?>" title="<?php esc_attr_e('Help', 'wp-multisite-waas'); ?>">
|
||||
<span class="dashicons-wu-help-with-circle wu-align-baseline"></span>
|
||||
<?php _e('Read More', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('Read More', 'wp-multisite-waas'); ?>
|
||||
</a>
|
||||
|
||||
<?php endif; ?>
|
||||
@ -87,7 +87,7 @@
|
||||
<?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'); ?>
|
||||
<?php esc_html_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-multisite-waas'); ?>
|
||||
</div>
|
||||
|
||||
<?php endif; ?>
|
||||
|
@ -6,37 +6,37 @@
|
||||
*/
|
||||
?>
|
||||
<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 esc_html_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-multisite-waas'); ?></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'); ?>
|
||||
<?php esc_html_e('Availability of the author to answer questions', 'wp-multisite-waas'); ?>
|
||||
</li>
|
||||
<li class="wu-text-green-700">
|
||||
<span class="dashicons-wu-check"></span>
|
||||
<?php _e('Answering technical questions about item features', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('Answering technical questions about item features', 'wp-multisite-waas'); ?>
|
||||
</li>
|
||||
<li class="wu-text-green-700">
|
||||
<span class="dashicons-wu-check"></span>
|
||||
<?php _e('Assistance with reported bugs and issues', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('Assistance with reported bugs and issues', 'wp-multisite-waas'); ?>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<p><?php _e('Support <strong>DOES NOT</strong> Include:', 'wp-ultimo'); ?></p>
|
||||
<p><?php esc_html_e('Support <strong>DOES NOT</strong> Include:', 'wp-multisite-waas'); ?></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'); ?>
|
||||
<?php esc_html_e('Customization services', 'wp-multisite-waas'); ?>
|
||||
</li>
|
||||
<li class="wu-text-red-500">
|
||||
<span class="dashicons-wu-circle-with-cross wu-align-middle"></span>
|
||||
<?php _e('Installation services', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('Installation services', 'wp-multisite-waas'); ?>
|
||||
</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'); ?>
|
||||
<?php esc_html_e('Support for 3rd party plugins (i.e. plugins you install yourself later on)', 'wp-multisite-waas'); ?>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
Reference in New Issue
Block a user