__("Dropbox Settings", 'backwpup'), 'type' => 'sidebar' ]); // if null we are on onboarding so we use the default values. if (null === $job_id || empty($job_id) ) { $is_in_form = true; $job_id = get_site_option(Plugin::FIRST_JOB_ID, false); } $dropboxdir = BackWPup_Option::get($job_id, 'dropboxdir', trailingslashit(sanitize_title_with_dashes(get_bloginfo('name')))); $dropboxmaxbackups = BackWPup_Option::get($job_id, 'dropboxmaxbackups', 15); $dropbox = new BackWPup_Destination_Dropbox_API('dropbox'); $dropbox_auth_url = $dropbox->o_auth_authorize(); $dropbox = new BackWPup_Destination_Dropbox_API('sandbox'); $sandbox_auth_url = $dropbox->o_auth_authorize(); $dropboxtoken = BackWPup_Option::get($job_id, 'dropboxtoken', []); ?>

"link", "label" => __("Back to Storages", 'backwpup'), "icon_name" => "arrow-left", "icon_position" => "before", "trigger" => "load-and-open-sidebar", "display" => "storages", "data" => ['job-id' => $job_id, 'block-type' => 'children', 'block-name' => 'sidebar/storages', ] ]); ?>

$job_id]); ?>
2, "title" => __("Backup Settings", 'backwpup'), "font" => "small", "class" => "mb-4", ]); ?>
"dropboxdir", "identifier" => "dropboxdir", "label" => __("Folder to store files in", 'backwpup'), "value" => $dropboxdir, "required" => true, ]); ?>

"dropboxmaxbackups", "identifier" => "dropboxmaxbackups", "type" => "number", "min" => 0, "label" => __("Max backups to retain", 'backwpup'), "value" => $dropboxmaxbackups, ]); ?> "alert", "font" => "xs", "content" => __("Limits the number of stored backups. When exceeded, the oldest backup is removed. Setting this to 0 keeps unlimited backups and may increase storage usage.", 'backwpup'), ]); ?>
"primary", "label" => __("Save & Test connection", 'backwpup'), "full_width" => true, "trigger" => "test-DROPBOX-storage", "data" => [ "storage" => "dropbox", "job-id" => $job_id, ], ]); ?>