Shortcodes Ultimate - Version 4.10.2

Version Description

  • Improved: compatibility with PHP7 ([user] and [post] shortcodes)
  • Fixed: [slider] and [custom_gallery] markup (skipped whitespaces among link attributes)
  • Removed: user capability check in [permalink]
Download this release

Release Info

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

Code changes from version 4.10.1 to 4.10.2

Files changed (192) hide show
  1. assets/css/animate.css +0 -0
  2. assets/css/box-shortcodes.css +0 -0
  3. assets/css/cheatsheet.css +0 -0
  4. assets/css/content-shortcodes.css +0 -0
  5. assets/css/galleries-shortcodes.css +0 -0
  6. assets/css/generator.css +0 -0
  7. assets/css/magnific-popup.css +0 -0
  8. assets/css/media-shortcodes.css +0 -0
  9. assets/css/options-page.css +0 -0
  10. assets/css/other-shortcodes.css +0 -0
  11. assets/css/owl-carousel-transitions.css +0 -0
  12. assets/css/owl-carousel.css +0 -0
  13. assets/css/players-shortcodes.css +0 -0
  14. assets/css/qtip.css +0 -0
  15. assets/css/rtl-admin.css +0 -0
  16. assets/css/rtl-shortcodes.css +0 -0
  17. assets/css/simpleslider.css +0 -0
  18. assets/css/sunrise.css +0 -0
  19. assets/css/tinymce.css +0 -0
  20. assets/css/vote.css +0 -0
  21. assets/images/banners/bundle.png +0 -0
  22. assets/images/banners/extra.png +0 -0
  23. assets/images/banners/how-it-works.jpg +0 -0
  24. assets/images/banners/maker.png +0 -0
  25. assets/images/banners/skins.png +0 -0
  26. assets/images/grabbing.png +0 -0
  27. assets/images/icon.png +0 -0
  28. assets/images/loading.gif +0 -0
  29. assets/images/player/button.png +0 -0
  30. assets/images/player/default-start.png +0 -0
  31. assets/images/player/default.png +0 -0
  32. assets/images/player/metro-start.png +0 -0
  33. assets/images/player/metro.png +0 -0
  34. assets/images/player/minimal.png +0 -0
  35. assets/images/quote.png +0 -0
  36. assets/images/search.png +0 -0
  37. assets/images/service.png +0 -0
  38. assets/images/spinner.gif +0 -0
  39. assets/images/spoiler.png +0 -0
  40. assets/images/styles/style-bubbles.png +0 -0
  41. assets/images/styles/style-glass.png +0 -0
  42. assets/images/styles/style-noise.png +0 -0
  43. assets/images/styles/style-soft.png +0 -0
  44. assets/images/swiper/default.png +0 -0
  45. assets/images/swiper/loading.gif +0 -0
  46. assets/js/ace/ace.js +0 -0
  47. assets/js/ace/ext-beautify.js +0 -0
  48. assets/js/ace/ext-chromevox.js +0 -0
  49. assets/js/ace/ext-elastic_tabstops_lite.js +0 -0
  50. assets/js/ace/ext-emmet.js +0 -0
  51. assets/js/ace/ext-error_marker.js +0 -0
  52. assets/js/ace/ext-keybinding_menu.js +0 -0
  53. assets/js/ace/ext-language_tools.js +0 -0
  54. assets/js/ace/ext-linking.js +0 -0
  55. assets/js/ace/ext-modelist.js +0 -0
  56. assets/js/ace/ext-old_ie.js +0 -0
  57. assets/js/ace/ext-options.js +0 -0
  58. assets/js/ace/ext-prompt.js +0 -0
  59. assets/js/ace/ext-searchbox.js +0 -0
  60. assets/js/ace/ext-settings_menu.js +0 -0
  61. assets/js/ace/ext-spellcheck.js +0 -0
  62. assets/js/ace/ext-split.js +0 -0
  63. assets/js/ace/ext-static_highlight.js +0 -0
  64. assets/js/ace/ext-statusbar.js +0 -0
  65. assets/js/ace/ext-textarea.js +0 -0
  66. assets/js/ace/ext-themelist.js +0 -0
  67. assets/js/ace/ext-whitespace.js +0 -0
  68. assets/js/ace/keybinding-emacs.js +0 -0
  69. assets/js/ace/keybinding-vim.js +0 -0
  70. assets/js/ace/mode-css.js +0 -0
  71. assets/js/ace/mode-html.js +0 -0
  72. assets/js/ace/mode-html_completions.js +0 -0
  73. assets/js/ace/mode-php.js +0 -0
  74. assets/js/ace/mode-plain_text.js +0 -0
  75. assets/js/ace/mode-text.js +0 -0
  76. assets/js/ace/mode-xml.js +0 -0
  77. assets/js/ace/snippets/css.js +0 -0
  78. assets/js/ace/snippets/html.js +0 -0
  79. assets/js/ace/snippets/html_completions.js +0 -0
  80. assets/js/ace/snippets/php.js +0 -0
  81. assets/js/ace/snippets/xml.js +0 -0
  82. assets/js/ace/theme-ambiance.js +0 -0
  83. assets/js/ace/theme-chaos.js +0 -0
  84. assets/js/ace/theme-chrome.js +0 -0
  85. assets/js/ace/theme-cloud9_day.js +0 -0
  86. assets/js/ace/theme-cloud9_night.js +0 -0
  87. assets/js/ace/theme-cloud9_night_low_color.js +0 -0
  88. assets/js/ace/theme-clouds.js +0 -0
  89. assets/js/ace/theme-clouds_midnight.js +0 -0
  90. assets/js/ace/theme-cobalt.js +0 -0
  91. assets/js/ace/theme-crimson_editor.js +0 -0
  92. assets/js/ace/theme-dawn.js +0 -0
  93. assets/js/ace/theme-dreamweaver.js +0 -0
  94. assets/js/ace/theme-eclipse.js +0 -0
  95. assets/js/ace/theme-github.js +0 -0
  96. assets/js/ace/theme-idle_fingers.js +0 -0
  97. assets/js/ace/theme-katzenmilch.js +0 -0
  98. assets/js/ace/theme-kr.js +0 -0
  99. assets/js/ace/theme-kuroir.js +0 -0
  100. assets/js/ace/theme-merbivore.js +0 -0
  101. assets/js/ace/theme-merbivore_soft.js +0 -0
  102. assets/js/ace/theme-mono_industrial.js +0 -0
  103. assets/js/ace/theme-monokai.js +0 -0
  104. assets/js/ace/theme-pastel_on_dark.js +0 -0
  105. assets/js/ace/theme-solarized_dark.js +0 -0
  106. assets/js/ace/theme-solarized_light.js +0 -0
  107. assets/js/ace/theme-terminal.js +0 -0
  108. assets/js/ace/theme-textmate.js +0 -0
  109. assets/js/ace/theme-tomorrow.js +0 -0
  110. assets/js/ace/theme-tomorrow_night.js +0 -0
  111. assets/js/ace/theme-tomorrow_night_blue.js +0 -0
  112. assets/js/ace/theme-tomorrow_night_bright.js +0 -0
  113. assets/js/ace/theme-tomorrow_night_eighties.js +0 -0
  114. assets/js/ace/theme-twilight.js +0 -0
  115. assets/js/ace/theme-vibrant_ink.js +0 -0
  116. assets/js/ace/theme-xcode.js +0 -0
  117. assets/js/ace/worker-css.js +0 -0
  118. assets/js/ace/worker-html.js +0 -0
  119. assets/js/ace/worker-javascript.js +0 -0
  120. assets/js/ace/worker-json.js +0 -0
  121. assets/js/ace/worker-php.js +0 -0
  122. assets/js/chart.js +0 -0
  123. assets/js/form.js +0 -0
  124. assets/js/galleries-shortcodes.js +0 -0
  125. assets/js/generator.js +0 -0
  126. assets/js/inview.js +0 -0
  127. assets/js/jplayer.js +0 -0
  128. assets/js/jsrender.js +0 -0
  129. assets/js/magnific-popup.js +0 -0
  130. assets/js/options-page.js +0 -0
  131. assets/js/other-shortcodes.js +0 -0
  132. assets/js/owl-carousel.js +0 -0
  133. assets/js/players-shortcodes.js +0 -0
  134. assets/js/qtip.js +0 -0
  135. assets/js/simpleslider.js +0 -0
  136. assets/js/sunrise.js +0 -0
  137. assets/js/swiper.js +0 -0
  138. assets/js/tinymce.js +0 -0
  139. assets/js/vote.js +0 -0
  140. assets/other/Jplayer.swf +0 -0
  141. inc/core/admin-views.php +0 -0
  142. inc/core/assets.php +0 -0
  143. inc/core/counters.php +0 -0
  144. inc/core/data.php +0 -0
  145. inc/core/generator-views.php +0 -0
  146. inc/core/generator.php +0 -0
  147. inc/core/load.php +0 -0
  148. inc/core/requirements.php +0 -0
  149. inc/core/shortcodes.php +5 -9
  150. inc/core/tools.php +0 -0
  151. inc/core/vote.php +0 -0
  152. inc/core/widget.php +0 -0
  153. inc/examples/animations.example +0 -0
  154. inc/examples/buttons.example +0 -0
  155. inc/examples/columns.example +0 -0
  156. inc/examples/lightbox.example +0 -0
  157. inc/examples/media.example +0 -0
  158. inc/examples/nested.example +0 -0
  159. inc/examples/posts.example +0 -0
  160. inc/examples/spoilers.example +0 -0
  161. inc/examples/tabs.example +0 -0
  162. inc/integrations/load.php +0 -0
  163. inc/vendor/sunrise.php +0 -0
  164. languages/shortcodes-ultimate-cs_CZ.mo +0 -0
  165. languages/shortcodes-ultimate-cs_CZ.po +0 -0
  166. languages/shortcodes-ultimate-el_GR.mo +0 -0
  167. languages/shortcodes-ultimate-el_GR.po +0 -0
  168. languages/shortcodes-ultimate-es_ES.mo +0 -0
  169. languages/shortcodes-ultimate-es_ES.po +0 -0
  170. languages/shortcodes-ultimate-fr_FR.mo +0 -0
  171. languages/shortcodes-ultimate-fr_FR.po +0 -0
  172. languages/shortcodes-ultimate-ja.mo +0 -0
  173. languages/shortcodes-ultimate-ja.po +0 -0
  174. languages/shortcodes-ultimate-nl_NL.mo +0 -0
  175. languages/shortcodes-ultimate-nl_NL.po +0 -0
  176. languages/shortcodes-ultimate-pl_PL.mo +0 -0
  177. languages/shortcodes-ultimate-pl_PL.po +0 -0
  178. languages/shortcodes-ultimate-ru_RU.mo +0 -0
  179. languages/shortcodes-ultimate-ru_RU.po +0 -0
  180. languages/shortcodes-ultimate-sk_SK.mo +0 -0
  181. languages/shortcodes-ultimate-sk_SK.po +0 -0
  182. languages/shortcodes-ultimate-vi.mo +0 -0
  183. languages/shortcodes-ultimate-vi.po +0 -0
  184. languages/shortcodes-ultimate-zh_CN.mo +0 -0
  185. languages/shortcodes-ultimate-zh_CN.po +0 -0
  186. languages/shortcodes-ultimate.pot +0 -0
  187. readme.txt +5 -0
  188. shortcodes-ultimate.php +2 -2
  189. templates/default-loop.php +0 -0
  190. templates/list-loop.php +0 -0
  191. templates/single-post.php +0 -0
  192. templates/teaser-loop.php +0 -0
assets/css/animate.css CHANGED
File without changes
assets/css/box-shortcodes.css CHANGED
File without changes
assets/css/cheatsheet.css CHANGED
File without changes
assets/css/content-shortcodes.css CHANGED
File without changes
assets/css/galleries-shortcodes.css CHANGED
File without changes
assets/css/generator.css CHANGED
File without changes
assets/css/magnific-popup.css CHANGED
File without changes
assets/css/media-shortcodes.css CHANGED
File without changes
assets/css/options-page.css CHANGED
File without changes
assets/css/other-shortcodes.css CHANGED
File without changes
assets/css/owl-carousel-transitions.css CHANGED
File without changes
assets/css/owl-carousel.css CHANGED
File without changes
assets/css/players-shortcodes.css CHANGED
File without changes
assets/css/qtip.css CHANGED
File without changes
assets/css/rtl-admin.css CHANGED
File without changes
assets/css/rtl-shortcodes.css CHANGED
File without changes
assets/css/simpleslider.css CHANGED
File without changes
assets/css/sunrise.css CHANGED
File without changes
assets/css/tinymce.css CHANGED
File without changes
assets/css/vote.css CHANGED
File without changes
assets/images/banners/bundle.png CHANGED
File without changes
assets/images/banners/extra.png CHANGED
File without changes
assets/images/banners/how-it-works.jpg CHANGED
File without changes
assets/images/banners/maker.png CHANGED
File without changes
assets/images/banners/skins.png CHANGED
File without changes
assets/images/grabbing.png CHANGED
File without changes
assets/images/icon.png CHANGED
File without changes
assets/images/loading.gif CHANGED
File without changes
assets/images/player/button.png CHANGED
File without changes
assets/images/player/default-start.png CHANGED
File without changes
assets/images/player/default.png CHANGED
File without changes
assets/images/player/metro-start.png CHANGED
File without changes
assets/images/player/metro.png CHANGED
File without changes
assets/images/player/minimal.png CHANGED
File without changes
assets/images/quote.png CHANGED
File without changes
assets/images/search.png CHANGED
File without changes
assets/images/service.png CHANGED
File without changes
assets/images/spinner.gif CHANGED
File without changes
assets/images/spoiler.png CHANGED
File without changes
assets/images/styles/style-bubbles.png CHANGED
File without changes
assets/images/styles/style-glass.png CHANGED
File without changes
assets/images/styles/style-noise.png CHANGED
File without changes
assets/images/styles/style-soft.png CHANGED
File without changes
assets/images/swiper/default.png CHANGED
File without changes
assets/images/swiper/loading.gif CHANGED
File without changes
assets/js/ace/ace.js CHANGED
File without changes
assets/js/ace/ext-beautify.js CHANGED
File without changes
assets/js/ace/ext-chromevox.js CHANGED
File without changes
assets/js/ace/ext-elastic_tabstops_lite.js CHANGED
File without changes
assets/js/ace/ext-emmet.js CHANGED
File without changes
assets/js/ace/ext-error_marker.js CHANGED
File without changes
assets/js/ace/ext-keybinding_menu.js CHANGED
File without changes
assets/js/ace/ext-language_tools.js CHANGED
File without changes
assets/js/ace/ext-linking.js CHANGED
File without changes
assets/js/ace/ext-modelist.js CHANGED
File without changes
assets/js/ace/ext-old_ie.js CHANGED
File without changes
assets/js/ace/ext-options.js CHANGED
File without changes
assets/js/ace/ext-prompt.js CHANGED
File without changes
assets/js/ace/ext-searchbox.js CHANGED
File without changes
assets/js/ace/ext-settings_menu.js CHANGED
File without changes
assets/js/ace/ext-spellcheck.js CHANGED
File without changes
assets/js/ace/ext-split.js CHANGED
File without changes
assets/js/ace/ext-static_highlight.js CHANGED
File without changes
assets/js/ace/ext-statusbar.js CHANGED
File without changes
assets/js/ace/ext-textarea.js CHANGED
File without changes
assets/js/ace/ext-themelist.js CHANGED
File without changes
assets/js/ace/ext-whitespace.js CHANGED
File without changes
assets/js/ace/keybinding-emacs.js CHANGED
File without changes
assets/js/ace/keybinding-vim.js CHANGED
File without changes
assets/js/ace/mode-css.js CHANGED
File without changes
assets/js/ace/mode-html.js CHANGED
File without changes
assets/js/ace/mode-html_completions.js CHANGED
File without changes
assets/js/ace/mode-php.js CHANGED
File without changes
assets/js/ace/mode-plain_text.js CHANGED
File without changes
assets/js/ace/mode-text.js CHANGED
File without changes
assets/js/ace/mode-xml.js CHANGED
File without changes
assets/js/ace/snippets/css.js CHANGED
File without changes
assets/js/ace/snippets/html.js CHANGED
File without changes
assets/js/ace/snippets/html_completions.js CHANGED
File without changes
assets/js/ace/snippets/php.js CHANGED
File without changes
assets/js/ace/snippets/xml.js CHANGED
File without changes
assets/js/ace/theme-ambiance.js CHANGED
File without changes
assets/js/ace/theme-chaos.js CHANGED
File without changes
assets/js/ace/theme-chrome.js CHANGED
File without changes
assets/js/ace/theme-cloud9_day.js CHANGED
File without changes
assets/js/ace/theme-cloud9_night.js CHANGED
File without changes
assets/js/ace/theme-cloud9_night_low_color.js CHANGED
File without changes
assets/js/ace/theme-clouds.js CHANGED
File without changes
assets/js/ace/theme-clouds_midnight.js CHANGED
File without changes
assets/js/ace/theme-cobalt.js CHANGED
File without changes
assets/js/ace/theme-crimson_editor.js CHANGED
File without changes
assets/js/ace/theme-dawn.js CHANGED
File without changes
assets/js/ace/theme-dreamweaver.js CHANGED
File without changes
assets/js/ace/theme-eclipse.js CHANGED
File without changes
assets/js/ace/theme-github.js CHANGED
File without changes
assets/js/ace/theme-idle_fingers.js CHANGED
File without changes
assets/js/ace/theme-katzenmilch.js CHANGED
File without changes
assets/js/ace/theme-kr.js CHANGED
File without changes
assets/js/ace/theme-kuroir.js CHANGED
File without changes
assets/js/ace/theme-merbivore.js CHANGED
File without changes
assets/js/ace/theme-merbivore_soft.js CHANGED
File without changes
assets/js/ace/theme-mono_industrial.js CHANGED
File without changes
assets/js/ace/theme-monokai.js CHANGED
File without changes
assets/js/ace/theme-pastel_on_dark.js CHANGED
File without changes
assets/js/ace/theme-solarized_dark.js CHANGED
File without changes
assets/js/ace/theme-solarized_light.js CHANGED
File without changes
assets/js/ace/theme-terminal.js CHANGED
File without changes
assets/js/ace/theme-textmate.js CHANGED
File without changes
assets/js/ace/theme-tomorrow.js CHANGED
File without changes
assets/js/ace/theme-tomorrow_night.js CHANGED
File without changes
assets/js/ace/theme-tomorrow_night_blue.js CHANGED
File without changes
assets/js/ace/theme-tomorrow_night_bright.js CHANGED
File without changes
assets/js/ace/theme-tomorrow_night_eighties.js CHANGED
File without changes
assets/js/ace/theme-twilight.js CHANGED
File without changes
assets/js/ace/theme-vibrant_ink.js CHANGED
File without changes
assets/js/ace/theme-xcode.js CHANGED
File without changes
assets/js/ace/worker-css.js CHANGED
File without changes
assets/js/ace/worker-html.js CHANGED
File without changes
assets/js/ace/worker-javascript.js CHANGED
File without changes
assets/js/ace/worker-json.js CHANGED
File without changes
assets/js/ace/worker-php.js CHANGED
File without changes
assets/js/chart.js CHANGED
File without changes
assets/js/form.js CHANGED
File without changes
assets/js/galleries-shortcodes.js CHANGED
File without changes
assets/js/generator.js CHANGED
File without changes
assets/js/inview.js CHANGED
File without changes
assets/js/jplayer.js CHANGED
File without changes
assets/js/jsrender.js CHANGED
File without changes
assets/js/magnific-popup.js CHANGED
File without changes
assets/js/options-page.js CHANGED
File without changes
assets/js/other-shortcodes.js CHANGED
File without changes
assets/js/owl-carousel.js CHANGED
File without changes
assets/js/players-shortcodes.js CHANGED
File without changes
assets/js/qtip.js CHANGED
File without changes
assets/js/simpleslider.js CHANGED
File without changes
assets/js/sunrise.js CHANGED
File without changes
assets/js/swiper.js CHANGED
File without changes
assets/js/tinymce.js CHANGED
File without changes
assets/js/vote.js CHANGED
File without changes
assets/other/Jplayer.swf CHANGED
File without changes
inc/core/admin-views.php CHANGED
File without changes
inc/core/assets.php CHANGED
File without changes
inc/core/counters.php CHANGED
File without changes
inc/core/data.php CHANGED
File without changes
inc/core/generator-views.php CHANGED
File without changes
inc/core/generator.php CHANGED
File without changes
inc/core/load.php CHANGED
File without changes
inc/core/requirements.php CHANGED
File without changes
inc/core/shortcodes.php CHANGED
@@ -847,11 +847,7 @@ class Su_Shortcodes {
847
  $atts['id'] = su_scattr( $atts['id'] );
848
  // Prepare link text
849
  $text = ( $content ) ? $content : get_the_title( $atts['id'] );
850
- if (current_user_can('read',$atts['id'])) {
851
- return '<a href="' . get_permalink( $atts['id'] ) . '" class="' . su_ecssc( $atts ) . '" title="' . $text . '" target="_' . $atts['target'] . '">' . $text . '</a>';
852
- } else {
853
- return $text;
854
- }
855
  }
856
 
857
  public static function members( $atts = null, $content = null ) {
@@ -1025,7 +1021,7 @@ class Su_Shortcodes {
1025
  // Open slide
1026
  $return .= '<div class="su-slider-slide">';
1027
  // Slide content with link
1028
- if ( $slide['link'] ) $return .= '<a href="' . $slide['link'] . '"' . $target . 'title="' . esc_attr( $slide['title'] ) . '"><img src="' . $image['url'] . '" alt="' . esc_attr( $slide['title'] ) . '" />' . $title . '</a>';
1029
  // Slide content without link
1030
  else $return .= '<a><img src="' . $image['url'] . '" alt="' . esc_attr( $slide['title'] ) . '" />' . $title . '</a>';
1031
  // Close slide
@@ -1172,7 +1168,7 @@ class Su_Shortcodes {
1172
  // Open slide
1173
  $return .= '<div class="su-custom-gallery-slide">';
1174
  // Slide content with link
1175
- if ( $slide['link'] ) $return .= '<a href="' . $slide['link'] . '"' . $atts['target'] . 'title="' . esc_attr( $slide['title'] ) . '"><img src="' . $image['url'] . '" alt="' . esc_attr( $slide['title'] ) . '" width="' . $atts['width'] . '" height="' . $atts['height'] . '" />' . $title . '</a>';
1176
  // Slide content without link
1177
  else $return .= '<a><img src="' . $image['url'] . '" alt="' . esc_attr( $slide['title'] ) . '" width="' . $atts['width'] . '" height="' . $atts['height'] . '" />' . $title . '</a>';
1178
  // Close slide
@@ -1431,7 +1427,7 @@ class Su_Shortcodes {
1431
  // Get user data
1432
  $user = get_user_by( 'id', $atts['user_id'] );
1433
  // Get user data if user was found
1434
- $user = ( $user && isset( $user->data->$atts['field'] ) ) ? $user->data->$atts['field'] : $atts['default'];
1435
  // Apply cutom filter
1436
  if ( $atts['filter'] && function_exists( $atts['filter'] ) ) $user = call_user_func( $atts['filter'], $user );
1437
  // Return result
@@ -1454,7 +1450,7 @@ class Su_Shortcodes {
1454
  // Get the post
1455
  $post = get_post( $atts['post_id'] );
1456
  // Set default value if meta is empty
1457
- $post = ( empty( $post ) || empty( $post->$atts['field'] ) ) ? $atts['default'] : $post->$atts['field'];
1458
  // Apply cutom filter
1459
  if ( $atts['filter'] && function_exists( $atts['filter'] ) ) $post = call_user_func( $atts['filter'], $post );
1460
  // Return result
847
  $atts['id'] = su_scattr( $atts['id'] );
848
  // Prepare link text
849
  $text = ( $content ) ? $content : get_the_title( $atts['id'] );
850
+ return '<a href="' . get_permalink( $atts['id'] ) . '" class="' . su_ecssc( $atts ) . '" title="' . $text . '" target="_' . $atts['target'] . '">' . $text . '</a>';
 
 
 
 
851
  }
852
 
853
  public static function members( $atts = null, $content = null ) {
1021
  // Open slide
1022
  $return .= '<div class="su-slider-slide">';
1023
  // Slide content with link
1024
+ if ( $slide['link'] ) $return .= '<a href="' . $slide['link'] . '" ' . $target . ' title="' . esc_attr( $slide['title'] ) . '"><img src="' . $image['url'] . '" alt="' . esc_attr( $slide['title'] ) . '" />' . $title . '</a>';
1025
  // Slide content without link
1026
  else $return .= '<a><img src="' . $image['url'] . '" alt="' . esc_attr( $slide['title'] ) . '" />' . $title . '</a>';
1027
  // Close slide
1168
  // Open slide
1169
  $return .= '<div class="su-custom-gallery-slide">';
1170
  // Slide content with link
1171
+ if ( $slide['link'] ) $return .= '<a href="' . $slide['link'] . '"' . $atts['target'] . ' title="' . esc_attr( $slide['title'] ) . '"><img src="' . $image['url'] . '" alt="' . esc_attr( $slide['title'] ) . '" width="' . $atts['width'] . '" height="' . $atts['height'] . '" />' . $title . '</a>';
1172
  // Slide content without link
1173
  else $return .= '<a><img src="' . $image['url'] . '" alt="' . esc_attr( $slide['title'] ) . '" width="' . $atts['width'] . '" height="' . $atts['height'] . '" />' . $title . '</a>';
1174
  // Close slide
1427
  // Get user data
1428
  $user = get_user_by( 'id', $atts['user_id'] );
1429
  // Get user data if user was found
1430
+ $user = ( $user && isset( $user->data->{$atts['field']} ) ) ? $user->data->{$atts['field']} : $atts['default'];
1431
  // Apply cutom filter
1432
  if ( $atts['filter'] && function_exists( $atts['filter'] ) ) $user = call_user_func( $atts['filter'], $user );
1433
  // Return result
1450
  // Get the post
1451
  $post = get_post( $atts['post_id'] );
1452
  // Set default value if meta is empty
1453
+ $post = ( empty( $post ) || empty( $post->{$atts['field']} ) ) ? $atts['default'] : $post->{$atts['field']};
1454
  // Apply cutom filter
1455
  if ( $atts['filter'] && function_exists( $atts['filter'] ) ) $post = call_user_func( $atts['filter'], $post );
1456
  // Return result
inc/core/tools.php CHANGED
File without changes
inc/core/vote.php CHANGED
File without changes
inc/core/widget.php CHANGED
File without changes
inc/examples/animations.example CHANGED
File without changes
inc/examples/buttons.example CHANGED
File without changes
inc/examples/columns.example CHANGED
File without changes
inc/examples/lightbox.example CHANGED
File without changes
inc/examples/media.example CHANGED
File without changes
inc/examples/nested.example CHANGED
File without changes
inc/examples/posts.example CHANGED
File without changes
inc/examples/spoilers.example CHANGED
File without changes
inc/examples/tabs.example CHANGED
File without changes
inc/integrations/load.php CHANGED
File without changes
inc/vendor/sunrise.php CHANGED
File without changes
languages/shortcodes-ultimate-cs_CZ.mo CHANGED
File without changes
languages/shortcodes-ultimate-cs_CZ.po CHANGED
File without changes
languages/shortcodes-ultimate-el_GR.mo CHANGED
File without changes
languages/shortcodes-ultimate-el_GR.po CHANGED
File without changes
languages/shortcodes-ultimate-es_ES.mo CHANGED
File without changes
languages/shortcodes-ultimate-es_ES.po CHANGED
File without changes
languages/shortcodes-ultimate-fr_FR.mo CHANGED
File without changes
languages/shortcodes-ultimate-fr_FR.po CHANGED
File without changes
languages/shortcodes-ultimate-ja.mo CHANGED
File without changes
languages/shortcodes-ultimate-ja.po CHANGED
File without changes
languages/shortcodes-ultimate-nl_NL.mo CHANGED
File without changes
languages/shortcodes-ultimate-nl_NL.po CHANGED
File without changes
languages/shortcodes-ultimate-pl_PL.mo CHANGED
File without changes
languages/shortcodes-ultimate-pl_PL.po CHANGED
File without changes
languages/shortcodes-ultimate-ru_RU.mo CHANGED
File without changes
languages/shortcodes-ultimate-ru_RU.po CHANGED
File without changes
languages/shortcodes-ultimate-sk_SK.mo CHANGED
File without changes
languages/shortcodes-ultimate-sk_SK.po CHANGED
File without changes
languages/shortcodes-ultimate-vi.mo CHANGED
File without changes
languages/shortcodes-ultimate-vi.po CHANGED
File without changes
languages/shortcodes-ultimate-zh_CN.mo CHANGED
File without changes
languages/shortcodes-ultimate-zh_CN.po CHANGED
File without changes
languages/shortcodes-ultimate.pot CHANGED
File without changes
readme.txt CHANGED
@@ -110,6 +110,11 @@ Upgrade normally
110
 
111
  == Changelog ==
112
 
 
 
 
 
 
113
  = 4.10.1 =
114
  * Fixed: lightbox javascript
115
 
110
 
111
  == Changelog ==
112
 
113
+ = 4.10.2 =
114
+ * Improved: compatibility with PHP7 ([user] and [post] shortcodes)
115
+ * Fixed: [slider] and [custom_gallery] markup (skipped whitespaces among link attributes)
116
+ * Removed: user capability check in [permalink]
117
+
118
  = 4.10.1 =
119
  * Fixed: lightbox javascript
120
 
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.10.1
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 constants
15
  define( 'SU_PLUGIN_FILE', __FILE__ );
16
- define( 'SU_PLUGIN_VERSION', '4.10.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.10.2
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 constants
15
  define( 'SU_PLUGIN_FILE', __FILE__ );
16
+ define( 'SU_PLUGIN_VERSION', '4.10.2' );
17
  define( 'SU_ENABLE_CACHE', true );
18
 
19
  // Includes
templates/default-loop.php CHANGED
File without changes
templates/list-loop.php CHANGED
File without changes
templates/single-post.php CHANGED
File without changes
templates/teaser-loop.php CHANGED
File without changes