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

Version Description

30.10.2019 = * Removed: Local development coding in public version. * Enhanced: Sanitize, escape, and validate POST calls. * Renamed: Plugin/Readme Name.

Download this release

Release Info

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

Code changes from version 1.7.7 to 1.7.71

includes/SupremeModulesForDivi.php CHANGED
@@ -41,25 +41,6 @@ class DSM_SupremeModulesForDivi extends DiviExtension {
41
 
42
  parent::__construct( $name, $args );
43
  }
44
- /**
45
- * Enqueues non-minified, hot reloaded javascript bundles.
46
- *
47
- * @since 3.1
48
- */
49
- protected function _enqueue_debug_bundles() {
50
- // Frontend Bundle
51
- $site_url = wp_parse_url( get_site_url() );
52
- $hot_bundle_url = "http://localhost:3000/static/js/frontend-bundle.js";
53
-
54
- wp_enqueue_script( "{$this->name}-frontend-bundle", $hot_bundle_url, $this->_bundle_dependencies['frontend'], $this->version, true );
55
-
56
- if ( et_core_is_fb_enabled() ) {
57
- // Builder Bundle
58
- $hot_bundle_url = "http://localhost:3000/static/js/builder-bundle.js";
59
-
60
- wp_enqueue_script( "{$this->name}-builder-bundle", $hot_bundle_url, $this->_bundle_dependencies['builder'], $this->version, true );
61
- }
62
- }
63
  }
64
 
65
  new DSM_SupremeModulesForDivi;
41
 
42
  parent::__construct( $name, $args );
43
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
44
  }
45
 
46
  new DSM_SupremeModulesForDivi;
includes/class-dsm-supreme-modules-for-divi.php CHANGED
@@ -533,7 +533,7 @@ class Dsm_Supreme_Modules_For_Divi {
533
  }
534
 
535
  if ( isset( $_POST['dsm-header-footer-meta-box-options'] ) ) {
536
- update_post_meta( $post_id, 'dsm-header-footer-meta-box-options', esc_attr( $_POST['dsm-header-footer-meta-box-options'] ) );
537
  }
538
 
539
  if ( isset( $_POST['dsm-css-classes-meta-box-options'] ) ) {
@@ -541,23 +541,19 @@ class Dsm_Supreme_Modules_For_Divi {
541
  }
542
 
543
  if ( isset( $_POST['dsm-remove-default-footer-meta-box-options'] ) ) {
544
- $dsm_remove_default_footer = $_POST['dsm-remove-default-footer-meta-box-options'];
545
  }
546
  update_post_meta($post_id, 'dsm-remove-default-footer-meta-box-options', $dsm_remove_default_footer);
547
 
548
  if ( isset( $_POST['dsm-footer-show-on-blank-template'] ) ) {
549
- $dsm_footer_hide_on_blank_template = $_POST['dsm-footer-show-on-blank-template'];
550
  }
551
  update_post_meta($post_id, 'dsm-footer-show-on-blank-template', $dsm_footer_hide_on_blank_template);
552
 
553
  if ( isset( $_POST['dsm-footer-show-on-404-template'] ) ) {
554
- $dsm_footer_show_404_template = $_POST['dsm-footer-show-on-404-template'];
555
  }
556
  update_post_meta($post_id, 'dsm-footer-show-on-404-template', $dsm_footer_show_404_template);
557
- /*
558
- if ( isset( $_POST['dsm-embed-footer-in-vb'] ) ) {
559
- update_post_meta( $post_id, 'dsm-embed-footer-in-vb', sanitize_text_field( $_POST['dsm-embed-footer-in-vb'] ) );
560
- }*/
561
  }
562
 
563
  public function dsm_custom_footer() {
@@ -856,7 +852,7 @@ class Dsm_Supreme_Modules_For_Divi {
856
  if ( ! wp_verify_nonce( $_POST['et_admin_load_nonce'], 'et_admin_load_nonce' ) ) {
857
  wp_die();
858
  }
859
- echo do_shortcode( '[contact-form-7 id="' . $_POST['cf7_library'] . '"]' );
860
  wp_die();
861
  }
862
  public function dsm_wpcf7_add_form_tag_submit() {
@@ -1034,7 +1030,7 @@ class Dsm_Supreme_Modules_For_Divi {
1034
 
1035
  add_filter( 'caldera_forms_get_style_includes', 'dsm_filter_caldera_forms_get_style_includes', 10, 1 );
1036
  }
1037
- echo do_shortcode( '[caldera_form id="' . $_POST['cf_library'] . '"]' );
1038
  wp_die();
1039
  }
1040
 
533
  }
534
 
535
  if ( isset( $_POST['dsm-header-footer-meta-box-options'] ) ) {
536
+ update_post_meta( $post_id, 'dsm-header-footer-meta-box-options', sanitize_text_field( $_POST['dsm-header-footer-meta-box-options'] ) );
537
  }
538
 
539
  if ( isset( $_POST['dsm-css-classes-meta-box-options'] ) ) {
541
  }
542
 
543
  if ( isset( $_POST['dsm-remove-default-footer-meta-box-options'] ) ) {
544
+ $dsm_remove_default_footer = sanitize_text_field( $_POST['dsm-remove-default-footer-meta-box-options'] );
545
  }
546
  update_post_meta($post_id, 'dsm-remove-default-footer-meta-box-options', $dsm_remove_default_footer);
547
 
548
  if ( isset( $_POST['dsm-footer-show-on-blank-template'] ) ) {
549
+ $dsm_footer_hide_on_blank_template = sanitize_text_field( $_POST['dsm-footer-show-on-blank-template'] );
550
  }
551
  update_post_meta($post_id, 'dsm-footer-show-on-blank-template', $dsm_footer_hide_on_blank_template);
552
 
553
  if ( isset( $_POST['dsm-footer-show-on-404-template'] ) ) {
554
+ $dsm_footer_show_404_template = sanitize_text_field( $_POST['dsm-footer-show-on-404-template'] );
555
  }
556
  update_post_meta($post_id, 'dsm-footer-show-on-404-template', $dsm_footer_show_404_template);
 
 
 
 
557
  }
558
 
559
  public function dsm_custom_footer() {
852
  if ( ! wp_verify_nonce( $_POST['et_admin_load_nonce'], 'et_admin_load_nonce' ) ) {
853
  wp_die();
854
  }
855
+ echo do_shortcode( '[contact-form-7 id="' . sanitize_text_field( $_POST['cf7_library'] ) . '"]' );
856
  wp_die();
857
  }
858
  public function dsm_wpcf7_add_form_tag_submit() {
1030
 
1031
  add_filter( 'caldera_forms_get_style_includes', 'dsm_filter_caldera_forms_get_style_includes', 10, 1 );
1032
  }
1033
+ echo do_shortcode( '[caldera_form id="' . sanitize_text_field( $_POST['cf_library'] ) . '"]' );
1034
  wp_die();
1035
  }
1036
 
includes/modules/ContactForm7/ContactForm7.php CHANGED
@@ -6,9 +6,9 @@ class DSM_ContactForm7 extends ET_Builder_Module {
6
  public $vb_support = 'on';
7
 
8
  protected $module_credits = array(
9
- 'module_uri' => 'https://suprememodules.com/',
10
- 'author' => 'Supreme Modules',
11
- 'author_uri' => 'https://suprememodules.com/',
12
  );
13
 
14
  public function init() {
6
  public $vb_support = 'on';
7
 
8
  protected $module_credits = array(
9
+ 'module_uri' => 'https://divisupreme.com/',
10
+ 'author' => 'Divi Supreme',
11
+ 'author_uri' => 'https://divisupreme.com/',
12
  );
13
 
14
  public function init() {
public/css/dsm-et-admin.css CHANGED
@@ -1,25 +1,3 @@
1
- .et-db #et-boc .et-fb-modules-list li.dsm_flipbox,
2
- .et-db #et-boc .et-fb-modules-list li.dsm_perspective_image,
3
- .et-db #et-boc .et-fb-modules-list li.dsm_text_divider,
4
- .et-db #et-boc .et-fb-modules-list li.dsm_typing_effect,
5
- .et-db #et-boc .et-fb-modules-list li.dsm_gradient_text,
6
- .et-db #et-boc .et-fb-modules-list li.dsm_button,
7
- .et-db #et-boc .et-fb-modules-list li.dsm_facebook_feed,
8
- .et-db #et-boc .et-fb-modules-list li.dsm_facebook_comments,
9
- .et-db #et-boc .et-fb-modules-list li.dsm_contact_form_7,
10
- .et-db #et-boc .et-fb-modules-list li.dsm_caldera_forms,
11
- .et-db #et-boc .et-fb-modules-list li.dsm_embed_google_map,
12
- .et-db #et-boc .et-fb-modules-list li.dsm_embed_twitter_timeline,
13
- .et-db #et-boc .et-fb-modules-list li.dsm_text_badges,
14
- .et-db #et-boc .et-fb-modules-list li.dsm_menu,
15
- .et-db #et-boc .et-fb-modules-list li.dsm_pricelist,
16
- .et-db #et-boc .et-fb-modules-list li.dsm_business_hours,
17
- .et-db #et-boc .et-fb-modules-list li.dsm_icon_list {
18
- background: #6b09eb;
19
- color: #fff;
20
- font-size: 10px;
21
- }
22
-
23
  .et-db #et-boc .et-fb-modules-list li.dsm_typing_effect:before,
24
  .et-db #et-boc .et-fb-modules-list li.dsm_facebook_feed:before,
25
  .et-db #et-boc .et-fb-modules-list li.dsm_embed_twitter_timeline:before,
@@ -29,61 +7,30 @@
29
  font-family: ETmodules !important;
30
  }
31
 
32
- .et-db #et-boc .et-fb-modules-list li.dsm_flipbox:hover,
33
- .et-db #et-boc .et-fb-modules-list li.dsm_perspective_image:hover,
34
- .et-db #et-boc .et-fb-modules-list li.dsm_text_divider:hover,
35
- .et-db #et-boc .et-fb-modules-list li.dsm_typing_effect:hover,
36
- .et-db #et-boc .et-fb-modules-list li.dsm_gradient_text:hover,
37
- .et-db #et-boc .et-fb-modules-list li.dsm_button:hover,
38
- .et-db #et-boc .et-fb-modules-list li.dsm_facebook_feed:hover,
39
- .et-db #et-boc .et-fb-modules-list li.dsm_facebook_comments:hover,
40
- .et-db #et-boc .et-fb-modules-list li.dsm_contact_form_7:hover,
41
- .et-db #et-boc .et-fb-modules-list li.dsm_caldera_forms:hover,
42
- .et-db #et-boc .et-fb-modules-list li.dsm_embed_google_map:hover,
43
- .et-db #et-boc .et-fb-modules-list li.dsm_embed_twitter_timeline:hover,
44
- .et-db #et-boc .et-fb-modules-list li.dsm_text_badges:hover,
45
- .et-db #et-boc .et-fb-modules-list li.dsm_menu:hover,
46
- .et-db #et-boc .et-fb-modules-list li.dsm_pricelist:hover,
47
- .et-db #et-boc .et-fb-modules-list li.dsm_business_hours:hover,
48
- .et-db #et-boc .et-fb-modules-list li.dsm_icon_list:hover,
49
- .et-db #et-boc .et-fb-modules-list li.dsm_flipbox:active,
50
- .et-db #et-boc .et-fb-modules-list li.dsm_perspective_image:active,
51
- .et-db #et-boc .et-fb-modules-list li.dsm_text_divider:active,
52
- .et-db #et-boc .et-fb-modules-list li.dsm_typing_effect:active,
53
- .et-db #et-boc .et-fb-modules-list li.dsm_gradient_text:active,
54
- .et-db #et-boc .et-fb-modules-list li.dsm_button:active,
55
- .et-db #et-boc .et-fb-modules-list li.dsm_facebook_feed:active,
56
- .et-db #et-boc .et-fb-modules-list li.dsm_facebook_comments:active,
57
- .et-db #et-boc .et-fb-modules-list li.dsm_contact_form_7:active,
58
- .et-db #et-boc .et-fb-modules-list li.dsm_caldera_forms:active,
59
- .et-db #et-boc .et-fb-modules-list li.dsm_embed_google_map:active,
60
- .et-db #et-boc .et-fb-modules-list li.dsm_embed_twitter_timeline:active,
61
- .et-db #et-boc .et-fb-modules-list li.dsm_text_badges:active,
62
- .et-db #et-boc .et-fb-modules-list li.dsm_menu:active,
63
- .et-db #et-boc .et-fb-modules-list li.dsm_pricelist:active,
64
- .et-db #et-boc .et-fb-modules-list li.dsm_business_hours:active,
65
- .et-db #et-boc .et-fb-modules-list li.dsm_icon_list:active,
66
- .et-db #et-boc .et-fb-modules-list li.dsm_flipbox:focus,
67
- .et-db #et-boc .et-fb-modules-list li.dsm_perspective_image:focus,
68
- .et-db #et-boc .et-fb-modules-list li.dsm_text_divider:focus,
69
- .et-db #et-boc .et-fb-modules-list li.dsm_typing_effect:focus,
70
- .et-db #et-boc .et-fb-modules-list li.dsm_gradient_text:focus,
71
- .et-db #et-boc .et-fb-modules-list li.dsm_button:focus,
72
- .et-db #et-boc .et-fb-modules-list li.dsm_facebook_feed:focus,
73
- .et-db #et-boc .et-fb-modules-list li.dsm_facebook_comments:focus,
74
- .et-db #et-boc .et-fb-modules-list li.dsm_contact_form_7:focus,
75
- .et-db #et-boc .et-fb-modules-list li.dsm_caldera_forms:focus,
76
- .et-db #et-boc .et-fb-modules-list li.dsm_embed_google_map:focus,
77
- .et-db #et-boc .et-fb-modules-list li.dsm_embed_twitter_timeline:focus,
78
- .et-db #et-boc .et-fb-modules-list li.dsm_text_badges:focus,
79
- .et-db #et-boc .et-fb-modules-list li.dsm_menu:focus,
80
- .et-db #et-boc .et-fb-modules-list li.dsm_pricelist:focus,
81
- .et-db #et-boc .et-fb-modules-list li.dsm_business_hours:focus,
82
- .et-db #et-boc .et-fb-modules-list li.dsm_icon_list:focus {
83
  background: rgba(107, 9, 235, 0.78);
84
  color: #fff;
85
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
86
 
87
- .et-db #et-boc .et-fb-modules-list li[class^="dsm"]:before {
88
- color:#fff
89
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  .et-db #et-boc .et-fb-modules-list li.dsm_typing_effect:before,
2
  .et-db #et-boc .et-fb-modules-list li.dsm_facebook_feed:before,
3
  .et-db #et-boc .et-fb-modules-list li.dsm_embed_twitter_timeline:before,
7
  font-family: ETmodules !important;
8
  }
9
 
10
+ .et-db #et-boc .et-fb-modules-list li[class^="dsm"]:hover,
11
+ .et-db #et-boc .et-fb-modules-list li[class^="dsm"]:focus,
12
+ .et-db #et-boc .et-fb-modules-list li[class^="dsm"]:active,
13
+ .et-db #et-boc .et-l .et-fb-modules-list li[class^="dsm"]:hover,
14
+ .et-db #et-boc .et-l .et-fb-modules-list li[class^="dsm"]:focus,
15
+ .et-db #et-boc .et-l .et-fb-modules-list li[class^="dsm"]:active
16
+ {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
  background: rgba(107, 9, 235, 0.78);
18
  color: #fff;
19
  }
20
+ .et-db #et-boc .et-fb-modules-list li[class^="dsm"],
21
+ .et-db #et-boc .et-l .et-fb-modules-list li[class^="dsm"] {
22
+ background: #6b09eb;
23
+ color: #fff;
24
+ font-size: 10px;
25
+ }
26
+ .et-db #et-boc .et-fb-modules-list li[class^="dsm"]:before,
27
+ .et-db #et-boc .et-l .et-fb-modules-list li[class^="dsm"]:before {
28
+ color: #fff;
29
+ }
30
+ #dsm-vb-footer #page-container {
31
+ padding: 0;
32
+ }
33
 
34
+ #dsm-vb-footer .et_pb_post.dsm_header_footer {
35
+ margin-bottom: 0;
36
  }
readme.txt CHANGED
@@ -1,11 +1,11 @@
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.4
7
  Requires PHP: 5.6
8
- Stable tag: 1.7.7
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.7.7 – 18.10.2019 =
103
  * Fixed: Flipbox Module stacking on top of each other on Divi 4 in Visual Builder.
104
  * Enhanced: Flipbox Module icon and image rendering in Visual Builder.
1
+ === Supreme Modules for Divi ===
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.4
7
  Requires PHP: 5.6
8
+ Stable tag: 1.7.71
9
  License: GPLv2
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
99
 
100
 
101
  == Changelog ==
102
+ = 1.7.71 – 30.10.2019 =
103
+ * Removed: Local development coding in public version.
104
+ * Enhanced: Sanitize, escape, and validate POST calls.
105
+ * Renamed: Plugin/Readme Name.
106
+
107
  = 1.7.7 – 18.10.2019 =
108
  * Fixed: Flipbox Module stacking on top of each other on Divi 4 in Visual Builder.
109
  * Enhanced: Flipbox Module icon and image rendering in Visual Builder.
supreme-modules-for-divi.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /*
3
- Plugin Name: Divi Supreme Modules
4
  Plugin URI: https://suprememodules.com
5
  Description: Divi Supreme enhances the experience and features found on Divi and extend with custom creative modules to help you build amazing websites.
6
- Version: 1.7.7
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.7.7' );
31
  }
32
  if ( ! defined('DSM_SHORTCODE') ) {
33
  define( 'DSM_SHORTCODE', 'divi_shortcode' );
1
  <?php
2
  /*
3
+ Plugin Name: Supreme Modules for Divi
4
  Plugin URI: https://suprememodules.com
5
  Description: Divi Supreme enhances the experience and features found on Divi and extend with custom creative modules to help you build amazing websites.
6
+ Version: 1.7.71
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.7.71' );
31
  }
32
  if ( ! defined('DSM_SHORTCODE') ) {
33
  define( 'DSM_SHORTCODE', 'divi_shortcode' );