Version Description
Fixes
- Added missing images for
su_audio
,su_video
,su_slider
andsu_carousel
- Fixed Fatal error: Call to a member function get_page_permastruct() on null in link-template.php:357
- Added missing
su_get_icon()
utility function - Added missing
su_scattr()
utility function - Added missing
su_do_shortcode()
utility function
Download this release
Release Info
Developer | gn_themes |
Plugin | Shortcodes Ultimate |
Version | 5.0.6 |
Comparing to | |
See all releases |
Code changes from version 5.0.5 to 5.0.6
- assets/images/grabbing.png +0 -0
- assets/images/loading.gif +0 -0
- assets/images/spoiler.png +0 -0
- inc/core/assets.php +1 -1
- includes/deprecated/class-su-tools.php +9 -0
- includes/deprecated/functions.php +40 -0
- {assets → includes}/images/player/button.png +0 -0
- {assets → includes}/images/player/default-start.png +0 -0
- {assets → includes}/images/player/default.png +0 -0
- {assets → includes}/images/player/metro-start.png +0 -0
- {assets → includes}/images/player/metro.png +0 -0
- {assets → includes}/images/player/minimal.png +0 -0
- {assets → includes}/images/styles/style-bubbles.png +0 -0
- {assets → includes}/images/styles/style-glass.png +0 -0
- {assets → includes}/images/styles/style-noise.png +0 -0
- {assets → includes}/images/styles/style-soft.png +0 -0
- {assets → includes}/images/swiper/default.png +0 -0
- {assets → includes}/images/swiper/loading.gif +0 -0
- includes/shortcodes/members.php +1 -1
- readme.txt +32 -18
- shortcodes-ultimate.php +2 -2
- templates/default-loop.php +30 -27
assets/images/grabbing.png
DELETED
Binary file
|
assets/images/loading.gif
DELETED
Binary file
|
assets/images/spoiler.png
DELETED
Binary file
|
inc/core/assets.php
CHANGED
@@ -92,7 +92,7 @@ class Su_Assets {
|
|
92 |
'hotkey' => get_option( 'su_option_hotkey' )
|
93 |
) );
|
94 |
// Shortcodes stylesheets
|
95 |
-
wp_register_style( 'su-shortcodes',
|
96 |
// DEPRECATED - Shortcodes stylesheets
|
97 |
wp_register_style( 'su-content-shortcodes', '', false, SU_PLUGIN_VERSION, 'all' );
|
98 |
wp_register_style( 'su-box-shortcodes', '', false, SU_PLUGIN_VERSION, 'all' );
|
92 |
'hotkey' => get_option( 'su_option_hotkey' )
|
93 |
) );
|
94 |
// Shortcodes stylesheets
|
95 |
+
wp_register_style( 'su-shortcodes', plugins_url( 'includes/css/shortcodes.css', SU_PLUGIN_FILE ), false, SU_PLUGIN_VERSION, 'all' );
|
96 |
// DEPRECATED - Shortcodes stylesheets
|
97 |
wp_register_style( 'su-content-shortcodes', '', false, SU_PLUGIN_VERSION, 'all' );
|
98 |
wp_register_style( 'su-box-shortcodes', '', false, SU_PLUGIN_VERSION, 'all' );
|
includes/deprecated/class-su-tools.php
CHANGED
@@ -67,6 +67,15 @@ if ( ! class_exists( 'Su_Tools' ) ) {
|
|
67 |
|
68 |
}
|
69 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
70 |
}
|
71 |
|
72 |
}
|
67 |
|
68 |
}
|
69 |
|
70 |
+
/**
|
71 |
+
*
|
72 |
+
*
|
73 |
+
* @deprecated 5.0.5
|
74 |
+
*/
|
75 |
+
public static function do_attr( $value ) {
|
76 |
+
return do_shortcode( str_replace( array( '{', '}' ), array( '[', ']' ), $value ) );
|
77 |
+
}
|
78 |
+
|
79 |
}
|
80 |
|
81 |
}
|
includes/deprecated/functions.php
CHANGED
@@ -8,9 +8,49 @@
|
|
8 |
* Extra CSS class helper.
|
9 |
*
|
10 |
* @deprecated 5.0.5 Replaced with more clear name su_get_css_class().
|
|
|
11 |
* @param array $atts Shortcode attributes.
|
12 |
* @return string String with CSS class name(s).
|
13 |
*/
|
14 |
function su_ecssc( $atts ) {
|
15 |
return su_get_css_class( $atts );
|
16 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
* Extra CSS class helper.
|
9 |
*
|
10 |
* @deprecated 5.0.5 Replaced with more clear name su_get_css_class().
|
11 |
+
*
|
12 |
* @param array $atts Shortcode attributes.
|
13 |
* @return string String with CSS class name(s).
|
14 |
*/
|
15 |
function su_ecssc( $atts ) {
|
16 |
return su_get_css_class( $atts );
|
17 |
}
|
18 |
+
|
19 |
+
/**
|
20 |
+
* Shortcut for Su_Tools::decode_shortcode()
|
21 |
+
*
|
22 |
+
* @deprecated 5.0.5 Replaced with more clear name su_do_attribute().
|
23 |
+
*/
|
24 |
+
function su_scattr( $value ) {
|
25 |
+
return Su_Tools::do_attr( $value );
|
26 |
+
}
|
27 |
+
|
28 |
+
|
29 |
+
/**
|
30 |
+
* Custom do_shortcode function for nested shortcodes
|
31 |
+
*
|
32 |
+
* @deprecated 5.0.5 Replaced with more clear name su_do_nested_shortcodes().
|
33 |
+
*
|
34 |
+
* @param string $content Shortcode content
|
35 |
+
* @param string $pre First shortcode letter
|
36 |
+
*
|
37 |
+
* @return string Formatted content
|
38 |
+
*/
|
39 |
+
function su_do_shortcode( $content, $pre ) {
|
40 |
+
|
41 |
+
if ( strpos( $content, '[_' ) !== false ) {
|
42 |
+
$content = preg_replace( '@(\[_*)_(' . $pre . '|/)@', "$1$2", $content );
|
43 |
+
}
|
44 |
+
|
45 |
+
return do_shortcode( $content );
|
46 |
+
|
47 |
+
}
|
48 |
+
|
49 |
+
/**
|
50 |
+
* Shortcut for Su_Tools::get_icon()
|
51 |
+
*
|
52 |
+
* @deprecated 5.0.5 Replaced with more clear name su_html_icon().
|
53 |
+
*/
|
54 |
+
function su_get_icon( $args ) {
|
55 |
+
return Su_Tools::get_icon( $args );
|
56 |
+
}
|
{assets → includes}/images/player/button.png
RENAMED
File without changes
|
{assets → includes}/images/player/default-start.png
RENAMED
File without changes
|
{assets → includes}/images/player/default.png
RENAMED
File without changes
|
{assets → includes}/images/player/metro-start.png
RENAMED
File without changes
|
{assets → includes}/images/player/metro.png
RENAMED
File without changes
|
{assets → includes}/images/player/minimal.png
RENAMED
File without changes
|
{assets → includes}/images/styles/style-bubbles.png
RENAMED
File without changes
|
{assets → includes}/images/styles/style-glass.png
RENAMED
File without changes
|
{assets → includes}/images/styles/style-noise.png
RENAMED
File without changes
|
{assets → includes}/images/styles/style-soft.png
RENAMED
File without changes
|
{assets → includes}/images/swiper/default.png
RENAMED
File without changes
|
{assets → includes}/images/swiper/loading.gif
RENAMED
File without changes
|
includes/shortcodes/members.php
CHANGED
@@ -22,7 +22,7 @@ su_add_shortcode( array(
|
|
22 |
'name' => __( 'Login link text', 'shortcodes-ultimate' ), 'desc' => __( 'Text for the login link', 'shortcodes-ultimate' )
|
23 |
),
|
24 |
'login_url' => array(
|
25 |
-
'default' => wp_login_url(),
|
26 |
'name' => __( 'Login link url', 'shortcodes-ultimate' ), 'desc' => __( 'Login link url', 'shortcodes-ultimate' )
|
27 |
),
|
28 |
'class' => array(
|
22 |
'name' => __( 'Login link text', 'shortcodes-ultimate' ), 'desc' => __( 'Text for the login link', 'shortcodes-ultimate' )
|
23 |
),
|
24 |
'login_url' => array(
|
25 |
+
'default' => did_action( 'plugins_loaded' ) ? wp_login_url() : '',
|
26 |
'name' => __( 'Login link url', 'shortcodes-ultimate' ), 'desc' => __( 'Login link url', 'shortcodes-ultimate' )
|
27 |
),
|
28 |
'class' => array(
|
readme.txt
CHANGED
@@ -106,26 +106,40 @@ For help with premium add-ons, please [open new support ticket](https://getshort
|
|
106 |
|
107 |
== Changelog ==
|
108 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
109 |
= 5.0.5 =
|
110 |
|
111 |
-
Improvements
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
|
|
|
|
|
|
129 |
|
130 |
|
131 |
= 5.0.4 =
|
106 |
|
107 |
== Changelog ==
|
108 |
|
109 |
+
= 5.0.6 =
|
110 |
+
|
111 |
+
**Fixes**
|
112 |
+
|
113 |
+
- Added missing images for `su_audio`, `su_video`, `su_slider` and `su_carousel`
|
114 |
+
- Fixed Fatal error: Call to a member function get_page_permastruct() on null in link-template.php:357
|
115 |
+
- Added missing `su_get_icon()` utility function
|
116 |
+
- Added missing `su_scattr()` utility function
|
117 |
+
- Added missing `su_do_shortcode()` utility function
|
118 |
+
|
119 |
+
|
120 |
= 5.0.5 =
|
121 |
|
122 |
+
**Improvements**
|
123 |
+
|
124 |
+
- Improved compatibility with fitvid.js;
|
125 |
+
- Improved appearance of the `Show more` and `Show less` links of the `su_expand` shortcode;
|
126 |
+
- The new option `mute` for `su_youtube` and `su_youtube_advanced` shortcodes;
|
127 |
+
- Support for the `youtube-nocookie.com` domain in `su_youtube` and `su_youtube_advanced` shortcodes;
|
128 |
+
- Support for nested shortcodes in the `title` attribute of the `su_button` shortcode;
|
129 |
+
- The new option `dnt` (do not track) for the `su_vimeo` shortcode, [learn more](https://help.vimeo.com/hc/en-us/articles/360001494447-Using-Player-Parameters);
|
130 |
+
- The new option `mute` for the `su_vimeo` shortcode;
|
131 |
+
- https support for the `su_dailymotion` shortcode;
|
132 |
+
- New options `title` and `rel` for the `su_permalink` shortcode;
|
133 |
+
- The `su_post` shortcode now support slugs in the `post_id` attribute;
|
134 |
+
- The new option `zoom` for `su_gmap`.
|
135 |
+
|
136 |
+
**Changes**
|
137 |
+
|
138 |
+
- Shortcodes styles merged into a single stylesheet.
|
139 |
+
|
140 |
+
**Fixes**
|
141 |
+
|
142 |
+
- Fixed warning in `su_siblings` shortcode.
|
143 |
|
144 |
|
145 |
= 5.0.4 =
|
shortcodes-ultimate.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* Plugin Name: Shortcodes Ultimate
|
4 |
* Plugin URI: https://getshortcodes.com/
|
5 |
-
* Version: 5.0.
|
6 |
* Author: Vladimir Anokhin
|
7 |
* Author URI: https://vanokhin.com/
|
8 |
* Description: A comprehensive collection of visual components for WordPress
|
@@ -15,7 +15,7 @@
|
|
15 |
* Define plugin constants.
|
16 |
*/
|
17 |
define( 'SU_PLUGIN_FILE', __FILE__ );
|
18 |
-
define( 'SU_PLUGIN_VERSION', '5.0.
|
19 |
|
20 |
/**
|
21 |
* Load dependencies.
|
2 |
/**
|
3 |
* Plugin Name: Shortcodes Ultimate
|
4 |
* Plugin URI: https://getshortcodes.com/
|
5 |
+
* Version: 5.0.6
|
6 |
* Author: Vladimir Anokhin
|
7 |
* Author URI: https://vanokhin.com/
|
8 |
* Description: A comprehensive collection of visual components for WordPress
|
15 |
* Define plugin constants.
|
16 |
*/
|
17 |
define( 'SU_PLUGIN_FILE', __FILE__ );
|
18 |
+
define( 'SU_PLUGIN_VERSION', '5.0.6' );
|
19 |
|
20 |
/**
|
21 |
* Load dependencies.
|
templates/default-loop.php
CHANGED
@@ -1,30 +1,33 @@
|
|
1 |
<div class="su-posts su-posts-default-loop">
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
<?php the_excerpt(); ?>
|
18 |
-
</div>
|
19 |
-
<a href="<?php comments_link(); ?>" class="su-post-comments-link"><?php comments_number( __( '0 comments', 'shortcodes-ultimate' ), __( '1 comment', 'shortcodes-ultimate' ), '% comments' ); ?></a>
|
20 |
</div>
|
21 |
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
|
|
|
|
|
|
|
|
|
|
|
1 |
<div class="su-posts su-posts-default-loop">
|
2 |
+
|
3 |
+
<?php if ( $posts->have_posts() ) : ?>
|
4 |
+
|
5 |
+
<?php while ( $posts->have_posts() ) : $posts->the_post(); ?>
|
6 |
+
|
7 |
+
<div id="su-post-<?php the_ID(); ?>" class="su-post">
|
8 |
+
|
9 |
+
<?php if ( has_post_thumbnail( get_the_ID() ) ) : ?>
|
10 |
+
<a class="su-post-thumbnail" href="<?php the_permalink(); ?>"><?php the_post_thumbnail(); ?></a>
|
11 |
+
<?php endif; ?>
|
12 |
+
|
13 |
+
<h2 class="su-post-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
|
14 |
+
|
15 |
+
<div class="su-post-meta">
|
16 |
+
<?php _e( 'Posted', 'shortcodes-ultimate' ); ?>: <?php the_time( get_option( 'date_format' ) ); ?>
|
|
|
|
|
|
|
17 |
</div>
|
18 |
|
19 |
+
<div class="su-post-excerpt">
|
20 |
+
<?php the_excerpt(); ?>
|
21 |
+
</div>
|
22 |
+
|
23 |
+
<a href="<?php comments_link(); ?>" class="su-post-comments-link"><?php comments_number( __( '0 comments', 'shortcodes-ultimate' ), __( '1 comment', 'shortcodes-ultimate' ), '% comments' ); ?></a>
|
24 |
+
|
25 |
+
</div>
|
26 |
+
|
27 |
+
<?php endwhile; ?>
|
28 |
+
|
29 |
+
<?php else : ?>
|
30 |
+
<h4><?php _e( 'Posts not found', 'shortcodes-ultimate' ); ?></h4>
|
31 |
+
<?php endif; ?>
|
32 |
+
|
33 |
+
</div>
|