Version Description
Upgrade normally via your Wordpress admin -> Plugins panel.
Download this release
Release Info
Developer | gn_themes |
Plugin | Shortcodes Ultimate |
Version | 2.2.4 |
Comparing to | |
See all releases |
Code changes from version 2.2.3 to 2.2.4
- lib/admin.php +3 -3
- lib/shortcodes.php +12 -7
- readme.txt +6 -2
- shortcodes-ultimate.php +2 -2
lib/admin.php
CHANGED
@@ -232,9 +232,9 @@
|
|
232 |
<td>[menu name="Main menu"]</td>
|
233 |
</tr>
|
234 |
<tr>
|
235 |
-
<td>subpages</td>
|
236 |
-
<td>depth (<?php _e( 'optional', 'shortcodes-ultimate' ); ?>)</td>
|
237 |
-
<td>[subpages]<br/>[subpages depth="2"]</td>
|
238 |
</tr>
|
239 |
<tr>
|
240 |
<td>siblings</td>
|
232 |
<td>[menu name="Main menu"]</td>
|
233 |
</tr>
|
234 |
<tr>
|
235 |
+
<td class="su-new-shortcode">subpages</td>
|
236 |
+
<td>depth (<?php _e( 'optional', 'shortcodes-ultimate' ); ?>)<br/>p (child_of) (<?php _e( 'optional', 'shortcodes-ultimate' ); ?>)</td>
|
237 |
+
<td>[subpages]<br/>[subpages depth="2" p="122"]</td>
|
238 |
</tr>
|
239 |
<tr>
|
240 |
<td>siblings</td>
|
lib/shortcodes.php
CHANGED
@@ -463,32 +463,34 @@
|
|
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 );
|
469 |
|
470 |
// Link to file
|
471 |
if ( $link == 'file' ) {
|
472 |
-
$return .= '<a href="' . $image[0] . '" 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>'
|
473 |
}
|
474 |
|
475 |
// Link to attachment page
|
476 |
elseif ( $link == 'attachment' ) {
|
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>'
|
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>'
|
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 . '" />'
|
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 . '" />'
|
492 |
}
|
493 |
}
|
494 |
$return .= '</div>';
|
@@ -542,15 +544,18 @@
|
|
542 |
*/
|
543 |
function su_subpages_shortcode( $atts, $content = null ) {
|
544 |
extract( shortcode_atts( array(
|
545 |
-
'depth' => 1
|
|
|
546 |
), $atts ) );
|
547 |
|
548 |
global $post;
|
549 |
|
|
|
|
|
550 |
$return = wp_list_pages( array(
|
551 |
'title_li' => '',
|
552 |
'echo' => 0,
|
553 |
-
'child_of' =>
|
554 |
'depth' => $depth
|
555 |
) );
|
556 |
|
463 |
';
|
464 |
|
465 |
$return .= '<div id="' . $slider_id . '" class="su-nivo-slider" style="width:' . $width . 'px;height:' . $height . 'px">';
|
466 |
+
|
467 |
foreach ( $attachments as $attachment ) {
|
468 |
+
|
469 |
$title = apply_filters( 'the_title', $attachment->post_title );
|
470 |
$image = wp_get_attachment_image_src( $attachment->ID, 'full', false );
|
471 |
|
472 |
// Link to file
|
473 |
if ( $link == 'file' ) {
|
474 |
+
$return .= '<a href="' . $image[0] . '" 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>';
|
475 |
}
|
476 |
|
477 |
// Link to attachment page
|
478 |
elseif ( $link == 'attachment' ) {
|
479 |
+
$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>';
|
480 |
}
|
481 |
|
482 |
// Custom link
|
483 |
elseif ( $link == 'caption' ) {
|
484 |
if ( $attachment->post_excerpt ) {
|
485 |
+
$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>';
|
486 |
} else {
|
487 |
+
$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 . '" />';
|
488 |
}
|
489 |
}
|
490 |
|
491 |
// No link
|
492 |
else {
|
493 |
+
$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 . '" />';
|
494 |
}
|
495 |
}
|
496 |
$return .= '</div>';
|
544 |
*/
|
545 |
function su_subpages_shortcode( $atts, $content = null ) {
|
546 |
extract( shortcode_atts( array(
|
547 |
+
'depth' => 1,
|
548 |
+
'p' => false
|
549 |
), $atts ) );
|
550 |
|
551 |
global $post;
|
552 |
|
553 |
+
$child_of = ( $p ) ? $p : get_the_ID();
|
554 |
+
|
555 |
$return = wp_list_pages( array(
|
556 |
'title_li' => '',
|
557 |
'echo' => 0,
|
558 |
+
'child_of' => $child_of,
|
559 |
'depth' => $depth
|
560 |
) );
|
561 |
|
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,9 +15,11 @@ Provides support for multiple useful shortcodes
|
|
15 |
* New shortcode: document
|
16 |
* New shortcode: members
|
17 |
* New shortcode: feed
|
18 |
-
* New
|
|
|
19 |
|
20 |
With this plugin you can easily add buttons, dividers, spacers, boxes, notes and much more
|
|
|
21 |
= Complete list of available shortcodes =
|
22 |
* Heading
|
23 |
* Frame
|
@@ -87,6 +89,8 @@ See your dashboard
|
|
87 |
* New shortcode: document
|
88 |
* New shortcode: members
|
89 |
* New shortcode: feed
|
|
|
|
|
90 |
|
91 |
= 2.1 =
|
92 |
* New option: disable any script
|
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.4
|
8 |
|
9 |
Provides support for multiple useful shortcodes
|
10 |
|
15 |
* New shortcode: document
|
16 |
* New shortcode: members
|
17 |
* New shortcode: feed
|
18 |
+
* New attr: link="caption" for [nivo_slider]
|
19 |
+
* New attr: p for [subpages]
|
20 |
|
21 |
With this plugin you can easily add buttons, dividers, spacers, boxes, notes and much more
|
22 |
+
|
23 |
= Complete list of available shortcodes =
|
24 |
* Heading
|
25 |
* Frame
|
89 |
* New shortcode: document
|
90 |
* New shortcode: members
|
91 |
* New shortcode: feed
|
92 |
+
* New attr: link="caption" for [nivo_slider]
|
93 |
+
* New attr: p for [subpages]
|
94 |
|
95 |
= 2.1 =
|
96 |
* New option: disable any script
|
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
|
@@ -17,7 +17,7 @@
|
|
17 |
*/
|
18 |
function su_plugin_init() {
|
19 |
|
20 |
-
// Make plugin available for
|
21 |
load_plugin_textdomain( 'shortcodes-ultimate', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
|
22 |
|
23 |
// Load libs
|
3 |
/*
|
4 |
Plugin Name: Shortcodes Ultimate
|
5 |
Plugin URI: http://ilovecode.ru/?p=122
|
6 |
+
Version: 2.2.4
|
7 |
Author: Vladimir Anokhin
|
8 |
Author URI: http://ilovecode.ru/
|
9 |
Description: Provides support for many easy to use shortcodes
|
17 |
*/
|
18 |
function su_plugin_init() {
|
19 |
|
20 |
+
// Make plugin available for translation
|
21 |
load_plugin_textdomain( 'shortcodes-ultimate', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
|
22 |
|
23 |
// Load libs
|