OS : Linux
PHP Version : 7.4.33
Software : Apache/2.4.6 (CentOS) PHP/7.4.33
Information System : set_tour_status(array('current_step' => 'start'));
return;
}
// if backups already exist and
if ($this->updraftplus_was_already_installed() && !isset($_REQUEST['updraftplus_tour'])) {
return;
}
// if 'Take tour' link was used, reset tour
if (isset($_REQUEST['updraftplus_tour']) && 1 === (int) $_REQUEST['updraftplus_tour']) {
$this->reset_tour_status();
}
if (!UpdraftPlus_Options::get_updraft_option('updraftplus_tour_cancelled_on')) {
add_action('admin_enqueue_scripts', array($this, 'load_tour'));
}
}
/**
* Loads in tour assets
*
* @param string $hook - current page
*/
public function load_tour($hook) {
$pages = array('settings_page_updraftplus', 'plugins.php');
if (!in_array($hook, $pages)) return;
if (!UpdraftPlus_Options::user_can_manage()) return;
global $updraftplus, $updraftplus_addons2, $updraftplus_checkout_embed;
$checkout_embed_5gb_attribute = '';
if ($updraftplus_checkout_embed) {
$checkout_embed_5gb_attribute = $updraftplus_checkout_embed->get_product('updraftplus-vault-storage-5-gb') ? 'data-embed-checkout="'.apply_filters('updraftplus_com_link', $updraftplus_checkout_embed->get_product('updraftplus-vault-storage-5-gb', UpdraftPlus_Options::admin_page_url().'?page=updraftplus&tab=settings')).'"' : '';
}
$script_suffix = $updraftplus->use_unminified_scripts() ? '' : '.min';
$updraft_min_or_not = $updraftplus->get_updraftplus_file_version();
wp_enqueue_script('updraftplus-tether-js', trailingslashit(UPDRAFTPLUS_URL).'includes/tether/tether'.$script_suffix.'.js', $updraftplus->version, true);
wp_enqueue_script('updraftplus-shepherd-js', trailingslashit(UPDRAFTPLUS_URL).'includes/tether-shepherd/shepherd'.$script_suffix.'.js', array('updraftplus-tether-js'), $updraftplus->version, true);
wp_enqueue_style('updraftplus-shepherd-css', trailingslashit(UPDRAFTPLUS_URL).'css/tether-shepherd/shepherd-theme-arrows-plain-buttons'.$script_suffix.'.css', false, $updraftplus->version);
wp_enqueue_style('updraftplus-tour-css', trailingslashit(UPDRAFTPLUS_URL).'css/updraftplus-tour'.$updraft_min_or_not.'.css', false, $updraftplus->version);
wp_register_script('updraftplus-tour-js', trailingslashit(UPDRAFTPLUS_URL).'js/tour.js', array('updraftplus-tether-js'), $updraftplus->version, true);
$tour_data = array(
'nonce' => wp_create_nonce('updraftplus-credentialtest-nonce'),
'show_tab_on_load' => '#updraft-navtab-status',
'next' => __('Next', 'updraftplus'),
'back' => __('Back', 'updraftplus'),
'skip' => __('Skip this step', 'updraftplus'),
'end_tour' => __('End tour', 'updraftplus'),
'close' => __('Close', 'updraftplus'),
'plugins_page' => array(
'title' => __("UpdraftPlus settings", 'updraftplus'),
'text' => ' '.__('Try UpdraftVault for 1 month for only $1!', 'updraftplus').'.'images/ud-logo.png)
'.sprintf(_x("But to avoid server-wide threats backup regularly to remote cloud storage in %s settings %s", 'Translators: %s is a bold tag.', 'updraftplus'), '', ''),
'btn_text' => __('Go to settings', 'updraftplus')
),
'backup_now_btn_success' => array(
'title' => __('Creating your first backup', 'updraftplus'),
'text' => __('Congratulations! Your first backup is running.', 'updraftplus').'
'.sprintf(_x('But to avoid server-wide threats backup regularly to remote cloud storage in %s settings %s', 'Translators: %s is a bold tag.', 'updraftplus'), '', ''),
'btn_text' => __('Go to settings', 'updraftplus')
),
'settings_timing' => array(
'title' => __("Choose your backup schedule", 'updraftplus'),
'text' => __("Choose the schedule that you want your backups to run on.", 'updraftplus')
),
'settings_remote_storage' => array(
'title' => __("Remote storage", 'updraftplus'),
'text' => __('Now select a remote storage destination to protect against server-wide threats.', 'updraftplus').' '.__('If not, your backups remain on the same server as your site.', 'updraftplus')
.''.__('Try UpdraftVault!').'
'
.__("UpdraftVault is our remote storage which works seamlessly with UpdraftPlus.", 'updraftplus')
.' '.__('Find out more here.', 'updraftplus').''
.''.__('Control all your backups in one place', 'updraftplus').'
'
.__('Do you have a few more WordPress sites you want to backup? If yes you can save hours by controlling all your backups in one place from UpdraftCentral.', 'updraftplus')
.''.__('UpdraftPlus Premium and addons', 'updraftplus').'
'
.__('UpdraftPlus Premium has many more exciting features!', 'updraftplus').' '.__('Find out more here.', 'updraftplus').''
.''.__('Try UpdraftVault!').'
'
.__("UpdraftVault is our remote storage which works seamlessly with UpdraftPlus.", 'updraftplus')
.' '.__('Find out more here.', 'updraftplus').''
.'
'
.__("If you have a valid Premium license, you get 1GB of storage included.", 'updraftplus')
.' '.__('Otherwise, you can try UpdraftVault for 1 month for only $1!', 'updraftplus').''
.''.__('Connect to updraftplus.com', 'updraftplus').'
'
.__('Log in here to enable all the features you have access to.', 'updraftplus')
.'