Skip to content

Commit

Permalink
Merge pull request #506 from stellarwp/bugfix/KAD-2894
Browse files Browse the repository at this point in the history
Bugfix/kad 2894
  • Loading branch information
mark-c-woodard authored Jul 2, 2024
2 parents 82002eb + 747710d commit d3c9dee
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions includes/blocks/class-kadence-blocks-row-layout-block.php
Original file line number Diff line number Diff line change
Expand Up @@ -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<div %4$s>%5$s</div></%1$s>', $html_tag, $wrapper_attributes, $extra_content, $inner_wrapper_attributes, $content );
Expand Down

0 comments on commit d3c9dee

Please sign in to comment.