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

Version Description

  • 01.03.2019 =
  • Added: Divi Shortcodes Extension.
Download this release

Release Info

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

Code changes from version 1.4.7 to 1.4.8

includes/SupremeModulesLoader.php CHANGED
@@ -720,4 +720,37 @@ if ( dsm_setting_get_option( 'dsm_use_header_footer', 'dsm_general' ) == 'on' )
720
  }
721
  add_action('admin_notices', 'dsm_header_footer_admin_notice');
722
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
723
  //End
720
  }
721
  add_action('admin_notices', 'dsm_header_footer_admin_notice');
722
  }
723
+
724
+ if ( dsm_setting_get_option( 'dsm_use_shortcode', 'dsm_general' ) == 'on' ) {
725
+ if ( ! function_exists( 'dsm_divi_shortcode' ) ) :
726
+ function dsm_divi_shortcode($divi_shortcode = []) {
727
+ if ( empty( $divi_shortcode['id'] ) ) {
728
+ return '';
729
+ }
730
+ return do_shortcode('[et_pb_section global_module="'.$divi_shortcode['id'].'"][/et_pb_section]');
731
+ }
732
+ endif;
733
+ add_shortcode(DSM_SHORTCODE, 'dsm_divi_shortcode');
734
+
735
+ if ( ! function_exists( 'dsm_divi_shortcode_post_columns_header' ) ) :
736
+ function dsm_divi_shortcode_post_columns_header($columns) {
737
+ $columns['shortcode'] = __( 'Shortcode', 'dsm-supreme-modules-for-divi' );
738
+ return $columns;
739
+ }
740
+ endif;
741
+ add_filter('manage_edit-et_pb_layout_columns', 'dsm_divi_shortcode_post_columns_header');
742
+
743
+ if ( ! function_exists( 'dsm_divi_shortcode_post_columns_content' ) ) :
744
+ function dsm_divi_shortcode_post_columns_content($column_name) {
745
+ global $post;
746
+ switch ($column_name) {
747
+ case 'shortcode':
748
+ $shortcode = esc_attr( sprintf( '[%s id="%d"]', DSM_SHORTCODE, $post->ID ) );
749
+ printf( '<input class="dsm-shortcode-input" type="text" readonly onfocus="this.select()" value="%s" style="width:100%%" />', $shortcode );
750
+ break;
751
+ }
752
+ }
753
+ endif;
754
+ add_action('manage_et_pb_layout_posts_custom_column', 'dsm_divi_shortcode_post_columns_content');
755
+ }
756
  //End
includes/class.page-settings.php CHANGED
@@ -79,6 +79,14 @@ class DSM_Settings {
79
  'type' => 'checkbox',
80
  'default' => 'off'
81
  ),
 
 
 
 
 
 
 
 
82
  ),
83
  /*
84
  'dsm_advanced' => array(
79
  'type' => 'checkbox',
80
  'default' => 'off'
81
  ),
82
+ array(
83
+ 'name' => 'dsm_use_shortcode',
84
+ 'class' => 'dsm-settings-checkbox',
85
+ 'label' => __( 'Enable Divi Shortcodes', 'dsm-supreme-modules-for-divi' ),
86
+ 'desc' => __( '<span class="slider round"></span>', 'dsm-supreme-modules-for-divi' ),
87
+ 'type' => 'checkbox',
88
+ 'default' => 'off'
89
+ ),
90
  ),
91
  /*
92
  'dsm_advanced' => array(
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.7
9
  License: GPLv2
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -35,7 +35,8 @@ Divi Supreme contains 14 Divi custom modules and more to come soon.
35
  Divi Supreme Extentions
36
 
37
  - Scheduled Content Visibility - This will extend the Visibility option in the the Section/Row's custom setting to allow you to show or hide the section or row with a specify date/time.
38
- - Divi Templates - Designing Divi's footer or 404 page is one of the most challenging thing ever. Without programming background knowledgde, you have to deal with time and the learning process. But with Divi Templates, now you can design your footer or 404 page using Visual Builder and assign them. As easy as that, No coding required. Don't spend time finding those layout global module ID because you don't have to. Just 2 easy steps: Create a Template using Visual Builder, then assign them to footer/404. That's it! Save time = Smarter.
 
39
 
40
  Many more Divi Modules and Extensions coming soon...
41
 
@@ -87,6 +88,9 @@ Divi Builder >= version 2.1
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.
5
  Requires at least: 4.5
6
  Tested up to: 5.1
7
  Requires PHP: 5.6
8
+ Stable tag: 1.4.8
9
  License: GPLv2
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
35
  Divi Supreme Extentions
36
 
37
  - Scheduled Content Visibility - This will extend the Visibility option in the the Section/Row's custom setting to allow you to show or hide the section or row with a specify date/time.
38
+ - Divi Templates - Designing Divi's footer or 404 page is one of the most challenging thing ever. Without programming background knowledgde, you have to deal with time and the learning process. But with Divi Templates, now you can design your footer or 404 page using Visual Builder and assign them. As easy as that, No coding required. Don't spend time finding those layout global module ID because you don't have to. Just 2 easy steps: Create a Template using Visual Builder, then assign them to footer/404. That's it! Save time = Smarter.
39
+ - Divi Shortcodes - This will add a shortcode column in the Divi Library. Use that Divi shortcode to display your layout in any Divi module or even your PHP file by using [divi_shortcode id=""].
40
 
41
  Many more Divi Modules and Extensions coming soon...
42
 
88
  PHP version >= 5.6
89
 
90
  == Changelog ==
91
+ = 1.4.8 - 01.03.2019 =
92
+ * Added: Divi Shortcodes Extension.
93
+
94
  = 1.4.7 - 27.02.2019 =
95
  * Removed: CSS Class on 404 template.
96
  * Improved: Footer Template output.
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.7
7
  Author: Supreme Modules
8
  Author URI: https://suprememodules.com/about-us/
9
  License: GPL2
@@ -36,7 +36,8 @@ 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.7' );
 
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.8
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.8' );
40
+ define( 'DSM_SHORTCODE', 'divi_shortcode' );
41
 
42
  if ( ! function_exists( 'dsm_initialize_extension' ) ):
43
  /**