wordpress/wp-content/themes/basic/themify/themify-builder/classes/class-builder-data-manager.php
/**
	 * Update static content string in the string.
	 * 
	 * @param string $replace_string 
	 * @param string $content 
	 * @param bool $first_instance True: replace only the first instance of Builder placeholder and remove the rest; False: replace all instances with $replace_string
	 * @return string
	 */
Update static content string in the string.

@param string $replace_string
@param string $content
@param bool $first_instance True: replace only the first instance of Builder placeholder and remove the rest; False: replace all instances with $replace_string
@return string
Update static content string in the string . @param string $replace_string @param string $content @param bool $first_instance True : replace only the first instance of Builder placeholder and remove the rest ; False : replace all instances with $replace_string @return string
public static function update_static_content_string( $replace_string, $content) {
		if ( self::has_static_content( $content ) ) {
			$arr = explode('<!--themify_builder_static-->',$content);
			$html='';
			foreach($arr as $v){
				if($v!=='' && strpos($v,'<!--/themify_builder_static-->')!==false){
					$tmp = explode('<!--/themify_builder_static-->',$v);
					$html.=$replace_string.$tmp[1];
					if(isset($tmp[2])){
						$html.=$tmp[2];
					}
				}
				else{
					$html.=$v;
				}
			}
			unset($arr,$content);
			return self::remove_empty_p($html);
		}
		return $content;
	}
public static function update_static_content_string ( $ replace_string , $ content ) { if ( self :: has_static_content ( $ content ) ) { $ arr = explode ( '<!--themify_builder_static-->' , $ content ) ; $ html = '' ; foreach ( $ arr as $ v ) { if ( $ v !== '' && strpos ( $ v , '<!--/themify_builder_static-->' ) !== false ) { $ tmp = explode ( '<!--/themify_builder_static-->' , $ v ) ; $ html .= $ replace_string . $ tmp [ 1 ] ; if ( isset ( $ tmp [ 2 ] ) ) { $ html .= $ tmp [ 2 ] ; } } else { $ html .= $ v ; } } unset ( $ arr , $ content ) ; return self :: remove_empty_p ( $ html ) ; } return $ content ; }
Update static content string in the string.
Update static content string in the string .