Shortcodes by Angie Makes - Version 2.02

Version Description

Download this release

Release Info

Developer cbaldelomar
Plugin Icon wp plugin Shortcodes by Angie Makes
Version 2.02
Comparing to
See all releases

Code changes from version 2.01 to 2.02

Files changed (4) hide show
  1. README.md +5 -1
  2. includes/widgets.php +15 -11
  3. readme.txt +5 -1
  4. wc-shortcodes.php +2 -2
README.md CHANGED
@@ -4,7 +4,7 @@
4
  **Donate link:** http://webplantmedia.com/donate/
5
  **Tags:** shortcode, shortcodes, accordion, accordions, tab, tabs, toggle, columns, column, section, sections, testimonials, border, borders, button, buttons, fullwidth, full width, notification, notifications, google maps, maps, googlemaps, social icons, progress bar, pricing, pricing box, highlights, image, flags, banners, countdown, rsvp, custom html, code, code snippets, snippets, isotope, masonry, posts, post_type, font awesome, icons, fontawesome, fa icons
6
  **Requires at least:** 3.7
7
- **Tested up to:** 4.5.2
8
  **Stable tag:** trunk
9
  **License:** GPLv2 or later
10
  **License URI:** http://www.gnu.org/licenses/gpl-2.0.html
@@ -66,6 +66,10 @@ Use the shortcode manager in the TinyMCE text editor
66
 
67
  ## Changelog ##
68
 
 
 
 
 
69
  ### Version 2.01
70
 
71
  * improved post_slider shortcode
4
  **Donate link:** http://webplantmedia.com/donate/
5
  **Tags:** shortcode, shortcodes, accordion, accordions, tab, tabs, toggle, columns, column, section, sections, testimonials, border, borders, button, buttons, fullwidth, full width, notification, notifications, google maps, maps, googlemaps, social icons, progress bar, pricing, pricing box, highlights, image, flags, banners, countdown, rsvp, custom html, code, code snippets, snippets, isotope, masonry, posts, post_type, font awesome, icons, fontawesome, fa icons
6
  **Requires at least:** 3.7
7
+ **Tested up to:** 4.6.1
8
  **Stable tag:** trunk
9
  **License:** GPLv2 or later
10
  **License URI:** http://www.gnu.org/licenses/gpl-2.0.html
66
 
67
  ## Changelog ##
68
 
69
+ ### Version 2.02
70
+
71
+ * fixed bug with post_slider shortcode
72
+
73
  ### Version 2.01
74
 
75
  * improved post_slider shortcode
includes/widgets.php CHANGED
@@ -207,12 +207,18 @@ class WC_Shortcodes_Post_Slider_Widget extends WP_Widget {
207
  }
208
 
209
  function widget($args, $instance) {
 
210
  foreach ( $instance as $key => $value ) {
211
  $shortcode[] = $key . '="' . $value . '"';
212
  }
213
 
214
- $shortcode = implode( " ", $shortcode );
215
- $shortcode = '[wc_post_slider ' . $shortcode . '][/wc_post_slider]';
 
 
 
 
 
216
 
217
  echo $args['before_widget'];
218
  echo do_shortcode( $shortcode );
@@ -501,15 +507,13 @@ class WC_Shortcodes_Post_Slider_Widget extends WP_Widget {
501
  </div>
502
  </div>
503
 
504
- <?php if ( '__i__' != $this->number ) : ?>
505
- <script type="text/javascript">
506
- /* <![CDATA[ */
507
- jQuery(document).ready(function($){
508
- $('#wc-shortcodes-post-slider-widget-<?php echo $this->number; ?>').accordion({heightStyle: "content"}).wcPostSliderWidget();
509
- });
510
- /* ]]> */
511
- </script>
512
- <?php endif; ?>
513
  <?php
514
  }
515
  }
207
  }
208
 
209
  function widget($args, $instance) {
210
+ $shortcode = array();
211
  foreach ( $instance as $key => $value ) {
212
  $shortcode[] = $key . '="' . $value . '"';
213
  }
214
 
215
+ if ( ! empty( $shortcode ) ) {
216
+ $shortcode = implode( " ", $shortcode );
217
+ $shortcode = '[wc_post_slider ' . $shortcode . '][/wc_post_slider]';
218
+ }
219
+ else {
220
+ $shortcode = '[wc_post_slider][/wc_post_slider]';
221
+ }
222
 
223
  echo $args['before_widget'];
224
  echo do_shortcode( $shortcode );
507
  </div>
508
  </div>
509
 
510
+ <script type="text/javascript">
511
+ /* <![CDATA[ */
512
+ jQuery(document).ready(function($){
513
+ $('#wc-shortcodes-post-slider-widget-<?php echo $this->number; ?>').accordion({heightStyle: "content"}).wcPostSliderWidget();
514
+ });
515
+ /* ]]> */
516
+ </script>
 
 
517
  <?php
518
  }
519
  }
readme.txt CHANGED
@@ -4,7 +4,7 @@ Contributors: cbaldelomar
4
  Donate link: http://webplantmedia.com/donate/
5
  Tags: shortcode, shortcodes, accordion, accordions, tab, tabs, toggle, columns, column, section, sections, testimonials, border, borders, button, buttons, fullwidth, full width, notification, notifications, google maps, maps, googlemaps, social icons, progress bar, pricing, pricing box, highlights, image, flags, banners, countdown, rsvp, custom html, code, code snippets, snippets, isotope, masonry, posts, post_type, font awesome, icons, fontawesome, fa icons
6
  Requires at least: 3.7
7
- Tested up to: 4.5.2
8
  Stable tag: trunk
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -88,6 +88,10 @@ Use the shortcode manager in the TinyMCE text editor
88
 
89
  == Changelog ==
90
 
 
 
 
 
91
  = Version 2.01 =
92
 
93
  * improved post_slider shortcode
4
  Donate link: http://webplantmedia.com/donate/
5
  Tags: shortcode, shortcodes, accordion, accordions, tab, tabs, toggle, columns, column, section, sections, testimonials, border, borders, button, buttons, fullwidth, full width, notification, notifications, google maps, maps, googlemaps, social icons, progress bar, pricing, pricing box, highlights, image, flags, banners, countdown, rsvp, custom html, code, code snippets, snippets, isotope, masonry, posts, post_type, font awesome, icons, fontawesome, fa icons
6
  Requires at least: 3.7
7
+ Tested up to: 4.6.1
8
  Stable tag: trunk
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
88
 
89
  == Changelog ==
90
 
91
+ = Version 2.02 =
92
+
93
+ * fixed bug with post_slider shortcode
94
+
95
  = Version 2.01 =
96
 
97
  * improved post_slider shortcode
wc-shortcodes.php CHANGED
@@ -5,11 +5,11 @@ Plugin URI: http://webplantmedia.com/starter-themes/wordpresscanvas/features/sho
5
  Description: A family of shortcodes to enhance site functionality.
6
  Author: Chris Baldelomar
7
  Author URI: http://webplantmedia.com/
8
- Version: 2.01
9
  License: GPLv2 or later
10
  */
11
 
12
- define( 'WC_SHORTCODES_VERSION', '2.01' );
13
  define( 'WC_SHORTCODES_PREFIX', 'wc_shortcodes_' );
14
  define( '_WC_SHORTCODES_PREFIX', '_wc_shortcodes_' );
15
  define( 'WC_SHORTCODES_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
5
  Description: A family of shortcodes to enhance site functionality.
6
  Author: Chris Baldelomar
7
  Author URI: http://webplantmedia.com/
8
+ Version: 2.02
9
  License: GPLv2 or later
10
  */
11
 
12
+ define( 'WC_SHORTCODES_VERSION', '2.02' );
13
  define( 'WC_SHORTCODES_PREFIX', 'wc_shortcodes_' );
14
  define( '_WC_SHORTCODES_PREFIX', '_wc_shortcodes_' );
15
  define( 'WC_SHORTCODES_PLUGIN_URL', plugin_dir_url( __FILE__ ) );