setAttribute( 'class', 'blockify-icon' ); $svg->setAttribute( 'width', '30' ); $svg->setAttribute( 'height', '30' ); $svg->setAttribute( 'title', 'blockify' ); $paths = $svg->getElementsByTagName( 'path' ); if ( $paths->item( 0 ) ) { $path = dom_element( $paths->item( 0 ) ); $path->setAttribute( 'fill', 'currentColor' ); } $styles = css_string_to_array( $svg->getAttribute( 'style' ) ); $styles = add_block_support_color( $styles, $block['attrs'] ); $svg->setAttribute( 'style', css_array_to_string( $styles ) ); $content = $dom->saveHTML(); } return $content; }