";
$ratingText = '';
foreach ($data['options'] as $value => $label) {
$starred = '';
if (in_array($value, $defaultValues)) {
$data['attributes']['checked'] = true;
$starred = 'active';
} else {
$data['attributes']['checked'] = false;
}
if ($tabIndex = Helper::getNextTabIndex()) {
$data['attributes']['tabindex'] = $tabIndex;
}
$atts = $this->buildAttributes($data['attributes']);
$id = esc_attr($this->getUniqueid(str_replace(['[', ']'], ['', ''], $data['attributes']['name'])));
$ariaRequired = 'false';
if (ArrayHelper::get($data, 'settings.validation_rules.required.value')) {
$ariaRequired = 'true';
}
$elMarkup .= "
';
if ('yes' == ArrayHelper::get($data, 'settings.show_text')) {
$displayDefaultText = in_array($value, $defaultValues) ? 'display: inline-block' : 'display: none';
$ratingText .= "
" . fluentform_sanitize_html($label) . '';
}
};
$elMarkup .= '
' . $ratingText;
$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
);
$this->printContent('fluentform/rendering_field_html_' . $elementName, $html, $data, $form);
}
}