Version Description
08.05.2020 = * Fixed: Top Padding in Visual Builder when using Divi Easy Theme Builder Header. * Enhanced: Change CSS for Fixed Header to sticky in Visual Builder when using Divi Easy Theme Builder Header to prevent from using javascript. * Enhanced: Divi Easy Theme Builder enqueue and dequeue script method in when accessing Divi Visual Builder.
Download this release
Release Info
Developer | divisupreme |
Plugin | Supreme Modules Lite – Divi Theme, Extra Theme and Divi Builder |
Version | 2.1.7 |
Comparing to | |
See all releases |
Code changes from version 2.1.6 to 2.1.7
includes/class-dsm-supreme-modules-for-divi.php
CHANGED
@@ -907,21 +907,11 @@ class Dsm_Supreme_Modules_For_Divi {
|
|
907 |
if ( $this->settings_api->get_option( 'dsm_theme_builder_header_shrink', 'dsm_theme_builder' ) === 'on' ) {
|
908 |
$classes[] = 'dsm_fixed_header_shrink';
|
909 |
}
|
910 |
-
|
911 |
-
|
912 |
-
|
913 |
-
foreach ( $disabled_on_array as $value ) {
|
914 |
-
if ( 'phone' === $value ) {
|
915 |
-
$classes[] = 'dsm_fixed_header_phone_disable';
|
916 |
-
}
|
917 |
-
if ( 'tablet' === $value ) {
|
918 |
-
$classes[] = 'dsm_fixed_header_tablet_disable';
|
919 |
-
}
|
920 |
-
if ( 'desktop' === $value ) {
|
921 |
-
$classes[] = 'dsm_fixed_header_desktop_disable';
|
922 |
-
}
|
923 |
}
|
924 |
-
}
|
925 |
return $classes;
|
926 |
}
|
927 |
|
907 |
if ( $this->settings_api->get_option( 'dsm_theme_builder_header_shrink', 'dsm_theme_builder' ) === 'on' ) {
|
908 |
$classes[] = 'dsm_fixed_header_shrink';
|
909 |
}
|
910 |
+
if ( function_exists( 'et_core_is_fb_enabled' ) ) {
|
911 |
+
if ( et_core_is_fb_enabled() || et_builder_bfb_enabled() ) {
|
912 |
+
$classes[] = 'dsm_fixed_header_vb';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
913 |
}
|
914 |
+
}
|
915 |
return $classes;
|
916 |
}
|
917 |
|
public/class-dsm-supreme-modules-for-divi-public.php
CHANGED
@@ -129,14 +129,24 @@ 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 |
|
142 |
wp_register_script( 'dsm-typed', plugin_dir_url( __FILE__ ) . 'js/typed.min.js', array(), DSM_VERSION, true );
|
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 |
+
}
|
149 |
+
}
|
150 |
}
|
151 |
|
152 |
wp_register_script( 'dsm-typed', plugin_dir_url( __FILE__ ) . 'js/typed.min.js', array(), DSM_VERSION, true );
|
public/js/dsm-easy-tb-vb.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
jQuery(function(e){document.documentElement.className="js";navigator.userAgent.match(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/),e("#wpadminbar").height();var _=dsm_easy_tb_js.threshold,d=e(".dsm_fixed_header_shrink .et_pb_menu__logo img")[0].src;shrink_logo=dsm_easy_tb_js.shrink_logo,e(".dsm_fixed_header").length&&(e(".dsm_fixed_header_auto").length&&e("body").hasClass("admin-bar"),e(".dsm_fixed_header_shrink").length&&e(window).scroll(function(){e(document).scrollTop()>_?(e(".dsm_fixed_header_shrink").addClass("dsm_fixed_header_shrink_active"),e(".dsm_fixed_header_shrink").hasClass("dsm_fixed_header_shrink_logo")&&e(".dsm_fixed_header_shrink_logo .et_pb_menu__logo img").attr("src",shrink_logo)):(e(".dsm_fixed_header_shrink").removeClass("dsm_fixed_header_shrink_active"),e(".dsm_fixed_header_shrink").hasClass("dsm_fixed_header_shrink_logo")&&e(".dsm_fixed_header_shrink_logo .et_pb_menu__logo img").attr("src",d))}),e(window).resize(function(){!0===window.matchMedia("(max-width: 768px)").matches&&e("body").hasClass("admin-bar")}))});
|
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.1.
|
9 |
License: GPLv2
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -111,6 +111,11 @@ This is a common question that we get asked here every now and then which is why
|
|
111 |
|
112 |
|
113 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
114 |
= 2.1.6 – 06.05.2020 =
|
115 |
* Enhanced: Divi Easy Theme Builder Header auto calculation white gap on the top.
|
116 |
|
5 |
Requires at least: 4.5
|
6 |
Tested up to: 5.4.1
|
7 |
Requires PHP: 5.6
|
8 |
+
Stable tag: 2.1.7
|
9 |
License: GPLv2
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
111 |
|
112 |
|
113 |
== Changelog ==
|
114 |
+
= 2.1.7 – 08.05.2020 =
|
115 |
+
* Fixed: Top Padding in Visual Builder when using Divi Easy Theme Builder Header.
|
116 |
+
* Enhanced: Change CSS for Fixed Header to sticky in Visual Builder when using Divi Easy Theme Builder Header to prevent from using javascript.
|
117 |
+
* Enhanced: Divi Easy Theme Builder enqueue and dequeue script method in when accessing Divi Visual Builder.
|
118 |
+
|
119 |
= 2.1.6 – 06.05.2020 =
|
120 |
* Enhanced: Divi Easy Theme Builder Header auto calculation white gap on the top.
|
121 |
|
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.1.
|
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.1.
|
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.1.7
|
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.1.7' );
|
38 |
}
|
39 |
if ( ! defined( 'DSM_SHORTCODE' ) ) {
|
40 |
define( 'DSM_SHORTCODE', 'divi_shortcode' );
|