Accordion Shortcodes - Version 1.2.3

Version Description

  • Added the shortcode parameter when calling shortcode_atts()
Download this release

Release Info

Developer philbuchanan
Plugin Icon 128x128 Accordion Shortcodes
Version 1.2.3
Comparing to
See all releases

Code changes from version 1.2.2 to 1.2.3

Files changed (2) hide show
  1. accordion-shortcodes.php +4 -4
  2. readme.txt +7 -1
accordion-shortcodes.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Plugin Name: Accordion Shortcodes
4
  * Description: Adds a few shortcodes to allow for accordion dropdowns.
5
- * Version: 1.2.2
6
  * Author: Phil Buchanan
7
  * Author URI: http://philbuchanan.com
8
  */
@@ -47,7 +47,7 @@ class Accordion_Shortcodes {
47
  static function register_script() {
48
 
49
  $min = (defined('SCRIPT_DEBUG') && SCRIPT_DEBUG) ? '' : '.min';
50
- wp_register_script('accordion-shortcodes-script', plugins_url('accordion' . $min . '.js', __FILE__), array('jquery'), '1.2.2', true);
51
 
52
  }
53
 
@@ -73,7 +73,7 @@ class Accordion_Shortcodes {
73
  'openall' => false,
74
  'clicktoclose' => false,
75
  'scroll' => false
76
- ), $atts));
77
 
78
  # Set settings object (for use in JavaScript)
79
  $script_data = array(
@@ -95,7 +95,7 @@ class Accordion_Shortcodes {
95
  extract(shortcode_atts(array(
96
  'title' => '',
97
  'tag' => 'h3'
98
- ), $atts));
99
 
100
  return sprintf('<%3$s class="accordion-title">%1$s</%3$s><div class="accordion-content">%2$s</div>',
101
  $title ? $title : '<span style="color:red;">' . __('Please enter a title attribute: [accordion-item title="Item title"]', 'accordion_shortcodes') . '</span>',
2
  /**
3
  * Plugin Name: Accordion Shortcodes
4
  * Description: Adds a few shortcodes to allow for accordion dropdowns.
5
+ * Version: 1.2.3
6
  * Author: Phil Buchanan
7
  * Author URI: http://philbuchanan.com
8
  */
47
  static function register_script() {
48
 
49
  $min = (defined('SCRIPT_DEBUG') && SCRIPT_DEBUG) ? '' : '.min';
50
+ wp_register_script('accordion-shortcodes-script', plugins_url('accordion' . $min . '.js', __FILE__), array('jquery'), '1.2.3', true);
51
 
52
  }
53
 
73
  'openall' => false,
74
  'clicktoclose' => false,
75
  'scroll' => false
76
+ ), $atts, 'accordion'));
77
 
78
  # Set settings object (for use in JavaScript)
79
  $script_data = array(
95
  extract(shortcode_atts(array(
96
  'title' => '',
97
  'tag' => 'h3'
98
+ ), $atts, 'accordion-item'));
99
 
100
  return sprintf('<%3$s class="accordion-title">%1$s</%3$s><div class="accordion-content">%2$s</div>',
101
  $title ? $title : '<span style="color:red;">' . __('Please enter a title attribute: [accordion-item title="Item title"]', 'accordion_shortcodes') . '</span>',
readme.txt CHANGED
@@ -5,7 +5,7 @@ Donate Link: http://philbuchanan.com/
5
  Tags: accordion, accordions, shortcodes
6
  Requires at least: 3.3
7
  Tested up to: 3.8
8
- Stable tag: 1.2.2
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -125,6 +125,9 @@ You can also set the HTML tag for the titles of each item by added `tag="tagname
125
  For bug reports or feature requests or if you'd like to contribute to the plugin you can check everything out on [Github](https://github.com/philbuchanan/Accordion-Shortcodes/).
126
 
127
  == Changelog ==
 
 
 
128
  = 1.2.2 =
129
  * Added option to scroll page to title when it's clicked open
130
  * Added detection for SCRIPT_DEBUG to load minified JavaScript conditionally
@@ -169,6 +172,9 @@ For bug reports or feature requests or if you'd like to contribute to the plugin
169
  * Initial release
170
 
171
  == Upgrade Notice ==
 
 
 
172
  = 1.2.2 =
173
  Added option to scroll page to title when it's clicked open (useful if your accordion items contain a lot of content).
174
 
5
  Tags: accordion, accordions, shortcodes
6
  Requires at least: 3.3
7
  Tested up to: 3.8
8
+ Stable tag: 1.2.3
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
125
  For bug reports or feature requests or if you'd like to contribute to the plugin you can check everything out on [Github](https://github.com/philbuchanan/Accordion-Shortcodes/).
126
 
127
  == Changelog ==
128
+ = 1.2.3 =
129
+ * Added the shortcode parameter when calling shortcode_atts()
130
+
131
  = 1.2.2 =
132
  * Added option to scroll page to title when it's clicked open
133
  * Added detection for SCRIPT_DEBUG to load minified JavaScript conditionally
172
  * Initial release
173
 
174
  == Upgrade Notice ==
175
+ = 1.2.3 =
176
+ Added the shortcode parameter when calling shortcode_atts().
177
+
178
  = 1.2.2 =
179
  Added option to scroll page to title when it's clicked open (useful if your accordion items contain a lot of content).
180