Server IP : 172.67.216.182 / Your IP : 108.162.226.243 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/classes/sync/ |
Upload File : |
<?php /** * Magic tag sync implementation for HTML fields * * @package Caldera_Forms * @author Josh Pollock <[email protected]> * @license GPL-2.0+ * @link * @copyright 2016 CalderaWP LLC */ class Caldera_Forms_Sync_HTML extends Caldera_Forms_Sync_Sync { /** * Bind field list as field data-field attrs * * @since 1.5.0 * * @var array */ protected $attr_binds; /** * Quoted bind field list * * @since 1.5.0 * * @var array */ protected $bind_fields; /** * Prefix for template and content ID attributes * * @since 1.5.0 * * @var string */ protected $template_prefix = 'html-content-'; /** * Get the date-field formatted binds * * @since 1.5.0 * * @return array */ public function get_attr_binds(){ if ( is_array( $this->attr_binds ) ) { return $this->attr_binds; } else { return array(); } } /** * Get ID of the template * * @since 1.5.0 * * @return string */ public function template_id(){ return $this->template_prefix . $this->field_base_id . '-tmpl'; } /** * Get ID of the content attribute * * @since 1.5.0 * * @return string */ public function content_id(){ return $this->template_prefix . $this->field_base_id; } /** * Get the quoted binds list * * @since 1.5.0 * * @return array */ public function get_bind_fields(){ if( is_array( $this->bind_fields ) ){ return $this->bind_fields; }else{ return array(); } } /** * @inheritdoc * @since 1.5.0 */ protected function add_bind( $key_id ) { $this->binds[] = $key_id; $type = Caldera_Forms_Field_Util::get_type( $key_id, $this->form ); if( 'calculation' == $type ){ $this->attr_binds[] = '[data-calc-field="'.$key_id . '_' . $this->current_form_count.'"]'; }else{ $this->attr_binds[] = '[data-field="'.$key_id.'"]'; } $this->bind_fields[] = '"'.$key_id.'"'; } }