HEX
Server: Apache
System: Linux flamboyant-gauss.194-164-62-186.plesk.page 6.8.0-55-generic #57-Ubuntu SMP PREEMPT_DYNAMIC Wed Feb 12 23:42:21 UTC 2025 x86_64
User: gamesamphora (10001)
PHP: 7.4.33
Disabled: opcache_get_status
Upload Files
File: /var/www/vhosts/amphoragames.com/httpdocs/wp-content/plugins/backwpup/parts/modal/backup-job.php
<?php
use BackWPup\Utils\BackWPupHelpers;

/**
 * @var int $job_id The job ID.
 */

if ( ! isset( $job_id ) ) {
	return;
}
$name = BackWPup_Option::get( $job_id, 'name' );

BackWPupHelpers::component(
	'closable-heading',
	[
		'title' => __( 'Backup now: ', 'backwpup' ) . $name,
		'type'  => 'modal',
	]
	);
?>  
  
<?php
$info_content = [
	'component' => 'alerts/info',
	'args'      => [
		'type'    => 'info',
		'content' => __( 'Your backup will be created using the data and the storage location you selected for your scheduled backup.', 'backwpup' ),
	],
];
$info_content = wpm_apply_filters_typed( 'array', 'backwpup_backup_now_modal_info_content', $info_content, $job_id );
if ( isset( $info_content['component'], $info_content['args'] ) && $info_content ) {
	BackWPupHelpers::component( $info_content['component'], $info_content['args'] );
}
?>
  
<footer class="flex flex-col gap-2">  
	<?php
	$button = [
		'component' => 'form/button',
		'args'      => [
			'type'       => 'primary',
			'label'      => __( 'Start', 'backwpup' ),
			'full_width' => true,
			'trigger'    => 'start-backup-job',
			'class'      => 'backwpup-start-backup-job',
			'data'       => [ 'job_id' => $job_id ],
		],
	];
	$button = wpm_apply_filters_typed( 'array', 'backwpup_backup_now_modal_button', $button, $job_id );
	if ( isset( $button['component'], $button['args'] ) && $button ) {
		BackWPupHelpers::component( $button['component'], $button['args'] );
	}
	?>
	</footer>