wordpress/wp-content/themes/basic/themify/themify-builder/classes/class-themify-builder.php
/**
	 * Serach in all modules fields and return text inputs
	 * @param $options array of module fields
	 * @return array
	 */
Serach in all modules fields and return text inputs
@param $options array of module fields
@return array
Serach in all modules fields and return text inputs @param $options array of module fields @return array
function find_text_inputs_in_module($options) {
	    $inputs = array();
	    $allowed_types = array('text', 'textarea', 'wp_editor', 'custom_css', 'image','url');
	    foreach ($options as $option) {
            if('builder' === $option && !empty($options['options'])){
                $inputs = array_merge($inputs, $this->find_text_inputs_in_module($options['options']));
            }elseif (isset($option['options'])) {
		    $inputs = array_merge($inputs, $this->find_text_inputs_in_module($option['options']));
		} elseif (isset($option['tabs'])) {
		    $inputs = array_merge($inputs, $this->find_text_inputs_in_module($option['tabs']));
		} elseif (isset($option['fields'])) {
		    $inputs = array_merge($inputs, $this->find_text_inputs_in_module($option['fields']));
		} elseif (isset($option['type']) && in_array($option['type'], $allowed_types)) {
		    $inputs[] = $option['id'];
		}
	    }
	    return $inputs;
	}
function find_text_inputs_in_module ( $ options ) { $ inputs = array ( ) ; $ allowed_types = array ( 'text' , 'textarea' , 'wp_editor' , 'custom_css' , 'image' , 'url' ) ; foreach ( $ options as $ option ) { if ( 'builder' === $ option && ! empty ( $ options [ 'options' ] ) ) { $ inputs = array_merge ( $ inputs , $ this -> find_text_inputs_in_module ( $ options [ 'options' ] ) ) ; } elseif ( isset ( $ option [ 'options' ] ) ) { $ inputs = array_merge ( $ inputs , $ this -> find_text_inputs_in_module ( $ option [ 'options' ] ) ) ; } elseif ( isset ( $ option [ 'tabs' ] ) ) { $ inputs = array_merge ( $ inputs , $ this -> find_text_inputs_in_module ( $ option [ 'tabs' ] ) ) ; } elseif ( isset ( $ option [ 'fields' ] ) ) { $ inputs = array_merge ( $ inputs , $ this -> find_text_inputs_in_module ( $ option [ 'fields' ] ) ) ; } elseif ( isset ( $ option [ 'type' ] ) && in_array ( $ option [ 'type' ] , $ allowed_types ) ) { $ inputs [ ] = $ option [ 'id' ] ; } } return $ inputs ; }
Serach in all modules fields and return text inputs
 @param $options array of module fields
 @return array
Serach in all modules fields and return text inputs @param $options array of module fields @return array