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

Version Description

  • 15.10.2018 =
  • Enhanced: Footer template embed on Visual Builder option will not show up when designing footer with Visual Builder.
  • Changed: Notify first time user to re-save their WordPress permalinks before using Footer template.
  • Renamed: text-domain for Supreme Menu Module.
Download this release

Release Info

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

Code changes from version 1.1.9 to 1.2.0

includes/SupremeModulesLoader.php CHANGED
@@ -639,7 +639,9 @@ if ( dsm_setting_get_option( 'dsm_use_header_footer', 'dsm_general' ) == 'on' )
639
 
640
  if ( $footer_template_vb['dsm-embed-footer-in-vb'][0] == 'yes' ) {
641
  if ( et_core_is_fb_enabled() ) {
642
- wp_enqueue_script('dsm-header-footer');
 
 
643
  }
644
  }
645
  }
@@ -652,7 +654,7 @@ if ( dsm_setting_get_option( 'dsm_use_header_footer', 'dsm_general' ) == 'on' )
652
 
653
  if ( $current_screen->post_type === 'dsm_header_footer' ) { ?>
654
  <div class="notice notice-info">
655
- <p><?php _e( 'Notice: This will only work for the Divi Theme. Once ElegantThemes updated their Template Hook on Extra Theme, this feature will also be available. Currently only the footer template is available you. Please create one template and assign to the footer. If you do not see Divi Builder here, remember to <a href="'. get_admin_url() .'/admin.php?page=et_divi_options#wrap-builder" target="_blank">Enable Divi Builder On Post Types</a> in the Divi Options.', 'dsm-supreme-modules-for-divi' ); ?></p>
656
  </div>
657
  <?php }
658
  }
639
 
640
  if ( $footer_template_vb['dsm-embed-footer-in-vb'][0] == 'yes' ) {
641
  if ( et_core_is_fb_enabled() ) {
642
+ if ( 'dsm_header_footer' !== get_post_type( get_the_ID() ) ) {
643
+ wp_enqueue_script('dsm-header-footer');
644
+ }
645
  }
646
  }
647
  }
654
 
655
  if ( $current_screen->post_type === 'dsm_header_footer' ) { ?>
656
  <div class="notice notice-info">
657
+ <p><?php _e( 'Notice: For first time user, please re-save your <a href="'. get_admin_url() .'options-permalink.php" target="_blank">Permalinks</a> again to flush the rewrite rules in order view them in Visual Builder. This will only work for the Divi Theme. Once ElegantThemes updated their Template Hook on Extra Theme, this feature will also be available. Currently only the footer template is available you. Please create one template and assign to the footer. If you do not see Divi Builder here, remember to <a href="'. get_admin_url() .'admin.php?page=et_divi_options#wrap-builder" target="_blank">Enable Divi Builder On Post Types</a> in the Divi Options.', 'dsm-supreme-modules-for-divi' ); ?></p>
658
  </div>
659
  <?php }
660
  }
includes/modules/Menu/Menu.php CHANGED
@@ -51,7 +51,7 @@ class DSM_NavMenu extends ET_Builder_Module {
51
  ),
52
  ),
53
  'menu' => array(
54
- 'label' => esc_html__( 'Menu', 'et_builder' ),
55
  'css' => array(
56
  'main' => '%%order_class%% ul.dsm-menu li a',
57
  'plugin_main' => '%%order_class%% ul.dsm-menu li a'
@@ -105,14 +105,14 @@ class DSM_NavMenu extends ET_Builder_Module {
105
  $et_accent_color = et_builder_accent_color();
106
  return array(
107
  'title' => array(
108
- 'label' => esc_html__( 'Menu Title', 'et_builder' ),
109
  'type' => 'text',
110
  'option_category' => 'basic_option',
111
- 'description' => esc_html__( 'The title will appear above the menu.', 'et_builder' ),
112
  'toggle_slug' => 'main_content',
113
  ),
114
  'title_bottom_gap' => array(
115
- 'label' => esc_html__( 'Bottom Gap', 'et_builder' ),
116
  'type' => 'range',
117
  'option_category' => 'layout',
118
  'mobile_options' => true,
@@ -123,15 +123,15 @@ class DSM_NavMenu extends ET_Builder_Module {
123
  'default' => '10px',
124
  ),
125
  'menu_id' => array(
126
- 'label' => esc_html__( 'Menu', 'et_builder' ),
127
  'type' => 'select',
128
  'option_category' => 'basic_option',
129
  'options' => et_builder_get_nav_menus_options(),
130
  'description' => sprintf(
131
  '<p class="description">%2$s. <a href="%1$s" target="_blank">%3$s</a>.</p>',
132
  esc_url( admin_url( 'nav-menus.php' ) ),
133
- esc_html__( 'Select a menu that should be used in the module', 'et_builder' ),
134
- esc_html__( 'Click here to create new menu', 'et_builder' )
135
  ),
136
  'toggle_slug' => 'main_content',
137
  'computed_affects' => array(
@@ -139,7 +139,7 @@ class DSM_NavMenu extends ET_Builder_Module {
139
  ),
140
  ),
141
  'menu_link_text_color' => array(
142
- 'label' => esc_html__( 'Menu Link Color', 'et_builder' ),
143
  'type' => 'color-alpha',
144
  'custom_color' => true,
145
  'tab_slug' => 'advanced',
@@ -147,15 +147,15 @@ class DSM_NavMenu extends ET_Builder_Module {
147
  'hover' => 'tabs',
148
  ),
149
  'list_style_type' => array(
150
- 'label' => esc_html__( 'List Style Type', 'et_builder' ),
151
  'type' => 'select',
152
  'option_category' => 'layout',
153
  'options' => array(
154
- 'none' => esc_html__( 'None', 'et_builder' ),
155
- 'disc' => esc_html__( 'Disc', 'et_builder' ),
156
- 'circle' => esc_html__( 'Circle', 'et_builder' ),
157
- 'decimal' => esc_html__( 'Decimal', 'et_builder' ),
158
- 'square' => esc_html__( 'Square', 'et_builder' ),
159
  ),
160
  'default_on_front' => 'disc',
161
  'tab_slug' => 'advanced',
@@ -239,7 +239,7 @@ class DSM_NavMenu extends ET_Builder_Module {
239
  ? sprintf( '<li%1$s><a href="%2$s">%3$s</a></li>',
240
  ( is_home() ? ' class="current_page_item"' : '' ),
241
  esc_url( home_url( '/' ) ),
242
- esc_html__( 'Home', 'et_builder' )
243
  )
244
  : ''
245
  )
51
  ),
52
  ),
53
  'menu' => array(
54
+ 'label' => esc_html__( 'Menu', 'dsm-supreme-modules-for-divi' ),
55
  'css' => array(
56
  'main' => '%%order_class%% ul.dsm-menu li a',
57
  'plugin_main' => '%%order_class%% ul.dsm-menu li a'
105
  $et_accent_color = et_builder_accent_color();
106
  return array(
107
  'title' => array(
108
+ 'label' => esc_html__( 'Menu Title', 'dsm-supreme-modules-for-divi' ),
109
  'type' => 'text',
110
  'option_category' => 'basic_option',
111
+ 'description' => esc_html__( 'The title will appear above the menu.', 'dsm-supreme-modules-for-divi' ),
112
  'toggle_slug' => 'main_content',
113
  ),
114
  'title_bottom_gap' => array(
115
+ 'label' => esc_html__( 'Bottom Gap', 'dsm-supreme-modules-for-divi' ),
116
  'type' => 'range',
117
  'option_category' => 'layout',
118
  'mobile_options' => true,
123
  'default' => '10px',
124
  ),
125
  'menu_id' => array(
126
+ 'label' => esc_html__( 'Menu', 'dsm-supreme-modules-for-divi' ),
127
  'type' => 'select',
128
  'option_category' => 'basic_option',
129
  'options' => et_builder_get_nav_menus_options(),
130
  'description' => sprintf(
131
  '<p class="description">%2$s. <a href="%1$s" target="_blank">%3$s</a>.</p>',
132
  esc_url( admin_url( 'nav-menus.php' ) ),
133
+ esc_html__( 'Select a menu that should be used in the module', 'dsm-supreme-modules-for-divi' ),
134
+ esc_html__( 'Click here to create new menu', 'dsm-supreme-modules-for-divi' )
135
  ),
136
  'toggle_slug' => 'main_content',
137
  'computed_affects' => array(
139
  ),
140
  ),
141
  'menu_link_text_color' => array(
142
+ 'label' => esc_html__( 'Menu Link Color', 'dsm-supreme-modules-for-divi' ),
143
  'type' => 'color-alpha',
144
  'custom_color' => true,
145
  'tab_slug' => 'advanced',
147
  'hover' => 'tabs',
148
  ),
149
  'list_style_type' => array(
150
+ 'label' => esc_html__( 'List Style Type', 'dsm-supreme-modules-for-divi' ),
151
  'type' => 'select',
152
  'option_category' => 'layout',
153
  'options' => array(
154
+ 'none' => esc_html__( 'None', 'dsm-supreme-modules-for-divi' ),
155
+ 'disc' => esc_html__( 'Disc', 'dsm-supreme-modules-for-divi' ),
156
+ 'circle' => esc_html__( 'Circle', 'dsm-supreme-modules-for-divi' ),
157
+ 'decimal' => esc_html__( 'Decimal', 'dsm-supreme-modules-for-divi' ),
158
+ 'square' => esc_html__( 'Square', 'dsm-supreme-modules-for-divi' ),
159
  ),
160
  'default_on_front' => 'disc',
161
  'tab_slug' => 'advanced',
239
  ? sprintf( '<li%1$s><a href="%2$s">%3$s</a></li>',
240
  ( is_home() ? ' class="current_page_item"' : '' ),
241
  esc_url( home_url( '/' ) ),
242
+ esc_html__( 'Home', 'dsm-supreme-modules-for-divi' )
243
  )
244
  : ''
245
  )
readme.txt CHANGED
@@ -5,7 +5,7 @@ Donate link: https://suprememodules.com/
5
  Requires at least: 4.5
6
  Tested up to: 4.9
7
  Requires PHP: 5.6
8
- Stable tag: 1.1.9
9
  License: GPLv2
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -80,6 +80,11 @@ You must have Divi theme, Extra Theme or the Divi Builder installed in order for
80
  YES! At least Divi 3.1 onwards where they introduced the Divi Developer API.
81
 
82
  == Changelog ==
 
 
 
 
 
83
  = 1.1.9 - 15.10.2018 =
84
  * Added: Supreme Menu Module.
85
 
5
  Requires at least: 4.5
6
  Tested up to: 4.9
7
  Requires PHP: 5.6
8
+ Stable tag: 1.2.0
9
  License: GPLv2
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
80
  YES! At least Divi 3.1 onwards where they introduced the Divi Developer API.
81
 
82
  == Changelog ==
83
+ = 1.2.0 - 15.10.2018 =
84
+ * Enhanced: Footer template embed on Visual Builder option will not show up when designing footer with Visual Builder.
85
+ * Changed: Notify first time user to re-save their WordPress permalinks before using Footer template.
86
+ * Renamed: text-domain for Supreme Menu Module.
87
+
88
  = 1.1.9 - 15.10.2018 =
89
  * Added: Supreme Menu Module.
90
 
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.1.9
7
  Author: Supreme Modules
8
  Author URI: https://suprememodules.com/about-us/
9
  License: GPL2
@@ -24,7 +24,7 @@ GNU General Public License for more details.
24
  You should have received a copy of the GNU General Public License
25
  along with Supreme Modules. If not, see https://www.gnu.org/licenses/gpl-2.0.html.
26
  */
27
- define( 'DSM_VERSION', '1.1.9' );
28
 
29
  if ( ! function_exists( 'dsm_initialize_extension' ) ):
30
  /**
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.2.0
7
  Author: Supreme Modules
8
  Author URI: https://suprememodules.com/about-us/
9
  License: GPL2
24
  You should have received a copy of the GNU General Public License
25
  along with Supreme Modules. If not, see https://www.gnu.org/licenses/gpl-2.0.html.
26
  */
27
+ define( 'DSM_VERSION', '1.2.0' );
28
 
29
  if ( ! function_exists( 'dsm_initialize_extension' ) ):
30
  /**