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/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>