Supreme Modules Lite – Divi Theme, Extra Theme and Divi Builder - Version 2.2.1

Version Description

15.05.2020 = * Enhanced: Divi Easy Theme Builder enqueue method making sure JS will only load on Visual Builder or Frontend For better speed enhancement.

Download this release

Release Info

Developer divisupreme
Plugin Icon 128x128 Supreme Modules Lite – Divi Theme, Extra Theme and Divi Builder
Version 2.2.1
Comparing to
See all releases

Code changes from version 2.2.0 to 2.2.1

public/class-dsm-supreme-modules-for-divi-public.php CHANGED
@@ -129,20 +129,18 @@ class Dsm_Supreme_Modules_For_Divi_Public {
129
 
130
  $easy_theme_builder = isset( get_option( 'dsm_theme_builder' )['dsm_theme_builder_header_fixed'] ) && 'off' !== get_option( 'dsm_theme_builder' )['dsm_theme_builder_header_fixed'] ? true : false;
131
  if ( $easy_theme_builder === true ) {
132
- //wp_enqueue_script( 'dsm-easy-theme-builder', plugin_dir_url( __FILE__ ) . 'js/dsm-easy-tb.js', array( 'jquery' ), DSM_VERSION, true );
133
  $dsm_tb_header_start_threshold = isset( get_option( 'dsm_theme_builder' )['dsm_theme_builder_header_start_threshold'] ) && '' !== get_option( 'dsm_theme_builder' )['dsm_theme_builder_header_start_threshold'] ? get_option( 'dsm_theme_builder' )['dsm_theme_builder_header_start_threshold'] : '150';
134
 
135
  $dsm_tb_header = array(
136
  'threshold' => $dsm_tb_header_start_threshold,
137
  );
138
 
139
- //wp_localize_script( 'dsm-easy-theme-builder', 'dsm_easy_tb_js', $dsm_tb_header );
140
-
141
- if ( function_exists( 'et_core_is_fb_enabled' ) ) {
142
- if ( et_core_is_fb_enabled() ) {
143
  wp_enqueue_script( 'dsm-easy-theme-builder-vb', plugin_dir_url( __FILE__ ) . 'js/dsm-easy-tb-vb.js', array( 'jquery' ), DSM_VERSION, true );
144
  wp_localize_script( 'dsm-easy-theme-builder-vb', 'dsm_easy_tb_js', $dsm_tb_header );
145
- } else {
 
146
  wp_enqueue_script( 'dsm-easy-theme-builder', plugin_dir_url( __FILE__ ) . 'js/dsm-easy-tb.js', array( 'jquery' ), DSM_VERSION, true );
147
  wp_localize_script( 'dsm-easy-theme-builder', 'dsm_easy_tb_js', $dsm_tb_header );
148
  }
129
 
130
  $easy_theme_builder = isset( get_option( 'dsm_theme_builder' )['dsm_theme_builder_header_fixed'] ) && 'off' !== get_option( 'dsm_theme_builder' )['dsm_theme_builder_header_fixed'] ? true : false;
131
  if ( $easy_theme_builder === true ) {
 
132
  $dsm_tb_header_start_threshold = isset( get_option( 'dsm_theme_builder' )['dsm_theme_builder_header_start_threshold'] ) && '' !== get_option( 'dsm_theme_builder' )['dsm_theme_builder_header_start_threshold'] ? get_option( 'dsm_theme_builder' )['dsm_theme_builder_header_start_threshold'] : '150';
133
 
134
  $dsm_tb_header = array(
135
  'threshold' => $dsm_tb_header_start_threshold,
136
  );
137
 
138
+ if ( function_exists( 'et_core_is_fb_enabled' ) && function_exists( 'et_builder_bfb_enabled' ) ) {
139
+ if ( et_core_is_fb_enabled() && ! et_builder_bfb_enabled() ) {
 
 
140
  wp_enqueue_script( 'dsm-easy-theme-builder-vb', plugin_dir_url( __FILE__ ) . 'js/dsm-easy-tb-vb.js', array( 'jquery' ), DSM_VERSION, true );
141
  wp_localize_script( 'dsm-easy-theme-builder-vb', 'dsm_easy_tb_js', $dsm_tb_header );
142
+ }
143
+ if ( ! et_core_is_fb_enabled() && ! et_builder_bfb_enabled() ) {
144
  wp_enqueue_script( 'dsm-easy-theme-builder', plugin_dir_url( __FILE__ ) . 'js/dsm-easy-tb.js', array( 'jquery' ), DSM_VERSION, true );
145
  wp_localize_script( 'dsm-easy-theme-builder', 'dsm_easy_tb_js', $dsm_tb_header );
146
  }
readme.txt CHANGED
@@ -5,7 +5,7 @@ Donate link: https://suprememodules.com/
5
  Requires at least: 4.5
6
  Tested up to: 5.4.1
7
  Requires PHP: 5.6
8
- Stable tag: 2.2.0
9
  License: GPLv2
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -111,6 +111,9 @@ This is a common question that we get asked here every now and then which is why
111
 
112
 
113
  == Changelog ==
 
 
 
114
  = 2.2.0 – 14.05.2020 =
115
  * Added: Acceptance Checkbox Styling into Validation Error in Divi Contact Form 7 Module.
116
  * Enhanced: Divi Contact Form 7 Module button margin and padding value.
5
  Requires at least: 4.5
6
  Tested up to: 5.4.1
7
  Requires PHP: 5.6
8
+ Stable tag: 2.2.1
9
  License: GPLv2
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
111
 
112
 
113
  == Changelog ==
114
+ = 2.2.1 – 15.05.2020 =
115
+ * Enhanced: Divi Easy Theme Builder enqueue method making sure JS will only load on Visual Builder or Frontend – For better speed enhancement.
116
+
117
  = 2.2.0 – 14.05.2020 =
118
  * Added: Acceptance Checkbox Styling into Validation Error in Divi Contact Form 7 Module.
119
  * Enhanced: Divi Contact Form 7 Module button margin and padding value.
supreme-modules-for-divi.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Supreme Modules Lite - Divi Theme, Extra Theme and Divi Builder
4
  * Plugin URI: https://suprememodules.com
5
  * Description: Divi Supreme enhances the experience and features found on Divi and extend with custom creative modules to help you build amazing websites.
6
- * Version: 2.2.0
7
  * Author: Supreme Modules
8
  * Author URI: https://suprememodules.com/about-us/
9
  * License: GPL2
@@ -34,7 +34,7 @@ if ( ! defined( 'ABSPATH' ) ) {
34
  }
35
 
36
  if ( ! defined( 'DSM_VERSION' ) ) {
37
- define( 'DSM_VERSION', '2.2.0' );
38
  }
39
  if ( ! defined( 'DSM_SHORTCODE' ) ) {
40
  define( 'DSM_SHORTCODE', 'divi_shortcode' );
3
  * Plugin Name: Supreme Modules Lite - Divi Theme, Extra Theme and Divi Builder
4
  * Plugin URI: https://suprememodules.com
5
  * Description: Divi Supreme enhances the experience and features found on Divi and extend with custom creative modules to help you build amazing websites.
6
+ * Version: 2.2.1
7
  * Author: Supreme Modules
8
  * Author URI: https://suprememodules.com/about-us/
9
  * License: GPL2
34
  }
35
 
36
  if ( ! defined( 'DSM_VERSION' ) ) {
37
+ define( 'DSM_VERSION', '2.2.1' );
38
  }
39
  if ( ! defined( 'DSM_SHORTCODE' ) ) {
40
  define( 'DSM_SHORTCODE', 'divi_shortcode' );