Server IP : 172.67.216.182 / Your IP : 162.158.88.156 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 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 : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /www/wwwroot/coircraft.com/wp-content/plugins/caldera-forms/fields/text/ |
Upload File : |
<?php if(!empty($field['config']['placeholder'])){ $field_placeholder = 'placeholder="' . esc_attr(Caldera_Forms::do_magic_tags($field['config']['placeholder'])) . '"'; } $mask = null; if(!empty($field['config']['masked'])){ $mask = "data-inputmask=\"'mask': '".$field['config']['mask']."'\" "; } $type_override = 'text'; if( !empty( $field['config']['type_override'] ) ){ $type_override = $field['config']['type_override']; } preg_match_all("/%(.+?)%/", $field['config']['default'], $hastags); if(!empty($hastags[1])){ $binds = array(); foreach($hastags[1] as $tag_key=>$tag){ foreach($form['fields'] as $key_id=>$fcfg){ if( $key_id == $field_base_id ){ continue; } // ye bad to sync to itself if($fcfg['slug'] === $tag){ $binds[] = $key_id; $field['config']['default'] = str_replace($hastags[0][$tag_key], '{{'.$key_id.'}}', $field['config']['default']); } } } $field_value = $field['config']['default']; $sync = true; } ?> <?php echo $wrapper_before; ?> <?php echo $field_label; ?> <?php echo $field_before; ?> <input <?php echo $field_placeholder; ?> type="<?php echo esc_attr( $type_override ); ?>" <?php echo $mask; ?><?php if(!empty( $sync ) ){ ?>data-binds="<?php echo esc_attr(wp_json_encode($binds)); ?>" data-sync="<?php echo esc_attr( $field['config']['default'] ); ?>"<?php } ?>data-field="<?php echo esc_attr( $field_base_id ); ?>" class="<?php echo esc_attr( $field_class ); ?>" id="<?php echo esc_attr( $field_id ); ?>" name="<?php echo esc_attr( $field_name ); ?>" value="<?php echo esc_attr( $field_value ); ?>" <?php echo $field_required; ?> <?php echo $field_structure['aria']; ?>> <?php echo $field_caption; ?> <?php echo $field_after; ?> <?php echo $wrapper_after; ?>