| Server IP : 216.238.66.20 / Your IP : 216.73.216.38 Web Server : nginx/1.30.4 System : Linux woropds 5.15.0-187-generic #197-Ubuntu SMP Fri Jul 17 19:17:01 UTC 2026 x86_64 User : root ( 0) PHP Version : 8.2.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/sweetheart.mx/htdocs/wp-content/plugins/backwpup/components/ |
Upload File : |
<?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' ),
]
);
}
?>