Skip to content

Commit cd0dfa9

Browse files
committed
Merge pull request #42 from j-gardner/develop
Merge for 1.6.1 release
2 parents 544efe9 + 6bee47f commit cd0dfa9

File tree

3 files changed

+15
-10
lines changed

3 files changed

+15
-10
lines changed

includes/class-arconix-faq-display.php

+6-4
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function getdefaults() {
4747
* Get our FAQ data
4848
*
4949
* @since 1.2.0
50-
* @version 1.5.2
50+
* @version 1.6.1
5151
*
5252
* @param array $args
5353
* @param bool $echo Echo or Return the data
@@ -104,13 +104,14 @@ public function loop( $args, $echo = false ) {
104104

105105
$html .= '<h3 id="faq-' . $term->slug . '" class="arconix-faq-term-title arconix-faq-term-' . $term->slug . '">' . $term->name . '</h3>';
106106

107-
if ( $accordion )
108-
$html .= '<div class="arconix-faq-accordion-wrap">';
109-
110107
// If the term has a description, show it
111108
if ( $term->description )
112109
$html .= '<p class="arconix-faq-term-description">' . $term->description . '</p>';
113110

111+
// Output the accordion wrapper if that style has been set
112+
if ( $accordion )
113+
$html .= '<div class="arconix-faq-accordion-wrap">';
114+
114115
// Loop through the rest of the posts for the term
115116
while ( $q->have_posts() ) : $q->the_post();
116117

@@ -121,6 +122,7 @@ public function loop( $args, $echo = false ) {
121122

122123
endwhile;
123124

125+
// Close the accordion wrapper if necessary
124126
if ( $accordion )
125127
$html .= '</div>';
126128

plugin.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Plugin URI: http://arconixpc.com/plugins/arconix-faq
55
* Description: Plugin to handle the display of FAQs
66
*
7-
* Version: 1.6.0
7+
* Version: 1.6.1
88
*
99
* Author: John Gardner
1010
* Author URI: http://arconixpc.com/
@@ -41,7 +41,7 @@ class Arconix_FAQ {
4141
* @since 1.6.0
4242
*/
4343
public function __construct() {
44-
$this->version = '1.6.0';
44+
$this->version = '1.6.1';
4545
$this->inc = trailingslashit( plugin_dir_path( __FILE__ ) . '/includes' );
4646
$this->load_dependencies();
4747
$this->load_admin();

readme.txt

+7-4
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ Contributors: jgardner03
33
Donate link: http://arcnx.co/acfdonation
44
Tags: arconix, faq, toggle, accordion, faq plugin, frequently asked questions
55
Requires at least: 3.8
6-
Tested up to: 4.3
7-
Stable tag: 1.6.0
6+
Tested up to: 4.4
7+
Stable tag: 1.6.1
88

99
Arconix FAQ provides an easy way to add FAQ items to your website.
1010

@@ -37,7 +37,7 @@ Upgrade normally via your WordPress admin -> Plugins panel.
3737
Use the `[faq]` shortcode in a widget or on a post/page. This will output the FAQ's using the default settings (Ascending order by Title in a Toggle configuration). If you'd like to use a different order, consult the [Documentation](http://arcnx.co/afwiki) for assistance.
3838

3939
= How do I enable the accordion display mode? =
40-
Add `style="accordion"` to the shortcode, e.g. `[faq style="accordion"]
40+
Add `style="accordion"` to the shortcode, e.g. `[faq style="accordion"]`
4141

4242
= Where can I find more information on how to use the plugin? =
4343
* Visit the [documentation](http://arcnx.co/afwiki) for assistance
@@ -49,7 +49,7 @@ While you can certainly start a thread in the [support forum](http://arcnx.co/af
4949
2. Check to make sure only one copy of jQuery is being loaded. Many times conflicts arise when themes or plugins load jQuery incorrectly, causing the script to be loaded multiple times in multiple versions. In order to find the offending item, start by disabling your plugins one by one until you find the problem. If you've disabled all your plugins, try switching to a different them, such as twentyten or twentytwelve to see if the problem is with your theme. Once you've found the problem, contact the developer for assistance getting the issue resolved.
5050

5151
= I need help =
52-
Check out the WordPress [support forum](http://arcnx.co/aphelp)
52+
Check out the WordPress [support forum](http://arcnx.co/afhelp)
5353

5454
= I have a great idea for your plugin! =
5555
That's fantastic! Feel free to open an issue or submit a pull request over at [Github](http://arcnx.co/afsource), or you can contact me through [Twitter](http://arcnx.co/twitter), [Facebook](http://arcnx.co/facebook) or my [Website](http://arcnx.co/1)
@@ -60,6 +60,9 @@ That's fantastic! Feel free to open an issue or submit a pull request over at [G
6060
3. Grouping and Toggling display
6161

6262
== Changelog ==
63+
= 1.6.1 =
64+
Fixed a bug which caused the FAQ Group descriptions to output incorrectly when using the accordion style
65+
6366
= 1.6.0 =
6467
* Prepared the plugin for [translations](https://make.wordpress.org/plugins/2015/09/01/plugin-translations-on-wordpress-org/) (yay!)
6568
* Anchor links to group headers are now supported. The format is `faq-group-slug` -- aka mysite.com/faq/#faq-group-slug

0 commit comments

Comments
 (0)