Version Description
- 13.06.2019 =
- Fixed: Caldera Forms Module not rendering the correct fields on Visual Builder.
Download this release
Release Info
Developer | divisupreme |
Plugin | Supreme Modules Lite – Divi Theme, Extra Theme and Divi Builder |
Version | 1.6.1 |
Comparing to | |
See all releases |
Code changes from version 1.6 to 1.6.1
includes/class-dsm-supreme-modules-for-divi.php
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
<?php
|
2 |
if ( ! function_exists( 'is_plugin_active' ) ) {
|
3 |
require_once( ABSPATH . '/wp-admin/includes/plugin.php' );
|
4 |
}
|
@@ -984,7 +984,34 @@ class Dsm_Supreme_Modules_For_Divi {
|
|
984 |
public function dsm_load_caldera_forms() {
|
985 |
if ( ! wp_verify_nonce( $_POST['et_admin_load_nonce'], 'et_admin_load_nonce' ) ) {
|
986 |
wp_die();
|
987 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
988 |
echo do_shortcode( '[caldera_form id="' . $_POST['cf_library'] . '"]' );
|
989 |
wp_die();
|
990 |
}
|
1 |
+
www<?php
|
2 |
if ( ! function_exists( 'is_plugin_active' ) ) {
|
3 |
require_once( ABSPATH . '/wp-admin/includes/plugin.php' );
|
4 |
}
|
984 |
public function dsm_load_caldera_forms() {
|
985 |
if ( ! wp_verify_nonce( $_POST['et_admin_load_nonce'], 'et_admin_load_nonce' ) ) {
|
986 |
wp_die();
|
987 |
+
}
|
988 |
+
if ( class_exists( 'Caldera_Forms' ) ) {
|
989 |
+
add_filter( 'caldera_forms_render_field_file', function( $field_file, $field_type ){
|
990 |
+
if ( 'dropdown' == $field_type ) {
|
991 |
+
return dirname(__FILE__) . '/modules/CalderaForms/includes/dropdown/field.php';
|
992 |
+
}
|
993 |
+
if ( 'button' == $field_type ) {
|
994 |
+
return dirname(__FILE__) . '/modules/CalderaForms/includes/button/field.php';
|
995 |
+
}
|
996 |
+
if ( 'radio' == $field_type ) {
|
997 |
+
return dirname(__FILE__) . '/modules/CalderaForms/includes/radio/field.php';
|
998 |
+
}
|
999 |
+
if ( 'checkbox' == $field_type ) {
|
1000 |
+
return dirname(__FILE__) . '/modules/CalderaForms/includes/checkbox/field.php';
|
1001 |
+
}
|
1002 |
+
if ( 'html' == $field_type ) {
|
1003 |
+
return dirname(__FILE__) . '/modules/CalderaForms/includes/html/field.php';
|
1004 |
+
}
|
1005 |
+
if ( 'advanced_file' == $field_type ) {
|
1006 |
+
return dirname(__FILE__) . '/modules/CalderaForms/includes/advanced_file/field.php';
|
1007 |
+
}
|
1008 |
+
return $field_file;
|
1009 |
+
var_dump($field_file);
|
1010 |
+
}, 10, 2);
|
1011 |
+
//disable CF styles
|
1012 |
+
|
1013 |
+
add_filter( 'caldera_forms_get_style_includes', 'dsm_filter_caldera_forms_get_style_includes', 10, 1 );
|
1014 |
+
}
|
1015 |
echo do_shortcode( '[caldera_form id="' . $_POST['cf_library'] . '"]' );
|
1016 |
wp_die();
|
1017 |
}
|
readme.txt
CHANGED
@@ -3,9 +3,9 @@ Contributors: divisupreme, kenng87
|
|
3 |
Tags: Divi, Divi Module, Divi Contact Form, divi theme, divi builder, Divi Gradient Text, Divi Typing Effect, Divi 3D Image, Divi Image, Divi Text Divider, facebook feed, facebook comments
|
4 |
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.
|
9 |
License: GPLv2
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -89,6 +89,10 @@ Divi Builder >= version 2.1
|
|
89 |
PHP version >= 5.6
|
90 |
|
91 |
== Changelog ==
|
|
|
|
|
|
|
|
|
92 |
= 1.6 - 04.06.2019 =
|
93 |
* Fixed: Fatal error - Cannot redeclare function when using multiple Caldera Forms Module.
|
94 |
|
3 |
Tags: Divi, Divi Module, Divi Contact Form, divi theme, divi builder, Divi Gradient Text, Divi Typing Effect, Divi 3D Image, Divi Image, Divi Text Divider, facebook feed, facebook comments
|
4 |
Donate link: https://suprememodules.com/
|
5 |
Requires at least: 4.5
|
6 |
+
Tested up to: 5.2.1
|
7 |
Requires PHP: 5.6
|
8 |
+
Stable tag: 1.6l1
|
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 |
+
|
93 |
+
= 1.6.1 - 13.06.2019 =
|
94 |
+
* Fixed: Caldera Forms Module not rendering the correct fields on Visual Builder.
|
95 |
+
|
96 |
= 1.6 - 04.06.2019 =
|
97 |
* Fixed: Fatal error - Cannot redeclare function when using multiple Caldera Forms Module.
|
98 |
|
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.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.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.6.1
|
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.6.1' );
|
31 |
}
|
32 |
if ( ! defined('DSM_SHORTCODE') ) {
|
33 |
define( 'DSM_SHORTCODE', 'divi_shortcode' );
|