Kadence Blocks – Gutenberg Page Builder Toolkit - Version 2.4.21

Version Description

Release Date: November 11th, 2022 * Fix: Issue with bottom separator color in row layout. * Fix: Issue with possible js error in video background.

Download this release

Release Info

Developer britner
Plugin Icon 128x128 Kadence Blocks – Gutenberg Page Builder Toolkit
Version 2.4.21
Comparing to
See all releases

Code changes from version 2.4.20 to 2.4.21

dist/class-kadence-blocks-frontend.php CHANGED
@@ -475,7 +475,11 @@ class Kadence_Blocks_Frontend {
475
  } else {
476
  $size = 767;
477
  }
478
- $content = str_replace( 'kt-layout-id' . $attributes['uniqueID'] . '"><div class="kb-blocks-bg-video-container"><video class="kb-blocks-bg-video" playsinline autoplay', 'kt-layout-id' . $attributes['uniqueID'] . '"><div class="kb-blocks-bg-video-container"><video id="bg-row-video-' . $attributes['uniqueID'] . '" class="kb-blocks-bg-video" playsinline preload="none"', $content );
 
 
 
 
479
  $content = $content . '<script>if( window.innerWidth > ' . $size . ' ){document.getElementById("bg-row-video-' . $attributes['uniqueID'] . '").removeAttribute("preload");document.getElementById("bg-row-video-' . $attributes['uniqueID'] . '").setAttribute("autoplay","");}</script>';
480
  }
481
  }
@@ -8562,7 +8566,7 @@ class Kadence_Blocks_Frontend {
8562
  $css->add_property( 'width', $attr['topSepWidth'] . '%' );
8563
  }
8564
  if ( ! empty( $attr['topSepColor'] ) ) {
8565
- $css->set_selector( '#kt-layout-id' . $unique_id . ' .kt-row-layout-bottom-sep svg' );
8566
  $css->add_property( 'fill', $css->render_color( $attr['topSepColor'] ) . '!important' );
8567
  }
8568
  }
475
  } else {
476
  $size = 767;
477
  }
478
+ if ( ! empty( $attributes['bgImg'] ) ) {
479
+ $content = str_replace( 'kt-layout-id' . $attributes['uniqueID'] . '"><div class="kb-blocks-bg-video-container"><video class="kb-blocks-bg-video" poster="' . $attributes['bgImg'] . '" playsinline autoplay', 'kt-layout-id' . $attributes['uniqueID'] . '"><div class="kb-blocks-bg-video-container"><video id="bg-row-video-' . $attributes['uniqueID'] . '" class="kb-blocks-bg-video" poster=" ' . $attributes['bgImg'] . '" playsinline preload="none"', $content );
480
+ } else {
481
+ $content = str_replace( 'kt-layout-id' . $attributes['uniqueID'] . '"><div class="kb-blocks-bg-video-container"><video class="kb-blocks-bg-video" playsinline autoplay', 'kt-layout-id' . $attributes['uniqueID'] . '"><div class="kb-blocks-bg-video-container"><video id="bg-row-video-' . $attributes['uniqueID'] . '" class="kb-blocks-bg-video" playsinline preload="none"', $content );
482
+ }
483
  $content = $content . '<script>if( window.innerWidth > ' . $size . ' ){document.getElementById("bg-row-video-' . $attributes['uniqueID'] . '").removeAttribute("preload");document.getElementById("bg-row-video-' . $attributes['uniqueID'] . '").setAttribute("autoplay","");}</script>';
484
  }
485
  }
8566
  $css->add_property( 'width', $attr['topSepWidth'] . '%' );
8567
  }
8568
  if ( ! empty( $attr['topSepColor'] ) ) {
8569
+ $css->set_selector( '#kt-layout-id' . $unique_id . ' .kt-row-layout-top-sep svg' );
8570
  $css->add_property( 'fill', $css->render_color( $attr['topSepColor'] ) . '!important' );
8571
  }
8572
  }
kadence-blocks.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: Advanced Page Building Blocks for Gutenberg. Create custom column layouts, backgrounds, dual buttons, icons etc.
6
  * Author: Kadence WP
7
  * Author URI: https://www.kadencewp.com
8
- * Version: 2.4.20
9
  * Text Domain: kadence-blocks
10
  * License: GPL2+
11
  * License URI: https://www.gnu.org/licenses/gpl-2.0.txt
@@ -20,7 +20,7 @@ if ( ! defined( 'ABSPATH' ) ) {
20
 
21
  define( 'KADENCE_BLOCKS_PATH', realpath( plugin_dir_path( __FILE__ ) ) . DIRECTORY_SEPARATOR );
22
  define( 'KADENCE_BLOCKS_URL', plugin_dir_url( __FILE__ ) );
23
- define( 'KADENCE_BLOCKS_VERSION', '2.4.20' );
24
  /**
25
  * Add a check before redirecting
26
  */
5
  * Description: Advanced Page Building Blocks for Gutenberg. Create custom column layouts, backgrounds, dual buttons, icons etc.
6
  * Author: Kadence WP
7
  * Author URI: https://www.kadencewp.com
8
+ * Version: 2.4.21
9
  * Text Domain: kadence-blocks
10
  * License: GPL2+
11
  * License URI: https://www.gnu.org/licenses/gpl-2.0.txt
20
 
21
  define( 'KADENCE_BLOCKS_PATH', realpath( plugin_dir_path( __FILE__ ) ) . DIRECTORY_SEPARATOR );
22
  define( 'KADENCE_BLOCKS_URL', plugin_dir_url( __FILE__ ) );
23
+ define( 'KADENCE_BLOCKS_VERSION', '2.4.21' );
24
  /**
25
  * Add a check before redirecting
26
  */
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: gutenberg, blocks, page builder, google fonts, dual buttons, svg icons, ed
4
  Donate link: https://www.kadencewp.com/about-us/
5
  Requires at least: 5.9
6
  Tested up to: 6.1
7
- Stable tag: 2.4.20
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -76,6 +76,11 @@ Install the plugin into the `/wp-content/plugins/` folder, and activate it.
76
 
77
  == Changelog ==
78
 
 
 
 
 
 
79
  = 2.4.20 =
80
  Release Date: November 9th, 2022
81
  * Fix: Issue with Reusable Blocks and endlessly looping in editor.
4
  Donate link: https://www.kadencewp.com/about-us/
5
  Requires at least: 5.9
6
  Tested up to: 6.1
7
+ Stable tag: 2.4.21
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
76
 
77
  == Changelog ==
78
 
79
+ = 2.4.21 =
80
+ Release Date: November 11th, 2022
81
+ * Fix: Issue with bottom separator color in row layout.
82
+ * Fix: Issue with possible js error in video background.
83
+
84
  = 2.4.20 =
85
  Release Date: November 9th, 2022
86
  * Fix: Issue with Reusable Blocks and endlessly looping in editor.