Skip to content

Commit

Permalink
Merge pull request #42 from j-gardner/develop
Browse files Browse the repository at this point in the history
Merge for 1.6.1 release
  • Loading branch information
j-gardner committed Dec 2, 2015
2 parents 544efe9 + 6bee47f commit cd0dfa9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
10 changes: 6 additions & 4 deletions includes/class-arconix-faq-display.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function getdefaults() {
* Get our FAQ data
*
* @since 1.2.0
* @version 1.5.2
* @version 1.6.1
*
* @param array $args
* @param bool $echo Echo or Return the data
Expand Down Expand Up @@ -104,13 +104,14 @@ public function loop( $args, $echo = false ) {

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

if ( $accordion )
$html .= '<div class="arconix-faq-accordion-wrap">';

// If the term has a description, show it
if ( $term->description )
$html .= '<p class="arconix-faq-term-description">' . $term->description . '</p>';

// Output the accordion wrapper if that style has been set
if ( $accordion )
$html .= '<div class="arconix-faq-accordion-wrap">';

// Loop through the rest of the posts for the term
while ( $q->have_posts() ) : $q->the_post();

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

endwhile;

// Close the accordion wrapper if necessary
if ( $accordion )
$html .= '</div>';

Expand Down
4 changes: 2 additions & 2 deletions plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Plugin URI: http://arconixpc.com/plugins/arconix-faq
* Description: Plugin to handle the display of FAQs
*
* Version: 1.6.0
* Version: 1.6.1
*
* Author: John Gardner
* Author URI: http://arconixpc.com/
Expand Down Expand Up @@ -41,7 +41,7 @@ class Arconix_FAQ {
* @since 1.6.0
*/
public function __construct() {
$this->version = '1.6.0';
$this->version = '1.6.1';
$this->inc = trailingslashit( plugin_dir_path( __FILE__ ) . '/includes' );
$this->load_dependencies();
$this->load_admin();
Expand Down
11 changes: 7 additions & 4 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ Contributors: jgardner03
Donate link: http://arcnx.co/acfdonation
Tags: arconix, faq, toggle, accordion, faq plugin, frequently asked questions
Requires at least: 3.8
Tested up to: 4.3
Stable tag: 1.6.0
Tested up to: 4.4
Stable tag: 1.6.1

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

Expand Down Expand Up @@ -37,7 +37,7 @@ Upgrade normally via your WordPress admin -> Plugins panel.
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.

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

= Where can I find more information on how to use the plugin? =
* Visit the [documentation](http://arcnx.co/afwiki) for assistance
Expand All @@ -49,7 +49,7 @@ While you can certainly start a thread in the [support forum](http://arcnx.co/af
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.

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

= I have a great idea for your plugin! =
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)
Expand All @@ -60,6 +60,9 @@ That's fantastic! Feel free to open an issue or submit a pull request over at [G
3. Grouping and Toggling display

== Changelog ==
= 1.6.1 =
Fixed a bug which caused the FAQ Group descriptions to output incorrectly when using the accordion style

= 1.6.0 =
* Prepared the plugin for [translations](https://make.wordpress.org/plugins/2015/09/01/plugin-translations-on-wordpress-org/) (yay!)
* Anchor links to group headers are now supported. The format is `faq-group-slug` -- aka mysite.com/faq/#faq-group-slug
Expand Down

0 comments on commit cd0dfa9

Please sign in to comment.