function themify_render_styling_settings($fields)
{
    foreach ($fields as $styling) {
        if ($styling['type'] == 'tabs') {
            themify_builder_tabs($styling, '', true);
            continue;
        }
        echo $styling['type'] != 'separator' ? '<div class="themify_builder_field">' : '';
        if (isset($styling['label'])) {
            echo '<div class="themify_builder_label">' . esc_html($styling['label']) . '</div>';
        }
        echo $styling['type'] != 'separator' ? '<div class="themify_builder_input">' : '';
        if ($styling['type'] == 'multi') {
            foreach ($styling['fields'] as $field) {
                themify_builder_styling_field($field);
            }
        } else {
            themify_builder_styling_field($styling);
        }
        echo $styling['type'] != 'separator' ? '</div>' : '';
        // themify_builder_input
        echo $styling['type'] != 'separator' ? '</div>' : '';
        // themify_builder_field
    }
}
<form id="tfb_row_settings">
	<div class="lightbox_inner">
		<?php 
    foreach ($row_settings as $styling) {
        $wrap_with_class = isset($styling['wrap_with_class']) ? $styling['wrap_with_class'] : '';
        echo $styling['type'] != 'separator' ? '<div class="themify_builder_field ' . $wrap_with_class . '">' : '';
        if (isset($styling['label'])) {
            echo '<div class="themify_builder_label">' . $styling['label'] . '</div>';
        }
        echo $styling['type'] != 'separator' ? '<div class="themify_builder_input">' : '';
        if ($styling['type'] != 'multi') {
            themify_builder_styling_field($styling);
        } else {
            foreach ($styling['fields'] as $field) {
                themify_builder_styling_field($field);
            }
        }
        echo $styling['type'] != 'separator' ? '</div>' : '';
        // themify_builder_input
        echo $styling['type'] != 'separator' ? '</div>' : '';
        // themify_builder_field
    }
    ?>
	</div>
	<!-- /lightbox_inner -->

	<p>
		<a href="#" class="reset-module-styling" data-reset="row">
			<i class="ti ti-close"></i>
			<?php 
 function themify_render_row_fields($fields)
 {
     foreach ($fields as $field) {
         $wrap_with_class = isset($field['wrap_with_class']) ? $field['wrap_with_class'] : '';
         echo $field['type'] != 'separator' ? '<div class="themify_builder_field ' . esc_attr($wrap_with_class) . '">' : '';
         if (isset($field['label'])) {
             echo '<div class="themify_builder_label">' . esc_html($field['label']) . '</div>';
         }
         echo $field['type'] != 'separator' ? '<div class="themify_builder_input">' : '';
         if ($field['type'] != 'multi') {
             themify_builder_styling_field($field);
         } else {
             foreach ($field['fields'] as $item) {
                 themify_builder_styling_field($item);
             }
         }
         echo $field['type'] != 'separator' ? '</div>' : '';
         // themify_builder_input
         echo $field['type'] != 'separator' ? '</div>' : '';
         // themify_builder_field
     }
 }