__( 'Job Format Settings', 'backwpup' ), 'type' => 'sidebar', ] ); $optionAdapter = new OptionAdapter(); if ( ! isset( $job_id ) ) { return; } $archiveFormat = BackWPup_Option::get( $job_id, 'archiveformat', $optionAdapter->defaults_job( 'archiveformat' ) ); $archiveNameNoHash = BackWPup_Option::get( $job_id, 'archivenamenohash', $optionAdapter->defaults_job( 'archivenamenohash' ) ); $hash = BackWPup_Option::get_generated_hash( $job_id ); $archiveNamePreview = str_replace( '%hash%', $hash, BackWPup_Job::sanitize_file_name( BackWPup_Option::substitute_date_vars( $archiveNameNoHash ) ) ); $docsUrl = wpm_apply_filters_typed( 'string', 'backwpup_url_add_hash','https://backwpup.com/docs/what-placeholders-can-i-use-in-archive-names-and-what-do-they-mean/?utm_source=backwpup_plugin&utm_medium=plugin&utm_campaign=in_product&utm_content=formart_help' ); BackWPupHelpers::component( 'containers/scrollable-start', [ 'gap_size' => 'small' ] ); BackWPupHelpers::component( 'form/text', [ 'label' => __( 'Archive name', 'backwpup' ), 'name' => 'archivename', 'value' => $archiveNameNoHash, 'required' => true, 'maxlength' => 200, 'trigger' => 'format-job-name', ] ); ?> 'alert', 'font' => 'small', 'content' => BackWPup_Admin::unavailable_archive_format_notice( BackWPup_Option::get( $job_id, 'name' ), $archiveFormat ), ] ); $archiveFormat = '.tar'; } BackWPupHelpers::children( 'sidebar/parts/archive-format-selector', false, [ 'label' => __( 'Archive format', 'backwpup' ), 'archiveformat' => $archiveFormat, ] ); ?>

_

'job_id', 'name' => 'job_id', 'value' => $job_id, ] ); BackWPupHelpers::component( 'form/button', [ 'type' => 'primary', 'label' => __( 'Save settings', 'backwpup' ), 'full_width' => true, 'class' => 'mt-4 save_job_format', 'identifier' => 'save-job-format', ] ); ?>