__( 'Storages Settings', 'backwpup' ), 'type' => 'sidebar', ] ); $selected_destinations = BackWPup_Option::get( $job_id, 'destinations', [] ); if ( ! is_array( $selected_destinations ) ) { $selected_destinations = []; } // Get all the destinations including local. $all_destinations = BackWPup_Destinations::get_destinations( true ); $dist_storages = []; foreach ( $all_destinations as $destination ) { $dist_storages[] = [ 'slug' => $destination['slug'], 'label' => $destination['label'], 'name' => 'storage_destinations[]', 'active' => in_array( $destination['slug'], $selected_destinations ), 'deactivated_message' => $destination['deactivated_message'] ?? '', ]; } ?>

true, 'prev' => 'storages', 'storages' => $dist_storages, 'job_id' => $job_id, ] ); ?>
wpm_apply_filters_typed( 'string', 'backwpup_url_add_hash', 'https://backwpup.com/pricing/?utm_source=backwpup_plugin&utm_medium=plugin&utm_campaign=storage_settings' ), 'newtab' => true, 'content' => __( 'Upgrade to PRO', 'backwpup' ), 'full_width' => false, 'type' => 'upgrade', 'class' => 'js-backwpup-nudge-cta', ] ); ?>
'secondary', 'label' => __( 'Close', 'backwpup' ), 'full_width' => true, 'trigger' => 'close-sidebar', ] ); ?>