PATH:
home
/
thebhoeo
/
.trash
/
backwpup
/
components
<?php use BackWPup\Utils\BackWPupHelpers; if ( ! defined( 'ABSPATH' ) ) { exit; } /** * @var string $name The input name. * @var string $value File or folder name. * @var string $label The input label * @var string $icon The icon to display. Default : "". * @var bool $includes True if the file is included. default: true. */ if (!isset($name)) { throw new Exception("Attribute 'name' is required on File block"); } # Defaults $icon = $icon ?? false; $included = $included ?? true; $value = $value ?? ""; ?> <div class="group rounded-lg p-4 flex items-center gap-2 bg-grey-100 cursor-pointer js-backwpup-toggle-include"> <input type="checkbox" value="<?php echo esc_attr( $value ); ?>" name="<?php echo esc_attr( $name ); ?>" class="peer sr-only" <?php if (!$included) : ?>checked<?php endif; ?>> <span class="flex-auto flex items-center gap-2 peer-checked:text-danger peer-checked:line-through"> <?php if ($icon) { BackWPupHelpers::component("icon", ["name" => $icon]); } ?> <span class="text-base"><?php echo esc_html( $label ?? '' ); ?></span> </span> <div class="hidden group-hover:block"> <?php BackWPupHelpers::component("form/button", [ "type" => "link", "font" => "small", "label" => __("Exclude from backup", 'backwpup'), "icon_name" => "remove", "icon_position" => "before", "trigger" => "toggle-include-add", "class" => $included ? "" : "hidden", ]); ?> <?php BackWPupHelpers::component("form/button", [ "type" => "link", "font" => "small", "label" => __("Include to backup", 'backwpup'), "icon_name" => "add", "icon_position" => "before", "trigger" => "toggle-include-remove", "class" => $included ? "hidden" : "", ]); ?> </div> </div>
[+]
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]