| Server IP : 216.238.66.20 / Your IP : 216.73.217.142 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/containers/ |
Upload File : |
<?php
use BackWPup\Utils\BackWPupHelpers;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Sidebar container
* @var string $is_in_form Set to true if the sidebar is in a form. Default: false.
*/
#Default values
$is_in_form = $is_in_form ?? false;
$base_path = untrailingslashit( BackWPup::get_plugin_data( 'plugindir' ) );
$files = glob( $base_path . '/parts/sidebar/*' );
if ( BackWPup::is_pro() ) {
$files_pro = glob( $base_path . '/pro/parts/sidebar/*' );
$files = array_merge( $files, $files_pro );
}
?>
<aside id="backwpup-sidebar" class="fixed z-[100000] top-0 right-0 bottom-0 w-[410px] p-6 flex flex-col gap-4 rounded-l-lg bg-white shadow-xl translate-x-[450px] transition-transform duration-500 ease-out backwpup-typography">
<?php
# Get all files in the parts/sidebar directory
foreach ( $files as $file ) {
if ( ! is_file( $file ) ) {
continue;
}
// Unset $job_id before each include to prevent scope pollution between sidebar files.
unset( $job_id );
$filename = pathinfo( $file, PATHINFO_FILENAME ); ?>
<article class="flex flex-col flex-auto gap-4" id="sidebar-<?php echo esc_attr( $filename) ?>">
<?php include $file; ?>
</article>
<?php } ?>
</aside>