/home/techb158/public_html/wp-content/plugins/meta-box/inc/fields
NameSizeModeActions
autocomplete.php30720666editdlrm
background.php54570666editdlrm
block-editor.php49910666editdlrm
button-group.php18820666editdlrm
button.php12900666editdlrm
checkbox-list.php4680666editdlrm
checkbox.php12840666editdlrm
choice.php18880666editdlrm
color.php25530666editdlrm
custom-html.php6020666editdlrm
date.php6100666editdlrm
datetime.php100930666editdlrm
divider.php6070666editdlrm
fieldset-text.php34790666editdlrm
file-input.php19770666editdlrm
file-upload.php9530666editdlrm
file.php176650666editdlrm
heading.php7130666editdlrm
icon.php88130666editdlrm
image-advanced.php22290666editdlrm
image-select.php24440666editdlrm
image-upload.php7190666editdlrm
image.php48930666editdlrm
input-list.php27140666editdlrm
input.php30200666editdlrm
key-value.php29510666editdlrm
link.php41340666editdlrm
map.php67380666editdlrm
media.php69350666editdlrm
multiple-values.php13610666editdlrm
number.php9100666editdlrm
object-choice.php44750666editdlrm
oembed.php41500666editdlrm
osm.php59360666editdlrm
password.php22630666editdlrm
post.php67210666editdlrm
radio.php2700666editdlrm
range.php15440666editdlrm
select-advanced.php24570666editdlrm
select-tree.php15470666editdlrm
select.php25520666editdlrm
sidebar.php12500666editdlrm
single-image.php17700666editdlrm
slider.php23490666editdlrm
switch.php24260666editdlrm
taxonomy-advanced.php29130666editdlrm
taxonomy.php92930666editdlrm
text-list.php34780666editdlrm
textarea.php16120666editdlrm
time.php11760666editdlrm
user.php52100666editdlrm
video.php38710666editdlrm
wysiwyg.php23350666editdlrm
Edit: /home/techb158/public_html/wp-content/plugins/meta-box/inc/fields/fieldset-text.php (3479B)
%s

'; if ( ! is_array( $field['options'] ) ) { return ''; } foreach ( $field['options'] as $key => $label ) { $value = $meta[ $key ] ?? ''; $field['attributes']['name'] = $field['field_name'] . "[{$key}]"; $html[] = sprintf( $tpl, $label, parent::html( $value, $field ) ); } $out = '
' . ( $field['desc'] ? '' . $field['desc'] . '' : '' ) . implode( ' ', $html ) . '
'; return $out; } protected static function input_description( array $field ): string { return ''; } /** * Normalize parameters for field. * * @param array $field Field parameters. * * @return array */ public static function normalize( $field ) { $field = parent::normalize( $field ); $field['multiple'] = false; $field['attributes']['id'] = false; $field['attributes']['type'] = 'text'; return $field; } /** * Format value for the helper functions. * * @param array $field Field parameters. * @param string|array $value The field meta value. * @param array $args Additional arguments. Rarely used. See specific fields for details. * @param int|null $post_id Post ID. null for current post. Optional. * * @return string */ public static function format_value( $field, $value, $args, $post_id ) { $output = ''; foreach ( $field['options'] as $label ) { $output .= ''; } $output .= ''; if ( ! $field['clone'] ) { $output .= self::format_single_value( $field, $value, $args, $post_id ); } else { foreach ( $value as $subvalue ) { $output .= self::format_single_value( $field, $subvalue, $args, $post_id ); } } $output .= '
' . esc_html( $label ) . '
'; return $output; } /** * Format a single value for the helper functions. Sub-fields should overwrite this method if necessary. * * @param array $field Field parameters. * @param array $value The value. * @param array $args Additional arguments. Rarely used. See specific fields for details. * @param int|null $post_id Post ID. null for current post. Optional. * * @return string */ public static function format_single_value( $field, $value, $args, $post_id ) { $output = ''; foreach ( $value as $subvalue ) { $output .= '' . esc_html( $subvalue ) . ''; } $output .= ''; return $output; } /** * Since we're using an array of text fields, we need to check if all of them are empty. * Otherwise, there is no way to know if the field is empty or not. */ public static function value( $new, $old, $post_id, $field ) { $all_empty = empty( array_filter( (array) $new ) ); return $all_empty ? [] : $new; } }