HEX
Server: Apache
System: Linux web5.visualcom.es 4.18.0-477.21.1.lve.1.el8.x86_64 #1 SMP Tue Sep 5 23:08:35 UTC 2023 x86_64
User: ensaco.es (10019)
PHP: 8.3.32
Disabled: opcache_get_status
Upload Files
File: /var/www/vhosts/ensaco.es/httpdocs/wp-content/plugins/bb-plugin/includes/ui-legacy-field.php
<?php

/**
 * PLEASE NOTE: This file is only around for backwards compatibility
 * with third party settings forms that are still being rendered via
 * AJAX. Going forward, all settings forms should be rendered on the
 * frontend using FLBuilderSettingsForms.render.
 */

if ( isset( $field['class'] ) ) {
	$field['className'] = $field['class'];
}

ob_start();
do_action( 'fl_builder_before_control', $name, $value, $field, $settings );
do_action( 'fl_builder_before_control_' . $field['type'], $name, $value, $field, $settings );
$field['html_before'] = ob_get_clean();

ob_start();
do_action( 'fl_builder_after_control_' . $field['type'], $name, $value, $field, $settings );
do_action( 'fl_builder_after_control', $name, $value, $field, $settings );
$field['html_after'] = ob_get_clean();

?>
<tr id="fl-field-<?php echo $name; ?>"></tr>
<script>

var fieldName = '<?php echo $name; ?>';
var html   = null;
var fields = {
		'<?php echo $name; ?>' : <?php echo json_encode( $field ); ?>
	};

var dynamicOptions = {
	source       : 'legacy',
	isDataSource : <?php echo ( 'data_source' === $name ? '1' : 0 ); ?>,
};

html = FLBuilderSettingsForms.renderFields( fields, <?php echo json_encode( $settings ); ?>, null, null, null, dynamicOptions );


jQuery( '#fl-field-<?php echo $name; ?>' ).after( html ).remove();

</script>