diff --git a/includes/blocks/class-kadence-blocks-row-layout-block.php b/includes/blocks/class-kadence-blocks-row-layout-block.php index 7ac61a86e..a9893eeec 100644 --- a/includes/blocks/class-kadence-blocks-row-layout-block.php +++ b/includes/blocks/class-kadence-blocks-row-layout-block.php @@ -1643,6 +1643,17 @@ public function build_html( $attributes, $unique_id, $content, $block_instance ) if ( ! empty( $attributes['bottomSep'] ) && 'none' !== $attributes['bottomSep'] ) { $extra_content .= $this->get_divider_render( $attributes['bottomSep'], 'bottom' ); } + if ( ! empty( $attributes['bgImg'] ) && !empty($attributes['bgImgAttachment']) && $attributes['bgImgAttachment'] == 'parallax' ) { + if ( ! empty( $attributes['bgImgPosition'] ) ) { + $wrapper_args['data-img-position'] = $attributes['bgImgPosition']; + } + if ( ! empty( $attributes['bgImgSize'] ) ) { + $wrapper_args['data-img-size'] = $attributes['bgImgSize']; + if ( $attributes['bgImgSize'] !== 'cover' && ! empty( $attributes['bgImgRepeat'] ) ) { + $wrapper_args['data-img-repeat'] = $attributes['bgImgRepeat']; + } + } + } $wrapper_attributes = get_block_wrapper_attributes( $wrapper_args ); $inner_wrapper_attributes = implode( ' ', $inner_wrap_attributes ); $content = sprintf( '<%1$s %2$s>%3$s