Version Description
- 13.08.2019 =
- Fixed: Divi footer template for 404 page.
- Enhanced: 404 redirect template.
- Added: Divi Templates - Show or Hide Custom Footer for 404 page.
Download this release
Release Info
Developer | divisupreme |
Plugin | Supreme Modules Lite – Divi Theme, Extra Theme and Divi Builder |
Version | 1.6.7 |
Comparing to | |
See all releases |
Code changes from version 1.6.6 to 1.6.7
admin/css/dsm-plugin.css
CHANGED
@@ -115,7 +115,10 @@
|
|
115 |
#dsm_header_footer_meta_box .dsm-header-footer-meta-box.dsm_top_header .dsm-remove-default-footer-meta-box-options,
|
116 |
#dsm_header_footer_meta_box .dsm-header-footer-meta-box.dsm_404 .dsm-remove-default-footer-meta-box-options,
|
117 |
#dsm_header_footer_meta_box .dsm-header-footer-meta-box.dsm_404 .dsm-conditional-meta-box-options,
|
118 |
-
#dsm_header_footer_meta_box .dsm-header-footer-meta-box.dsm_404 .dsm-css-classes-meta-box-options
|
|
|
|
|
|
|
119 |
display: none;
|
120 |
}
|
121 |
|
115 |
#dsm_header_footer_meta_box .dsm-header-footer-meta-box.dsm_top_header .dsm-remove-default-footer-meta-box-options,
|
116 |
#dsm_header_footer_meta_box .dsm-header-footer-meta-box.dsm_404 .dsm-remove-default-footer-meta-box-options,
|
117 |
#dsm_header_footer_meta_box .dsm-header-footer-meta-box.dsm_404 .dsm-conditional-meta-box-options,
|
118 |
+
#dsm_header_footer_meta_box .dsm-header-footer-meta-box.dsm_404 .dsm-css-classes-meta-box-options,
|
119 |
+
#dsm_header_footer_meta_box .dsm-header-footer-meta-box.dsm_404 .dsm-footer-show-on-blank-template-meta-box-options,
|
120 |
+
#dsm_header_footer_meta_box .dsm-header-footer-meta-box.dsm_404 .dsm-footer-show-on-404-template-meta-box-options
|
121 |
+
{
|
122 |
display: none;
|
123 |
}
|
124 |
|
admin/js/dsm-admin.js
CHANGED
@@ -3,16 +3,14 @@
|
|
3 |
function() {
|
4 |
$('select[name="dsm-header-footer-meta-box-options"]').change(function() {
|
5 |
if ($('select[name="dsm-header-footer-meta-box-options"]').val() == '404') {
|
6 |
-
$('.dsm-conditional-meta-box-options').css("display", "none");
|
7 |
-
$('.dsm-css-classes-meta-box-options').css("display", "none");
|
8 |
} else {
|
9 |
-
$('.dsm-conditional-meta-box-options').css("display", "block");
|
10 |
-
$('.dsm-css-classes-meta-box-options').css("display", "block");
|
11 |
}
|
12 |
if ($('select[name="dsm-header-footer-meta-box-options"]').val() == 'top_header' || $('select[name="dsm-header-footer-meta-box-options"]').val() == '404') {
|
13 |
-
$('.dsm-remove-default-footer-meta-box-options, .dsm-footer-show-on-blank-template-meta-box-options').css("display", "none");
|
14 |
} else {
|
15 |
-
$('.dsm-remove-default-footer-meta-box-options, .dsm-footer-show-on-blank-template-meta-box-options').css("display", "block");
|
16 |
}
|
17 |
});
|
18 |
}
|
3 |
function() {
|
4 |
$('select[name="dsm-header-footer-meta-box-options"]').change(function() {
|
5 |
if ($('select[name="dsm-header-footer-meta-box-options"]').val() == '404') {
|
6 |
+
$('.dsm-conditional-meta-box-options, .dsm-css-classes-meta-box-options, .dsm-footer-show-on-blank-template-meta-box-options, .dsm-footer-show-on-404-template-meta-box-options').css("display", "none");
|
|
|
7 |
} else {
|
8 |
+
$('.dsm-conditional-meta-box-options, .dsm-css-classes-meta-box-options, .dsm-footer-show-on-blank-template-meta-box-options, .dsm-footer-show-on-404-template-meta-box-options').css("display", "block");
|
|
|
9 |
}
|
10 |
if ($('select[name="dsm-header-footer-meta-box-options"]').val() == 'top_header' || $('select[name="dsm-header-footer-meta-box-options"]').val() == '404') {
|
11 |
+
$('.dsm-remove-default-footer-meta-box-options, .dsm-footer-show-on-blank-template-meta-box-options, .dsm-footer-show-on-404-template-meta-box-options').css("display", "none");
|
12 |
} else {
|
13 |
+
$('.dsm-remove-default-footer-meta-box-options, .dsm-footer-show-on-blank-template-meta-box-options, .dsm-footer-show-on-404-template-meta-box-options').css("display", "block");
|
14 |
}
|
15 |
});
|
16 |
}
|
includes/SupremeModulesForDivi.php
CHANGED
@@ -27,7 +27,7 @@ class DSM_SupremeModulesForDivi extends DiviExtension {
|
|
27 |
*
|
28 |
* @var string
|
29 |
*/
|
30 |
-
public $version = '1.6.
|
31 |
|
32 |
/**
|
33 |
* DSM_SupremeModulesForDivi constructor.
|
27 |
*
|
28 |
* @var string
|
29 |
*/
|
30 |
+
public $version = '1.6.7';
|
31 |
|
32 |
/**
|
33 |
* DSM_SupremeModulesForDivi constructor.
|
includes/class-dsm-supreme-modules-for-divi.php
CHANGED
@@ -485,10 +485,14 @@ class Dsm_Supreme_Modules_For_Divi {
|
|
485 |
<input type="checkbox" name="dsm-remove-default-footer-meta-box-options" id="dsm-remove-default-footer-meta-box-options" value="yes" <?php if ( isset ( get_post_meta($post->ID)['dsm-remove-default-footer-meta-box-options'] ) ) checked( get_post_meta($post->ID)['dsm-remove-default-footer-meta-box-options'][0], 'yes' ); ?> />
|
486 |
<label for="dsm-remove-default-footer-meta-box-options">Remove default Divi footer</label>
|
487 |
</p>
|
488 |
-
<p class="dsm-footer-show-on-blank-template-meta-box-options" style="margin-top: 0;">
|
489 |
<input type="checkbox" name="dsm-footer-show-on-blank-template" id="dsm-footer-show-on-blank-template" value="yes" <?php if ( isset ( get_post_meta($post->ID)['dsm-footer-show-on-blank-template'] ) ) checked( get_post_meta($post->ID)['dsm-footer-show-on-blank-template'][0], 'yes' ); ?> />
|
490 |
<label for="dsm-footer-show-on-blank-template">Show on Blank Page Template</label>
|
491 |
</p>
|
|
|
|
|
|
|
|
|
492 |
<p><?php _e( 'Note: Footer Template will only show up on the frontend.', 'dsm-supreme-modules-for-divi' ); ?></p>
|
493 |
</div>
|
494 |
<?php
|
@@ -532,6 +536,11 @@ class Dsm_Supreme_Modules_For_Divi {
|
|
532 |
$dsm_footer_hide_on_blank_template = $_POST['dsm-footer-show-on-blank-template'];
|
533 |
}
|
534 |
update_post_meta($post_id, 'dsm-footer-show-on-blank-template', $dsm_footer_hide_on_blank_template);
|
|
|
|
|
|
|
|
|
|
|
535 |
/*
|
536 |
if ( isset( $_POST['dsm-embed-footer-in-vb'] ) ) {
|
537 |
update_post_meta( $post_id, 'dsm-embed-footer-in-vb', sanitize_text_field( $_POST['dsm-embed-footer-in-vb'] ) );
|
@@ -589,19 +598,17 @@ class Dsm_Supreme_Modules_For_Divi {
|
|
589 |
|
590 |
/*Get Blank Template*/
|
591 |
global $post;
|
592 |
-
if ( !$post ) {
|
593 |
-
return false;
|
594 |
-
}
|
595 |
|
596 |
-
if ( get_post_meta( $post->ID, '_wp_page_template', true ) === 'page-template-blank.php' && ( $footer_template_css['dsm-footer-show-on-blank-template'][0] == '' || $footer_template_css['dsm-footer-show-on-blank-template'][0] == 'no' ) ) {
|
597 |
return;
|
598 |
}
|
599 |
-
|
600 |
if ( !et_core_is_fb_enabled() ) {
|
601 |
$footer_output = sprintf(
|
602 |
-
'<footer id="dsm-footer" class="
|
603 |
',
|
604 |
-
$footer_template_shortcode
|
|
|
605 |
);
|
606 |
echo $footer_output;
|
607 |
}
|
485 |
<input type="checkbox" name="dsm-remove-default-footer-meta-box-options" id="dsm-remove-default-footer-meta-box-options" value="yes" <?php if ( isset ( get_post_meta($post->ID)['dsm-remove-default-footer-meta-box-options'] ) ) checked( get_post_meta($post->ID)['dsm-remove-default-footer-meta-box-options'][0], 'yes' ); ?> />
|
486 |
<label for="dsm-remove-default-footer-meta-box-options">Remove default Divi footer</label>
|
487 |
</p>
|
488 |
+
<p class="dsm-footer-show-on-blank-template-meta-box-options" style="margin-bottom: 0; margin-top: 0;">
|
489 |
<input type="checkbox" name="dsm-footer-show-on-blank-template" id="dsm-footer-show-on-blank-template" value="yes" <?php if ( isset ( get_post_meta($post->ID)['dsm-footer-show-on-blank-template'] ) ) checked( get_post_meta($post->ID)['dsm-footer-show-on-blank-template'][0], 'yes' ); ?> />
|
490 |
<label for="dsm-footer-show-on-blank-template">Show on Blank Page Template</label>
|
491 |
</p>
|
492 |
+
<p class="dsm-footer-show-on-404-template-meta-box-options" style="margin-top: 0;">
|
493 |
+
<input type="checkbox" name="dsm-footer-show-on-404-template" id="dsm-footer-show-on-404-template" value="yes" <?php if ( isset ( get_post_meta($post->ID)['dsm-footer-show-on-404-template'] ) ) checked( get_post_meta($post->ID)['dsm-footer-show-on-404-template'][0], 'yes' ); ?> />
|
494 |
+
<label for="dsm-footer-show-on-404-template">Show on 404 Page</label>
|
495 |
+
</p>
|
496 |
<p><?php _e( 'Note: Footer Template will only show up on the frontend.', 'dsm-supreme-modules-for-divi' ); ?></p>
|
497 |
</div>
|
498 |
<?php
|
536 |
$dsm_footer_hide_on_blank_template = $_POST['dsm-footer-show-on-blank-template'];
|
537 |
}
|
538 |
update_post_meta($post_id, 'dsm-footer-show-on-blank-template', $dsm_footer_hide_on_blank_template);
|
539 |
+
|
540 |
+
if ( isset( $_POST['dsm-footer-show-on-404-template'] ) ) {
|
541 |
+
$dsm_footer_show_404_template = $_POST['dsm-footer-show-on-404-template'];
|
542 |
+
}
|
543 |
+
update_post_meta($post_id, 'dsm-footer-show-on-404-template', $dsm_footer_show_404_template);
|
544 |
/*
|
545 |
if ( isset( $_POST['dsm-embed-footer-in-vb'] ) ) {
|
546 |
update_post_meta( $post_id, 'dsm-embed-footer-in-vb', sanitize_text_field( $_POST['dsm-embed-footer-in-vb'] ) );
|
598 |
|
599 |
/*Get Blank Template*/
|
600 |
global $post;
|
|
|
|
|
|
|
601 |
|
602 |
+
if ( get_post_meta( $post->ID, '_wp_page_template', true ) === 'page-template-blank.php' && ( $footer_template_css['dsm-footer-show-on-blank-template'][0] == '' || $footer_template_css['dsm-footer-show-on-blank-template'][0] == 'no' ) || is_404() && ( $footer_template_css['dsm-footer-show-on-404-template'][0] == '' || $footer_template_css['dsm-footer-show-on-404-template'][0] == 'no' ) ) {
|
603 |
return;
|
604 |
}
|
605 |
+
|
606 |
if ( !et_core_is_fb_enabled() ) {
|
607 |
$footer_output = sprintf(
|
608 |
+
'<footer id="dsm-footer" class="%2$s" itemscope="itemscope" itemtype="https://schema.org/WPFooter">%1$s</footer>
|
609 |
',
|
610 |
+
$footer_template_shortcode,
|
611 |
+
( '' !== $footer_template_css_output ? 'dsm-footer ' . $footer_template_css_output : 'dsm-footer' )
|
612 |
);
|
613 |
echo $footer_output;
|
614 |
}
|
includes/templates/page-template-404.php
CHANGED
@@ -8,7 +8,7 @@ get_header();
|
|
8 |
<div id="main-content">
|
9 |
<article id="post-0" <?php post_class( 'not_found' ); ?>>
|
10 |
<?php
|
11 |
-
$
|
12 |
'post_type' => 'dsm_header_footer',
|
13 |
'meta_key' => 'dsm-header-footer-meta-box-options',
|
14 |
'meta_value' => '404',
|
@@ -23,54 +23,15 @@ get_header();
|
|
23 |
),
|
24 |
);
|
25 |
|
26 |
-
$
|
27 |
-
$
|
28 |
);
|
29 |
|
30 |
-
$
|
31 |
-
|
32 |
-
'
|
33 |
-
'value' => '',
|
34 |
-
'meta_type' => 'post',
|
35 |
-
'meta_query' => array(
|
36 |
-
array(
|
37 |
-
'key' => 'dsm-css-classes-meta-box-options',
|
38 |
-
'value' => '',
|
39 |
-
'compare' => '!=',
|
40 |
-
'type' => 'post',
|
41 |
-
),
|
42 |
-
),
|
43 |
-
);
|
44 |
-
|
45 |
-
$footer_css_template = new WP_Query(
|
46 |
-
$footer_css_args
|
47 |
-
);
|
48 |
|
49 |
-
|
50 |
-
'post_type' => 'dsm_header_footer',
|
51 |
-
'meta_key' => 'dsm-conditional-meta-box-options',
|
52 |
-
'value' => '',
|
53 |
-
'meta_type' => 'post',
|
54 |
-
'meta_query' => array(
|
55 |
-
array(
|
56 |
-
'key' => 'dsm-conditional-meta-box-options',
|
57 |
-
'value' => '',
|
58 |
-
'compare' => '!=',
|
59 |
-
'type' => 'post',
|
60 |
-
),
|
61 |
-
),
|
62 |
-
);
|
63 |
-
|
64 |
-
$footer_exclude = new WP_Query(
|
65 |
-
$footer_conditional_args
|
66 |
-
);
|
67 |
-
|
68 |
-
if ( $footer_template->have_posts() ) {
|
69 |
-
$footer_template_ID = $footer_template->post->ID;
|
70 |
-
$footer_template_shortcode = apply_filters('the_content', get_post_field('post_content', $footer_template_ID));
|
71 |
-
$footer_template_css = get_post_custom($footer_template_ID);
|
72 |
-
|
73 |
-
echo $footer_template_shortcode;
|
74 |
}
|
75 |
?>
|
76 |
|
@@ -78,5 +39,4 @@ get_header();
|
|
78 |
</div> <!-- #main-content -->
|
79 |
|
80 |
<?php
|
81 |
-
|
82 |
-
get_footer();
|
8 |
<div id="main-content">
|
9 |
<article id="post-0" <?php post_class( 'not_found' ); ?>>
|
10 |
<?php
|
11 |
+
$fourzerofour_args = array(
|
12 |
'post_type' => 'dsm_header_footer',
|
13 |
'meta_key' => 'dsm-header-footer-meta-box-options',
|
14 |
'meta_value' => '404',
|
23 |
),
|
24 |
);
|
25 |
|
26 |
+
$fourzerofour_template = new WP_Query(
|
27 |
+
$fourzerofour_args
|
28 |
);
|
29 |
|
30 |
+
if ( $fourzerofour_template->have_posts() ) {
|
31 |
+
$fourzerofour_template_ID = $fourzerofour_template->post->ID;
|
32 |
+
$fourzerofour_template_shortcode = apply_filters('the_content', get_post_field('post_content', $fourzerofour_template_ID));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
|
34 |
+
echo $fourzerofour_template_shortcode;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
}
|
36 |
?>
|
37 |
|
39 |
</div> <!-- #main-content -->
|
40 |
|
41 |
<?php
|
42 |
+
get_footer();
|
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Donate link: https://suprememodules.com/
|
|
5 |
Requires at least: 4.5
|
6 |
Tested up to: 5.2.2
|
7 |
Requires PHP: 5.6
|
8 |
-
Stable tag: 1.6.
|
9 |
License: GPLv2
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -99,6 +99,11 @@ Your existing modules/content will work with pro version. So you won't lose any
|
|
99 |
|
100 |
|
101 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
102 |
= 1.6.6 - 04.08.2019 =
|
103 |
* Fixed: Divi templates assigned to footer when using post/page blank template.
|
104 |
* Added: Show or Hide Custom Footer on Blank Template option in Divi Templates.
|
5 |
Requires at least: 4.5
|
6 |
Tested up to: 5.2.2
|
7 |
Requires PHP: 5.6
|
8 |
+
Stable tag: 1.6.7
|
9 |
License: GPLv2
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
99 |
|
100 |
|
101 |
== Changelog ==
|
102 |
+
= 1.6.7 - 13.08.2019 =
|
103 |
+
* Fixed: Divi footer template for 404 page.
|
104 |
+
* Enhanced: 404 redirect template.
|
105 |
+
* Added: Divi Templates - Show or Hide Custom Footer for 404 page.
|
106 |
+
|
107 |
= 1.6.6 - 04.08.2019 =
|
108 |
* Fixed: Divi templates assigned to footer when using post/page blank template.
|
109 |
* Added: Show or Hide Custom Footer on Blank Template option in Divi Templates.
|
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.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.6.7' );
|
31 |
}
|
32 |
if ( ! defined('DSM_SHORTCODE') ) {
|
33 |
define( 'DSM_SHORTCODE', 'divi_shortcode' );
|