wordpress/wp-content/themes/basic/themify/themify-builder/classes/class-themify-builder.php
/**
	 * Define search area for find and replace tool and return required options to search
	 * @param $modules array of modules names
	 * @return array
	 */
Define search area for find and replace tool and return required options to search
@param $modules array of modules names
@return array
Define search area for find and replace tool and return required options to search @param $modules array of modules names @return array
public function find_and_replace_search_area($modules) {
	    $modules = array_unique($modules);
	    $module_scopes = $themify_modules = array();
	    $themify_modules = Themify_Builder_Model::$modules;
	    foreach ($modules as $key => $module) {
		if (isset($themify_modules[$module])) {
		    $module = $themify_modules[$module];
		    $options = $module->get_options();
		    $module_scopes[$module->slug] = $this->find_text_inputs_in_module($options);
		} else {
		    unset($modules[$key]);
		}
	    }
	    $options = array('background_image', 'custom_css_id',);
	    foreach ($modules as $module) {
		$options[] = 'mod_title_' . $module;
		$options = array_merge($options, $module_scopes[$module]);
	    }
	    $options = array_unique($options);
	    return $options;
	}
public function find_and_replace_search_area ( $ modules ) { $ modules = array_unique ( $ modules ) ; $ module_scopes = $ themify_modules = array ( ) ; $ themify_modules = Themify_Builder_Model :: $ modules ; foreach ( $ modules as $ key => $ module ) { if ( isset ( $ themify_modules [ $ module ] ) ) { $ module = $ themify_modules [ $ module ] ; $ options = $ module -> get_options ( ) ; $ module_scopes [ $ module -> slug ] = $ this -> find_text_inputs_in_module ( $ options ) ; } else { unset ( $ modules [ $ key ] ) ; } } $ options = array ( 'background_image' , 'custom_css_id' , ) ; foreach ( $ modules as $ module ) { $ options [ ] = 'mod_title_' . $ module ; $ options = array_merge ( $ options , $ module_scopes [ $ module ] ) ; } $ options = array_unique ( $ options ) ; return $ options ; }
Define search area for find and replace tool and return required options to search
 @param $modules array of modules names
 @return array
Define search area for find and replace tool and return required options to search @param $modules array of modules names @return array