Server IP : 104.21.38.3 / Your IP : 172.70.208.157 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/calculation/ |
Upload File : |
<?php $elementType = $field['config']['element']; if(empty($elementType)){ $elementType = 'div'; } if(!empty($field['config']['before'])){ $field['config']['before'] = Caldera_Forms::do_magic_tags($field['config']['before']); } if(!empty($field['config']['after'])){ $field['config']['after'] = Caldera_Forms::do_magic_tags($field['config']['after']); } if( !isset( $field['config']['thousand_separator'] ) ){ $field['config']['thousand_separator'] = ','; } if( !isset( $field['config']['decimal_separator'] ) ){ $field['config']['decimal_separator'] = '.'; } $target_id = Caldera_Forms_Field_Util::get_base_id( $field, $current_form_count, $form ); $value_field_id = $target_id . '-value'; $attrs = array( 'type' => 'hidden', 'name' => $field_name, 'value' => 0, 'data-field' => $target_id, 'data-calc-field' => $field[ 'ID' ], 'data-type' => 'calculation', 'id' => $value_field_id ); $attr_string = caldera_forms_field_attributes( $attrs, $field, $form ); $syncer = Caldera_Forms_Sync_Factory::get_object( $form, $field, Caldera_Forms_Field_Util::get_base_id( $field, null, $form ) ); ?><?php echo $wrapper_before; ?> <?php echo $field_label; ?> <?php echo $field_before; ?> <<?php echo $elementType . $field_structure['aria']; ?> class="<?php echo $field['config']['classes']; ?>"><?php echo $field['config']['before']; ?> <span id="<?php echo esc_attr( $field_id ); ?>" data-calc-display="<?php echo esc_attr( $value_field_id ); ?>"><?php echo $field_value; ?></span><?php echo $field['config']['after']; ?></<?php echo $elementType; ?>> <input type="hidden" <?php echo $attr_string; ?> > <?php echo $field_caption; ?> <?php echo $field_after; ?> <?php echo $wrapper_after; ?> <?php Caldera_Forms_Render_Util::add_inline_script( $syncer->get_formula( true ), $form );