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

Version Description

  • 13.06.2019 =
  • Fixed: Blank pages when using version 1.6.8.
Download this release

Release Info

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

Code changes from version 1.6.8 to 1.6.9

includes/class-dsm-supreme-modules-for-divi.php CHANGED
@@ -598,8 +598,11 @@ class Dsm_Supreme_Modules_For_Divi {
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
 
598
 
599
  /*Get Blank Template*/
600
  global $post;
601
+ if ( !$post ) {
602
+ return false;
603
+ }
604
 
605
+ 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' ) ) {
606
  return;
607
  }
608
 
includes/templates/page-template-404.php CHANGED
@@ -39,4 +39,63 @@ get_header();
39
  </div> <!-- #main-content -->
40
 
41
  <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42
  get_footer();
39
  </div> <!-- #main-content -->
40
 
41
  <?php
42
+ $footer_args = array(
43
+ 'post_type' => 'dsm_header_footer',
44
+ 'meta_key' => 'dsm-header-footer-meta-box-options',
45
+ 'meta_value' => 'footer',
46
+ 'meta_type' => 'post',
47
+ 'meta_query' => array(
48
+ array(
49
+ 'key' => 'dsm-header-footer-meta-box-options',
50
+ 'value' => 'footer',
51
+ 'compare' => '==',
52
+ 'type' => 'post',
53
+ ),
54
+ ),
55
+ );
56
+
57
+ $footer_template = new WP_Query(
58
+ $footer_args
59
+ );
60
+
61
+ $footer_css_args = array(
62
+ 'post_type' => 'dsm_header_footer',
63
+ 'meta_key' => 'dsm-css-classes-meta-box-options',
64
+ 'value' => '',
65
+ 'meta_type' => 'post',
66
+ 'meta_query' => array(
67
+ array(
68
+ 'key' => 'dsm-css-classes-meta-box-options',
69
+ 'value' => '',
70
+ 'compare' => '!=',
71
+ 'type' => 'post',
72
+ ),
73
+ ),
74
+ );
75
+
76
+ $footer_css_template = new WP_Query(
77
+ $footer_css_args
78
+ );
79
+
80
+ if ( $footer_template->have_posts() ) {
81
+ $footer_template_ID = $footer_template->post->ID;
82
+ $footer_template_shortcode = apply_filters('the_content', get_post_field('post_content', $footer_template_ID));
83
+ $footer_template_css = get_post_custom($footer_template_ID);
84
+
85
+ if ( $footer_template_css['dsm-css-classes-meta-box-options'][0] != '' ) {
86
+ $footer_template_css_output = get_post_meta( $footer_css_template->post->ID, 'dsm-css-classes-meta-box-options', true );
87
+ } else {
88
+ $footer_template_css_output = '';
89
+ }
90
+
91
+ if ( !et_core_is_fb_enabled() && is_404() ) {
92
+ $footer_output = sprintf(
93
+ '<footer id="dsm-footer" class="%2$s" itemscope="itemscope" itemtype="https://schema.org/WPFooter">%1$s</footer>
94
+ ',
95
+ $footer_template_shortcode,
96
+ ( '' !== $footer_template_css_output ? 'dsm-footer ' . $footer_template_css_output : 'dsm-footer' )
97
+ );
98
+ echo $footer_output;
99
+ }
100
+ }
101
  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.8
9
  License: GPLv2
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -99,6 +99,9 @@ Your existing modules/content will work with pro version. So you won't lose any
99
 
100
 
101
  == Changelog ==
 
 
 
102
  = 1.6.8 - 13.06.2019 =
103
  * Fixed: WordPress default login url slug when using 404 - Using template_include for custom 404 template.
104
 
5
  Requires at least: 4.5
6
  Tested up to: 5.2.2
7
  Requires PHP: 5.6
8
+ Stable tag: 1.6.9
9
  License: GPLv2
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
99
 
100
 
101
  == Changelog ==
102
+ = 1.6.9 - 13.06.2019 =
103
+ * Fixed: Blank pages when using version 1.6.8.
104
+
105
  = 1.6.8 - 13.06.2019 =
106
  * Fixed: WordPress default login url slug when using 404 - Using template_include for custom 404 template.
107
 
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.8
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.8' );
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.9
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.9' );
31
  }
32
  if ( ! defined('DSM_SHORTCODE') ) {
33
  define( 'DSM_SHORTCODE', 'divi_shortcode' );