Version Description
13.05.2021 = * Fixed: Admin Notice compatibility with Gravity Forms in some cases.
Download this release
Release Info
Developer | divisupreme |
Plugin | Supreme Modules Lite – Divi Theme, Extra Theme and Divi Builder |
Version | 2.3.7 |
Comparing to | |
See all releases |
Code changes from version 2.3.6 to 2.3.7
- includes/class-dsm-supreme-modules-for-divi.php +12 -12
- readme.txt +4 -1
- supreme-modules-for-divi.php +2 -2
includes/class-dsm-supreme-modules-for-divi.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
if ( ! function_exists( 'is_plugin_active' ) ) {
|
3 |
-
require_once
|
4 |
}
|
5 |
/**
|
6 |
* The file that defines the core plugin class
|
@@ -171,11 +171,11 @@ class Dsm_Supreme_Modules_For_Divi {
|
|
171 |
$this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_styles' );
|
172 |
$this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts' );
|
173 |
|
174 |
-
//Load page settings.
|
175 |
-
$this->settings_api = new DSM_Settings_API;
|
176 |
|
177 |
add_action( 'divi_extensions_init', array( $this, 'dsm_initialize_extension' ) );
|
178 |
-
//Plugin Admin.
|
179 |
add_filter( 'admin_footer_text', array( $this, 'dsm_admin_footer_text' ) );
|
180 |
add_action( 'admin_enqueue_scripts', array( $this, 'dsm_admin_load_enqueue' ) );
|
181 |
new Dsm_Supreme_Modules_For_Divi_Review(
|
@@ -190,12 +190,12 @@ class Dsm_Supreme_Modules_For_Divi {
|
|
190 |
if ( $this->settings_api->get_option( 'dsm_allow_mime_json_upload', 'dsm_settings_misc' ) === 'on' || $this->settings_api->get_option( 'dsm_allow_mime_json_upload', 'dsm_settings_misc' ) === '' ) {
|
191 |
new DSM_JSON_Handler();
|
192 |
}
|
193 |
-
//Plugin links
|
194 |
add_filter( 'plugin_action_links_supreme-modules-for-divi/supreme-modules-for-divi.php', array( $this, 'dsm_plugin_action_links' ), 10, 5 );
|
195 |
add_filter( 'plugin_action_links', array( $this, 'dsm_add_action_plugin' ), 10, 5 );
|
196 |
add_filter( 'plugin_row_meta', array( $this, 'dsm_plugin_row_meta' ), 10, 2 );
|
197 |
|
198 |
-
//Divi Template
|
199 |
add_action( 'init', array( $this, 'dsm_flush_rewrite_rules' ), 20 );
|
200 |
if ( $this->settings_api->get_option( 'dsm_use_header_footer', 'dsm_general' ) === 'on' ) {
|
201 |
add_action( 'init', array( $this, 'dsm_header_footer_posttypes' ), 0 );
|
@@ -209,7 +209,7 @@ class Dsm_Supreme_Modules_For_Divi {
|
|
209 |
add_action( 'admin_notices', array( $this, 'dsm_header_footer_admin_notice' ) );
|
210 |
}
|
211 |
|
212 |
-
//Scheduled content.
|
213 |
if ( $this->settings_api->get_option( 'dsm_use_scheduled_content', 'dsm_general' ) === 'on' ) {
|
214 |
add_filter( 'et_pb_all_fields_unprocessed_et_pb_section', array( $this, 'dsm_add_section_setting' ) );
|
215 |
add_filter( 'et_module_shortcode_output', array( $this, 'output_section' ), 10, 3 );
|
@@ -217,14 +217,14 @@ class Dsm_Supreme_Modules_For_Divi {
|
|
217 |
add_filter( 'et_module_shortcode_output', array( $this, 'output_row' ), 10, 3 );
|
218 |
}
|
219 |
|
220 |
-
//Divi shortcode.
|
221 |
if ( $this->settings_api->get_option( 'dsm_use_shortcode', 'dsm_general' ) === 'on' ) {
|
222 |
add_shortcode( DSM_SHORTCODE, array( $this, 'dsm_divi_shortcode' ) );
|
223 |
add_filter( 'manage_edit-et_pb_layout_columns', array( $this, 'dsm_divi_shortcode_post_columns_header' ) );
|
224 |
add_action( 'manage_et_pb_layout_posts_custom_column', array( $this, 'dsm_divi_shortcode_post_columns_content' ) );
|
225 |
}
|
226 |
|
227 |
-
//Divi Theme Builder.
|
228 |
if ( $this->settings_api->get_option( 'dsm_theme_builder_header_fixed', 'dsm_theme_builder' ) === 'on' ) {
|
229 |
add_filter( 'body_class', array( $this, 'dsm_theme_builder_header_css_classes' ) );
|
230 |
}
|
@@ -307,7 +307,7 @@ class Dsm_Supreme_Modules_For_Divi {
|
|
307 |
* @since 1.0.0
|
308 |
*/
|
309 |
public function dsm_initialize_extension() {
|
310 |
-
//require_once plugin_dir_path( __FILE__ ) . 'includes/SupremeModulesForDivi.php';
|
311 |
require_once plugin_dir_path( __FILE__ ) . 'SupremeModulesForDivi.php';
|
312 |
}
|
313 |
|
@@ -376,7 +376,7 @@ class Dsm_Supreme_Modules_For_Divi {
|
|
376 |
return (array) $links;
|
377 |
}
|
378 |
|
379 |
-
//Template load admin script
|
380 |
public function dsm_admin_footer_text( $footer_text ) {
|
381 |
$current_screen = get_current_screen();
|
382 |
$is_divi_supreme_screen_footer = ( $current_screen->id == 'edit-dsm_header_footer' );
|
@@ -701,7 +701,7 @@ class Dsm_Supreme_Modules_For_Divi {
|
|
701 |
}
|
702 |
}
|
703 |
}
|
704 |
-
public function dsm_header_footer_admin_notice(
|
705 |
$current_screen = get_current_screen();
|
706 |
|
707 |
if ( $current_screen->post_type === 'dsm_header_footer' ) {
|
1 |
<?php
|
2 |
if ( ! function_exists( 'is_plugin_active' ) ) {
|
3 |
+
require_once ABSPATH . '/wp-admin/includes/plugin.php';
|
4 |
}
|
5 |
/**
|
6 |
* The file that defines the core plugin class
|
171 |
$this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_styles' );
|
172 |
$this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts' );
|
173 |
|
174 |
+
// Load page settings.
|
175 |
+
$this->settings_api = new DSM_Settings_API();
|
176 |
|
177 |
add_action( 'divi_extensions_init', array( $this, 'dsm_initialize_extension' ) );
|
178 |
+
// Plugin Admin.
|
179 |
add_filter( 'admin_footer_text', array( $this, 'dsm_admin_footer_text' ) );
|
180 |
add_action( 'admin_enqueue_scripts', array( $this, 'dsm_admin_load_enqueue' ) );
|
181 |
new Dsm_Supreme_Modules_For_Divi_Review(
|
190 |
if ( $this->settings_api->get_option( 'dsm_allow_mime_json_upload', 'dsm_settings_misc' ) === 'on' || $this->settings_api->get_option( 'dsm_allow_mime_json_upload', 'dsm_settings_misc' ) === '' ) {
|
191 |
new DSM_JSON_Handler();
|
192 |
}
|
193 |
+
// Plugin links
|
194 |
add_filter( 'plugin_action_links_supreme-modules-for-divi/supreme-modules-for-divi.php', array( $this, 'dsm_plugin_action_links' ), 10, 5 );
|
195 |
add_filter( 'plugin_action_links', array( $this, 'dsm_add_action_plugin' ), 10, 5 );
|
196 |
add_filter( 'plugin_row_meta', array( $this, 'dsm_plugin_row_meta' ), 10, 2 );
|
197 |
|
198 |
+
// Divi Template
|
199 |
add_action( 'init', array( $this, 'dsm_flush_rewrite_rules' ), 20 );
|
200 |
if ( $this->settings_api->get_option( 'dsm_use_header_footer', 'dsm_general' ) === 'on' ) {
|
201 |
add_action( 'init', array( $this, 'dsm_header_footer_posttypes' ), 0 );
|
209 |
add_action( 'admin_notices', array( $this, 'dsm_header_footer_admin_notice' ) );
|
210 |
}
|
211 |
|
212 |
+
// Scheduled content.
|
213 |
if ( $this->settings_api->get_option( 'dsm_use_scheduled_content', 'dsm_general' ) === 'on' ) {
|
214 |
add_filter( 'et_pb_all_fields_unprocessed_et_pb_section', array( $this, 'dsm_add_section_setting' ) );
|
215 |
add_filter( 'et_module_shortcode_output', array( $this, 'output_section' ), 10, 3 );
|
217 |
add_filter( 'et_module_shortcode_output', array( $this, 'output_row' ), 10, 3 );
|
218 |
}
|
219 |
|
220 |
+
// Divi shortcode.
|
221 |
if ( $this->settings_api->get_option( 'dsm_use_shortcode', 'dsm_general' ) === 'on' ) {
|
222 |
add_shortcode( DSM_SHORTCODE, array( $this, 'dsm_divi_shortcode' ) );
|
223 |
add_filter( 'manage_edit-et_pb_layout_columns', array( $this, 'dsm_divi_shortcode_post_columns_header' ) );
|
224 |
add_action( 'manage_et_pb_layout_posts_custom_column', array( $this, 'dsm_divi_shortcode_post_columns_content' ) );
|
225 |
}
|
226 |
|
227 |
+
// Divi Theme Builder.
|
228 |
if ( $this->settings_api->get_option( 'dsm_theme_builder_header_fixed', 'dsm_theme_builder' ) === 'on' ) {
|
229 |
add_filter( 'body_class', array( $this, 'dsm_theme_builder_header_css_classes' ) );
|
230 |
}
|
307 |
* @since 1.0.0
|
308 |
*/
|
309 |
public function dsm_initialize_extension() {
|
310 |
+
// require_once plugin_dir_path( __FILE__ ) . 'includes/SupremeModulesForDivi.php';
|
311 |
require_once plugin_dir_path( __FILE__ ) . 'SupremeModulesForDivi.php';
|
312 |
}
|
313 |
|
376 |
return (array) $links;
|
377 |
}
|
378 |
|
379 |
+
// Template load admin script
|
380 |
public function dsm_admin_footer_text( $footer_text ) {
|
381 |
$current_screen = get_current_screen();
|
382 |
$is_divi_supreme_screen_footer = ( $current_screen->id == 'edit-dsm_header_footer' );
|
701 |
}
|
702 |
}
|
703 |
}
|
704 |
+
public function dsm_header_footer_admin_notice() {
|
705 |
$current_screen = get_current_screen();
|
706 |
|
707 |
if ( $current_screen->post_type === 'dsm_header_footer' ) {
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Donate link: https://suprememodules.com/
|
|
5 |
Requires at least: 4.5
|
6 |
Tested up to: 5.7.2
|
7 |
Requires PHP: 5.6
|
8 |
-
Stable tag: 2.3.
|
9 |
License: GPLv2
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -112,6 +112,9 @@ This is a common question that we get asked here every now and then which is why
|
|
112 |
|
113 |
|
114 |
== Changelog ==
|
|
|
|
|
|
|
115 |
= 2.3.6 – 04.02.2021 =
|
116 |
* Fixed: Divi Image Accordion module in Custom Post Type and Theme Builder.
|
117 |
|
5 |
Requires at least: 4.5
|
6 |
Tested up to: 5.7.2
|
7 |
Requires PHP: 5.6
|
8 |
+
Stable tag: 2.3.7
|
9 |
License: GPLv2
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
112 |
|
113 |
|
114 |
== Changelog ==
|
115 |
+
= 2.3.7 – 13.05.2021 =
|
116 |
+
* Fixed: Admin Notice compatibility with Gravity Forms in some cases.
|
117 |
+
|
118 |
= 2.3.6 – 04.02.2021 =
|
119 |
* Fixed: Divi Image Accordion module in Custom Post Type and Theme Builder.
|
120 |
|
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.3.
|
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.3.
|
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.3.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.3.7' );
|
38 |
}
|
39 |
if ( ! defined( 'DSM_SHORTCODE' ) ) {
|
40 |
define( 'DSM_SHORTCODE', 'divi_shortcode' );
|