PATH:
home
/
thebhoeo
/
.trash
/
backwpup
/
components
<?php use BackWPup\Utils\BackWPupHelpers; if ( ! defined( 'ABSPATH' ) ) { exit; } /** * @var array $storages An array of storage services. Default: []. * @var string $style The style of the items. Values: "default", "alt". Default: "default". */ // Defaults $storages = $storages ?? []; // CSS $item_class = isset( $style ) && $style === 'alt' ? 'max-md:bg-grey-300' : 'md:bg-white md:border md:border-grey-200'; $justify_class = isset( $style ) && $style === 'alt' ? 'max-md:justify-end' : ''; if ( count( $storages ) > 0 ) { ?> <ul class="<?php echo esc_attr( BackWPupHelpers::clsx( 'flex flex-wrap gap-2', $justify_class ) ); ?>"> <?php foreach ( $storages as $storage ) : ?> <li class="<?php echo esc_attr( BackWPupHelpers::clsx( 'rounded flex items-center', $item_class ) ); ?>"> <?php $content = $storage; if ( $content === 'FOLDER' ) { $content = __( 'Website Server', 'backwpup' ); } BackWPupHelpers::component( 'tooltip', [ 'content' => $content, 'icon_name' => $storage, 'icon_size' => 'large', 'position' => 'top', ] ); ?> </li> <?php endforeach; ?> </ul> <?php } else { BackWPupHelpers::component( 'alerts/info', [ 'type' => 'alert', 'font' => 'xs', 'content' => __( 'Warning: No storage method is configured. Your backup will not work!', 'backwpup' ), ] ); } ?>
[+]
app
[-] tags-item.php
[edit]
[+]
icons
[+]
data-settings
[-] storage-list-compact.php
[edit]
[-] table-row-backups-empty.php
[edit]
[-] closable-heading.php
[edit]
[-] table-row-backups.php
[edit]
[-] table-backups.php
[edit]
[+]
containers
[+]
form
[-] navigation-header.php
[edit]
[+]
restore
[-] storage-item-disabled.php
[edit]
[+]
navigation
[-] storage-list.php
[edit]
[-] storage-item-locked.php
[edit]
[-] job-item.php
[edit]
[-] separator.php
[edit]
[-] heading-desc.php
[edit]
[-] progress-bar.php
[edit]
[+]
..
[-] progress-box.php
[edit]
[-] first-congrats.php
[edit]
[-] selector-file-db.php
[edit]
[-] next-scheduled-backup.php
[edit]
[-] heading.php
[edit]
[+]
alerts
[-] tooltip.php
[edit]
[-] file-line.php
[edit]
[-] icon.php
[edit]
[+]
onboarding
[-] storage-item.php
[edit]