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

Version Description

  • 27.02.2019 =
  • Removed: CSS Class on 404 template.
  • Improved: Footer Template output.
Download this release

Release Info

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

Code changes from version 1.4.6 to 1.4.7

includes/SupremeModulesLoader.php CHANGED
@@ -471,8 +471,9 @@ if ( dsm_setting_get_option( 'dsm_use_header_footer', 'dsm_general' ) == 'on' )
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">
475
  <?php
 
476
  $option_values = array(
477
  'no' => __( 'No', 'dsm-supreme-modules-for-divi' ),
478
  'yes' => __( 'Yes', 'dsm-supreme-modules-for-divi' ),
@@ -489,9 +490,9 @@ if ( dsm_setting_get_option( 'dsm_use_header_footer', 'dsm_general' ) == 'on' )
489
  <option value="<?php echo $key; ?>"><?php echo $value; ?></option>
490
  <?php
491
  }
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
@@ -540,7 +541,6 @@ if ( dsm_setting_get_option( 'dsm_use_header_footer', 'dsm_general' ) == 'on' )
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
 
546
  add_action('save_post', 'dsm_save_header_footer_meta_box', 10, 3);
@@ -596,7 +596,12 @@ if ( dsm_setting_get_option( 'dsm_use_header_footer', 'dsm_general' ) == 'on' )
596
  }
597
 
598
  if ( !et_core_is_fb_enabled() ) {
599
- echo '<footer id="dsm-footer" class="dsm-footer ' . $footer_template_css_output . '" itemscope="itemscope" itemtype="https://schema.org/WPFooter">' . $footer_template_shortcode . '</footer>';
 
 
 
 
 
600
  }
601
  }
602
  }
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"-->
475
  <?php
476
+ /**
477
  $option_values = array(
478
  'no' => __( 'No', 'dsm-supreme-modules-for-divi' ),
479
  'yes' => __( 'Yes', 'dsm-supreme-modules-for-divi' ),
490
  <option value="<?php echo $key; ?>"><?php echo $value; ?></option>
491
  <?php
492
  }
493
+ }**/
494
  ?>
495
+ <!--/select>
496
  </p-->
497
  <p><?php _e( 'Note: Footer Template will only show up on the frontend.', 'dsm-supreme-modules-for-divi' ); ?></p>
498
  <?php
541
  if ( isset( $_POST['dsm-embed-footer-in-vb'] ) ) {
542
  update_post_meta( $post_id, 'dsm-embed-footer-in-vb', sanitize_text_field( $_POST['dsm-embed-footer-in-vb'] ) );
543
  }*/
 
544
  }
545
 
546
  add_action('save_post', 'dsm_save_header_footer_meta_box', 10, 3);
596
  }
597
 
598
  if ( !et_core_is_fb_enabled() ) {
599
+ $footer_output = sprintf(
600
+ '<footer id="dsm-footer" class="dsm-footer" itemscope="itemscope" itemtype="https://schema.org/WPFooter">%1$s</footer>
601
+ ',
602
+ $footer_template_shortcode
603
+ );
604
+ echo $footer_output;
605
  }
606
  }
607
  }
includes/templates/page-template-404.php CHANGED
@@ -6,75 +6,75 @@ Template Name: 404 Blank Page
6
  get_header();
7
  ?>
8
  <div id="main-content">
9
- <article id="post-0" <?php post_class( 'et_pb_post not_found' ); ?>>
10
- <?php
11
- $footer_args = array(
12
- 'post_type' => 'dsm_header_footer',
13
- 'meta_key' => 'dsm-header-footer-meta-box-options',
14
- 'meta_value' => '404',
15
- 'meta_type' => 'post',
16
- 'meta_query' => array(
17
- array(
18
- 'key' => 'dsm-header-footer-meta-box-options',
19
- 'value' => '404',
20
- 'compare' => '==',
21
- 'type' => 'post',
22
- ),
23
- ),
24
- );
25
 
26
- $footer_template = new WP_Query(
27
- $footer_args
28
- );
29
 
30
- $footer_css_args = array(
31
- 'post_type' => 'dsm_header_footer',
32
- 'meta_key' => 'dsm-css-classes-meta-box-options',
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
- $footer_conditional_args = array(
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
 
77
- </article> <!-- .et_pb_post -->
78
  </div> <!-- #main-content -->
79
 
80
  <?php
6
  get_header();
7
  ?>
8
  <div id="main-content">
9
+ <article id="post-0" <?php post_class( 'not_found' ); ?>>
10
+ <?php
11
+ $footer_args = array(
12
+ 'post_type' => 'dsm_header_footer',
13
+ 'meta_key' => 'dsm-header-footer-meta-box-options',
14
+ 'meta_value' => '404',
15
+ 'meta_type' => 'post',
16
+ 'meta_query' => array(
17
+ array(
18
+ 'key' => 'dsm-header-footer-meta-box-options',
19
+ 'value' => '404',
20
+ 'compare' => '==',
21
+ 'type' => 'post',
22
+ ),
23
+ ),
24
+ );
25
 
26
+ $footer_template = new WP_Query(
27
+ $footer_args
28
+ );
29
 
30
+ $footer_css_args = array(
31
+ 'post_type' => 'dsm_header_footer',
32
+ 'meta_key' => 'dsm-css-classes-meta-box-options',
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
+ $footer_conditional_args = array(
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
 
77
+ </article> <!-- .et_pb_post -->
78
  </div> <!-- #main-content -->
79
 
80
  <?php
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.6
9
  License: GPLv2
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -87,6 +87,10 @@ Divi Builder >= version 2.1
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
 
5
  Requires at least: 4.5
6
  Tested up to: 5.1
7
  Requires PHP: 5.6
8
+ Stable tag: 1.4.7
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.7 - 27.02.2019 =
91
+ * Removed: CSS Class on 404 template.
92
+ * Improved: Footer Template output.
93
+
94
  = 1.4.6 - 27.02.2019 =
95
  * 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.
96
 
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.6
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.6' );
40
 
41
  if ( ! function_exists( 'dsm_initialize_extension' ) ):
42
  /**
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
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.7' );
40
 
41
  if ( ! function_exists( 'dsm_initialize_extension' ) ):
42
  /**