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

Version Description

  • 04.02.2019 =
  • Added: Quick links(Settings, Documentation and Get Support) to plugin page.
Download this release

Release Info

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

Code changes from version 1.4.0 to 1.4.1

Files changed (2) hide show
  1. readme.txt +4 -1
  2. supreme-modules-for-divi.php +51 -2
readme.txt CHANGED
@@ -5,7 +5,7 @@ Donate link: https://suprememodules.com/
5
  Requires at least: 4.5
6
  Tested up to: 5.0.3
7
  Requires PHP: 5.6
8
- Stable tag: 1.4.0
9
  License: GPLv2
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -87,6 +87,9 @@ Divi Builder >= version 2.1
87
  PHP version >= 5.6
88
 
89
  == Changelog ==
 
 
 
90
  = 1.4.0 - 31.01.2019 =
91
  * Fixed: Button #2 icon not showing up on frontend for Supreme Module.
92
  * Fixed: Title font-size and header tag not rendering on Visual Builder for Menu module.
5
  Requires at least: 4.5
6
  Tested up to: 5.0.3
7
  Requires PHP: 5.6
8
+ Stable tag: 1.4.1
9
  License: GPLv2
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
87
  PHP version >= 5.6
88
 
89
  == Changelog ==
90
+ = 1.4.1 - 04.02.2019 =
91
+ * Added: Quick links(Settings, Documentation and Get Support) to plugin page.
92
+
93
  = 1.4.0 - 31.01.2019 =
94
  * Fixed: Button #2 icon not showing up on frontend for Supreme Module.
95
  * Fixed: Title font-size and header tag not rendering on Visual Builder for Menu module.
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.0
7
  Author: Supreme Modules
8
  Author URI: https://suprememodules.com/about-us/
9
  License: GPL2
@@ -36,7 +36,7 @@ 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.0' );
40
 
41
  if ( ! function_exists( 'dsm_initialize_extension' ) ):
42
  /**
@@ -91,4 +91,53 @@ if ( version_compare(PHP_VERSION, '5.6', '<') ) {
91
  }
92
  }
93
  endif;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
94
  }
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.1
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.1' );
40
 
41
  if ( ! function_exists( 'dsm_initialize_extension' ) ):
42
  /**
91
  }
92
  }
93
  endif;
94
+
95
+ add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), 'dsm_plugin_action_links', 10, 5 );
96
+
97
+ if ( ! function_exists( 'dsm_plugin_action_links' ) ):
98
+ function dsm_plugin_action_links( $links ) {
99
+ $dsm_go_pro = sprintf(
100
+ __( '<a href="' . esc_url( 'https://divisupreme.com/features/' ) . '"" target="_blank" class="dsm-plugin-gopro">%1$s</a>', 'dsm-supreme-modules-for-divi' ),
101
+ sprintf( '%s', esc_html__( 'Go Pro', 'dsm-supreme-modules-for-divi' ) )
102
+ );
103
+
104
+ $links[] = $dsm_go_pro;
105
+ return $links;
106
+ }
107
+ endif;
108
+
109
+ add_filter( 'plugin_action_links', 'dsm_add_action_plugin', 10, 5 );
110
+
111
+ if ( ! function_exists( 'dsm_add_action_plugin' ) ):
112
+ function dsm_add_action_plugin( $actions, $plugin_file ) {
113
+ static $plugin;
114
+
115
+ if (!isset($plugin))
116
+ $plugin = plugin_basename(__FILE__);
117
+ if ($plugin == $plugin_file) {
118
+ $settings = array('settings' => '<a href="'. esc_url( get_admin_url(null, 'options-general.php?page=divi_supreme_settings') ) .'">' . __('Settings', 'dsm-supreme-modules-for-divi') . '</a>');
119
+
120
+ $actions = array_merge($settings, $actions);
121
+
122
+ }
123
+ return $actions;
124
+ }
125
+ endif;
126
+
127
+ add_filter( 'plugin_row_meta', 'dsm_plugin_row_meta', 10, 2 );
128
+
129
+ if ( ! function_exists( 'dsm_plugin_row_meta' ) ):
130
+ function dsm_plugin_row_meta( $links, $file ) {
131
+ if ( plugin_basename( __FILE__ ) == $file ) {
132
+ $row_meta = array(
133
+ 'docs' => '<a href="' . esc_url( 'https://docs.divisupreme.com/' ) . '" target="_blank" aria-label="' . esc_attr__( 'Divi Supreme Documentation', 'dsm-supreme-modules-for-divi' ) . '">' . esc_html__( 'Documentation', 'dsm-supreme-modules-for-divi' ) . '</a>',
134
+ 'support' => '<a href="' . esc_url( 'https://divisupreme.com/contact/' ) . '" target="_blank" aria-label="' . esc_attr__( 'Get Support', 'dsm-supreme-modules-for-divi' ) . '">' . esc_html__( 'Get Support', 'dsm-supreme-modules-for-divi' ) . '</a>'
135
+ );
136
+
137
+ return array_merge( $links, $row_meta );
138
+ }
139
+ return (array) $links;
140
+ }
141
+ endif;
142
+
143
  }