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 | Shortcodes Ultimate |
Version | 4.10.2 |
Comparing to | |
See all releases |
Code changes from version 4.10.1 to 4.10.2
- assets/css/animate.css +0 -0
- assets/css/box-shortcodes.css +0 -0
- assets/css/cheatsheet.css +0 -0
- assets/css/content-shortcodes.css +0 -0
- assets/css/galleries-shortcodes.css +0 -0
- assets/css/generator.css +0 -0
- assets/css/magnific-popup.css +0 -0
- assets/css/media-shortcodes.css +0 -0
- assets/css/options-page.css +0 -0
- assets/css/other-shortcodes.css +0 -0
- assets/css/owl-carousel-transitions.css +0 -0
- assets/css/owl-carousel.css +0 -0
- assets/css/players-shortcodes.css +0 -0
- assets/css/qtip.css +0 -0
- assets/css/rtl-admin.css +0 -0
- assets/css/rtl-shortcodes.css +0 -0
- assets/css/simpleslider.css +0 -0
- assets/css/sunrise.css +0 -0
- assets/css/tinymce.css +0 -0
- assets/css/vote.css +0 -0
- assets/images/banners/bundle.png +0 -0
- assets/images/banners/extra.png +0 -0
- assets/images/banners/how-it-works.jpg +0 -0
- assets/images/banners/maker.png +0 -0
- assets/images/banners/skins.png +0 -0
- assets/images/grabbing.png +0 -0
- assets/images/icon.png +0 -0
- assets/images/loading.gif +0 -0
- assets/images/player/button.png +0 -0
- assets/images/player/default-start.png +0 -0
- assets/images/player/default.png +0 -0
- assets/images/player/metro-start.png +0 -0
- assets/images/player/metro.png +0 -0
- assets/images/player/minimal.png +0 -0
- assets/images/quote.png +0 -0
- assets/images/search.png +0 -0
- assets/images/service.png +0 -0
- assets/images/spinner.gif +0 -0
- assets/images/spoiler.png +0 -0
- assets/images/styles/style-bubbles.png +0 -0
- assets/images/styles/style-glass.png +0 -0
- assets/images/styles/style-noise.png +0 -0
- assets/images/styles/style-soft.png +0 -0
- assets/images/swiper/default.png +0 -0
- assets/images/swiper/loading.gif +0 -0
- assets/js/ace/ace.js +0 -0
- assets/js/ace/ext-beautify.js +0 -0
- assets/js/ace/ext-chromevox.js +0 -0
- assets/js/ace/ext-elastic_tabstops_lite.js +0 -0
- assets/js/ace/ext-emmet.js +0 -0
- assets/js/ace/ext-error_marker.js +0 -0
- assets/js/ace/ext-keybinding_menu.js +0 -0
- assets/js/ace/ext-language_tools.js +0 -0
- assets/js/ace/ext-linking.js +0 -0
- assets/js/ace/ext-modelist.js +0 -0
- assets/js/ace/ext-old_ie.js +0 -0
- assets/js/ace/ext-options.js +0 -0
- assets/js/ace/ext-prompt.js +0 -0
- assets/js/ace/ext-searchbox.js +0 -0
- assets/js/ace/ext-settings_menu.js +0 -0
- assets/js/ace/ext-spellcheck.js +0 -0
- assets/js/ace/ext-split.js +0 -0
- assets/js/ace/ext-static_highlight.js +0 -0
- assets/js/ace/ext-statusbar.js +0 -0
- assets/js/ace/ext-textarea.js +0 -0
- assets/js/ace/ext-themelist.js +0 -0
- assets/js/ace/ext-whitespace.js +0 -0
- assets/js/ace/keybinding-emacs.js +0 -0
- assets/js/ace/keybinding-vim.js +0 -0
- assets/js/ace/mode-css.js +0 -0
- assets/js/ace/mode-html.js +0 -0
- assets/js/ace/mode-html_completions.js +0 -0
- assets/js/ace/mode-php.js +0 -0
- assets/js/ace/mode-plain_text.js +0 -0
- assets/js/ace/mode-text.js +0 -0
- assets/js/ace/mode-xml.js +0 -0
- assets/js/ace/snippets/css.js +0 -0
- assets/js/ace/snippets/html.js +0 -0
- assets/js/ace/snippets/html_completions.js +0 -0
- assets/js/ace/snippets/php.js +0 -0
- assets/js/ace/snippets/xml.js +0 -0
- assets/js/ace/theme-ambiance.js +0 -0
- assets/js/ace/theme-chaos.js +0 -0
- assets/js/ace/theme-chrome.js +0 -0
- assets/js/ace/theme-cloud9_day.js +0 -0
- assets/js/ace/theme-cloud9_night.js +0 -0
- assets/js/ace/theme-cloud9_night_low_color.js +0 -0
- assets/js/ace/theme-clouds.js +0 -0
- assets/js/ace/theme-clouds_midnight.js +0 -0
- assets/js/ace/theme-cobalt.js +0 -0
- assets/js/ace/theme-crimson_editor.js +0 -0
- assets/js/ace/theme-dawn.js +0 -0
- assets/js/ace/theme-dreamweaver.js +0 -0
- assets/js/ace/theme-eclipse.js +0 -0
- assets/js/ace/theme-github.js +0 -0
- assets/js/ace/theme-idle_fingers.js +0 -0
- assets/js/ace/theme-katzenmilch.js +0 -0
- assets/js/ace/theme-kr.js +0 -0
- assets/js/ace/theme-kuroir.js +0 -0
- assets/js/ace/theme-merbivore.js +0 -0
- assets/js/ace/theme-merbivore_soft.js +0 -0
- assets/js/ace/theme-mono_industrial.js +0 -0
- assets/js/ace/theme-monokai.js +0 -0
- assets/js/ace/theme-pastel_on_dark.js +0 -0
- assets/js/ace/theme-solarized_dark.js +0 -0
- assets/js/ace/theme-solarized_light.js +0 -0
- assets/js/ace/theme-terminal.js +0 -0
- assets/js/ace/theme-textmate.js +0 -0
- assets/js/ace/theme-tomorrow.js +0 -0
- assets/js/ace/theme-tomorrow_night.js +0 -0
- assets/js/ace/theme-tomorrow_night_blue.js +0 -0
- assets/js/ace/theme-tomorrow_night_bright.js +0 -0
- assets/js/ace/theme-tomorrow_night_eighties.js +0 -0
- assets/js/ace/theme-twilight.js +0 -0
- assets/js/ace/theme-vibrant_ink.js +0 -0
- assets/js/ace/theme-xcode.js +0 -0
- assets/js/ace/worker-css.js +0 -0
- assets/js/ace/worker-html.js +0 -0
- assets/js/ace/worker-javascript.js +0 -0
- assets/js/ace/worker-json.js +0 -0
- assets/js/ace/worker-php.js +0 -0
- assets/js/chart.js +0 -0
- assets/js/form.js +0 -0
- assets/js/galleries-shortcodes.js +0 -0
- assets/js/generator.js +0 -0
- assets/js/inview.js +0 -0
- assets/js/jplayer.js +0 -0
- assets/js/jsrender.js +0 -0
- assets/js/magnific-popup.js +0 -0
- assets/js/options-page.js +0 -0
- assets/js/other-shortcodes.js +0 -0
- assets/js/owl-carousel.js +0 -0
- assets/js/players-shortcodes.js +0 -0
- assets/js/qtip.js +0 -0
- assets/js/simpleslider.js +0 -0
- assets/js/sunrise.js +0 -0
- assets/js/swiper.js +0 -0
- assets/js/tinymce.js +0 -0
- assets/js/vote.js +0 -0
- assets/other/Jplayer.swf +0 -0
- inc/core/admin-views.php +0 -0
- inc/core/assets.php +0 -0
- inc/core/counters.php +0 -0
- inc/core/data.php +0 -0
- inc/core/generator-views.php +0 -0
- inc/core/generator.php +0 -0
- inc/core/load.php +0 -0
- inc/core/requirements.php +0 -0
- inc/core/shortcodes.php +5 -9
- inc/core/tools.php +0 -0
- inc/core/vote.php +0 -0
- inc/core/widget.php +0 -0
- inc/examples/animations.example +0 -0
- inc/examples/buttons.example +0 -0
- inc/examples/columns.example +0 -0
- inc/examples/lightbox.example +0 -0
- inc/examples/media.example +0 -0
- inc/examples/nested.example +0 -0
- inc/examples/posts.example +0 -0
- inc/examples/spoilers.example +0 -0
- inc/examples/tabs.example +0 -0
- inc/integrations/load.php +0 -0
- inc/vendor/sunrise.php +0 -0
- languages/shortcodes-ultimate-cs_CZ.mo +0 -0
- languages/shortcodes-ultimate-cs_CZ.po +0 -0
- languages/shortcodes-ultimate-el_GR.mo +0 -0
- languages/shortcodes-ultimate-el_GR.po +0 -0
- languages/shortcodes-ultimate-es_ES.mo +0 -0
- languages/shortcodes-ultimate-es_ES.po +0 -0
- languages/shortcodes-ultimate-fr_FR.mo +0 -0
- languages/shortcodes-ultimate-fr_FR.po +0 -0
- languages/shortcodes-ultimate-ja.mo +0 -0
- languages/shortcodes-ultimate-ja.po +0 -0
- languages/shortcodes-ultimate-nl_NL.mo +0 -0
- languages/shortcodes-ultimate-nl_NL.po +0 -0
- languages/shortcodes-ultimate-pl_PL.mo +0 -0
- languages/shortcodes-ultimate-pl_PL.po +0 -0
- languages/shortcodes-ultimate-ru_RU.mo +0 -0
- languages/shortcodes-ultimate-ru_RU.po +0 -0
- languages/shortcodes-ultimate-sk_SK.mo +0 -0
- languages/shortcodes-ultimate-sk_SK.po +0 -0
- languages/shortcodes-ultimate-vi.mo +0 -0
- languages/shortcodes-ultimate-vi.po +0 -0
- languages/shortcodes-ultimate-zh_CN.mo +0 -0
- languages/shortcodes-ultimate-zh_CN.po +0 -0
- languages/shortcodes-ultimate.pot +0 -0
- readme.txt +5 -0
- shortcodes-ultimate.php +2 -2
- templates/default-loop.php +0 -0
- templates/list-loop.php +0 -0
- templates/single-post.php +0 -0
- 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 |
-
|
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
|
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
|
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.
|
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.
|
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
|