Shortcodes Ultimate - Version 4.5.3

Version Description

  • Updated some examples
  • Removed import functions. Old versions of plugin (like 3.9.5) is not supported anymore
Download this release

Release Info

Developer gn_themes
Plugin Icon 128x128 Shortcodes Ultimate
Version 4.5.3
Comparing to
See all releases

Code changes from version 4.5.2 to 4.5.3

assets/css/generator.css CHANGED
@@ -24,7 +24,7 @@
24
  vertical-align: middle;
25
  }
26
  .wp-media-buttons .su-generator-button img {
27
- margin: -1px -1px 0 -8px;
28
  vertical-align: middle;
29
  }
30
 
24
  vertical-align: middle;
25
  }
26
  .wp-media-buttons .su-generator-button img {
27
+ margin: -1px -1px 0 -4px;
28
  vertical-align: middle;
29
  }
30
 
inc/core/load.php CHANGED
@@ -139,16 +139,10 @@ class Shortcodes_Ultimate {
139
  __( 'Shortcodes Ultimate', 'su' );
140
  __( 'Vladimir Anokhin', 'su' );
141
  __( 'Supercharge your WordPress theme with mega pack of shortcodes', 'su' );
142
- // Prevent insertion of default options
143
- if ( get_option( 'su_option_skin' ) ) update_option( 'sunrise_defaults_su', true );
144
  // Add plugin actions links
145
  add_filter( 'plugin_action_links_' . plugin_basename( SU_PLUGIN_FILE ), array( __CLASS__, 'actions_links' ), -10 );
146
  // Add plugin meta links
147
  add_filter( 'plugin_row_meta', array( __CLASS__, 'meta_links' ), 10, 2 );
148
- // Import custom CSS from version 3.9.5 and below
149
- add_action( 'admin_init', array( __CLASS__, 'import_395' ) );
150
- // Import settings from versions 4.3.2 and below
151
- add_action( 'admin_init', array( __CLASS__, 'import_432' ) );
152
  // Shortcodes Ultimate is ready
153
  do_action( 'su/init' );
154
  }
@@ -237,63 +231,6 @@ class Shortcodes_Ultimate {
237
  }
238
  return $links;
239
  }
240
-
241
- /**
242
- * Import custom CSS from versions 3.9.5 and below
243
- */
244
- public static function import_395() {
245
- $from_395 = get_option( 'su_custom_css' );
246
- if ( !$from_395 ) return;
247
- $current = get_option( 'su_option_custom-css' );
248
- update_option( 'su_option_custom-css', $from_395 . "\n\n" . $current );
249
- delete_option( 'su_custom_css' );
250
- }
251
-
252
- /**
253
- * Import settings from versions 4.3.2 and below
254
- */
255
- public static function import_432() {
256
- $from_432 = get_option( 'shortcodesultimate_options' );
257
- if ( !$from_432 ) return;
258
- // Custom formatting
259
- if ( isset( $from_432['custom_formatting'] ) ) update_option( 'su_option_custom-formatting', 'on' );
260
- else update_option( 'su_option_custom-formatting', '' );
261
- // Compatibility mode
262
- if ( isset( $from_432['compatibility_mode'] ) ) update_option( 'su_option_compatibility-mode', 'on' );
263
- else update_option( 'su_option_compatibility-mode', '' );
264
- // Skin
265
- if ( isset( $from_432['skin'] ) ) update_option( 'su_option_skin', $from_432['skin'] );
266
- // Skip
267
- if ( isset( $from_432['skip'] ) ) update_option( 'su_option_skip', 'on' );
268
- else update_option( 'su_option_skip', '' );
269
- // Custom CSS
270
- if ( isset( $from_432['custom_css'] ) ) update_option( 'su_option_custom-css', $from_432['custom_css'] );
271
- // Galleries
272
- if ( isset( $from_432['galleries'] ) ) update_option( 'su_option_galleries-432', $from_432['galleries'] );
273
- delete_option( 'shortcodesultimate_options' );
274
- }
275
-
276
- /**
277
- * Import compatibility mode settings from versions 4.4.6 and below
278
- */
279
- public static function import_446() {
280
- $from_395 = get_option( 'su_compatibility_mode_prefix' );
281
- $from_446 = get_option( 'su_option_compatibility-mode' );
282
- $from_450 = get_option( 'su_option_prefix' );
283
- // Check for new prefix first
284
- if ( $from_450 ) return;
285
- // Old prefixes - gn_
286
- if ( $from_395 ) {
287
- update_option( 'su_option_prefix', $from_395 );
288
- }
289
- // New chechbox - ON
290
- elseif ( $from_446 && $from_446 === 'on' ) update_option( 'su_option_prefix', 'su_' );
291
- // New checkbox - OFF
292
- elseif ( $from_446 && $from_446 === '' ) update_option( 'su_option_prefix', '' );
293
- // Remove old options
294
- delete_option( 'su_compatibility_mode_prefix' );
295
- delete_option( 'su_option_compatibility-mode' );
296
- }
297
  }
298
 
299
  /**
139
  __( 'Shortcodes Ultimate', 'su' );
140
  __( 'Vladimir Anokhin', 'su' );
141
  __( 'Supercharge your WordPress theme with mega pack of shortcodes', 'su' );
 
 
142
  // Add plugin actions links
143
  add_filter( 'plugin_action_links_' . plugin_basename( SU_PLUGIN_FILE ), array( __CLASS__, 'actions_links' ), -10 );
144
  // Add plugin meta links
145
  add_filter( 'plugin_row_meta', array( __CLASS__, 'meta_links' ), 10, 2 );
 
 
 
 
146
  // Shortcodes Ultimate is ready
147
  do_action( 'su/init' );
148
  }
231
  }
232
  return $links;
233
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
234
  }
235
 
236
  /**
inc/examples/nested.example CHANGED
@@ -11,9 +11,9 @@
11
  <h2>The same nested shortcodes</h2>
12
 
13
  [%su_spoiler title="Click me to see nested spoilers" style="fancy"]
14
- [%su__spoiler title="Spoiler title"] Spoiler content [_/%su_spoiler]
15
- [%su__spoiler title="Spoiler title"] Spoiler content [_/%su_spoiler]
16
- [%su__spoiler title="Spoiler title"] Spoiler content [_/%su_spoiler]
17
  [/%su_spoiler]
18
 
19
  -----
@@ -22,9 +22,9 @@
22
 
23
  [%su_spoiler title="Click me to see nested accordion" style="fancy"]
24
  [%su_accordion]
25
- [%su__spoiler title="Spoiler title"] Spoiler content [_/%su_spoiler]
26
- [%su__spoiler title="Spoiler title"] Spoiler content [_/%su_spoiler]
27
- [%su__spoiler title="Spoiler title"] Spoiler content [_/%su_spoiler]
28
  [/%su_accordion]
29
  [/%su_spoiler]
30
 
11
  <h2>The same nested shortcodes</h2>
12
 
13
  [%su_spoiler title="Click me to see nested spoilers" style="fancy"]
14
+ [_%su_spoiler title="Spoiler title"] Spoiler content [_/%su_spoiler]
15
+ [_%su_spoiler title="Spoiler title"] Spoiler content [_/%su_spoiler]
16
+ [_%su_spoiler title="Spoiler title"] Spoiler content [_/%su_spoiler]
17
  [/%su_spoiler]
18
 
19
  -----
22
 
23
  [%su_spoiler title="Click me to see nested accordion" style="fancy"]
24
  [%su_accordion]
25
+ [_%su_spoiler title="Spoiler title"] Spoiler content [_/%su_spoiler]
26
+ [_%su_spoiler title="Spoiler title"] Spoiler content [_/%su_spoiler]
27
+ [_%su_spoiler title="Spoiler title"] Spoiler content [_/%su_spoiler]
28
  [/%su_accordion]
29
  [/%su_spoiler]
30
 
inc/examples/posts.example CHANGED
@@ -1,15 +1,15 @@
1
  <h2>List of 5 most popular posts (by comments number)</h2>
2
 
3
- [posts template="templates/list-loop.php" posts_per_page="5" orderby="comment_count"]
4
 
5
  -----
6
 
7
  <h2>Most recent posts as a teasers</h2>
8
 
9
- [posts template="templates/teaser-loop.php" orderby="modified"]
10
 
11
  -----
12
 
13
  <h2>Recent uploaded media file</h2>
14
 
15
- [posts template="templates/single-post.php" post_type="attachment" post_status="any"]
1
  <h2>List of 5 most popular posts (by comments number)</h2>
2
 
3
+ [%su_posts template="templates/list-loop.php" posts_per_page="5" orderby="comment_count"]
4
 
5
  -----
6
 
7
  <h2>Most recent posts as a teasers</h2>
8
 
9
+ [%su_posts template="templates/teaser-loop.php" orderby="modified"]
10
 
11
  -----
12
 
13
  <h2>Recent uploaded media file</h2>
14
 
15
+ [%su_posts template="templates/single-post.php" post_type="attachment" post_status="any"]
readme.txt CHANGED
@@ -95,6 +95,10 @@ Activate plugin at "Plugins" administration page.
95
 
96
  == Changelog ==
97
 
 
 
 
 
98
  = 4.5.2 =
99
  * Updated custom formatting filter
100
  * Updated Japanese translation
95
 
96
  == Changelog ==
97
 
98
+ = 4.5.3 =
99
+ * Updated some examples
100
+ * Removed import functions. Old versions of plugin (like 3.9.5) is not supported anymore
101
+
102
  = 4.5.2 =
103
  * Updated custom formatting filter
104
  * Updated Japanese translation
shortcodes-ultimate.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Shortcodes Ultimate
4
  Plugin URI: http://gndev.info/shortcodes-ultimate/
5
- Version: 4.5.2
6
  Author: Vladimir Anokhin
7
  Author URI: http://gndev.info/
8
  Description: Supercharge your WordPress theme with mega pack of shortcodes
@@ -13,7 +13,7 @@
13
 
14
  // Define plugin file constant
15
  define( 'SU_PLUGIN_FILE', __FILE__ );
16
- define( 'SU_PLUGIN_VERSION', '4.5.1' );
17
  define( 'SU_ENABLE_CACHE', true );
18
 
19
  // Includes
2
  /*
3
  Plugin Name: Shortcodes Ultimate
4
  Plugin URI: http://gndev.info/shortcodes-ultimate/
5
+ Version: 4.5.3
6
  Author: Vladimir Anokhin
7
  Author URI: http://gndev.info/
8
  Description: Supercharge your WordPress theme with mega pack of shortcodes
13
 
14
  // Define plugin file constant
15
  define( 'SU_PLUGIN_FILE', __FILE__ );
16
+ define( 'SU_PLUGIN_VERSION', '4.5.3' );
17
  define( 'SU_ENABLE_CACHE', true );
18
 
19
  // Includes