HEX
Server: LiteSpeed
System: Linux php-prod-3.spaceapp.ru 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC 2025 x86_64
User: sarli3128 (1010)
PHP: 7.4.33
Disabled: 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_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /home/sarlight.ru/public_html/wp-content/themes/addison/framework/js/bb_custom_fields.js
'use strict';

(function( $ ) {
	
	// my_custom_field START

		// custom field content HTML (window.bt_bb_cf_<custom_field_slug>_content)
		window.bt_bb_cf_my_custom_field_content = function( obj ) {
			
			// obj.param_heading
			// obj.param_value
			// obj.param_name
			// obj.val
			// obj.base

			var html = '';
			if ( obj.val == '' ) {
				if ( obj.param_value !== undefined ) {
					html = obj.param_value;
					html = html.replace( /``/gmi, '&quot;' );
				}
			} else {
				html = obj.val.replace( /``/gmi, '&quot;' );
			}
			
			return '<b>' + obj.param_heading + '</b><input type="password" value="' + html + '">';
		}
		
		// custom field param value preview HTML (window.bt_bb_cf_<custom_field_slug>_param_value_preview)
		window.bt_bb_cf_my_custom_field_param_value_preview = function( param_value ) {
			var param_value_preview = '<b>' + param_value + '</b>';
			return param_value_preview;
		}
		
		// custom field edit dialog submit callback (window.bt_bb_cf_<custom_field_slug>_on_submit)
		window.bt_bb_cf_my_custom_field_on_submit = function( $this ) {
			var return_value = $this.find( 'input' ).val().replace( /"/gmi, '``' );
			return_value = return_value.replace( /\[/gmi, '(' );
			return_value = return_value.replace( /\]/gmi, ')' );
			return return_value;
		}
	
	// my_custom_field END
	
})( jQuery );