option_defaults(); // if null we are on onboarding so we use the default values. if (null === $job_id || empty($job_id) ) { $job_id = get_site_option(Plugin::FIRST_JOB_ID, false); $is_in_form = true; } $backupdir = BackWPup_Option::get($job_id, 'backupdir', $values['backupdir']); $maxbackups = BackWPup_Option::get($job_id, 'maxbackups', $values['maxbackups']); BackWPupHelpers::component("closable-heading", [ 'title' => __("Folder Settings", 'backwpup'), 'type' => 'sidebar' ]); ?>

"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', ] ]); ?>

2, "title" => __("Backup Settings", 'backwpup'), "font" => "small", "class" => "mb-4", ]); ?>
"backupdir", "identifier" => "backupdir", "label" => __("Folder to store files in", 'backwpup'), "value" => $backupdir, "required" => true, ]); ?> "maxbackups", "identifier" => "maxbackups", "type" => "number", "min" => 0, "label" => __("Max backups to retain", 'backwpup'), "value" => $maxbackups, ]); ?> "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-FOLDER-storage", "data" => [ "storage" => "local", "job-id" => $job_id, ], ]); ?>