Current File : /home/giriqfky/trustyourlawyer.com/wp-content/plugins/backwpup/components//progress-box.php
<?php
use BackWPup\Utils\BackWPupHelpers;
/**
* @var string $class Optional. Additional CSS classname . Default: null.
* @var string $abortUrl Optional. The URL to abort the job. Default: null.
*/
# CSS
$class = $class ?? "";
$classStep = $class."-step";
$abortUrl = $abortUrl ?? "";
?>
<div class="mt-6">
<div class="flex gap-2 <?php echo $class; ?>">
<?php BackWPupHelpers::component("progress-bar", []); ?>
<?php
BackWPupHelpers::component("navigation/link", [
"type" => "secondary",
"content" => __("Display Logs", 'backwpup'),
"url" => "#TB_inline?height=440&inlineId=tb-showworking&width=640&height=137",
"font" => "small",
"class" => "thickbox",
]);
?>
<?php
BackWPupHelpers::component("form/button", [
"type" => "secondary",
"label" => __("Abort", 'backwpup'),
"font" => "small",
"class" => "max-md:hidden",
"trigger" => "abortbutton",
"data" => [
"url" => $abortUrl,
],
"identifier" => "abortbutton",
]);
?>
<?php
$btn_args = [
"type" => "secondary",
"label" => __("Close", 'backwpup'),
"font" => "small",
"class" => "max-md:hidden",
"identifier" => "showworkingclose",
];
$bwpup_first_backup_redirect_url = 'admin_page_backwpupfirstbackup' === get_current_screen()->id ? network_admin_url( 'admin.php?page=backwpup' ) : '';
if ( ! empty( $bwpup_first_backup_redirect_url ) ) {
$btn_args['data'] = [
"bwpup_redirect_url" => esc_url( $bwpup_first_backup_redirect_url ),
];
}
BackWPupHelpers::component("form/button", $btn_args);
?>
</div>
<p class="mt-1 text-base font-title">
<span class="js-backwpup-current-file <?php echo $classStep; ?>"></span>
</p>
</div>