Version Description
- Added: [document] is now compatible with https
- Fixed: carousel items width calculation
- Added: new attribute for [button title=""], forum topic
- Fixed: stripslashes for [button] content
Download this release
Release Info
Developer | gn_themes |
Plugin | Shortcodes Ultimate |
Version | 4.9.7 |
Comparing to | |
See all releases |
Code changes from version 4.9.6 to 4.9.7
- inc/core/data.php +5 -0
- inc/core/shortcodes.php +6 -3
- readme.txt +7 -1
- shortcodes-ultimate.php +2 -2
inc/core/data.php
CHANGED
@@ -833,6 +833,11 @@ class Su_Data {
|
|
833 |
'name' => __( 'Rel attribute', 'su' ),
|
834 |
'desc' => __( 'Here you can add value for the rel attribute.<br>Example values: <b%value>nofollow</b>, <b%value>lightbox</b>', 'su' )
|
835 |
),
|
|
|
|
|
|
|
|
|
|
|
836 |
'class' => array(
|
837 |
'default' => '',
|
838 |
'name' => __( 'Class', 'su' ),
|
833 |
'name' => __( 'Rel attribute', 'su' ),
|
834 |
'desc' => __( 'Here you can add value for the rel attribute.<br>Example values: <b%value>nofollow</b>, <b%value>lightbox</b>', 'su' )
|
835 |
),
|
836 |
+
'title' => array(
|
837 |
+
'default' => '',
|
838 |
+
'name' => __( 'Title attribute', 'su' ),
|
839 |
+
'desc' => __( 'Here you can add value for the title attribute', 'su' )
|
840 |
+
),
|
841 |
'class' => array(
|
842 |
'default' => '',
|
843 |
'name' => __( 'Class', 'su' ),
|
inc/core/shortcodes.php
CHANGED
@@ -315,6 +315,7 @@ class Su_Shortcodes {
|
|
315 |
'desc' => '',
|
316 |
'onclick' => '',
|
317 |
'rel' => '',
|
|
|
318 |
'class' => ''
|
319 |
), $atts, 'button' );
|
320 |
|
@@ -434,8 +435,10 @@ class Su_Shortcodes {
|
|
434 |
$atts['onclick'] = ( $atts['onclick'] ) ? ' onClick="' . $atts['onclick'] . '"' : '';
|
435 |
// Prepare rel attribute
|
436 |
$atts['rel'] = ( $atts['rel'] ) ? ' rel="' . $atts['rel'] . '"' : '';
|
|
|
|
|
437 |
su_query_asset( 'css', 'su-content-shortcodes' );
|
438 |
-
return $before . '<a href="' . su_scattr( $atts['url'] ) . '" class="' . implode( $classes, ' ' ) . '" style="' . implode( $a_css, ';' ) . '" target="_' . $atts['target'] . '"' . $atts['onclick'] . $atts['rel'] . '><span style="' . implode( $span_css, ';' ) . '">' . do_shortcode( $content ) . $desc . '</span></a>' . $after;
|
439 |
}
|
440 |
|
441 |
public static function service( $atts = null, $content = null ) {
|
@@ -956,7 +959,7 @@ class Su_Shortcodes {
|
|
956 |
), $atts, 'document' );
|
957 |
if ( $atts['file'] !== null ) $atts['url'] = $atts['file'];
|
958 |
su_query_asset( 'css', 'su-media-shortcodes' );
|
959 |
-
return '<div class="su-document su-responsive-media-' . $atts['responsive'] . '"><iframe src="
|
960 |
}
|
961 |
|
962 |
public static function gmap( $atts = null, $content = null ) {
|
@@ -1094,7 +1097,7 @@ class Su_Shortcodes {
|
|
1094 |
// Create slides
|
1095 |
foreach ( (array) $slides as $slide ) {
|
1096 |
// Crop the image
|
1097 |
-
$image = su_image_resize( $slide['image'], round( $atts['width'] / $atts['items'] ), $atts['height'] );
|
1098 |
// Prepare slide title
|
1099 |
$title = ( $atts['title'] === 'yes' && $slide['title'] ) ? '<span class="su-carousel-slide-title">' . stripslashes( $slide['title'] ) . '</span>' : '';
|
1100 |
// Open slide
|
315 |
'desc' => '',
|
316 |
'onclick' => '',
|
317 |
'rel' => '',
|
318 |
+
'title' => '',
|
319 |
'class' => ''
|
320 |
), $atts, 'button' );
|
321 |
|
435 |
$atts['onclick'] = ( $atts['onclick'] ) ? ' onClick="' . $atts['onclick'] . '"' : '';
|
436 |
// Prepare rel attribute
|
437 |
$atts['rel'] = ( $atts['rel'] ) ? ' rel="' . $atts['rel'] . '"' : '';
|
438 |
+
// Prepare title attribute
|
439 |
+
$atts['title'] = ( $atts['title'] ) ? ' title="' . $atts['title'] . '"' : '';
|
440 |
su_query_asset( 'css', 'su-content-shortcodes' );
|
441 |
+
return $before . '<a href="' . su_scattr( $atts['url'] ) . '" class="' . implode( $classes, ' ' ) . '" style="' . implode( $a_css, ';' ) . '" target="_' . $atts['target'] . '"' . $atts['onclick'] . $atts['rel'] . $atts['title'] . '><span style="' . implode( $span_css, ';' ) . '">' . do_shortcode( stripcslashes( $content ) ) . $desc . '</span></a>' . $after;
|
442 |
}
|
443 |
|
444 |
public static function service( $atts = null, $content = null ) {
|
959 |
), $atts, 'document' );
|
960 |
if ( $atts['file'] !== null ) $atts['url'] = $atts['file'];
|
961 |
su_query_asset( 'css', 'su-media-shortcodes' );
|
962 |
+
return '<div class="su-document su-responsive-media-' . $atts['responsive'] . '"><iframe src="//docs.google.com/viewer?embedded=true&url=' . $atts['url'] . '" width="' . $atts['width'] . '" height="' . $atts['height'] . '" class="su-document' . su_ecssc( $atts ) . '"></iframe></div>';
|
963 |
}
|
964 |
|
965 |
public static function gmap( $atts = null, $content = null ) {
|
1097 |
// Create slides
|
1098 |
foreach ( (array) $slides as $slide ) {
|
1099 |
// Crop the image
|
1100 |
+
$image = su_image_resize( $slide['image'], ( round( $atts['width'] / $atts['items'] ) - 18 ), $atts['height'] );
|
1101 |
// Prepare slide title
|
1102 |
$title = ( $atts['title'] === 'yes' && $slide['title'] ) ? '<span class="su-carousel-slide-title">' . stripslashes( $slide['title'] ) . '</span>' : '';
|
1103 |
// Open slide
|
readme.txt
CHANGED
@@ -109,8 +109,14 @@ Upgrade normally
|
|
109 |
|
110 |
== Changelog ==
|
111 |
|
|
|
|
|
|
|
|
|
|
|
|
|
112 |
= 4.9.6 =
|
113 |
-
* Fixed: Quick fix for disabled custom css since previous update
|
114 |
|
115 |
= 4.9.5 =
|
116 |
* Added: basic RTL support
|
109 |
|
110 |
== Changelog ==
|
111 |
|
112 |
+
= 4.9.7 =
|
113 |
+
* Added: [document] is now compatible with https
|
114 |
+
* Fixed: carousel items width calculation
|
115 |
+
* Added: new attribute for [button title=""], [forum topic](https://wordpress.org/support/topic/how-add-title-tag-to-a-button)
|
116 |
+
* Fixed: stripslashes for [button] content
|
117 |
+
|
118 |
= 4.9.6 =
|
119 |
+
* Fixed: Quick fix for disabled custom css since previous update
|
120 |
|
121 |
= 4.9.5 =
|
122 |
* Added: basic RTL support
|
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.9.
|
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.9.
|
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.9.7
|
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.9.7' );
|
17 |
define( 'SU_ENABLE_CACHE', true );
|
18 |
|
19 |
// Includes
|