| Server IP : 43.130.17.34 / Your IP : 216.73.217.6 Web Server : nginx/1.28.0 System : Linux VM-4-12-opencloudos 6.6.92-34.1.oc9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jun 25 21:32:13 CST 2025 x86_64 User : www ( 1000) PHP Version : 8.0.26 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /www/wwwroot/yespkg.com/wp-content/plugins/bb-plugin/includes/ |
Upload File : |
<input type="text" name="<?php echo $name; ?>" value="<?php echo esc_attr($value); ?>" class="text<?php if(isset($field['class'])) echo ' '. $field['class']; if(!isset($field['size'])) echo ' text-full'; ?>" <?php if(isset($field['placeholder'])) echo ' placeholder="'. $field['placeholder'] .'"'; if(isset($field['maxlength'])) echo ' maxlength="'. $field['maxlength'] .'"'; if(isset($field['size'])) echo ' size="'. $field['size'] .'"'; ?> />
<?php
/**
* Adding predefined values selector
*/
if (
isset( $field['options'] )
&& is_array( $field['options'] )
&& ! empty( $field['options'] )
) :
// Adding empty value if missing
if ( ! isset( $field['options'][''] ) ) {
$field['options'][''] = esc_html_x( '- Add predefined -', 'Add predefined value.', 'fl-builder' );
}
// Moving the empty value to top
$selector_value_empty = $field['options'][''];
unset( $field['options'][''] );
$field['options'] = array( '' => $selector_value_empty ) + $field['options'];
// Outputting select field
?>
<select class="fl-select-add-value" data-target="<?php echo esc_attr( $name ); ?>">
<?php
foreach( $field['options'] as $option_value => $option ) {
if (
is_array( $option )
&& isset( $option['label'] )
&& isset( $option['options'] )
) {
// Optgroups
echo '<optgroup label="' . esc_attr( $option['label'] ) . '">';
foreach( (array) $option['options'] as $optgroup_option_value => $optgroup_option ) {
echo '<option value="' . esc_attr( $optgroup_option_value ) . '">' . esc_html( $optgroup_option ) . '</option>';
}
echo '</optgroup>';
} else {
// Standard options
echo '<option value="' . esc_attr( $option_value ) . '">' . esc_html( $option ) . '</option>';
}
} // /foreach
?>
</select>
<?php
endif;
?>