' . '' . esc_html( (string) $parts[0] ) . '' . ( '' !== (string) ( $parts[1] ?? '' ) ? '' . AIEO_Engine_Blocks::inline( (string) $parts[1] ) . '' : '' ) . ''; } $eyebrow = trim( (string) ( $attributes['eyebrow'] ?? '' ) ); $heading = trim( (string) ( $attributes['heading'] ?? '' ) ); $text = trim( (string) ( $attributes['text'] ?? '' ) ); if ( '' === $layers && '' === $heading ) { return; } $level = min( 4, max( 2, (int) ( $attributes['level'] ?? 2 ) ) ); $body = ( '' !== $eyebrow ? '

' . esc_html( $eyebrow ) . '

' : '' ) . ( '' !== $heading ? sprintf( '%2$s', $level, esc_html( $heading ) ) : '' ) . ( '' !== $text ? '

' . AIEO_Engine_Blocks::inline( $text ) . '

' : '' ) . ( '' !== $layers ? '
' . $layers . '
' : '' ); $wrapper = AIEO_Engine_Blocks::wrapper( $library, [ 'class' => 'rooster-layer-stack', 'data-rooster-ui' => 'rooster-one/media' ] ); AIEO_Engine_Blocks::out( sprintf( '
%2$s
', $wrapper, $body ) );