GRAYBYTE WORDPRESS FILE MANAGER9083

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//select.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          The field label. Default: "". 
 * @var array   $options        The options to display. Array with keys => value. Default: [].
 * @var bool    $withEmpty      Optional. True to add an empty option. Default: false.
 * @var bool    $required       Optional. True to set the field as required. Default: false.
 * @var string  $value          Optional. The field value. Default: "". 
 * @var string  $trigger        Optional. For JS. The CSS classname for jQuery. Default: null.
 * @var string  $tooltip        Optional. The tooltip content. Default: "".
 * @var string  $tooltip_pos    Optional. The tooltip position. Default: "center".
 * @var string $class Optional. Additional CSS classname . Default: null.
 * @var string $identifier Optional. The field identifier. Default: null.
 * @var array $hide_subset_current_options Optional. Array of eligible options to be hidden if current. Default: [].
 */

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

# Defaults
$label = $label ?? "";
$value = $value ?? "";
$options = $options ?? [];
$withEmpty = $withEmpty ?? false;
$required = $required ?? false;
$id = isset($identifier) ? " id='".esc_attr($identifier)."'" : null;
$tooltip_pos = $tooltip_pos ?? "top";
$hide_subset_current_options = $hide_subset_current_options ?? [];

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

# CSS
$class = $class ?? "";

?>
<div class="select block relative border border-grey-500 rounded font-title focus-within:border-secondary-base">
  <label class="select-label flex gap-1 items-center absolute top-2 left-4 text-grey-700 leading-5 text-xs transition-all pointer-events-none" name="<?php echo $name; ?>">
    <?php echo $label; ?>
    <?php isset($tooltip) && BackWPupHelpers::component("tooltip", ["content" => $tooltip, "icon_size" => "small", "position" => $tooltip_pos]); ?>
  </label>
  <select name="<?=esc_attr($name)?>" <?php echo $id; ?> class="<?php echo BackWPupHelpers::clsx("peer select-transparent block min-w-[200px] w-full text-base text-primary-darker", $trigger, $class); ?>" <?php if ($required) : ?>required<?php endif; ?>>
    <?php if ($withEmpty) : ?>
      <option value="" <?php if ($value === "") : ?>selected<?php endif; ?>></option>
    <?php endif; ?>
    <?php foreach ($options as $key => $option) : ?>
      <option value="<?php echo esc_attr( $key ); ?>" <?php selected( $key, $value ); echo $key === $value && in_array( $key, $hide_subset_current_options, true ) ? 'hidden' : '' ?>>
        <?php echo $option; ?>
      </option>
    <?php endforeach; ?>
  </select>
  <div class="absolute right-4 top-0 bottom-0 flex items-center pointer-events-none rotate-180">
    <?php BackWPupHelpers::component("icon", ["name" => "toggle", "size" => "small"]); ?>
  </div>
</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