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

Version Description

  • 01.11.2018 =
  • Added: PHP version check because some users are still using very old PHP version for some reason.
  • Fixed: Flipbox Module wrong css classes.
Download this release

Release Info

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

Code changes from version 1.2.4 to 1.2.5

includes/modules/FlipBoxPerkChild/FlipBoxPerkChild.php CHANGED
@@ -512,7 +512,7 @@ class DSM_FlipBox_Perk_Child extends ET_Builder_Module {
512
  $image_max_width = '100%';
513
  }
514
 
515
- $image_max_width_selector = $icon_placement === 'top' && $is_image_svg ? '%%order_class%% .et_pb_main_blurb_image' : '%%order_class%% .et_pb_main_blurb_image .et_pb_image_wrap';
516
  $image_max_width_property = ( $is_image_svg || $is_size_px ) ? 'width' : 'max-width';
517
 
518
  $image_max_width_responsive_active = et_pb_get_responsive_status( $image_max_width_last_edited );
512
  $image_max_width = '100%';
513
  }
514
 
515
+ $image_max_width_selector = $icon_placement === 'top' && $is_image_svg ? '%%order_class%% .dsm_flipbox_child_image' : '%%order_class%% .dsm_flipbox_child_image .dsm_flipbox_child_image_wrap';
516
  $image_max_width_property = ( $is_image_svg || $is_size_px ) ? 'width' : 'max-width';
517
 
518
  $image_max_width_responsive_active = et_pb_get_responsive_status( $image_max_width_last_edited );
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.2.4
9
  License: GPLv2
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -81,6 +81,10 @@ You must have Divi theme, Extra Theme or the Divi Builder installed in order for
81
  YES! At least Divi 3.1 onwards where they introduced the Divi Developer API.
82
 
83
  == Changelog ==
 
 
 
 
84
  = 1.2.4 - 26.10.2018 =
85
  * Fixed: Scheduled Content Visibility hide feature not working.
86
 
5
  Requires at least: 4.5
6
  Tested up to: 4.9
7
  Requires PHP: 5.6
8
+ Stable tag: 1.2.5
9
  License: GPLv2
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
81
  YES! At least Divi 3.1 onwards where they introduced the Divi Developer API.
82
 
83
  == Changelog ==
84
+ = 1.2.5 - 01.11.2018 =
85
+ * Added: PHP version check because some users are still using very old PHP version for some reason.
86
+ * Fixed: Flipbox Module wrong css classes.
87
+
88
  = 1.2.4 - 26.10.2018 =
89
  * Fixed: Scheduled Content Visibility hide feature not working.
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.2.4
7
  Author: Supreme Modules
8
  Author URI: https://suprememodules.com/about-us/
9
  License: GPL2
@@ -24,36 +24,49 @@ 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.2.4' );
28
-
29
- if ( ! function_exists( 'dsm_initialize_extension' ) ):
30
- /**
31
- * Creates the extension's main class instance.
32
- *
33
- * @since 1.0.0
34
- */
35
- function dsm_initialize_extension() {
36
- require_once plugin_dir_path( __FILE__ ) . 'includes/SupremeModulesForDivi.php';
37
- }
38
- add_action( 'divi_extensions_init', 'dsm_initialize_extension' );
39
- endif;
40
-
41
- require_once plugin_dir_path( __FILE__ ) . 'includes/SupremeModulesLoader.php';
42
-
43
- function dsm_scripts(){
44
- wp_register_script('dsm-typed', plugin_dir_url( __FILE__ ) . 'assets/js/typed.min.js', array(), DSM_VERSION, true );
45
- wp_register_script('dsm-facebook', plugin_dir_url( __FILE__ ) . 'assets/js/dsm-facebook.js', array(), DSM_VERSION, true );
46
- wp_register_script('dsm-twitter-embed', 'https://platform.twitter.com/widgets.js', array(), DSM_VERSION, true );
47
- if ( et_core_is_fb_enabled() ) {
48
- wp_enqueue_style('dsm-et-admin', plugin_dir_url( __FILE__ ) . 'assets/css/dsm-et-admin.css' );
49
- wp_register_script('dsm-header-footer', plugin_dir_url( __FILE__ ) . 'assets/js/dsm-header-footer.js', array(), DSM_VERSION, true );
50
- }
51
- }
52
-
53
- add_action('wp_enqueue_scripts', 'dsm_scripts');
54
-
55
- function load_custom_wp_admin_style() {
56
- wp_enqueue_style('dsm-plugin', plugin_dir_url( __FILE__ ) . 'assets/css/dsm-plugin.css' );
57
- }
58
-
59
- add_action('admin_enqueue_scripts', 'load_custom_wp_admin_style');
 
 
 
 
 
 
 
 
 
 
 
 
 
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.5
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
+ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
28
+
29
+ if ( version_compare(PHP_VERSION, '5.6', '<') ) {
30
+ function dsm_admin_notice__php_version_error() { ?>
31
+ <div class="notice notice-error">
32
+ <p><?php _e( "Goodness! Your PHP version is either too old or not recommended to use Divi Supreme! We are not going to load anything on your WordPress unless you update your PHP. Do you know by using Divi Supreme, you can create even more stunning and amazing site with it? Learn more about the WordPress requirements <a href='https://wordpress.org/about/requirements/'>here</a>.<br><br>Current PHP version is: <span style='color:red; font-weight: bold;'>" . PHP_VERSION . "</span><br><span style='color:green; font-weight: bold;''>Recommended PHP version</span>: 7 and above but 5.6 is fine too but why use an older version? Unless you're not living in the future.", 'dsm-supreme-modules-pro-for-divi' ); ?></p>
33
+ </div>
34
+ <?php
35
+ }
36
+ add_action( 'admin_notices', 'dsm_admin_notice__php_version_error' );
37
+ return;
38
+ } else {
39
+ define( 'DSM_VERSION', '1.2.5' );
40
+
41
+ if ( ! function_exists( 'dsm_initialize_extension' ) ):
42
+ /**
43
+ * Creates the extension's main class instance.
44
+ *
45
+ * @since 1.0.0
46
+ */
47
+ function dsm_initialize_extension() {
48
+ require_once plugin_dir_path( __FILE__ ) . 'includes/SupremeModulesForDivi.php';
49
+ }
50
+ add_action( 'divi_extensions_init', 'dsm_initialize_extension' );
51
+ endif;
52
+
53
+ require_once plugin_dir_path( __FILE__ ) . 'includes/SupremeModulesLoader.php';
54
+
55
+ function dsm_scripts(){
56
+ wp_register_script('dsm-typed', plugin_dir_url( __FILE__ ) . 'assets/js/typed.min.js', array(), DSM_VERSION, true );
57
+ wp_register_script('dsm-facebook', plugin_dir_url( __FILE__ ) . 'assets/js/dsm-facebook.js', array(), DSM_VERSION, true );
58
+ wp_register_script('dsm-twitter-embed', 'https://platform.twitter.com/widgets.js', array(), DSM_VERSION, true );
59
+ if ( et_core_is_fb_enabled() ) {
60
+ wp_enqueue_style('dsm-et-admin', plugin_dir_url( __FILE__ ) . 'assets/css/dsm-et-admin.css' );
61
+ wp_register_script('dsm-header-footer', plugin_dir_url( __FILE__ ) . 'assets/js/dsm-header-footer.js', array(), DSM_VERSION, true );
62
+ }
63
+ }
64
+
65
+ add_action('wp_enqueue_scripts', 'dsm_scripts');
66
+
67
+ function load_custom_wp_admin_style() {
68
+ wp_enqueue_style('dsm-plugin', plugin_dir_url( __FILE__ ) . 'assets/css/dsm-plugin.css' );
69
+ }
70
+
71
+ add_action('admin_enqueue_scripts', 'load_custom_wp_admin_style');
72
+ }