HEX
Server: Apache
System: Linux webm004.cluster121.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
User: grainesdfo (155059)
PHP: 5.4.45
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/grainesdfo/www/wp-content/plugins/backwpup/components/app/steps.php
<?php
use BackWPup\Utils\BackWPupHelpers;
/**
 * @var int  $current_step   The current step number. Default 1.
 */

# Current step
$current_step = $current_step ?? 1;

# Steps
$steps = [
  [
    "number" => 1,
    "title" => __("What?", 'backwpup'),
    "description" => __("Please select what files and/or database you want to backup", 'backwpup'),
  ],
  [
    "number" => 2,
    "title" => __("When?", 'backwpup'),
    "description" => __("Choose how often you want to backup", 'backwpup'),
  ],
  [
    "number" => 3,
    "title" => __("Where?", 'backwpup'),
    "description" => __("Select one or more areas where you want to backup ", 'backwpup'),
  ],
];

?>
<div class="bg-primary-darker rounded-2xl px-10 w-[400px] shrink-0 overflow-hidden" id="backwpup-onboarding-steps">
  <?php foreach ($steps as $step) : ?>
    <?php BackWPupHelpers::component("app/steps-item", array_merge($step, ["is_active" => $step['number'] === $current_step, "is_reached" => $current_step >= $step['number'], "is_last" => $step['number'] === count($steps)])); ?>
  <?php endforeach; ?>
</div>