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

Version Description

  • 30.05.2019 =
  • Fixed: Caldera Forms Rendering issue on the frontend when using shortcode and when user is not using Caldera Forms Module.
Download this release

Release Info

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

Code changes from version 1.5.6 to 1.5.7

includes/modules/CalderaForms/CalderaForms.php CHANGED
@@ -943,6 +943,42 @@ class DSM_CalderaForms extends ET_Builder_Module {
943
  et_pb_generate_responsive_css( $file_padding_values, '%%order_class%% .file-prevent-overflow', 'padding', $render_slug );
944
  }
945
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
946
  // Module classnames
947
  $this->add_classname( array(
948
  '' !== $description_background_color ? 'dsm_cf_description_label' : '',
@@ -976,42 +1012,6 @@ class DSM_CalderaForms extends ET_Builder_Module {
976
 
977
  new DSM_CalderaForms;
978
 
979
- if ( class_exists( 'Caldera_Forms' ) ) {
980
- add_filter( 'caldera_forms_render_field_file', function( $field_file, $field_type ){
981
- if ( 'dropdown' == $field_type ) {
982
- return dirname(__FILE__) . '/includes/dropdown/field.php';
983
- }
984
- if ( 'button' == $field_type ) {
985
- return dirname(__FILE__) . '/includes/button/field.php';
986
- }
987
- if ( 'radio' == $field_type ) {
988
- return dirname(__FILE__) . '/includes/radio/field.php';
989
- }
990
- if ( 'checkbox' == $field_type ) {
991
- return dirname(__FILE__) . '/includes/checkbox/field.php';
992
- }
993
- if ( 'html' == $field_type ) {
994
- return dirname(__FILE__) . '/includes/html/field.php';
995
- }
996
- if ( 'advanced_file' == $field_type ) {
997
- return dirname(__FILE__) . '/includes/advanced_file/field.php';
998
- }
999
-
1000
- return $field_file;
1001
- }, 10, 2);
1002
- //disable CF styles
1003
- function dsm_filter_caldera_forms_get_style_includes( $style_includes ) {
1004
- $style_includes = wp_parse_args( array(
1005
- 'grid' => false,
1006
- 'alert' => false,
1007
- 'form' => false
1008
- ) );
1009
-
1010
- return $style_includes;
1011
- };
1012
- add_filter( 'caldera_forms_get_style_includes', 'dsm_filter_caldera_forms_get_style_includes', 10, 1 );
1013
- }
1014
-
1015
  function dsm_get_caldera_forms() {
1016
  $options = array();
1017
  if ( class_exists( 'Caldera_Forms' ) ) {
943
  et_pb_generate_responsive_css( $file_padding_values, '%%order_class%% .file-prevent-overflow', 'padding', $render_slug );
944
  }
945
 
946
+ if ( class_exists( 'Caldera_Forms' ) ) {
947
+ add_filter( 'caldera_forms_render_field_file', function( $field_file, $field_type ){
948
+ if ( 'dropdown' == $field_type ) {
949
+ return dirname(__FILE__) . '/includes/dropdown/field.php';
950
+ }
951
+ if ( 'button' == $field_type ) {
952
+ return dirname(__FILE__) . '/includes/button/field.php';
953
+ }
954
+ if ( 'radio' == $field_type ) {
955
+ return dirname(__FILE__) . '/includes/radio/field.php';
956
+ }
957
+ if ( 'checkbox' == $field_type ) {
958
+ return dirname(__FILE__) . '/includes/checkbox/field.php';
959
+ }
960
+ if ( 'html' == $field_type ) {
961
+ return dirname(__FILE__) . '/includes/html/field.php';
962
+ }
963
+ if ( 'advanced_file' == $field_type ) {
964
+ return dirname(__FILE__) . '/includes/advanced_file/field.php';
965
+ }
966
+
967
+ return $field_file;
968
+ }, 10, 2);
969
+ //disable CF styles
970
+ function dsm_filter_caldera_forms_get_style_includes( $style_includes ) {
971
+ $style_includes = wp_parse_args( array(
972
+ 'grid' => false,
973
+ 'alert' => false,
974
+ 'form' => false
975
+ ) );
976
+
977
+ return $style_includes;
978
+ };
979
+ add_filter( 'caldera_forms_get_style_includes', 'dsm_filter_caldera_forms_get_style_includes', 10, 1 );
980
+ }
981
+
982
  // Module classnames
983
  $this->add_classname( array(
984
  '' !== $description_background_color ? 'dsm_cf_description_label' : '',
1012
 
1013
  new DSM_CalderaForms;
1014
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1015
  function dsm_get_caldera_forms() {
1016
  $options = array();
1017
  if ( class_exists( 'Caldera_Forms' ) ) {
readme.txt CHANGED
@@ -5,7 +5,7 @@ Donate link: https://suprememodules.com/
5
  Requires at least: 4.5
6
  Tested up to: 5.2
7
  Requires PHP: 5.6
8
- Stable tag: 1.5.6
9
  License: GPLv2
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -89,6 +89,9 @@ Divi Builder >= version 2.1
89
  PHP version >= 5.6
90
 
91
  == Changelog ==
 
 
 
92
  = 1.5.6 - 25.05.2019 =
93
  * Improved: Divi Supreme Embed Google Map Module now will automatically change the map language based on your WordPress language.
94
  * Improved: Divi Facebook Feed and Facebook Comments SDK version.
5
  Requires at least: 4.5
6
  Tested up to: 5.2
7
  Requires PHP: 5.6
8
+ Stable tag: 1.5.7
9
  License: GPLv2
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
89
  PHP version >= 5.6
90
 
91
  == Changelog ==
92
+ = 1.5.7 - 30.05.2019 =
93
+ * Fixed: Caldera Forms Rendering issue on the frontend when using shortcode and when user is not using Caldera Forms Module.
94
+
95
  = 1.5.6 - 25.05.2019 =
96
  * Improved: Divi Supreme Embed Google Map Module now will automatically change the map language based on your WordPress language.
97
  * Improved: Divi Facebook Feed and Facebook Comments SDK version.
supreme-modules-for-divi.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Divi Supreme Modules
4
  Plugin URI: https://suprememodules.com
5
  Description: Supreme Modules enhances the experience and features found on Divi and extend with custom creative modules to help you build amazing websites.
6
- Version: 1.5.6
7
  Author: Supreme Modules
8
  Author URI: https://suprememodules.com/about-us/
9
  License: GPL2
@@ -27,7 +27,7 @@ along with Supreme Modules. If not, see https://www.gnu.org/licenses/gpl-2.0.htm
27
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
28
 
29
  if ( ! defined('DSM_VERSION') ) {
30
- define( 'DSM_VERSION', '1.5.6' );
31
  }
32
  if ( ! defined('DSM_SHORTCODE') ) {
33
  define( 'DSM_SHORTCODE', 'divi_shortcode' );
3
  Plugin Name: Divi Supreme Modules
4
  Plugin URI: https://suprememodules.com
5
  Description: Supreme Modules enhances the experience and features found on Divi and extend with custom creative modules to help you build amazing websites.
6
+ Version: 1.5.7
7
  Author: Supreme Modules
8
  Author URI: https://suprememodules.com/about-us/
9
  License: GPL2
27
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
28
 
29
  if ( ! defined('DSM_VERSION') ) {
30
+ define( 'DSM_VERSION', '1.5.7' );
31
  }
32
  if ( ! defined('DSM_SHORTCODE') ) {
33
  define( 'DSM_SHORTCODE', 'divi_shortcode' );