wordpress/wp-content/themes/basic/themify/themify-metabox/includes/themify-metabox-utils.php
/**
 * Takes an options array and returns a one-dimensional list of fields
 *
 * @return array
 * @since 1.0.2
 */
Takes an options array and returns a one-dimensional list of fields
@return array
@since 1.0.2
Takes an options array and returns a one - dimensional list of fields @return array @since 1 . 0 . 2
function themify_metabox_make_flat_fields_array( $arr ) {
	$list = array();
	foreach ( $arr as $field ) {
	    if ( ! isset( $field['type'] ) ) {
			continue;
		}
		if ( $field['type'] === 'multi' ) {
			foreach ( $field['meta']['fields'] as $_field ) {
				$list[] = $_field;
			}
		} elseif ( $field['type'] === 'toggle_group' ) {
			foreach ( $field['meta'] as $_field ) {
				$list[] = $_field;
			}
		} else {
			$list[] = $field;
		}
	}
	return $list;
}
function themify_metabox_make_flat_fields_array ( $ arr ) { $ list = array ( ) ; foreach ( $ arr as $ field ) { if ( ! isset ( $ field [ 'type' ] ) ) { continue ; } if ( $ field [ 'type' ] === 'multi' ) { foreach ( $ field [ 'meta' ] [ 'fields' ] as $ _field ) { $ list [ ] = $ _field ; } } elseif ( $ field [ 'type' ] === 'toggle_group' ) { foreach ( $ field [ 'meta' ] as $ _field ) { $ list [ ] = $ _field ; } } else { $ list [ ] = $ field ; } } return $ list ; }
Takes an options array and returns a one-dimensional list of fields
 @return array
 @since 1.0.2
Takes an options array and returns a one - dimensional list of fields @return array @since 1 . 0 . 2