Version Description
- 27.02.2019 =
- Removed: Embed Footer On Visual Builder option on Divi Templates. This will be added back when ElegantThemes introduce a new method to embed into Visual Builder in the near future.
Download this release
Release Info
Developer | divisupreme |
Plugin | Supreme Modules Lite – Divi Theme, Extra Theme and Divi Builder |
Version | 1.4.6 |
Comparing to | |
See all releases |
Code changes from version 1.4.5 to 1.4.6
- assets/js/dsm-header-footer.js +0 -1
- includes/SupremeModulesLoader.php +7 -6
- readme.txt +4 -1
- supreme-modules-for-divi.php +2 -3
assets/js/dsm-header-footer.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
!function(e){e(document).ready(function(){var o=window.location.origin+window.location.pathname;e("#et-divi-customizer-vb-global-cached-inline-styles").detach(),e("head").append('<style id="dsm-temp-footer-css"></style>'),e("#dsm-temp-footer-css").load(o+" #et-builder-module-design-cached-inline-styles",function(){}),e("#main-footer").before('<div id="dsm-header-footer-vb"></div>'),e("#dsm-header-footer-vb").load(o+" #dsm-footer")})}(jQuery);
|
|
includes/SupremeModulesLoader.php
CHANGED
@@ -468,7 +468,7 @@ if ( dsm_setting_get_option( 'dsm_use_header_footer', 'dsm_general' ) == 'on' )
|
|
468 |
?>
|
469 |
</select>
|
470 |
</p>
|
471 |
-
|
472 |
<label for="dsm-embed-footer-in-vb" style="display: block; font-weight: bold; margin-bottom: 5px;">Embed Footer in Visual Builder</label>
|
473 |
<span style="display:block; margin-bottom: 5px;">This will show the footer when using Visual Builder in other pages/post/custom post type.</span>
|
474 |
<select name="dsm-embed-footer-in-vb">
|
@@ -492,8 +492,8 @@ if ( dsm_setting_get_option( 'dsm_use_header_footer', 'dsm_general' ) == 'on' )
|
|
492 |
}
|
493 |
?>
|
494 |
</select>
|
495 |
-
</p
|
496 |
-
<p><?php _e( '
|
497 |
<?php
|
498 |
}
|
499 |
|
@@ -536,10 +536,10 @@ if ( dsm_setting_get_option( 'dsm_use_header_footer', 'dsm_general' ) == 'on' )
|
|
536 |
if ( isset( $_POST['dsm-remove-default-footer-meta-box-options'] ) ) {
|
537 |
update_post_meta( $post_id, 'dsm-remove-default-footer-meta-box-options', esc_attr( $_POST['dsm-remove-default-footer-meta-box-options'] ) );
|
538 |
}
|
539 |
-
|
540 |
if ( isset( $_POST['dsm-embed-footer-in-vb'] ) ) {
|
541 |
update_post_meta( $post_id, 'dsm-embed-footer-in-vb', sanitize_text_field( $_POST['dsm-embed-footer-in-vb'] ) );
|
542 |
-
}
|
543 |
|
544 |
}
|
545 |
|
@@ -667,6 +667,7 @@ if ( dsm_setting_get_option( 'dsm_use_header_footer', 'dsm_general' ) == 'on' )
|
|
667 |
|
668 |
add_action( 'wp_print_scripts', 'dsm_custom_footer_settings', 30 );
|
669 |
|
|
|
670 |
function dsm_embed_footer_vb() {
|
671 |
$show_footer_args = array(
|
672 |
'post_type' => 'dsm_header_footer',
|
@@ -700,8 +701,8 @@ if ( dsm_setting_get_option( 'dsm_use_header_footer', 'dsm_general' ) == 'on' )
|
|
700 |
}
|
701 |
}
|
702 |
}
|
703 |
-
|
704 |
add_action( 'et_after_main_content', 'dsm_embed_footer_vb' );
|
|
|
705 |
|
706 |
function dsm_header_footer_admin_notice($post) {
|
707 |
$current_screen = get_current_screen();
|
468 |
?>
|
469 |
</select>
|
470 |
</p>
|
471 |
+
<!--p>
|
472 |
<label for="dsm-embed-footer-in-vb" style="display: block; font-weight: bold; margin-bottom: 5px;">Embed Footer in Visual Builder</label>
|
473 |
<span style="display:block; margin-bottom: 5px;">This will show the footer when using Visual Builder in other pages/post/custom post type.</span>
|
474 |
<select name="dsm-embed-footer-in-vb">
|
492 |
}
|
493 |
?>
|
494 |
</select>
|
495 |
+
</p-->
|
496 |
+
<p><?php _e( 'Note: Footer Template will only show up on the frontend.', 'dsm-supreme-modules-for-divi' ); ?></p>
|
497 |
<?php
|
498 |
}
|
499 |
|
536 |
if ( isset( $_POST['dsm-remove-default-footer-meta-box-options'] ) ) {
|
537 |
update_post_meta( $post_id, 'dsm-remove-default-footer-meta-box-options', esc_attr( $_POST['dsm-remove-default-footer-meta-box-options'] ) );
|
538 |
}
|
539 |
+
/*
|
540 |
if ( isset( $_POST['dsm-embed-footer-in-vb'] ) ) {
|
541 |
update_post_meta( $post_id, 'dsm-embed-footer-in-vb', sanitize_text_field( $_POST['dsm-embed-footer-in-vb'] ) );
|
542 |
+
}*/
|
543 |
|
544 |
}
|
545 |
|
667 |
|
668 |
add_action( 'wp_print_scripts', 'dsm_custom_footer_settings', 30 );
|
669 |
|
670 |
+
/*
|
671 |
function dsm_embed_footer_vb() {
|
672 |
$show_footer_args = array(
|
673 |
'post_type' => 'dsm_header_footer',
|
701 |
}
|
702 |
}
|
703 |
}
|
|
|
704 |
add_action( 'et_after_main_content', 'dsm_embed_footer_vb' );
|
705 |
+
*/
|
706 |
|
707 |
function dsm_header_footer_admin_notice($post) {
|
708 |
$current_screen = get_current_screen();
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Donate link: https://suprememodules.com/
|
|
5 |
Requires at least: 4.5
|
6 |
Tested up to: 5.1
|
7 |
Requires PHP: 5.6
|
8 |
-
Stable tag: 1.4.
|
9 |
License: GPLv2
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -87,6 +87,9 @@ Divi Builder >= version 2.1
|
|
87 |
PHP version >= 5.6
|
88 |
|
89 |
== Changelog ==
|
|
|
|
|
|
|
90 |
= 1.4.5 - 23.02.2019 =
|
91 |
* Fixed: Footer not showing up on 404 page when using Divi Templates.
|
92 |
|
5 |
Requires at least: 4.5
|
6 |
Tested up to: 5.1
|
7 |
Requires PHP: 5.6
|
8 |
+
Stable tag: 1.4.6
|
9 |
License: GPLv2
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
87 |
PHP version >= 5.6
|
88 |
|
89 |
== Changelog ==
|
90 |
+
= 1.4.6 - 27.02.2019 =
|
91 |
+
* Removed: Embed Footer On Visual Builder option on Divi Templates. This will be added back when ElegantThemes introduce a new method to embed into Visual Builder in the near future.
|
92 |
+
|
93 |
= 1.4.5 - 23.02.2019 =
|
94 |
* Fixed: Footer not showing up on 404 page when using Divi Templates.
|
95 |
|
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.4.
|
7 |
Author: Supreme Modules
|
8 |
Author URI: https://suprememodules.com/about-us/
|
9 |
License: GPL2
|
@@ -36,7 +36,7 @@ if ( version_compare(PHP_VERSION, '5.6', '<') ) {
|
|
36 |
add_action( 'admin_notices', 'dsm_admin_notice__php_version_error' );
|
37 |
return;
|
38 |
} else {
|
39 |
-
define( 'DSM_VERSION', '1.4.
|
40 |
|
41 |
if ( ! function_exists( 'dsm_initialize_extension' ) ):
|
42 |
/**
|
@@ -58,7 +58,6 @@ if ( version_compare(PHP_VERSION, '5.6', '<') ) {
|
|
58 |
wp_register_script('dsm-twitter-embed', 'https://platform.twitter.com/widgets.js', array(), DSM_VERSION, true );
|
59 |
if ( et_core_is_fb_enabled() ) {
|
60 |
wp_enqueue_style('dsm-et-admin', plugin_dir_url( __FILE__ ) . 'assets/css/dsm-et-admin.css' );
|
61 |
-
wp_register_script('dsm-header-footer', plugin_dir_url( __FILE__ ) . 'assets/js/dsm-header-footer.js', array(), DSM_VERSION, true );
|
62 |
}
|
63 |
}
|
64 |
|
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.4.6
|
7 |
Author: Supreme Modules
|
8 |
Author URI: https://suprememodules.com/about-us/
|
9 |
License: GPL2
|
36 |
add_action( 'admin_notices', 'dsm_admin_notice__php_version_error' );
|
37 |
return;
|
38 |
} else {
|
39 |
+
define( 'DSM_VERSION', '1.4.6' );
|
40 |
|
41 |
if ( ! function_exists( 'dsm_initialize_extension' ) ):
|
42 |
/**
|
58 |
wp_register_script('dsm-twitter-embed', 'https://platform.twitter.com/widgets.js', array(), DSM_VERSION, true );
|
59 |
if ( et_core_is_fb_enabled() ) {
|
60 |
wp_enqueue_style('dsm-et-admin', plugin_dir_url( __FILE__ ) . 'assets/css/dsm-et-admin.css' );
|
|
|
61 |
}
|
62 |
}
|
63 |
|