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

Version Description

14.06.2020 = * Enhanced: Admin menu logo with base64 background image instead of img. * Removed: Divi Supreme logo img file in plugin. * Enhanced: Divi Text Divider Module in Theme Builder where in some cases fonts are not rendering. * Enhanced: Divi Typing Effect Module padding/margin importancy.

Download this release

Release Info

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

Code changes from version 2.2.4 to 2.2.5

admin/img/icon-128x128.png DELETED
Binary file
includes/class.page-settings.php CHANGED
@@ -25,7 +25,8 @@ if ( ! class_exists( 'DSM_Settings' ) ) :
25
  }
26
 
27
  function admin_menu() {
28
- add_menu_page( __( 'Divi Supreme', 'dsm-supreme-modules-for-divi' ), __( 'Divi Supreme', 'dsm-supreme-modules-for-divi' ), 'manage_options', 'divi_supreme_settings', array( $this, 'plugin_page' ), plugins_url( 'supreme-modules-for-divi/admin/img/icon-128x128.png' ), 99 );
 
29
  if ( $this->settings_api->get_option( 'dsm_use_header_footer', 'dsm_general' ) === 'on' ) {
30
  add_submenu_page( 'divi_supreme_settings', __( 'Divi Templates', 'dsm-supreme-modules-for-divi' ), __( 'Divi Templates', 'dsm-supreme-modules-for-divi' ), 'manage_options', 'edit.php?post_type=dsm_header_footer' );
31
  }
25
  }
26
 
27
  function admin_menu() {
28
+ $dsm_plugin_menu_icon = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMy4xNiAyNSI+PGRlZnM+PHN0eWxlPi5jbHMtMXtpc29sYXRpb246aXNvbGF0ZTt9LmNscy0ye2ZpbGw6I2ZmZjt9LmNscy0ze2ZpbGw6IzIzMWYyMDtvcGFjaXR5OjAuMjU7bWl4LWJsZW5kLW1vZGU6bXVsdGlwbHk7fTwvc3R5bGU+PC9kZWZzPjx0aXRsZT5pY29uLTEyOHgxMj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MCwxLC4xMywxLjIyYzAsMy41My0zLjExLDYuNTMtNy40NSw3LjY2YTQuNjEsNC42MSwwLDAsMS0zLjE0LDEuNTEsMTIuNDksMTIuNDksMCwwLDAsOS41OC01LjI0QTYsNiwwLDAsMCwyOC40LDExLjFaIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtNi42NyAtNCkiLz48cGF0aCBjbGFzcz0iY2xzLTMiIGQ9Ik0yMi42Nyw1LjM3YTcuNSw3LjUsMCwwLDAtMS41OC0uMTcsNi43Miw2LjcyLDAsMCwwLTYuOTIsNi4yOWgxQTcuNjgsNy42OCwwLDAsMSwyMi42Nyw1LjM3WiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTYuNjcgLTQpIi8+PC9nPjwvZz48L3N2Zz4=';
29
+ add_menu_page( __( 'Divi Supreme', 'dsm-supreme-modules-for-divi' ), __( 'Divi Supreme', 'dsm-supreme-modules-for-divi' ), 'manage_options', 'divi_supreme_settings', array( $this, 'plugin_page' ), $dsm_plugin_menu_icon, 99 );
30
  if ( $this->settings_api->get_option( 'dsm_use_header_footer', 'dsm_general' ) === 'on' ) {
31
  add_submenu_page( 'divi_supreme_settings', __( 'Divi Templates', 'dsm-supreme-modules-for-divi' ), __( 'Divi Templates', 'dsm-supreme-modules-for-divi' ), 'manage_options', 'edit.php?post_type=dsm_header_footer' );
32
  }
includes/modules/TextDivider/TextDivider.php CHANGED
@@ -12,8 +12,9 @@ class DSM_Text_Divider extends ET_Builder_Module {
12
  );
13
 
14
  public function init() {
15
- $this->name = esc_html__( 'Supreme Text Divider', 'dsm-supreme-modules-for-divi' );
16
- $this->icon = 'd';
 
17
 
18
  $this->settings_modal_toggles = array(
19
  'general' => array(
@@ -45,7 +46,7 @@ class DSM_Text_Divider extends ET_Builder_Module {
45
  'header' => array(
46
  'label' => esc_html__( 'Divider', 'dsm-supreme-modules-for-divi' ),
47
  'css' => array(
48
- 'main' => '%%order_class%% h1.et_pb_module_header, %%order_class%% h2.et_pb_module_header, %%order_class%% h3.et_pb_module_header, %%order_class%% h4.et_pb_module_header, %%order_class%% h5.et_pb_module_header, %%order_class%% h6.et_pb_module_header',
49
  ),
50
  'font_size' => array(
51
  'default' => '22px',
@@ -73,7 +74,7 @@ class DSM_Text_Divider extends ET_Builder_Module {
73
  'use_background_layout' => true,
74
  'use_text_orientation' => false,
75
  'css' => array(
76
- 'text_shadow' => '%%order_class%%',
77
  ),
78
  'options' => array(
79
  'background_layout' => array(
@@ -179,6 +180,7 @@ class DSM_Text_Divider extends ET_Builder_Module {
179
  }
180
 
181
  public function render( $attrs, $content = null, $render_slug ) {
 
182
  $header = $this->props['header'];
183
  $text_alignment = $this->props['text_alignment'];
184
  $color = $this->props['color'];
@@ -187,16 +189,25 @@ class DSM_Text_Divider extends ET_Builder_Module {
187
  $divider_position = $this->props['divider_position'];
188
  $divider_weight = $this->props['divider_weight'];
189
  $text_gap = $this->props['text_gap'];
190
- $background_layout = $this->props['background_layout'];
191
  $header_level = $this->props['header_level'];
 
192
 
193
  $video_background = $this->video_background();
194
  $parallax_image_background = $this->get_parallax_image_background();
195
 
196
  // Module classnames
 
 
 
 
 
197
 
198
  if ( '' !== $header ) {
199
- $header = sprintf( '<%1$s class="dsm-text-divider-header et_pb_module_header">%2$s</%1$s>', et_pb_process_header_level( $header_level, 'h3' ), $header );
 
 
 
 
200
  }
201
 
202
  if ( '' !== $color ) {
@@ -322,7 +333,6 @@ class DSM_Text_Divider extends ET_Builder_Module {
322
  );
323
 
324
  return $output;
325
- //return $this->_render_module_wrapper( $output, $render_slug );
326
  }
327
  }
328
 
12
  );
13
 
14
  public function init() {
15
+ $this->name = esc_html__( 'Supreme Text Divider', 'dsm-supreme-modules-for-divi' );
16
+ $this->icon = 'd';
17
+ $this->main_css_element = '%%order_class%%.dsm_text_divider';
18
 
19
  $this->settings_modal_toggles = array(
20
  'general' => array(
46
  'header' => array(
47
  'label' => esc_html__( 'Divider', 'dsm-supreme-modules-for-divi' ),
48
  'css' => array(
49
+ 'main' => "{$this->main_css_element} .dsm-text-divider-header, {$this->main_css_element} .dsm-text-divider-header a",
50
  ),
51
  'font_size' => array(
52
  'default' => '22px',
74
  'use_background_layout' => true,
75
  'use_text_orientation' => false,
76
  'css' => array(
77
+ 'text_shadow' => "{$this->main_css_element}",
78
  ),
79
  'options' => array(
80
  'background_layout' => array(
180
  }
181
 
182
  public function render( $attrs, $content = null, $render_slug ) {
183
+ $multi_view = et_pb_multi_view_options( $this );
184
  $header = $this->props['header'];
185
  $text_alignment = $this->props['text_alignment'];
186
  $color = $this->props['color'];
189
  $divider_position = $this->props['divider_position'];
190
  $divider_weight = $this->props['divider_weight'];
191
  $text_gap = $this->props['text_gap'];
 
192
  $header_level = $this->props['header_level'];
193
+ $background_layout = $this->props['background_layout'];
194
 
195
  $video_background = $this->video_background();
196
  $parallax_image_background = $this->get_parallax_image_background();
197
 
198
  // Module classnames
199
+ $header = $multi_view->render_element(
200
+ array(
201
+ 'content' => '{{header}}',
202
+ )
203
+ );
204
 
205
  if ( '' !== $header ) {
206
+ $header = sprintf(
207
+ '<%1$s class="dsm-text-divider-header et_pb_module_header">%2$s</%1$s>',
208
+ et_pb_process_header_level( $header_level, 'h3' ),
209
+ et_core_esc_previously( $header )
210
+ );
211
  }
212
 
213
  if ( '' !== $color ) {
333
  );
334
 
335
  return $output;
 
336
  }
337
  }
338
 
includes/modules/TypingEffect/TypingEffect.php CHANGED
@@ -36,7 +36,7 @@ class DSM_TypingEffect extends ET_Builder_Module {
36
 
37
  public function get_advanced_fields_config() {
38
  return array(
39
- 'fonts' => array(
40
  'header' => array(
41
  'label' => esc_html__( 'Main', 'dsm-supreme-modules-for-divi' ),
42
  'css' => array(
@@ -57,7 +57,7 @@ class DSM_TypingEffect extends ET_Builder_Module {
57
  ),
58
  ),
59
  ),
60
- 'text' => array(
61
  'use_text_orientation' => false,
62
  'use_background_layout' => true,
63
  'css' => array(
@@ -70,7 +70,17 @@ class DSM_TypingEffect extends ET_Builder_Module {
70
  ),
71
  'toggle_slug' => 'header',
72
  ),
73
- 'borders' => array(
 
 
 
 
 
 
 
 
 
 
74
  'default' => array(
75
  'css' => array(
76
  'main' => array(
@@ -80,7 +90,7 @@ class DSM_TypingEffect extends ET_Builder_Module {
80
  ),
81
  ),
82
  ),
83
- 'box_shadow' => array(
84
  'default' => array(
85
  'css' => array(
86
  'main' => '%%order_class%%',
36
 
37
  public function get_advanced_fields_config() {
38
  return array(
39
+ 'fonts' => array(
40
  'header' => array(
41
  'label' => esc_html__( 'Main', 'dsm-supreme-modules-for-divi' ),
42
  'css' => array(
57
  ),
58
  ),
59
  ),
60
+ 'text' => array(
61
  'use_text_orientation' => false,
62
  'use_background_layout' => true,
63
  'css' => array(
70
  ),
71
  'toggle_slug' => 'header',
72
  ),
73
+ 'text_shadow' => array(
74
+ // Don't add text-shadow fields since they already are via font-options.
75
+ 'default' => false,
76
+ ),
77
+ 'margin_padding' => array(
78
+ 'css' => array(
79
+ 'main' => "{$this->main_css_element}",
80
+ 'important' => 'all',
81
+ ),
82
+ ),
83
+ 'borders' => array(
84
  'default' => array(
85
  'css' => array(
86
  'main' => array(
90
  ),
91
  ),
92
  ),
93
+ 'box_shadow' => array(
94
  'default' => array(
95
  'css' => array(
96
  'main' => '%%order_class%%',
readme.txt CHANGED
@@ -3,9 +3,9 @@ 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.4.1
7
  Requires PHP: 5.6
8
- Stable tag: 2.2.4
9
  License: GPLv2
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -111,6 +111,12 @@ This is a common question that we get asked here every now and then which is why
111
 
112
 
113
  == Changelog ==
 
 
 
 
 
 
114
  = 2.2.4 – 04.06.2020 =
115
  * Enhanced: Minify Easy Theme Builder for Header CSS and JS files.
116
  * Fixed: Conditional check for Easy Theme Builder for Header when there is no header set in Theme Builder causing frontend JS error.
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.4.2
7
  Requires PHP: 5.6
8
+ Stable tag: 2.2.5
9
  License: GPLv2
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
111
 
112
 
113
  == Changelog ==
114
+ = 2.2.5 – 14.06.2020 =
115
+ * Enhanced: Admin menu logo with base64 background image instead of img.
116
+ * Removed: Divi Supreme logo img file in plugin.
117
+ * Enhanced: Divi Text Divider Module in Theme Builder where in some cases fonts are not rendering.
118
+ * Enhanced: Divi Typing Effect Module padding/margin importancy.
119
+
120
  = 2.2.4 – 04.06.2020 =
121
  * Enhanced: Minify Easy Theme Builder for Header CSS and JS files.
122
  * Fixed: Conditional check for Easy Theme Builder for Header when there is no header set in Theme Builder causing frontend JS error.
supreme-modules-for-divi.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Supreme Modules Lite - Divi Theme, Extra Theme and Divi Builder
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: 2.2.4
7
  * Author: Supreme Modules
8
  * Author URI: https://suprememodules.com/about-us/
9
  * License: GPL2
@@ -34,7 +34,7 @@ if ( ! defined( 'ABSPATH' ) ) {
34
  }
35
 
36
  if ( ! defined( 'DSM_VERSION' ) ) {
37
- define( 'DSM_VERSION', '2.2.4' );
38
  }
39
  if ( ! defined( 'DSM_SHORTCODE' ) ) {
40
  define( 'DSM_SHORTCODE', 'divi_shortcode' );
3
  * Plugin Name: Supreme Modules Lite - Divi Theme, Extra Theme and Divi Builder
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: 2.2.5
7
  * Author: Supreme Modules
8
  * Author URI: https://suprememodules.com/about-us/
9
  * License: GPL2
34
  }
35
 
36
  if ( ! defined( 'DSM_VERSION' ) ) {
37
+ define( 'DSM_VERSION', '2.2.5' );
38
  }
39
  if ( ! defined( 'DSM_SHORTCODE' ) ) {
40
  define( 'DSM_SHORTCODE', 'divi_shortcode' );