Use PHP 7.4 featers and PHP 8 polyfills
This commit is contained in:
@ -30,7 +30,7 @@
|
||||
<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', array('tab' => 'integrations'))); ?>"
|
||||
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'); ?>
|
||||
|
@ -14,7 +14,7 @@
|
||||
</p>
|
||||
|
||||
<div class="">
|
||||
<img class="wu-w-full" src="<?php echo wu_get_asset('gridpane-1.png', 'img/hosts'); ?>">
|
||||
<img class="wu-w-full" src="<?php echo wu_get_asset('gridpane-1.webp', 'img/hosts'); ?>">
|
||||
</div>
|
||||
|
||||
<p class="wu-text-sm">
|
||||
@ -24,7 +24,7 @@
|
||||
</p>
|
||||
|
||||
<div class="">
|
||||
<img class="wu-w-full" src="<?php echo wu_get_asset('gridpane-2.png', 'img/hosts'); ?>">
|
||||
<img class="wu-w-full" src="<?php echo wu_get_asset('gridpane-2.webp', 'img/hosts'); ?>">
|
||||
</div>
|
||||
|
||||
<p class="wu-text-sm">
|
||||
|
@ -23,7 +23,7 @@
|
||||
</p>
|
||||
|
||||
<div class="">
|
||||
<img class="wu-w-full" src="<?php echo wu_get_asset('runcloud-1.png', 'img/hosts'); ?>">
|
||||
<img class="wu-w-full" src="<?php echo wu_get_asset('runcloud-1.webp', 'img/hosts'); ?>">
|
||||
</div>
|
||||
|
||||
<p class="wu-text-center"><i><?php _e('Settings Page Link', 'wp-ultimo'); ?></i></p>
|
||||
@ -31,12 +31,12 @@
|
||||
<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>
|
||||
|
||||
<div class="">
|
||||
<img class="wu-w-full" src="<?php echo wu_get_asset('runcloud-2.png', 'img/hosts'); ?>">
|
||||
<img class="wu-w-full" src="<?php echo 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>
|
||||
<div class="">
|
||||
<img class="wu-w-full" src="<?php echo wu_get_asset('runcloud-3.png', 'img/hosts'); ?>">
|
||||
<img class="wu-w-full" src="<?php echo 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>
|
||||
|
||||
@ -45,7 +45,7 @@
|
||||
</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>
|
||||
<div class="">
|
||||
<img class="wu-w-full" src="<?php echo wu_get_asset('runcloud-4.png', 'img/hosts'); ?>">
|
||||
<img class="wu-w-full" src="<?php echo 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>
|
||||
|
@ -9,18 +9,18 @@
|
||||
<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.png', 'img/hosts'); ?>">
|
||||
<img class="wu-w-full" src="<?php echo 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.png', 'img/hosts'); ?>">
|
||||
<img class="wu-w-full" src="<?php echo 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.png', 'img/hosts'); ?>">
|
||||
<img class="wu-w-full" src="<?php echo 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>
|
||||
|
@ -21,7 +21,7 @@
|
||||
|
||||
<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 echo wu_array_to_html_attrs(wu_get_isset($default, 'html_attr', [])); ?>
|
||||
>
|
||||
|
||||
<?php if ($checks) : ?>
|
||||
@ -44,7 +44,7 @@
|
||||
<?php if ($default['done']) : ?>
|
||||
<td class="status">
|
||||
<span class="wu-text-green-600">
|
||||
<?php echo isset($default['completed']) ? $default['completed'] : __('Completed!', 'wp-ultimo'); ?>
|
||||
<?php echo $default['completed'] ?? __('Completed!', 'wp-ultimo'); ?>
|
||||
</span>
|
||||
</td>
|
||||
<?php else : ?>
|
||||
|
@ -12,7 +12,7 @@
|
||||
<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', isset($page->customer->first) ? $page->customer->first : __('my friend', 'wp-ultimo'))); ?>
|
||||
<?php printf(__('We are ready, %s!', 'wp-ultimo'), apply_filters('wu_setup_step_done_name', $page->customer->first ?? __('my friend', 'wp-ultimo'))); ?>
|
||||
</h1>
|
||||
|
||||
<p class="wu-text-lg wu-text-gray-600 wu-my-4">
|
||||
|
Reference in New Issue
Block a user