getAttribute( 'style' ) ); if ( isset( $box_shadow['inset'] ) && $box_shadow['inset'] ) { $styles['--wp--custom--box-shadow--inset'] = 'inset'; } if ( $box_shadow['x'] ?? null ) { $styles['--wp--custom--box-shadow--x'] = $box_shadow['x'] . 'px'; } if ( $box_shadow['y'] ?? null ) { $styles['--wp--custom--box-shadow--y'] = $box_shadow['y'] . 'px'; } if ( $box_shadow['blur'] ?? null ) { $styles['--wp--custom--box-shadow--blur'] = $box_shadow['blur'] . 'px'; } if ( $box_shadow['spread'] ?? null ) { $styles['--wp--custom--box-shadow--spread'] = $box_shadow['spread'] . 'px'; } if ( $box_shadow['color'] ?? null ) { $styles['--wp--custom--box-shadow--color'] = $box_shadow['color']; } if ( $styles ) { $first->setAttribute( 'style', css_array_to_string( $styles ) ); } if ( $box_shadow['useDefault'] ?? $styles ) { $first->setAttribute( 'class', $first->getAttribute( 'class' ) . ' has-box-shadow' ); } return $dom->saveHTML(); }