'airo-wp-divider airo-wp-divider--' . sanitize_html_class( $divider_style ), ) ); $container_style = sprintf( 'width:%s%%;', $width ); $line_style = sprintf( 'height:%dpx;', $thickness ); if ( 'icon' === $divider_style ) { $defaults = class_exists( '\\airo-wp\\Icon_Injector' ) ? \airo-wp\Icon_Injector::get_icon_defaults() : array(); $icon_name = ! empty( $attributes['iconName'] ) ? (string) $attributes['iconName'] : 'star'; $icon_style = ! empty( $attributes['iconStyle'] ) ? (string) $attributes['iconStyle'] : ( isset( $defaults['style'] ) ? (string) $defaults['style'] : 'filled' ); $stroke_width = isset( $attributes['strokeWidth'] ) ? (float) $attributes['strokeWidth'] : 1.5; $svg = airowp_render_icon_svg( $icon_name, $icon_style, $stroke_width ); $inner = sprintf( '
%2$s
', esc_attr( $line_style ), $svg ); } else { $inner = sprintf( '
', esc_attr( $line_style ) ); } return sprintf( '
%3$s
', $wrapper_attributes, esc_attr( $container_style ), $inner ); } } // Output directly (WordPress captures echo'd output from render callbacks). echo airowp_render_divider( $attributes, $content, $block ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped