Version Description
Upgrade normally via your Wordpress admin -> Plugins panel.
Download this release
Release Info
Developer | gn_themes |
Plugin | Shortcodes Ultimate |
Version | 2.2.3 |
Comparing to | |
See all releases |
Code changes from version 2.2.2 to 2.2.3
- lib/admin.php +2 -2
- lib/shortcodes.php +10 -4
- lib/timthumb.php +8 -8
- readme.txt +16 -14
- shortcodes-ultimate.php +1 -1
lib/admin.php
CHANGED
@@ -261,9 +261,9 @@
|
|
261 |
<td>file="*.doc|*.xls|*.pdf"<br/>width<br/>height</td>
|
262 |
<td>[document file="file.doc" width="600" height="400"]</td>
|
263 |
</tr>
|
264 |
-
<tr>
|
265 |
<td>nivo_slider</td>
|
266 |
-
<td>width<br/>height<br/>link="file|attachment" (<?php _e( 'optional', 'shortcodes-ultimate' ); ?>)<br/>speed (1000 = <?php _e( '1 second', 'shortcodes-ultimate' ); ?>)<br/>delay (1000 = <?php _e( '1 second', 'shortcodes-ultimate' ); ?>)<br/>p - post ID (<?php _e( 'optional', 'shortcodes-ultimate' ); ?>)<br/>effect="random|boxRandom|fold|fade"</td>
|
267 |
<td>[nivo_slider]<br/>[nivo_slider width="640" height="400" link="file" effect="boxRandom"]</td>
|
268 |
</tr>
|
269 |
<tr>
|
261 |
<td>file="*.doc|*.xls|*.pdf"<br/>width<br/>height</td>
|
262 |
<td>[document file="file.doc" width="600" height="400"]</td>
|
263 |
</tr>
|
264 |
+
<tr class="su-new-shortcode">
|
265 |
<td>nivo_slider</td>
|
266 |
+
<td>width<br/>height<br/>link="file|attachment|caption" (<?php _e( 'optional', 'shortcodes-ultimate' ); ?>)<br/>speed (1000 = <?php _e( '1 second', 'shortcodes-ultimate' ); ?>)<br/>delay (1000 = <?php _e( '1 second', 'shortcodes-ultimate' ); ?>)<br/>p - post ID (<?php _e( 'optional', 'shortcodes-ultimate' ); ?>)<br/>effect="random|boxRandom|fold|fade"</td>
|
267 |
<td>[nivo_slider]<br/>[nivo_slider width="640" height="400" link="file" effect="boxRandom"]</td>
|
268 |
</tr>
|
269 |
<tr>
|
lib/shortcodes.php
CHANGED
@@ -460,12 +460,9 @@
|
|
460 |
});
|
461 |
});
|
462 |
</script>
|
463 |
-
<style type="text/css">
|
464 |
-
#' . $slider_id . ' {width:' . $width . 'px;height:' . $height . 'px}
|
465 |
-
</style>
|
466 |
';
|
467 |
|
468 |
-
$return .= '<div id="' . $slider_id . '" class="su-nivo-slider">';
|
469 |
foreach ( $attachments as $attachment ) {
|
470 |
$title = apply_filters( 'the_title', $attachment->post_title );
|
471 |
$image = wp_get_attachment_image_src( $attachment->ID, 'full', false );
|
@@ -480,6 +477,15 @@
|
|
480 |
$return .= '<a href="' . get_permalink( $attachment->ID ) . '" title="' . $title . '"><img src="' . su_plugin_url() . '/lib/timthumb.php?src=' . $image[0] . '&w=' . $width . '&h=' . $height . '&q=100&zc=1" width="' . $width . '" height="' . $height . '" alt="' . $title . '" /></a>' . "\n";
|
481 |
}
|
482 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
483 |
// No link
|
484 |
else {
|
485 |
$return .= '<img src="' . su_plugin_url() . '/lib/timthumb.php?src=' . $image[0] . '&w=' . $width . '&h=' . $height . '&q=100&zc=1" width="' . $width . '" height="' . $height . '" alt="' . $title . '" />' . "\n";
|
460 |
});
|
461 |
});
|
462 |
</script>
|
|
|
|
|
|
|
463 |
';
|
464 |
|
465 |
+
$return .= '<div id="' . $slider_id . '" class="su-nivo-slider" style="width:' . $width . 'px;height:' . $height . 'px">';
|
466 |
foreach ( $attachments as $attachment ) {
|
467 |
$title = apply_filters( 'the_title', $attachment->post_title );
|
468 |
$image = wp_get_attachment_image_src( $attachment->ID, 'full', false );
|
477 |
$return .= '<a href="' . get_permalink( $attachment->ID ) . '" title="' . $title . '"><img src="' . su_plugin_url() . '/lib/timthumb.php?src=' . $image[0] . '&w=' . $width . '&h=' . $height . '&q=100&zc=1" width="' . $width . '" height="' . $height . '" alt="' . $title . '" /></a>' . "\n";
|
478 |
}
|
479 |
|
480 |
+
// Custom link
|
481 |
+
elseif ( $link == 'caption' ) {
|
482 |
+
if ( $attachment->post_excerpt ) {
|
483 |
+
$return .= '<a href="' . $attachment->post_excerpt . '" title="' . $title . '"><img src="' . su_plugin_url() . '/lib/timthumb.php?src=' . $image[0] . '&w=' . $width . '&h=' . $height . '&q=100&zc=1" width="' . $width . '" height="' . $height . '" alt="' . $title . '" /></a>' . "\n";
|
484 |
+
} else {
|
485 |
+
$return .= '<img src="' . su_plugin_url() . '/lib/timthumb.php?src=' . $image[0] . '&w=' . $width . '&h=' . $height . '&q=100&zc=1" width="' . $width . '" height="' . $height . '" alt="' . $title . '" />' . "\n";
|
486 |
+
}
|
487 |
+
}
|
488 |
+
|
489 |
// No link
|
490 |
else {
|
491 |
$return .= '<img src="' . su_plugin_url() . '/lib/timthumb.php?src=' . $image[0] . '&w=' . $width . '&h=' . $height . '&q=100&zc=1" width="' . $width . '" height="' . $height . '" alt="' . $title . '" />' . "\n";
|
lib/timthumb.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* TimThumb script created by Ben Gillbanks, originally created by Tim McDaniels and Darren Hoyt
|
4 |
* http://code.google.com/p/timthumb/
|
5 |
-
*
|
6 |
* GNU General Public License, version 2
|
7 |
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
8 |
*
|
@@ -17,7 +17,7 @@ define ('VERSION', '1.19'); // version number (to force a cache refresh)
|
|
17 |
define ('DIRECTORY_CACHE', './cache'); // cache directory
|
18 |
define ('MAX_WIDTH', 1000); // maximum image width
|
19 |
define ('MAX_HEIGHT', 1000); // maximum image height
|
20 |
-
define ('ALLOW_EXTERNAL',
|
21 |
|
22 |
// external domains that are allowed to be displayed on your website
|
23 |
$allowedSites = array (
|
@@ -289,7 +289,7 @@ if (file_exists ($src)) {
|
|
289 |
*
|
290 |
* @global <type> $quality
|
291 |
* @param <type> $mime_type
|
292 |
-
* @param <type> $image_resized
|
293 |
*/
|
294 |
function show_image ($mime_type, $image_resized) {
|
295 |
|
@@ -313,7 +313,7 @@ function show_image ($mime_type, $image_resized) {
|
|
313 |
*
|
314 |
* @param <type> $property
|
315 |
* @param <type> $default
|
316 |
-
* @return <type>
|
317 |
*/
|
318 |
function get_request ($property, $default = 0) {
|
319 |
|
@@ -377,7 +377,7 @@ function clean_cache () {
|
|
377 |
$files = glob (DIRECTORY_CACHE . '/*', GLOB_BRACE);
|
378 |
|
379 |
if (count ($files) > CACHE_SIZE) {
|
380 |
-
|
381 |
$yesterday = time () - (24 * 60 * 60);
|
382 |
|
383 |
usort ($files, 'filemtime_compare');
|
@@ -474,7 +474,7 @@ function check_cache ($mime_type) {
|
|
474 |
/**
|
475 |
*
|
476 |
* @param <type> $mime_type
|
477 |
-
* @return <type>
|
478 |
*/
|
479 |
function show_cache_file ($mime_type) {
|
480 |
|
@@ -563,7 +563,7 @@ function check_external ($src) {
|
|
563 |
|
564 |
// convert youtube video urls
|
565 |
// need to tidy up the code
|
566 |
-
|
567 |
if ($url_info['host'] == 'www.youtube.com' || $url_info['host'] == 'youtube.com') {
|
568 |
parse_str ($url_info['query']);
|
569 |
|
@@ -587,7 +587,7 @@ function check_external ($src) {
|
|
587 |
$isAllowedSite = true;
|
588 |
}
|
589 |
}
|
590 |
-
|
591 |
}
|
592 |
|
593 |
// if allowed
|
2 |
/**
|
3 |
* TimThumb script created by Ben Gillbanks, originally created by Tim McDaniels and Darren Hoyt
|
4 |
* http://code.google.com/p/timthumb/
|
5 |
+
*
|
6 |
* GNU General Public License, version 2
|
7 |
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
8 |
*
|
17 |
define ('DIRECTORY_CACHE', './cache'); // cache directory
|
18 |
define ('MAX_WIDTH', 1000); // maximum image width
|
19 |
define ('MAX_HEIGHT', 1000); // maximum image height
|
20 |
+
define ('ALLOW_EXTERNAL', TRUE); // allow external website (override security precaution)
|
21 |
|
22 |
// external domains that are allowed to be displayed on your website
|
23 |
$allowedSites = array (
|
289 |
*
|
290 |
* @global <type> $quality
|
291 |
* @param <type> $mime_type
|
292 |
+
* @param <type> $image_resized
|
293 |
*/
|
294 |
function show_image ($mime_type, $image_resized) {
|
295 |
|
313 |
*
|
314 |
* @param <type> $property
|
315 |
* @param <type> $default
|
316 |
+
* @return <type>
|
317 |
*/
|
318 |
function get_request ($property, $default = 0) {
|
319 |
|
377 |
$files = glob (DIRECTORY_CACHE . '/*', GLOB_BRACE);
|
378 |
|
379 |
if (count ($files) > CACHE_SIZE) {
|
380 |
+
|
381 |
$yesterday = time () - (24 * 60 * 60);
|
382 |
|
383 |
usort ($files, 'filemtime_compare');
|
474 |
/**
|
475 |
*
|
476 |
* @param <type> $mime_type
|
477 |
+
* @return <type>
|
478 |
*/
|
479 |
function show_cache_file ($mime_type) {
|
480 |
|
563 |
|
564 |
// convert youtube video urls
|
565 |
// need to tidy up the code
|
566 |
+
|
567 |
if ($url_info['host'] == 'www.youtube.com' || $url_info['host'] == 'youtube.com') {
|
568 |
parse_str ($url_info['query']);
|
569 |
|
587 |
$isAllowedSite = true;
|
588 |
}
|
589 |
}
|
590 |
+
|
591 |
}
|
592 |
|
593 |
// if allowed
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://ilovecode.ru/
|
|
4 |
Tags: shortcode, shortcodes, short code, shortcodes, tab, tabs, button, buttons, jquery, box, boxes, toggle, spoiler, column, columns, services, service, pullquote, list, lists, frame, images, image, links, fancy, fancy link, fancy links, fancy buttons, jquery tabs, accordeon, slider, nivo, nivo slider, plugin, admin, photoshop, gallery, bloginfo, list pages, sub pages, navigation, siblings pages, children pages, permalink, permalinks, feed, document, member, members, documents, rss
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.2
|
7 |
-
Stable tag: 2.2.
|
8 |
|
9 |
Provides support for multiple useful shortcodes
|
10 |
|
@@ -15,6 +15,7 @@ Provides support for multiple useful shortcodes
|
|
15 |
* New shortcode: document
|
16 |
* New shortcode: members
|
17 |
* New shortcode: feed
|
|
|
18 |
|
19 |
With this plugin you can easily add buttons, dividers, spacers, boxes, notes and much more
|
20 |
= Complete list of available shortcodes =
|
@@ -73,6 +74,7 @@ Upgrade normally via your Wordpress admin -> Plugins panel.
|
|
73 |
2. Box, note, divider (top), list.
|
74 |
3. List styles.
|
75 |
|
|
|
76 |
== Frequently Asked Questions ==
|
77 |
|
78 |
= Complete list of supported shortcodes =
|
@@ -81,18 +83,18 @@ See your dashboard
|
|
81 |
|
82 |
== Changelog ==
|
83 |
|
84 |
-
= 2.2
|
85 |
* New shortcode: document
|
86 |
* New shortcode: members
|
87 |
* New shortcode: feed
|
88 |
|
89 |
-
= 2.1
|
90 |
* New option: disable any script
|
91 |
* New option: disable any stylesheet
|
92 |
* New attribute for column shortcode - style
|
93 |
* New attribute for spoiler shortcode - style
|
94 |
|
95 |
-
= 2.0
|
96 |
* New shortcode: menu
|
97 |
* New shortcode: subpages
|
98 |
* New shortcode: siblings
|
@@ -101,47 +103,47 @@ See your dashboard
|
|
101 |
* New button attribute - target
|
102 |
* Different tabs styles (1 old + 1 new)
|
103 |
|
104 |
-
= 1.9
|
105 |
* New shortcode: permalink
|
106 |
* New shortcode: bloginfo
|
107 |
|
108 |
-
= 1.8
|
109 |
* Some small additions
|
110 |
* Ajax admin page
|
111 |
* No-js compatibility
|
112 |
* Multiple tabs support
|
113 |
|
114 |
-
= 1.7
|
115 |
* Improved settings page design
|
116 |
* Added shortcode nivo_slider
|
117 |
* Added shortcode photoshop
|
118 |
|
119 |
-
= 1.6
|
120 |
* New admin panel
|
121 |
* Custom CSS editor with syntax hughlight
|
122 |
* Small fixes
|
123 |
* Added donation forms
|
124 |
|
125 |
-
= 1.5
|
126 |
* Added option "Compatibility mode"
|
127 |
* Added new button styles
|
128 |
* Added new list styles
|
129 |
* Added new shortcode media
|
130 |
* Added new shortcode table
|
131 |
|
132 |
-
= 1.4
|
133 |
* Added shortcode "Fancy link"
|
134 |
|
135 |
-
= 1.3
|
136 |
* Some fixes
|
137 |
|
138 |
-
= 1.2
|
139 |
* Localization support
|
140 |
|
141 |
-
= 1.1
|
142 |
* Added options page
|
143 |
* Fixed options saving
|
144 |
|
145 |
-
= 1.0
|
146 |
* Initial release
|
147 |
|
4 |
Tags: shortcode, shortcodes, short code, shortcodes, tab, tabs, button, buttons, jquery, box, boxes, toggle, spoiler, column, columns, services, service, pullquote, list, lists, frame, images, image, links, fancy, fancy link, fancy links, fancy buttons, jquery tabs, accordeon, slider, nivo, nivo slider, plugin, admin, photoshop, gallery, bloginfo, list pages, sub pages, navigation, siblings pages, children pages, permalink, permalinks, feed, document, member, members, documents, rss
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.2
|
7 |
+
Stable tag: 2.2.3
|
8 |
|
9 |
Provides support for multiple useful shortcodes
|
10 |
|
15 |
* New shortcode: document
|
16 |
* New shortcode: members
|
17 |
* New shortcode: feed
|
18 |
+
* New nivo slider link option
|
19 |
|
20 |
With this plugin you can easily add buttons, dividers, spacers, boxes, notes and much more
|
21 |
= Complete list of available shortcodes =
|
74 |
2. Box, note, divider (top), list.
|
75 |
3. List styles.
|
76 |
|
77 |
+
|
78 |
== Frequently Asked Questions ==
|
79 |
|
80 |
= Complete list of supported shortcodes =
|
83 |
|
84 |
== Changelog ==
|
85 |
|
86 |
+
= 2.2 =
|
87 |
* New shortcode: document
|
88 |
* New shortcode: members
|
89 |
* New shortcode: feed
|
90 |
|
91 |
+
= 2.1 =
|
92 |
* New option: disable any script
|
93 |
* New option: disable any stylesheet
|
94 |
* New attribute for column shortcode - style
|
95 |
* New attribute for spoiler shortcode - style
|
96 |
|
97 |
+
= 2.0 =
|
98 |
* New shortcode: menu
|
99 |
* New shortcode: subpages
|
100 |
* New shortcode: siblings
|
103 |
* New button attribute - target
|
104 |
* Different tabs styles (1 old + 1 new)
|
105 |
|
106 |
+
= 1.9 =
|
107 |
* New shortcode: permalink
|
108 |
* New shortcode: bloginfo
|
109 |
|
110 |
+
= 1.8 =
|
111 |
* Some small additions
|
112 |
* Ajax admin page
|
113 |
* No-js compatibility
|
114 |
* Multiple tabs support
|
115 |
|
116 |
+
= 1.7 =
|
117 |
* Improved settings page design
|
118 |
* Added shortcode nivo_slider
|
119 |
* Added shortcode photoshop
|
120 |
|
121 |
+
= 1.6 =
|
122 |
* New admin panel
|
123 |
* Custom CSS editor with syntax hughlight
|
124 |
* Small fixes
|
125 |
* Added donation forms
|
126 |
|
127 |
+
= 1.5 =
|
128 |
* Added option "Compatibility mode"
|
129 |
* Added new button styles
|
130 |
* Added new list styles
|
131 |
* Added new shortcode media
|
132 |
* Added new shortcode table
|
133 |
|
134 |
+
= 1.4 =
|
135 |
* Added shortcode "Fancy link"
|
136 |
|
137 |
+
= 1.3 =
|
138 |
* Some fixes
|
139 |
|
140 |
+
= 1.2 =
|
141 |
* Localization support
|
142 |
|
143 |
+
= 1.1 =
|
144 |
* Added options page
|
145 |
* Fixed options saving
|
146 |
|
147 |
+
= 1.0 =
|
148 |
* Initial release
|
149 |
|
shortcodes-ultimate.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
/*
|
4 |
Plugin Name: Shortcodes Ultimate
|
5 |
Plugin URI: http://ilovecode.ru/?p=122
|
6 |
-
Version: 2.2.
|
7 |
Author: Vladimir Anokhin
|
8 |
Author URI: http://ilovecode.ru/
|
9 |
Description: Provides support for many easy to use shortcodes
|
3 |
/*
|
4 |
Plugin Name: Shortcodes Ultimate
|
5 |
Plugin URI: http://ilovecode.ru/?p=122
|
6 |
+
Version: 2.2.3
|
7 |
Author: Vladimir Anokhin
|
8 |
Author URI: http://ilovecode.ru/
|
9 |
Description: Provides support for many easy to use shortcodes
|