"; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- $atts is escaped before being passed in.
if (isset($data['settings']['label'])) {
echo '
' . fluentform_sanitize_html($data['settings']['label']) . '';
}
foreach ($data['columns'] as $columnIndex => $column) {
if (! isset($column['width'])) {
$column['width'] = ceil(100 / count($data['columns']));
}
$newColumnClass = $columnClass . ' ff-t-column-' . ($columnIndex + 1);
echo "
";
foreach ($column['fields'] as $item) {
$item = apply_filters_deprecated(
'fluentform_before_render_item',
[
$item,
$form
],
FLUENTFORM_FRAMEWORK_UPGRADE,
'fluentform/before_render_item',
'Use fluentform/before_render_item instead of fluentform_before_render_item.'
);
$item = apply_filters('fluentform/before_render_item', $item, $form);
do_action_deprecated(
'fluentform_render_item_' . $item['element'],
[
$item,
$form
],
FLUENTFORM_FRAMEWORK_UPGRADE,
'fluentform/render_item_' . $item['element'],
'Use fluentform/render_item_' . $item['element'] . ' instead of fluentform_render_item_' . $item['element']
);
do_action('fluentform/render_item_' . $item['element'], $item, $form);
}
echo '
';
}
echo '
';
}
}