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

Version Description

  • 16.07.2019 =
  • Fixed: Remove et_pb_post css class on divi templates that causes white space on the bottom.
  • Changed: Activation plugin name to Divi Supreme.
Download this release

Release Info

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

Code changes from version 1.6.3 to 1.6.4

includes/class-dsm-supreme-modules-for-divi-review.php CHANGED
@@ -148,7 +148,7 @@ class Dsm_Supreme_Modules_For_Divi_Review {
148
 
149
  echo '
150
  <div class="updated">
151
- <p>' . sprintf( __( 'You have been using the %s plugin for %s now, do you like it? If so, please do us a favor by leaving us a 5-stars rating with your feedback on WordPress.org. A huge thanks in advance!<div class="dsm-admin-go-pro" style="display: flex; align-items: center; padding-top: 10px;"><a onclick="location.href=\'' . esc_url( $no_bug_url ) . '\';" class="button button-primary" href="' . esc_url( 'https://wordpress.org/support/plugin/supreme-modules-for-divi/reviews/?rate=5#new-post' ) . '" target="_blank">' . __( 'Leave A Review', 'dsm-supreme-modules-for-divi' ) . '</a><span style="padding-left: 7px;">or</span><span class="dashicons dashicons-cart" style="font-size: 1.4em;padding-left: 7px; padding-right: 3px;"></span><a href="https://divisupreme.com/?coupon=SUPREMEJOURNEYTOPRO10" target="_blank">Get Divi Supreme Pro</a>&nbsp;with 10%% off applied automatically to your cart.</div>', 'dsm-supreme-modules-for-divi' ), $this->name, $time ) . '
152
  <br />
153
  <a href="' . esc_url( $no_bug_url ) . '">' . __( 'No thanks.', 'dsm-supreme-modules-for-divi' ) . '</a>
154
  </p>
148
 
149
  echo '
150
  <div class="updated">
151
+ <p>' . sprintf( __( 'You have been using the %s plugin for %s now, do you like it? If so, please do us a favor by leaving us a 5-stars rating with your feedback on WordPress.org. A huge thanks in advance!<div class="dsm-admin-go-pro" style="display: flex; align-items: center; padding-top: 10px;"><a onclick="location.href=\'' . esc_url( $no_bug_url ) . '\';" class="button button-primary" href="' . esc_url( 'https://wordpress.org/support/plugin/supreme-modules-for-divi/reviews/?rate=5#new-post' ) . '" target="_blank">' . __( 'Leave A Review', 'dsm-supreme-modules-for-divi' ) . '</a><span style="padding-left: 7px;">or</span><span class="dashicons dashicons-cart" style="font-size: 1.4em;padding-left: 7px; padding-right: 3px;"></span><a href="https://divisupreme.com/?coupon=SUPREMEJOURNEYTOPRO10" target="_blank">Get Divi Supreme Pro</a>&nbsp;with 10%% off applied automatically to your cart. - Note: This promotion will only show up once.</div>', 'dsm-supreme-modules-for-divi' ), $this->name, $time ) . '
152
  <br />
153
  <a href="' . esc_url( $no_bug_url ) . '">' . __( 'No thanks.', 'dsm-supreme-modules-for-divi' ) . '</a>
154
  </p>
includes/class-dsm-supreme-modules-for-divi.php CHANGED
@@ -179,7 +179,7 @@ class Dsm_Supreme_Modules_For_Divi {
179
  add_action( 'admin_enqueue_scripts', array( $this, 'dsm_admin_load_enqueue' ) );
180
  new Dsm_Supreme_Modules_For_Divi_Review( array(
181
  'slug' => $this->get_plugin_name(),
182
- 'name' => 'Divi Supreme Pro',
183
  'time_limit' => intval('864000'),
184
  ) );
185
 
@@ -192,7 +192,8 @@ class Dsm_Supreme_Modules_For_Divi {
192
  add_action( 'init', array( $this, 'dsm_flush_rewrite_rules' ), 20 );
193
  if ( $this->settings_api->get_option( 'dsm_use_header_footer', 'dsm_general' ) == 'on' ) {
194
  add_action( 'init', array( $this, 'dsm_header_footer_posttypes' ), 0 );
195
- add_filter( 'single_template', array( $this, 'dsm_load_headerfooter_template' ) );
 
196
  add_action( 'add_meta_boxes', array( $this, 'dsm_add_header_footer_meta_box' ), 11 );
197
  add_action( 'save_post', array( $this, 'dsm_save_header_footer_meta_box' ), 10, 3 );
198
  add_action( 'et_after_main_content', array( $this, 'dsm_custom_footer' ) );
@@ -440,6 +441,13 @@ class Dsm_Supreme_Modules_For_Divi {
440
 
441
  return $template;
442
  }
 
 
 
 
 
 
 
443
  public function dsm_header_footer_meta_box_options($post) {
444
  wp_nonce_field( 'dsm-header-footer-meta-box-nonce', 'dsm-header-footer-meta-box-nonce' );
445
  ?>
179
  add_action( 'admin_enqueue_scripts', array( $this, 'dsm_admin_load_enqueue' ) );
180
  new Dsm_Supreme_Modules_For_Divi_Review( array(
181
  'slug' => $this->get_plugin_name(),
182
+ 'name' => __( 'Divi Supreme', 'dsm-supreme-modules-for-divi' ),
183
  'time_limit' => intval('864000'),
184
  ) );
185
 
192
  add_action( 'init', array( $this, 'dsm_flush_rewrite_rules' ), 20 );
193
  if ( $this->settings_api->get_option( 'dsm_use_header_footer', 'dsm_general' ) == 'on' ) {
194
  add_action( 'init', array( $this, 'dsm_header_footer_posttypes' ), 0 );
195
+ add_filter( 'single_template', array( $this, 'dsm_load_headerfooter_template' ) );
196
+ add_filter( 'post_class', array( $this, 'dsm_load_headerfooter_post_class' ), 11 );
197
  add_action( 'add_meta_boxes', array( $this, 'dsm_add_header_footer_meta_box' ), 11 );
198
  add_action( 'save_post', array( $this, 'dsm_save_header_footer_meta_box' ), 10, 3 );
199
  add_action( 'et_after_main_content', array( $this, 'dsm_custom_footer' ) );
441
 
442
  return $template;
443
  }
444
+ public function dsm_load_headerfooter_post_class( $classes ) {
445
+ global $post;
446
+ if ($post->post_type == 'dsm_header_footer') {
447
+ $classes = array_diff( $classes, array( 'et_pb_post' ) );
448
+ }
449
+ return $classes;
450
+ }
451
  public function dsm_header_footer_meta_box_options($post) {
452
  wp_nonce_field( 'dsm-header-footer-meta-box-nonce', 'dsm-header-footer-meta-box-nonce' );
453
  ?>
public/css/dsm-et-admin.css CHANGED
@@ -74,7 +74,7 @@ et-db #et-boc .et-fb-modules-list li.dsm_business_hours:active,
74
  .et-db #et-boc .et-fb-modules-list li.dsm_text_badges:focus,
75
  .et-db #et-boc .et-fb-modules-list li.dsm_menu:focus,
76
  .et-db #et-boc .et-fb-modules-list li.dsm_pricelist:focus,
77
- et-db #et-boc .et-fb-modules-list li.dsm_business_hours:focus {
78
  background: rgba(107, 9, 235, 0.78);
79
  color: #fff;
80
  }
74
  .et-db #et-boc .et-fb-modules-list li.dsm_text_badges:focus,
75
  .et-db #et-boc .et-fb-modules-list li.dsm_menu:focus,
76
  .et-db #et-boc .et-fb-modules-list li.dsm_pricelist:focus,
77
+ .et-db #et-boc .et-fb-modules-list li.dsm_business_hours:focus {
78
  background: rgba(107, 9, 235, 0.78);
79
  color: #fff;
80
  }
readme.txt CHANGED
@@ -1,11 +1,11 @@
1
  === Divi Supreme Modules ===
2
  Contributors: divisupreme, kenng87
3
- Tags: Divi, Divi Module, Divi Contact Form, divi theme, divi builder, Divi Gradient Text, Divi Typing Effect, Divi 3D Image, Divi Image, Divi Text Divider, facebook feed, facebook comments
4
  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.3
9
  License: GPLv2
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -79,7 +79,7 @@ We support Divi's mission through the development of Divi custom modules that fo
79
 
80
  **Do I need Divi Theme for this to work?**
81
 
82
- You must have Divi theme, Extra Theme or the Divi Builder installed in order for this plugin to work.
83
 
84
  **Does it work with the Divi Visual Builder?**
85
 
@@ -90,7 +90,18 @@ Extra Theme >= version 2.1
90
  Divi Builder >= version 2.1
91
  PHP version >= 5.6
92
 
 
 
 
 
 
 
 
93
  == Changelog ==
 
 
 
 
94
  = 1.6.3 - 19.06.2019 =
95
  * Added: Divi Business Hours Module.
96
  * Fixed: Price List module echoing out class name on the frontend.
1
  === Divi Supreme Modules ===
2
  Contributors: divisupreme, kenng87
3
+ Tags: Divi, Divi Module, Divi Page Builder, divi theme, divi builder, Divi Extensions
4
  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.4
9
  License: GPLv2
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
79
 
80
  **Do I need Divi Theme for this to work?**
81
 
82
+ You must have Divi theme, Extra Theme or the Divi Builder installed in order for this plugin to work. [Divi by ElegantThemes](https://www.elegantthemes.com/affiliates/idevaffiliate.php?id=34051&tid1=wordpress) (affiliate link).
83
 
84
  **Does it work with the Divi Visual Builder?**
85
 
90
  Divi Builder >= version 2.1
91
  PHP version >= 5.6
92
 
93
+ **Is this plugin free?**
94
+
95
+ Yes! Divi Supreme is absolutely free. There is no hidden charge. However if you would like to support our developement, we do have a pro version of Divi Supreme that has even more Divi features, modules and extensions.
96
+
97
+ **What if I update to Pro version?**
98
+ Your existing modules/content will work with pro version. So you won't lose any content/work.
99
+
100
  == Changelog ==
101
+ = 1.6.4 - 16.07.2019 =
102
+ * Fixed: Remove et_pb_post css class on divi templates that causes white space on the bottom.
103
+ * Changed: Activation plugin name to Divi Supreme.
104
+
105
  = 1.6.3 - 19.06.2019 =
106
  * Added: Divi Business Hours Module.
107
  * Fixed: Price List module echoing out class name on the frontend.
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.3
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.3' );
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.4
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.4' );
31
  }
32
  if ( ! defined('DSM_SHORTCODE') ) {
33
  define( 'DSM_SHORTCODE', 'divi_shortcode' );