'rooster/responsive-image', 'attrs' => [ 'desktopId' => $image_id, 'mobileId' => (int) ( $attributes['mobileId'] ?? 0 ) ?: $image_id, 'sizes' => '(max-width: 782px) 100vw, 50vw', ], ] ) )->render(); } $copy = ''; if ( '' !== $heading ) { $copy .= '

' . esc_html( $heading ) . '

'; } if ( '' !== $body ) { $copy .= '

' . esc_html( $body ) . '

'; } if ( '' !== $cta_text && $cta_href ) { $copy .= '' . esc_html( $cta_text ) . ''; } if ( '' === $image && '' === $copy ) { return; } AIEO_Engine_Blocks::out( sprintf( '
%s
%s
', get_block_wrapper_attributes( [ 'class' => 'rooster-promo-tile' ] ), $image ? '
' . $image . '
' : '', $copy ) );