";
$html = $this->buildElementMarkup($elMarkup, $data, $form);
$html = apply_filters_deprecated(
'fluentform_rendering_field_html_' . $elementName,
[
$html,
$data,
$form
],
FLUENTFORM_FRAMEWORK_UPGRADE,
'fluentform/rendering_field_html_' . $elementName,
'Use fluentform/rendering_field_html_' . $elementName . ' instead of fluentform_rendering_field_html_' . $elementName
);
echo apply_filters('fluentform/rendering_field_html_' . $elementName, $html, $data, $form);
}
private function registerScripts($form, $elementId)
{
wp_enqueue_script(
'rangeslider',
FLUENTFORMPRO_DIR_URL . 'public/libs/rangeslider/rangeslider.js',
array('jquery'),
'2.3.0',
true
);
wp_enqueue_style(
'rangeslider',
FLUENTFORMPRO_DIR_URL . 'public/libs/rangeslider/rangeslider.css',
array(),
'2.3.0',
'all'
);
if (did_action('wp_footer')) {
$this->printJS($form, $elementId);
} else {
add_action('wp_footer', function () use ($form, $elementId) {
$this->printJS($form, $elementId);
}, 99);
}
}
private function printJS($form, $elementId)
{
?>