Ultimate FAQ - Version 2.0.23

Version Description

(2021-09-17) = - Updated how secondary assets are conditionally enqueued. - Adds in a check to prevent a console error when the plugin JS files are loaded without the default localization data being defined.

Download this release

Release Info

Developer Rustaurius
Plugin Icon 128x128 Ultimate FAQ
Version 2.0.23
Comparing to
See all releases

Code changes from version 2.0.22 to 2.0.23

assets/js/ewd-ufaq.js CHANGED
@@ -187,7 +187,7 @@ jQuery(document).ready(function() {
187
  if ( jQuery( '#ewd-ufaq-ajax-text-input' ).val() != '' ) { ewd_ufaq_ajax_reload(); }
188
  }
189
 
190
- if ( ewd_ufaq_php_data.display_faq != 0 ) {
191
 
192
  var faq = jQuery( '.ewd-ufaq-faq-div[data-post_id="' + ewd_ufaq_php_data.display_faq + '"]' );
193
 
187
  if ( jQuery( '#ewd-ufaq-ajax-text-input' ).val() != '' ) { ewd_ufaq_ajax_reload(); }
188
  }
189
 
190
+ if ( typeof ewd_ufaq_php_data != 'undefined' && ewd_ufaq_php_data.display_faq ) {
191
 
192
  var faq = jQuery( '.ewd-ufaq-faq-div[data-post_id="' + ewd_ufaq_php_data.display_faq + '"]' );
193
 
readme.txt CHANGED
@@ -1,24 +1,24 @@
1
- === Ultimate FAQ - WordPress FAQ Plugin ===
2
  Contributors: Rustaurius, EtoileWebDesign
3
- Tags: FAQ, WooCommerce faq, faqs, faq list, accordion faq, gutenberg faq, faq block, toggle faqs, filtered faqs, grouped faqs, faq order, faq sorting
4
  Requires at least: 5.0
5
  Tested up to: 5.8
6
  License: GPLv3
7
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
8
 
9
- Easily create and add FAQs to your WordPress site with a Gutenberg block, shortcode or widget. Includes FAQ schema, search, accordion toggle and more.
10
 
11
  == Description ==
12
 
13
- With this plugin you can easily create FAQs and add them to your WordPress site using a Gutenberg block or shortcode. It makes use of a custom post type and integrates seamlessly into any site.
14
 
15
- * [Live Demo](https://www.etoilewebdesign.com/ultimate-faq-demo/)
16
 
17
  ### Key Features
18
 
19
  * Create unlimited FAQs
20
  * Create unlimited FAQ tags and FAQ categories
21
- * Gutenberg FAQ block
22
  * FAQ shortcode
23
  * Responsive accordion layout that will fit any site and any device
24
  * Ordering and sorting options for your FAQ page
@@ -27,19 +27,21 @@ With this plugin you can easily create FAQs and add them to your WordPress site
27
  * Bulk import FAQs from a spreadsheet
28
  * Insert custom CSS to style your FAQ layout
29
 
30
- This plugin is very user friendly and comes with a walk-through. When you activate the plugin, it will run and help you create your first FAQs, create an FAQ page and also set some important options!
31
 
32
- ### Gutenberg Block, Shortcode and Widget
33
 
34
  * Just add the <em>Display FAQs</em> Gutenberg block on any page to display your FAQs
35
- * Or, if you're using a different visual composer or page builder, or the Classic Editor plugin, just add the [ultimate-faqs] shortcode anywhere on any page
 
 
36
  * The plugin also comes with a widget to display your FAQs in any widgetized area in your theme.
37
 
38
  ### Video Introduction to the Ultimate FAQ Plugin
39
 
40
  [youtube https://www.youtube.com/watch?v=xeGVZnVrZ6I]
41
 
42
- ### Additional Features
43
 
44
  * Microdata / structured data / question schema (in the correct JSON-LD format) to help with SEO
45
  * Choose what elements show for each FAQ (e.g. categories, tags, author, date, etc.)
@@ -75,9 +77,9 @@ The premium version of this plugin comes with the following great extra features
75
  * Advanced FAQ styling options
76
  * Change the FAQ permalink slug base
77
 
78
- You can find out more information about the premium version and accessing a <strong><em>free 7-day trial</em></strong> here: [https://www.etoilewebdesign.com/plugins/ultimate-faq/](https://www.etoilewebdesign.com/plugins/ultimate-faq/)
79
 
80
- ### Blocks
81
 
82
  * <strong>Display FAQs</strong>: Display all FAQs, or only specific categories using the block attributes
83
  * <strong>Popular FAQs</strong>: Displays a number of the most viewed FAQs (5 unless specified)
@@ -85,7 +87,7 @@ You can find out more information about the premium version and accessing a <str
85
  * <strong>Search FAQs</strong>: Display a search form that allows users to find FAQs with a specific string in the title or body of the FAQ post (premium)
86
  * <strong>Submit FAQ</strong>: Display a form that allows users to submit FAQs of their own and, if enabled, enter an answer to their submitted question as well (premium)
87
 
88
- ### Shortcodes
89
 
90
  * [ultimate-faqs]: Display all FAQs, or only specific categories using include_category and exclude_category attributes (both take a comma-separated list of category slugs)
91
  * [popular-faqs]: Displays a number of the most viewed FAQs (5 unless specified)
@@ -264,6 +266,10 @@ Video 3 - FAQs Ordering
264
 
265
  == Changelog ==
266
 
 
 
 
 
267
  = 2.0.22 (2021-09-08) =
268
  - Updated the settings page library.
269
  - Made FAQ search input field type search, so it includes functionality such as the clear event.
1
+ === Ultimate FAQ - WordPress FAQ and Accordion Plugin ===
2
  Contributors: Rustaurius, EtoileWebDesign
3
+ Tags: faq, faqs, accordion, woocommerce faq, gutenberg faq, faq block
4
  Requires at least: 5.0
5
  Tested up to: 5.8
6
  License: GPLv3
7
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
8
 
9
+ FAQ and accordion plugin with easy to use Gutenberg blocks, shortcodes and widgets. Includes an advanced FAQ search and FAQ schema.
10
 
11
  == Description ==
12
 
13
+ FAQ plugin for WordPress. With this plugin you can easily create FAQs and add them to your WordPress site using a Gutenberg block or shortcode. It makes use of a custom post type for seamless FAQ integration on any site.
14
 
15
+ [FAQ Demo](https://www.etoilewebdesign.com/ultimate-faq-demo/)
16
 
17
  ### Key Features
18
 
19
  * Create unlimited FAQs
20
  * Create unlimited FAQ tags and FAQ categories
21
+ * FAQ block (Gutenberg)
22
  * FAQ shortcode
23
  * Responsive accordion layout that will fit any site and any device
24
  * Ordering and sorting options for your FAQ page
27
  * Bulk import FAQs from a spreadsheet
28
  * Insert custom CSS to style your FAQ layout
29
 
30
+ This plugin is very user friendly and comes with a guided walk-through. When you activate the plugin, it will run and help you create your first FAQs, create an FAQ page and also set some important options!
31
 
32
+ ### FAQ Gutenberg Block, Shortcode and Widget
33
 
34
  * Just add the <em>Display FAQs</em> Gutenberg block on any page to display your FAQs
35
+ * Or, if you're using a different visual composer or page builder, or the Classic Editor plugin, just add the following shortcode anywhere on any page
36
+ `[ultimate-faqs]
37
+ `
38
  * The plugin also comes with a widget to display your FAQs in any widgetized area in your theme.
39
 
40
  ### Video Introduction to the Ultimate FAQ Plugin
41
 
42
  [youtube https://www.youtube.com/watch?v=xeGVZnVrZ6I]
43
 
44
+ ### Additional FAQ Features
45
 
46
  * Microdata / structured data / question schema (in the correct JSON-LD format) to help with SEO
47
  * Choose what elements show for each FAQ (e.g. categories, tags, author, date, etc.)
77
  * Advanced FAQ styling options
78
  * Change the FAQ permalink slug base
79
 
80
+ You can find out more information about the premium version of Ultimate FAQ and accessing a <strong><em>free 7-day trial</em></strong> here: [https://www.etoilewebdesign.com/plugins/ultimate-faq/](https://www.etoilewebdesign.com/plugins/ultimate-faq/)
81
 
82
+ ### FAQ Blocks
83
 
84
  * <strong>Display FAQs</strong>: Display all FAQs, or only specific categories using the block attributes
85
  * <strong>Popular FAQs</strong>: Displays a number of the most viewed FAQs (5 unless specified)
87
  * <strong>Search FAQs</strong>: Display a search form that allows users to find FAQs with a specific string in the title or body of the FAQ post (premium)
88
  * <strong>Submit FAQ</strong>: Display a form that allows users to submit FAQs of their own and, if enabled, enter an answer to their submitted question as well (premium)
89
 
90
+ ### FAQ Shortcodes
91
 
92
  * [ultimate-faqs]: Display all FAQs, or only specific categories using include_category and exclude_category attributes (both take a comma-separated list of category slugs)
93
  * [popular-faqs]: Displays a number of the most viewed FAQs (5 unless specified)
266
 
267
  == Changelog ==
268
 
269
+ = 2.0.23 (2021-09-17) =
270
+ - Updated how secondary assets are conditionally enqueued.
271
+ - Adds in a check to prevent a console error when the plugin JS files are loaded without the default localization data being defined.
272
+
273
  = 2.0.22 (2021-09-08) =
274
  - Updated the settings page library.
275
  - Made FAQ search input field type search, so it includes functionality such as the clear event.
ultimate-faqs.php CHANGED
@@ -1,13 +1,14 @@
1
  <?php
2
  /*
3
- Plugin Name: Ultimate FAQs
4
- Plugin URI: http://www.EtoileWebDesign.com/plugins/ultimate-faqs/
5
- Description: Easily create and add FAQs to your WordPress site with a Gutenberg block, shortcode or widget. Includes FAQ schema, search, accordion toggle and more.
6
- Author: Etoile Web Design
7
- Author URI: http://www.EtoileWebDesign.com/plugins/ultimate-faqs/
8
- Terms and Conditions: http://www.etoilewebdesign.com/plugin-terms-and-conditions/
9
  Text Domain: ultimate-faqs
10
- Version: 2.0.22
 
 
11
  */
12
 
13
  if ( ! defined( 'ABSPATH' ) )
@@ -302,6 +303,7 @@ class ewdufaqInit {
302
 
303
  wp_register_style( 'ewd-ufaq-rrssb', EWD_UFAQ_PLUGIN_URL . '/assets/css/rrssb-min.css', EWD_UFAQ_VERSION );
304
  wp_register_style( 'ewd-ufaq-jquery-ui', EWD_UFAQ_PLUGIN_URL . '/assets/css/jquery-ui.min.css', EWD_UFAQ_VERSION );
 
305
  wp_register_style( 'ewd-ufaq-css', EWD_UFAQ_PLUGIN_URL . '/assets/css/ewd-ufaq.css', EWD_UFAQ_VERSION );
306
 
307
  wp_register_script( 'ewd-ufaq-js', EWD_UFAQ_PLUGIN_URL . '/assets/js/ewd-ufaq.js', array( 'jquery', 'jquery-ui-core' ), EWD_UFAQ_VERSION, true );
1
  <?php
2
  /*
3
+ Plugin Name: Ultimate FAQ - WordPress FAQ and Accordion Plugin
4
+ Plugin URI: http://www.etoilewebdesign.com/plugins/ultimate-faqs/
5
+ Description: FAQ and accordion plugin with easy to use Gutenberg blocks, shortcodes and widgets. Includes an advanced FAQ search and FAQ schema.
6
+ Author URI: https://www.etoilewebdesign.com/plugins/ultimate-faqs/
7
+ Terms and Conditions: https://www.etoilewebdesign.com/plugin-terms-and-conditions/
 
8
  Text Domain: ultimate-faqs
9
+ Version: 2.0.23
10
+ WC requires at least: 3.0
11
+ WC tested up to: 5.6
12
  */
13
 
14
  if ( ! defined( 'ABSPATH' ) )
303
 
304
  wp_register_style( 'ewd-ufaq-rrssb', EWD_UFAQ_PLUGIN_URL . '/assets/css/rrssb-min.css', EWD_UFAQ_VERSION );
305
  wp_register_style( 'ewd-ufaq-jquery-ui', EWD_UFAQ_PLUGIN_URL . '/assets/css/jquery-ui.min.css', EWD_UFAQ_VERSION );
306
+
307
  wp_register_style( 'ewd-ufaq-css', EWD_UFAQ_PLUGIN_URL . '/assets/css/ewd-ufaq.css', EWD_UFAQ_VERSION );
308
 
309
  wp_register_script( 'ewd-ufaq-js', EWD_UFAQ_PLUGIN_URL . '/assets/js/ewd-ufaq.js', array( 'jquery', 'jquery-ui-core' ), EWD_UFAQ_VERSION, true );
views/View.FAQ.class.php CHANGED
@@ -745,6 +745,9 @@ class ewdufaqViewFAQ extends ewdufaqView {
745
  wp_enqueue_style( 'ewd-ufaq-jquery-ui' );
746
  wp_enqueue_style( 'ewd-ufaq-css' );
747
 
 
 
 
748
  wp_enqueue_script( 'ewd-ufaq-js' );
749
 
750
  }
745
  wp_enqueue_style( 'ewd-ufaq-jquery-ui' );
746
  wp_enqueue_style( 'ewd-ufaq-css' );
747
 
748
+ wp_enqueue_style( 'ewd-ufaq-rrssb' );
749
+ wp_enqueue_style( 'ewd-ufaq-jquery-ui' );
750
+
751
  wp_enqueue_script( 'ewd-ufaq-js' );
752
 
753
  }
views/View.FAQs.class.php CHANGED
@@ -520,6 +520,9 @@ class ewdufaqViewFAQs extends ewdufaqView {
520
  wp_enqueue_style( 'ewd-ufaq-jquery-ui' );
521
  wp_enqueue_style( 'ewd-ufaq-css' );
522
 
 
 
 
523
  $args = array(
524
  'faq_accordion' => $ewd_ufaq_controller->settings->get_setting( 'faq-accordion' ),
525
  'category_accordion' => $ewd_ufaq_controller->settings->get_setting( 'faq-category-accordion' ),
520
  wp_enqueue_style( 'ewd-ufaq-jquery-ui' );
521
  wp_enqueue_style( 'ewd-ufaq-css' );
522
 
523
+ wp_enqueue_style( 'ewd-ufaq-rrssb' );
524
+ wp_enqueue_style( 'ewd-ufaq-jquery-ui' );
525
+
526
  $args = array(
527
  'faq_accordion' => $ewd_ufaq_controller->settings->get_setting( 'faq-accordion' ),
528
  'category_accordion' => $ewd_ufaq_controller->settings->get_setting( 'faq-category-accordion' ),