Shortcodes Ultimate - Version 5.9.4

Version Description

Download this release

Release Info

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

Code changes from version 5.9.3 to 5.9.4

admin/partials/help/addons.php CHANGED
@@ -1,8 +1,5 @@
1
  <?php defined( 'ABSPATH' ) or exit; ?>
2
 
3
  <ul>
4
- <li><a href="https://getshortcodes.com/docs/how-to-install-add-on/" target="_blank"><?php _e( 'How to install add-on', 'shortcodes-ultimate' ); ?></a></li>
5
- <li><a href="https://getshortcodes.com/docs/updating-premium-add-ons/" target="_blank"><?php _e( 'How to get updates', 'shortcodes-ultimate' ); ?></a></li>
6
- <li><a href="https://getshortcodes.com/docs/how-to-activate-a-license-key/" target="_blank"><?php _e( 'How to activate license key', 'shortcodes-ultimate' ); ?></a></li>
7
- <li><a href="https://getshortcodes.com/docs/#addons" target="_blank"><?php _e( 'Full add-ons documentation', 'shortcodes-ultimate' ); ?></a></li>
8
  </ul>
1
  <?php defined( 'ABSPATH' ) or exit; ?>
2
 
3
  <ul>
4
+ <li><a href="https://getshortcodes.com/docs-category/addons/" target="_blank"><?php _e( 'Full add-ons documentation', 'shortcodes-ultimate' ); ?></a></li>
 
 
 
5
  </ul>
admin/partials/help/settings.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php defined( 'ABSPATH' ) or exit; ?>
2
 
3
  <ul>
4
- <li><a href="https://getshortcodes.com/docs/#getting-started" target="_blank"><?php _e( 'Getting started', 'shortcodes-ultimate' ); ?></a></li>
5
  <li><a href="https://getshortcodes.com/docs/plugin-settings-overview/" target="_blank"><?php _e( 'Plugin settings overview', 'shortcodes-ultimate' ); ?></a></li>
6
  <li><a href="https://getshortcodes.com/docs/how-to-use-custom-css-editor/" target="_blank"><?php _e( 'How to use Custom CSS editor', 'shortcodes-ultimate' ); ?></a></li>
7
  </ul>
1
  <?php defined( 'ABSPATH' ) or exit; ?>
2
 
3
  <ul>
4
+ <li><a href="https://getshortcodes.com/docs-category/getting-started/" target="_blank"><?php _e( 'Getting started', 'shortcodes-ultimate' ); ?></a></li>
5
  <li><a href="https://getshortcodes.com/docs/plugin-settings-overview/" target="_blank"><?php _e( 'Plugin settings overview', 'shortcodes-ultimate' ); ?></a></li>
6
  <li><a href="https://getshortcodes.com/docs/how-to-use-custom-css-editor/" target="_blank"><?php _e( 'How to use Custom CSS editor', 'shortcodes-ultimate' ); ?></a></li>
7
  </ul>
admin/partials/help/shortcodes.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php defined( 'ABSPATH' ) or exit; ?>
2
 
3
  <ul>
4
- <li><a href="https://getshortcodes.com/docs/#getting-started" target="_blank"><strong><?php _e( 'Getting started', 'shortcodes-ultimate' ); ?></strong></a></li>
5
  <li><a href="https://getshortcodes.com/docs/" target="_blank"><?php _e( 'Full documentation', 'shortcodes-ultimate' ); ?></a></li>
6
  <li><a href="https://getshortcodes.com/support/" target="_blank"><?php _e( 'FAQ & Support', 'shortcodes-ultimate' ); ?></a></li>
7
  </ul>
1
  <?php defined( 'ABSPATH' ) or exit; ?>
2
 
3
  <ul>
4
+ <li><a href="https://getshortcodes.com/docs-category/getting-started/" target="_blank"><strong><?php _e( 'Getting started', 'shortcodes-ultimate' ); ?></strong></a></li>
5
  <li><a href="https://getshortcodes.com/docs/" target="_blank"><?php _e( 'Full documentation', 'shortcodes-ultimate' ); ?></a></li>
6
  <li><a href="https://getshortcodes.com/support/" target="_blank"><?php _e( 'FAQ & Support', 'shortcodes-ultimate' ); ?></a></li>
7
  </ul>
changelog.txt CHANGED
@@ -1,3 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
  ### 5.9.2
2
 
3
  **What's new**
1
+ ### 5.9.3
2
+
3
+ **What's new**
4
+
5
+ - New option `anchor_in_url` for `[su_tabs]` and `[su_spoiler]`. This option specifies whether an anchor will be added to page URL after clicking a tab or a spoiler.
6
+ - New option `random` for `[su_image_carousel]` which allows to shuffle carousel images
7
+
8
+ **Fixes**
9
+
10
+ - Fixed issue in `[su_image_carousel]` where images were hidden on some themes
11
+
12
+
13
  ### 5.9.2
14
 
15
  **What's new**
includes/functions-galleries.php CHANGED
@@ -50,6 +50,7 @@ function su_get_gallery_slides( $atts ) {
50
  : get_the_title( $post->ID );
51
 
52
  $slide = array(
 
53
  'attachment_id' => intval( $attachment_id ),
54
  'caption' => trim( $caption ),
55
  );
@@ -84,6 +85,8 @@ function su_get_gallery_slides( $atts ) {
84
 
85
  }
86
 
 
 
87
  return $slides;
88
 
89
  }
50
  : get_the_title( $post->ID );
51
 
52
  $slide = array(
53
+ 'post_id' => $post->ID,
54
  'attachment_id' => intval( $attachment_id ),
55
  'caption' => trim( $caption ),
56
  );
85
 
86
  }
87
 
88
+ $slides = apply_filters( 'su/get_gallery_slides/slides', $slides, $atts );
89
+
90
  return $slides;
91
 
92
  }
includes/shortcodes/dropcap.php CHANGED
@@ -50,8 +50,7 @@ function su_shortcode_dropcap( $atts = null, $content = null ) {
50
 
51
  $atts['style'] = str_replace( array( '1', '2', '3' ), array( 'default', 'light', 'default' ), $atts['style'] ); // 3.x
52
 
53
- // Calculate font-size
54
- $em = $atts['size'] * 0.5 . 'em';
55
 
56
  su_query_asset( 'css', 'su-shortcodes' );
57
 
50
 
51
  $atts['style'] = str_replace( array( '1', '2', '3' ), array( 'default', 'light', 'default' ), $atts['style'] ); // 3.x
52
 
53
+ $em = intval( $atts['size'] ) * 0.5 . 'em';
 
54
 
55
  su_query_asset( 'css', 'su-shortcodes' );
56
 
includes/shortcodes/service.php CHANGED
@@ -90,6 +90,6 @@ function su_shortcode_service( $atts = null, $content = null ) {
90
 
91
  su_query_asset( 'css', 'su-shortcodes' );
92
 
93
- return '<div class="su-service' . su_get_css_class( $atts ) . '"><div class="su-service-title" style="padding-' . $rtl . ':' . round( $atts['size'] + 14 ) . 'px;min-height:' . $atts['size'] . 'px;line-height:' . $atts['size'] . 'px">' . $atts['icon'] . ' ' . su_do_attribute( $atts['title'] ) . '</div><div class="su-service-content su-u-clearfix su-u-trim" style="padding-' . $rtl . ':' . round( $atts['size'] + 14 ) . 'px">' . do_shortcode( $content ) . '</div></div>';
94
 
95
  }
90
 
91
  su_query_asset( 'css', 'su-shortcodes' );
92
 
93
+ return '<div class="su-service' . su_get_css_class( $atts ) . '"><div class="su-service-title" style="padding-' . $rtl . ':' . round( intval( $atts['size'] ) + 14 ) . 'px;min-height:' . $atts['size'] . 'px;line-height:' . $atts['size'] . 'px">' . $atts['icon'] . ' ' . su_do_attribute( $atts['title'] ) . '</div><div class="su-service-content su-u-clearfix su-u-trim" style="padding-' . $rtl . ':' . round( intval( $atts['size'] ) + 14 ) . 'px">' . do_shortcode( $content ) . '</div></div>';
94
 
95
  }
languages/shortcodes-ultimate.pot CHANGED
@@ -174,7 +174,7 @@ msgstr ""
174
  msgid "Available shortcodes"
175
  msgstr ""
176
 
177
- #: admin/class-shortcodes-ultimate-admin-shortcodes.php:88, admin/class-shortcodes-ultimate-admin-top-level.php:39, admin/class-shortcodes-ultimate-admin.php:267, includes/functions-galleries.php:294, inc/core/widget.php:14, inc/core/widget.php:40, admin/partials/help/sidebar.php:3
178
  msgid "Shortcodes Ultimate"
179
  msgstr ""
180
 
@@ -272,15 +272,15 @@ msgstr ""
272
  msgid "Shortcodes Ultimate is not activated, because it requires WordPress version %1$s (or higher). You have version %2$s."
273
  msgstr ""
274
 
275
- #: includes/functions-galleries.php:255
276
  msgid "Original image size"
277
  msgstr ""
278
 
279
- #: includes/functions-galleries.php:289
280
  msgid "Slide link"
281
  msgstr ""
282
 
283
- #: includes/functions-galleries.php:295
284
  msgid "Use this field to add custom links to slides used with Slider, Carousel and Custom Gallery shortcodes"
285
  msgstr ""
286
 
@@ -3900,18 +3900,6 @@ msgid "Details & Pricing"
3900
  msgstr ""
3901
 
3902
  #: admin/partials/help/addons.php:4
3903
- msgid "How to install add-on"
3904
- msgstr ""
3905
-
3906
- #: admin/partials/help/addons.php:5
3907
- msgid "How to get updates"
3908
- msgstr ""
3909
-
3910
- #: admin/partials/help/addons.php:6
3911
- msgid "How to activate license key"
3912
- msgstr ""
3913
-
3914
- #: admin/partials/help/addons.php:7
3915
  msgid "Full add-ons documentation"
3916
  msgstr ""
3917
 
174
  msgid "Available shortcodes"
175
  msgstr ""
176
 
177
+ #: admin/class-shortcodes-ultimate-admin-shortcodes.php:88, admin/class-shortcodes-ultimate-admin-top-level.php:39, admin/class-shortcodes-ultimate-admin.php:267, includes/functions-galleries.php:297, inc/core/widget.php:14, inc/core/widget.php:40, admin/partials/help/sidebar.php:3
178
  msgid "Shortcodes Ultimate"
179
  msgstr ""
180
 
272
  msgid "Shortcodes Ultimate is not activated, because it requires WordPress version %1$s (or higher). You have version %2$s."
273
  msgstr ""
274
 
275
+ #: includes/functions-galleries.php:258
276
  msgid "Original image size"
277
  msgstr ""
278
 
279
+ #: includes/functions-galleries.php:292
280
  msgid "Slide link"
281
  msgstr ""
282
 
283
+ #: includes/functions-galleries.php:298
284
  msgid "Use this field to add custom links to slides used with Slider, Carousel and Custom Gallery shortcodes"
285
  msgstr ""
286
 
3900
  msgstr ""
3901
 
3902
  #: admin/partials/help/addons.php:4
 
 
 
 
 
 
 
 
 
 
 
 
3903
  msgid "Full add-ons documentation"
3904
  msgstr ""
3905
 
readme.txt CHANGED
@@ -6,7 +6,7 @@ Tags: shortcode, toggle, columns, button, slider
6
  Requires at least: 4.6
7
  Tested up to: 5.6
8
  Requires PHP: 5.3
9
- Stable tag: 5.9.3
10
 
11
  A comprehensive collection of visual components for your site
12
 
@@ -33,7 +33,7 @@ A comprehensive collection of visual components for your site
33
 
34
  ### Links
35
 
36
- - [Available Shortcodes](https://getshortcodes.com/shortcodes/?utm_campaign=wporg&utm_source=readme&utm_medium=available-shortcodes)
37
  - [Add-ons](https://getshortcodes.com/add-ons/?utm_campaign=wporg&utm_source=readme&utm_medium=add-ons)
38
  - [Documentation](https://getshortcodes.com/docs/?utm_campaign=wporg&utm_source=readme&utm_medium=docs)
39
  - [Support Forum](https://wordpress.org/support/plugin/shortcodes-ultimate)
@@ -146,17 +146,13 @@ First, visit the [Help Center](https://getshortcodes.com/support/). If you get s
146
  ## Changelog
147
 
148
 
149
- ### 5.9.3
150
-
151
- **What's new**
152
-
153
- - New option `anchor_in_url` for `[su_tabs]` and `[su_spoiler]`. This option specifies whether an anchor will be added to page URL after clicking a tab or a spoiler.
154
- - New option `random` for `[su_image_carousel]` which allows to shuffle carousel images
155
 
156
  **Fixes**
157
 
158
- - Fixed issue in `[su_image_carousel]` where images were hidden on some themes
159
-
 
160
 
161
  ---
162
  [Version history →](https://plugins.trac.wordpress.org/browser/shortcodes-ultimate/trunk/changelog.txt)
6
  Requires at least: 4.6
7
  Tested up to: 5.6
8
  Requires PHP: 5.3
9
+ Stable tag: 5.9.4
10
 
11
  A comprehensive collection of visual components for your site
12
 
33
 
34
  ### Links
35
 
36
+ - [Available Shortcodes](https://getshortcodes.com/docs-category/shortcodes/?utm_campaign=wporg&utm_source=readme&utm_medium=available-shortcodes)
37
  - [Add-ons](https://getshortcodes.com/add-ons/?utm_campaign=wporg&utm_source=readme&utm_medium=add-ons)
38
  - [Documentation](https://getshortcodes.com/docs/?utm_campaign=wporg&utm_source=readme&utm_medium=docs)
39
  - [Support Forum](https://wordpress.org/support/plugin/shortcodes-ultimate)
146
  ## Changelog
147
 
148
 
149
+ ### 5.9.4
 
 
 
 
 
150
 
151
  **Fixes**
152
 
153
+ - Fixed PHP notice `A non-numeric value encountered` in `[su_dropcap]`
154
+ - Fixed PHP notice `A non-numeric value encountered` in `[su_service]`
155
+ - Updated in-plugin links
156
 
157
  ---
158
  [Version history →](https://plugins.trac.wordpress.org/browser/shortcodes-ultimate/trunk/changelog.txt)
shortcodes-ultimate.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Plugin Name: Shortcodes Ultimate
4
  * Plugin URI: https://getshortcodes.com/
5
- * Version: 5.9.3
6
  * Author: Vladimir Anokhin
7
  * Author URI: https://vanokhin.com/
8
  * Description: A comprehensive collection of visual components for WordPress
@@ -14,7 +14,7 @@
14
  * Define plugin constants.
15
  */
16
  define( 'SU_PLUGIN_FILE', __FILE__ );
17
- define( 'SU_PLUGIN_VERSION', '5.9.3' );
18
 
19
  /**
20
  * Load dependencies.
2
  /**
3
  * Plugin Name: Shortcodes Ultimate
4
  * Plugin URI: https://getshortcodes.com/
5
+ * Version: 5.9.4
6
  * Author: Vladimir Anokhin
7
  * Author URI: https://vanokhin.com/
8
  * Description: A comprehensive collection of visual components for WordPress
14
  * Define plugin constants.
15
  */
16
  define( 'SU_PLUGIN_FILE', __FILE__ );
17
+ define( 'SU_PLUGIN_VERSION', '5.9.4' );
18
 
19
  /**
20
  * Load dependencies.