Shortcodes Ultimate - Version 2.5.4

Version Description

Upgrade normally via your Wordpress admin -> Plugins panel.

Download this release

Release Info

Developer gn_themes
Plugin Icon 128x128 Shortcodes Ultimate
Version 2.5.4
Comparing to
See all releases

Code changes from version 2.5.3 to 2.5.4

lib/available.php CHANGED
@@ -706,6 +706,15 @@
706
  'default' => '3',
707
  'desc' => __( 'Number of items to show', 'shortcodes-ultimate' )
708
  ),
 
 
 
 
 
 
 
 
 
709
  'link' => array(
710
  'values' => array(
711
  'none',
706
  'default' => '3',
707
  'desc' => __( 'Number of items to show', 'shortcodes-ultimate' )
708
  ),
709
+ 'margin' => array(
710
+ 'values' => array(
711
+ '5',
712
+ '10',
713
+ '15'
714
+ ),
715
+ 'default' => '10',
716
+ 'desc' => __( 'Space between items in pixels', 'shortcodes-ultimate' )
717
+ ),
718
  'link' => array(
719
  'values' => array(
720
  'none',
lib/shortcodes.php CHANGED
@@ -683,6 +683,7 @@
683
  'height' => 130,
684
  'link' => false,
685
  'items' => 3,
 
686
  'speed' => 400,
687
  'bg' => '#eee',
688
  'p' => false
@@ -710,7 +711,7 @@
710
  $width = $width - 80;
711
  $height = $height - 30;
712
 
713
- $item_width = round( ( $width - ( ( $items - 1 ) * 10 ) ) / $items );
714
 
715
  $return = '
716
  <script type="text/javascript">
@@ -718,7 +719,7 @@
718
  jQuery("#' . $carousel_id . '").jcarousel({
719
  auto: 2,
720
  scroll: 1,
721
- wrap: "circular",
722
  animation: ' . $speed . ',
723
  initCallback: mycarousel_initCallback
724
  });
@@ -733,7 +734,7 @@
733
  $title = apply_filters( 'the_title', $attachment->post_title );
734
  $image = wp_get_attachment_image_src( $attachment->ID, 'full', false );
735
 
736
- $return .= '<li style="width:' . $item_width . 'px;height:' . $height . 'px">';
737
 
738
  // Link to file
739
  if ( $link == 'file' ) {
@@ -756,7 +757,7 @@
756
 
757
  // No link
758
  else {
759
- $return .= '<img src="' . su_plugin_url() . '/lib/timthumb.php?src=' . $image[0] . '&amp;w=' . $item_width . '&amp;h=' . $height . '&amp;q=100&amp;zc=1" width="' . $item_width . '" height="' . $height . '" alt="' . $title . '" />';
760
  }
761
 
762
  $return .= '</li>';
683
  'height' => 130,
684
  'link' => false,
685
  'items' => 3,
686
+ 'margin' => 10,
687
  'speed' => 400,
688
  'bg' => '#eee',
689
  'p' => false
711
  $width = $width - 80;
712
  $height = $height - 30;
713
 
714
+ $item_width = round( ( $width - ( ( $items - 1 ) * $margin ) ) / $items );
715
 
716
  $return = '
717
  <script type="text/javascript">
719
  jQuery("#' . $carousel_id . '").jcarousel({
720
  auto: 2,
721
  scroll: 1,
722
+ wrap: "last",
723
  animation: ' . $speed . ',
724
  initCallback: mycarousel_initCallback
725
  });
734
  $title = apply_filters( 'the_title', $attachment->post_title );
735
  $image = wp_get_attachment_image_src( $attachment->ID, 'full', false );
736
 
737
+ $return .= '<li style="width:' . $item_width . 'px;height:' . $height . 'px;margin-right:' . $margin . 'px">';
738
 
739
  // Link to file
740
  if ( $link == 'file' ) {
757
 
758
  // No link
759
  else {
760
+ $return .= '<a><img src="' . su_plugin_url() . '/lib/timthumb.php?src=' . $image[0] . '&amp;w=' . $item_width . '&amp;h=' . $height . '&amp;q=100&amp;zc=1" width="' . $item_width . '" height="' . $height . '" alt="' . $title . '" /></a>';
761
  }
762
 
763
  $return .= '</li>';
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://ilovecode.ru/donate/
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, jcarousel, rss
5
  Requires at least: 3.0
6
  Tested up to: 3.2
7
- Stable tag: 2.5.3
8
 
9
  Provides support for multiple useful shortcodes
10
 
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, jcarousel, rss
5
  Requires at least: 3.0
6
  Tested up to: 3.2
7
+ Stable tag: 2.5.4
8
 
9
  Provides support for multiple useful shortcodes
10
 
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.5.3
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.5.4
7
  Author: Vladimir Anokhin
8
  Author URI: http://ilovecode.ru/
9
  Description: Provides support for many easy to use shortcodes