GRAYBYTE WORDPRESS FILE MANAGER9643

Server IP : 198.54.121.189 / Your IP : 216.73.216.140
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /home/giriqfky/trustyourlawyer.com/wp-content/plugins/backwpup/components/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/giriqfky/trustyourlawyer.com/wp-content/plugins/backwpup/components//table-row-backups.php
<?php
use BackWPup\Utils\BackWPupHelpers;

// Date formatting logic
$date = new DateTime();
$date->setTimestamp($backup['time']);
$formatted_date = $date->format('M j, Y');
$formatted_time = $date->format('g:ia');
$type = ('' === $backup['type']) ? 'Manual' : $backup['type'];
$type_icon = ('' === $backup['type']) ? 'user-settings' : 'clock';
$actions =[];
//Add the download and restore action
//If we can't restore the backup, we can't download it either.
if (isset($backup['dataset-download'])) {
	$actions[] = ["name" => __("Download", 'backwpup'), "icon" => "download", "trigger" => $backup["download-trigger"], "dataset" => $backup['dataset-download']];
}

if (isset($backup['dataset-restore'])) {
	$actions[] = ["name" => $backup['dataset-restore']['label'], "icon" => "restore", "trigger" => "open-modal", "display" => "restore-backup","dataset" => $backup['dataset-restore']];
}

// Add the delete action
if (isset($backup['dataset-delete'])) {
  $actions[] = [
    "name" => __("Delete", 'backwpup'),
    "icon" => "trash", 
    "trigger" => "open-modal", 
    "display" => "delete-backup", 
    "dataset" => $backup['dataset-delete']
  ];
}

// Start output buffering
ob_start();
?>

<tr class="*:py-6 *:border-b *:border-grey-300 max-md:bg-grey-100 max-md:rounded-lg max-md:block max-md:p-4">
  <td class="p-0 max-md:hidden">
    <?php
      echo BackWPupHelpers::component("form/checkbox", [
        "name" => "select_backup",
        "style" => "light",
        "trigger" => "select-backup",
        "data" => [
          "delete" => json_encode($backup['dataset-delete']),
        ]
      ]);
    ?>
  </td>

  <td class="px-8 max-md:py-4 max-md:px-6 max-md:flex max-md:items-baseline max-md:gap-1 max-md:bg-white max-md:rounded max-md:border-none">
    <p class="text-sm font-bold"><?= $formatted_date ?></p>
    <p class="text-base">at <?= $formatted_time ?></p>
  </td>

  <td class="px-8 max-md:block max-md:px-2 max-md:py-3">
    <div class="flex items-center md:justify-center max-md:justify-between">
      <p class="text-base font-semibold md:hidden"><?php _e("Type", "backwpup"); ?></p>
      <?php
        echo BackWPupHelpers::component("tooltip", [
          "content" => __($type, 'backwpup'),
          "icon_name" => $type_icon,
          "icon_size" => "large",
          "position" => "center",
        ]);
      ?>
    </div>
  </td>

  <td class="px-8 max-md:px-2 max-md:py-3 max-md:flex max-md:justify-between max-md:items-center">
    <p class="text-base font-semibold md:hidden"><?php _e("Stored on", "backwpup"); ?></p>
    <?php
      echo BackWPupHelpers::component("storage-list-compact", [
        "storages" => (array)$backup['stored_on'],
        "style" => "alt"
      ]);
    ?>
  </td>

  <td class="px-8 max-md:px-2 max-md:py-3 max-md:flex max-md:justify-between max-md:items-center">
    <p class="text-base font-semibold md:hidden"><?php _e("Data", "backwpup"); ?></p>
    <div class="flex gap-2">
    <?php
      foreach ($backup['data'] as $data) {
        switch ($data) {
          case 'FILE':
            $icon = 'file-alt';
            $label = 'Files';
            break;
          case 'DBDUMP':
            $icon = 'database';
            $label = 'Database';
            break;
          case 'WPPLUGIN':
            $icon = 'file';
            $label = 'Plugins';
            break;
          default:
            $icon = 'dots';
            $label = $data;
            break;
        }
        echo BackWPupHelpers::component("tooltip", [
          "content" => __($label, 'backwpup'),
          "icon_name" => $icon,
          "icon_size" => "large",
          "position" => "center",
        ]);
      }
    ?>
    </div>
  </td>

  <td class="px-8 max-md:block max-md:p-0 max-md:border-none">
    <?php
      echo BackWPupHelpers::component("navigation/menu", [
        "class" => "max-md:hidden",
        "actions" => $actions,
      ]);
    ?>
    <ul class="md:hidden flex flex-col">
      <li class="py-4 flex justify-end border-b border-grey-400">
        <?php
          echo BackWPupHelpers::component("form/button", [
            "type" => "link",
            "label" => __("Download", "backwpup"),
            "icon_name" => "download",
            "icon_position" => "after",
            "trigger" => "download-backup",
          ]);
        ?>
      </li>
      <li class="py-4 flex justify-end">
        <?php
          echo BackWPupHelpers::component("form/button", [
            "type" => "link",
            "label" => __("Restore", "backwpup"),
            "icon_name" => "restore",
            "icon_position" => "after",
            "trigger" => "open-modal",
            "display" => "restore-backup"
          ]);
        ?>
      </li>
    </ul>
  </td>
</tr>

<?php
// End output buffering and capture the output
$tableRowHtml = ob_get_clean();

// Return the HTML to use or echo it when needed
echo $tableRowHtml;
?>

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 10 2025 04:32:29
giriqfky / giriqfky
0755
alerts
--
July 10 2025 04:32:37
giriqfky / giriqfky
0755
app
--
July 10 2025 04:32:37
giriqfky / giriqfky
0755
containers
--
July 10 2025 04:32:37
giriqfky / giriqfky
0755
form
--
July 10 2025 04:32:37
giriqfky / giriqfky
0755
icons
--
July 10 2025 04:32:37
giriqfky / giriqfky
0755
navigation
--
July 10 2025 04:32:37
giriqfky / giriqfky
0755
onboarding
--
July 10 2025 04:32:37
giriqfky / giriqfky
0755
.htaccess
0.41 KB
July 10 2025 04:32:37
giriqfky / giriqfky
0644
closable-heading.php
0.545 KB
February 04 2025 14:50:44
giriqfky / giriqfky
0644
file-line.php
1.723 KB
February 04 2025 14:50:44
giriqfky / giriqfky
0644
first-congrats.php
0.897 KB
March 13 2025 16:05:40
giriqfky / giriqfky
0644
heading-desc.php
0.38 KB
February 04 2025 14:50:44
giriqfky / giriqfky
0644
heading.php
2.095 KB
April 07 2025 18:31:08
giriqfky / giriqfky
0644
icon.php
1.477 KB
April 07 2025 18:31:08
giriqfky / giriqfky
0644
job-item.php
4.122 KB
April 29 2025 17:34:12
giriqfky / giriqfky
0644
next-scheduled-backup.php
2.931 KB
April 07 2025 18:31:08
giriqfky / giriqfky
0644
progress-bar.php
0.485 KB
February 04 2025 14:50:44
giriqfky / giriqfky
0644
progress-box.php
1.803 KB
March 13 2025 16:05:40
giriqfky / giriqfky
0644
selector-file-db.php
2.793 KB
April 23 2025 14:14:02
giriqfky / giriqfky
0644
separator.php
0.03 KB
February 04 2025 14:50:44
giriqfky / giriqfky
0644
storage-item.php
2.895 KB
May 20 2025 11:41:24
giriqfky / giriqfky
0644
storage-list-compact.php
1.332 KB
April 07 2025 18:31:08
giriqfky / giriqfky
0644
storage-list.php
1.404 KB
May 20 2025 11:41:24
giriqfky / giriqfky
0644
table-backups.php
0.893 KB
February 04 2025 14:50:44
giriqfky / giriqfky
0644
table-row-backups.php
4.791 KB
April 23 2025 14:14:02
giriqfky / giriqfky
0644
tags-item.php
0.468 KB
February 04 2025 14:50:44
giriqfky / giriqfky
0644
tooltip.php
2.618 KB
April 07 2025 18:31:08
giriqfky / giriqfky
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF