next_tag( array( 'class_name' => 'airo-wp-scroll-slide' ) ) ) { echo $content; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- pre-rendered save.js output. return; } if ( '' !== $iterated_title ) { $processor->set_attribute( 'data-airo-wp-nav-heading', $iterated_title ); } if ( $thumb ) { $existing_style = (string) $processor->get_attribute( 'style' ); // Only inject if the author hasn't already set a background image via // block supports. Case-insensitive check on the property name catches // `background-image` and the `background:` shorthand alike. if ( false === stripos( $existing_style, 'background-image' ) && false === stripos( $existing_style, 'background:' ) ) { $injected = sprintf( "background-image:url('%s');background-size:cover;background-position:center;", esc_url( $thumb ) ); $merged = '' === trim( $existing_style ) ? $injected : rtrim( $existing_style, "; \t\n\r\0\x0B" ) . ';' . $injected; $processor->set_attribute( 'style', $merged ); } } echo $processor->get_updated_html(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Tag_Processor output. } } airowp_render_scroll_slide( $attributes, $content, $block );