Ultimate FAQ - Version 1.5.34

Version Description

  • Added an option to display the number of FAQs in a category, when FAQs are grouped by category
Download this release

Release Info

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

Code changes from version 1.5.33 to 1.5.34

Functions/Update_Admin_Databases.php CHANGED
@@ -51,6 +51,7 @@ function EWD_UFAQ_UpdateOptions() {
51
  if (isset($_POST['Socialmedia']) and $UFAQ_Full_Version == "Yes") {update_option('EWD_UFAQ_Social_Media', $Social_Media);}
52
 
53
  if (isset($_POST['group_by_category'])) {update_option('EWD_UFAQ_Group_By_Category', $_POST['group_by_category']);}
 
54
  if (isset($_POST['group_by_order_by'])) {update_option('EWD_UFAQ_Group_By_Order_By', $_POST['group_by_order_by']);}
55
  if (isset($_POST['group_by_order'])) {update_option('EWD_UFAQ_Group_By_Order', $_POST['group_by_order']);}
56
  if (isset($_POST['order_by_setting'])) {update_option('EWD_UFAQ_Order_By', $_POST['order_by_setting']);}
51
  if (isset($_POST['Socialmedia']) and $UFAQ_Full_Version == "Yes") {update_option('EWD_UFAQ_Social_Media', $Social_Media);}
52
 
53
  if (isset($_POST['group_by_category'])) {update_option('EWD_UFAQ_Group_By_Category', $_POST['group_by_category']);}
54
+ if (isset($_POST['group_by_category_count'])) {update_option('EWD_UFAQ_Group_By_Category_Count', $_POST['group_by_category_count']);}
55
  if (isset($_POST['group_by_order_by'])) {update_option('EWD_UFAQ_Group_By_Order_By', $_POST['group_by_order_by']);}
56
  if (isset($_POST['group_by_order'])) {update_option('EWD_UFAQ_Group_By_Order', $_POST['group_by_order']);}
57
  if (isset($_POST['order_by_setting'])) {update_option('EWD_UFAQ_Order_By', $_POST['order_by_setting']);}
Main.php CHANGED
@@ -7,14 +7,14 @@ Author: Etoile Web Design
7
  Author URI: http://www.EtoileWebDesign.com/wordpress-plugins/
8
  Terms and Conditions: http://www.etoilewebdesign.com/plugin-terms-and-conditions/
9
  Text Domain: ultimate-faqs
10
- Version: 1.5.33
11
  */
12
 
13
  global $ewd_ufaq_message;
14
  global $UFAQ_Full_Version;
15
  global $EWD_UFAQ_Version;
16
 
17
- $EWD_UFAQ_Version = '1.5.25';
18
  if (get_option("EWD_UFAQ_Version") == "") {update_option("EWD_UFAQ_Version", $EWD_UFAQ_Version);}
19
 
20
  define( 'EWD_UFAQ_CD_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );
@@ -217,6 +217,7 @@ function Set_EWD_UFAQ_Options() {
217
  if (get_option("EWD_UFAQ_Slug_Base") == "") {update_option("EWD_UFAQ_Slug_Base", "ufaqs");}
218
 
219
  if (get_option("EWD_UFAQ_Group_By_Category") == "") {update_option("EWD_UFAQ_Group_By_Category", "No");}
 
220
  if (get_option("EWD_UFAQ_Group_By_Order_By") == "") {update_option("EWD_UFAQ_Group_By_Order_By", "name");}
221
  if (get_option("EWD_UFAQ_Group_By_Order") == "") {update_option("EWD_UFAQ_Group_By_Order", "ASC");}
222
  if (get_option("EWD_UFAQ_Order_By") == "") {update_option("EWD_UFAQ_Order_By", "date");}
7
  Author URI: http://www.EtoileWebDesign.com/wordpress-plugins/
8
  Terms and Conditions: http://www.etoilewebdesign.com/plugin-terms-and-conditions/
9
  Text Domain: ultimate-faqs
10
+ Version: 1.5.34
11
  */
12
 
13
  global $ewd_ufaq_message;
14
  global $UFAQ_Full_Version;
15
  global $EWD_UFAQ_Version;
16
 
17
+ $EWD_UFAQ_Version = '1.5.34';
18
  if (get_option("EWD_UFAQ_Version") == "") {update_option("EWD_UFAQ_Version", $EWD_UFAQ_Version);}
19
 
20
  define( 'EWD_UFAQ_CD_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );
217
  if (get_option("EWD_UFAQ_Slug_Base") == "") {update_option("EWD_UFAQ_Slug_Base", "ufaqs");}
218
 
219
  if (get_option("EWD_UFAQ_Group_By_Category") == "") {update_option("EWD_UFAQ_Group_By_Category", "No");}
220
+ if (get_option("EWD_UFAQ_Group_By_Category_Count") == "") {update_option("EWD_UFAQ_Group_By_Category_Count", "No");}
221
  if (get_option("EWD_UFAQ_Group_By_Order_By") == "") {update_option("EWD_UFAQ_Group_By_Order_By", "name");}
222
  if (get_option("EWD_UFAQ_Group_By_Order") == "") {update_option("EWD_UFAQ_Group_By_Order", "ASC");}
223
  if (get_option("EWD_UFAQ_Order_By") == "") {update_option("EWD_UFAQ_Order_By", "date");}
Shortcodes/DisplayFAQs.php CHANGED
@@ -27,6 +27,7 @@ function Display_FAQs($atts) {
27
  $Socialmedia = explode(",", $Socialmedia_String);
28
 
29
  $Group_By_Category = get_option("EWD_UFAQ_Group_By_Category");
 
30
  $Group_By_Order_By = get_option("EWD_UFAQ_Group_By_Order_By");
31
  $Group_By_Order = get_option("EWD_UFAQ_Group_By_Order");
32
  $Order_By_Setting = get_option("EWD_UFAQ_Order_By");
@@ -247,7 +248,7 @@ function Display_FAQs($atts) {
247
  $ReturnString .= "<div class='ufaq-faq-category-title";
248
  if ($Category_Toggle == "Yes") {$ReturnString .= " ufaq-faq-category-title-toggle";}
249
  $ReturnString .= "' data-categoryid='" . $Category->term_id . "'>";
250
- $ReturnString .= "<" . $UFAQ_Styling_Category_Heading_Type . ">" . $Category->name . "</" . $UFAQ_Styling_Category_Heading_Type . ">";
251
  $ReturnString .= "</div>";
252
  $ReturnString .= "<div class='ufaq-faq-category-inner";
253
  if ($Category_Toggle == "Yes") {$ReturnString .= " ufaq-faq-category-body-hidden";}
27
  $Socialmedia = explode(",", $Socialmedia_String);
28
 
29
  $Group_By_Category = get_option("EWD_UFAQ_Group_By_Category");
30
+ $Group_By_Category_Count = get_option("EWD_UFAQ_Group_By_Category_Count");
31
  $Group_By_Order_By = get_option("EWD_UFAQ_Group_By_Order_By");
32
  $Group_By_Order = get_option("EWD_UFAQ_Group_By_Order");
33
  $Order_By_Setting = get_option("EWD_UFAQ_Order_By");
248
  $ReturnString .= "<div class='ufaq-faq-category-title";
249
  if ($Category_Toggle == "Yes") {$ReturnString .= " ufaq-faq-category-title-toggle";}
250
  $ReturnString .= "' data-categoryid='" . $Category->term_id . "'>";
251
+ $ReturnString .= "<" . $UFAQ_Styling_Category_Heading_Type . ">" . $Category->name . ($Group_By_Category_Count == "Yes" ? "(" . $FAQ_Query->post_count . ")" : "") . "</" . $UFAQ_Styling_Category_Heading_Type . ">";
252
  $ReturnString .= "</div>";
253
  $ReturnString .= "<div class='ufaq-faq-category-inner";
254
  if ($Category_Toggle == "Yes") {$ReturnString .= " ufaq-faq-category-body-hidden";}
html/OptionsPage.php CHANGED
@@ -31,6 +31,7 @@
31
  $Socialmedia = explode(",", $Socialmedia_String);
32
 
33
  $Group_By_Category = get_option("EWD_UFAQ_Group_By_Category");
 
34
  $Group_By_Order_By = get_option("EWD_UFAQ_Group_By_Order_By");
35
  $Group_By_Order = get_option("EWD_UFAQ_Group_By_Order");
36
  $Order_By_Setting = get_option("EWD_UFAQ_Order_By");
@@ -491,6 +492,16 @@
491
  </td>
492
  </tr>
493
  <tr>
 
 
 
 
 
 
 
 
 
 
494
  <th scope="row">Sort Categories</th>
495
  <td>
496
  <fieldset><legend class="screen-reader-text"><span>Sort Categories</span></legend>
31
  $Socialmedia = explode(",", $Socialmedia_String);
32
 
33
  $Group_By_Category = get_option("EWD_UFAQ_Group_By_Category");
34
+ $Group_By_Category_Count = get_option("EWD_UFAQ_Group_By_Category_Count");
35
  $Group_By_Order_By = get_option("EWD_UFAQ_Group_By_Order_By");
36
  $Group_By_Order = get_option("EWD_UFAQ_Group_By_Order");
37
  $Order_By_Setting = get_option("EWD_UFAQ_Order_By");
492
  </td>
493
  </tr>
494
  <tr>
495
+ <th scope="row">Display FAQ Category Count</th>
496
+ <td>
497
+ <fieldset><legend class="screen-reader-text"><span>Display FAQ Category Count</span></legend>
498
+ <label title='Yes'><input type='radio' name='group_by_category_count' value='Yes' <?php if($Group_By_Category_Count == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
499
+ <label title='No'><input type='radio' name='group_by_category_count' value='No' <?php if($Group_By_Category_Count == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
500
+ <p>If FAQs are grouped by category, should the number of FAQs in a category be displayed beside the category name?</p>
501
+ </fieldset>
502
+ </td>
503
+ </tr>
504
+ <tr>
505
  <th scope="row">Sort Categories</th>
506
  <td>
507
  <fieldset><legend class="screen-reader-text"><span>Sort Categories</span></legend>
readme.txt CHANGED
@@ -13,17 +13,7 @@ FAQ plugin that lets you easily create, order and publicize FAQs, insert 3 style
13
 
14
  <a href='http://www.etoilewebdesign.com/ultimate-faq-demo/'>FAQ Demo</a>
15
 
16
- FAQ plugin that lets you create FAQ, organize FAQs and publicize your FAQ in no time through your Wordpress admin panel. Select from multiple FAQ styles and FAQ layouts. You can use either the toggle FAQ and/or accordion FAQ style, to display one expanded FAQ answer on click, or choose to display all FAQs on page load, with the optional list FAQ style that offers a more traditional FAQ layout.
17
-
18
- <strong>With WooCommerce Integration!</strong> See the "Add FAQ to WooCommerce" section below for full details and features.
19
-
20
- ** We are also pleased to announce the introduction of a free new premium 7-day trial feature, which users can choose to test out before buying the premium version! **
21
-
22
- `
23
- [ultimate-faqs]
24
- `
25
-
26
- Simply insert the shortcode above into any page to display your FAQs.
27
 
28
  = Key FAQ Features =
29
  * Unlimited FAQ, unlimited FAQ tag and unlimited FAQ category support
@@ -33,15 +23,21 @@ Simply insert the shortcode above into any page to display your FAQs.
33
  * Export all FAQs to a PDF to create a user manual
34
  * Insert custom CSS to style your FAQ posts
35
 
36
- FAQ features include FAQ statistics that show how many times FAQs have been viewed, FAQ styling options, FAQ categories and FAQ tags, FAQ display and FAQ ordering options, among many other FAQ options. Includes an FAQ shortcode helper, that lets you create FAQ shortcodes with FAQ attributes without having to manually enter FAQs.
37
 
38
- Ultimate FAQ also works great for any content that works similarly to FAQ and that needs to be hidden until it is clicked, like job postings, recipes, etc.!
39
 
40
- [youtube https://www.youtube.com/watch?v=xeGVZnVrZ6I]
41
 
42
- Want to decide exactly what order your FAQs are displayed in? Use our simple FAQ drag-and-drop reordering feature! Create SEO-friendly FAQ links to individual FAQ posts to simply direct customers to exactly the right FAQ answer, right away. Easily add links to your FAQ to popular social media, such as Facebook, Twitter and Pinterest so that your customers can help you spread the word about your FAQ!
 
 
43
 
44
- With the smart [submit-question] FAQ shortcode (premium), you can let your customers add to your custom FAQ list by submitting an FAQ question and even proposing an FAQ answer for it!
 
 
 
 
45
 
46
  = Add FAQ to WooCommerce! =
47
 
@@ -51,6 +47,10 @@ For more information about WooCommerce integration, please see the following vid
51
 
52
  [youtube https://www.youtube.com/watch?v=cH3p0fW4c5o]
53
 
 
 
 
 
54
  = Additional Features =
55
  * Select FAQ animation options for displaying FAQ posts
56
  * Toggle FAQ accordion (close open FAQ when a new one is opened) behaviour on/off
@@ -78,6 +78,8 @@ Ultimate FAQ uses the WordPress custom post type functionality to create an FAQ
78
  * Advanced FAQ styling options
79
  * Drag and drop precise re-ordering of FAQs
80
  * Change the FAQ permalink slug base
 
 
81
 
82
  = FAQ Shortcodes =
83
  * [ultimate-faqs]: display all FAQs, or only specific FAQ categories using include_category and exclude_category attributes (both take a comma-separated list of category slugs)
@@ -247,6 +249,9 @@ Video 3 - FAQs Ordering
247
  13. View of FAQ custom fields in the admin
248
 
249
  == Changelog ==
 
 
 
250
  = 1.5.33 =
251
  - Updated the text domain of the plugin, to use the improved WordPress standard
252
 
@@ -537,6 +542,3 @@ Video 3 - FAQs Ordering
537
 
538
  = 1.0.0 =
539
  - Premium version release, check out our website for all of the details <http://www.etoilewebdesign.com/ultimate-faq/>
540
-
541
-
542
-
13
 
14
  <a href='http://www.etoilewebdesign.com/ultimate-faq-demo/'>FAQ Demo</a>
15
 
16
+ FAQ plugin that lets you create FAQ, organize FAQs and publicize your FAQ in no time through your Wordpress admin panel.
 
 
 
 
 
 
 
 
 
 
17
 
18
  = Key FAQ Features =
19
  * Unlimited FAQ, unlimited FAQ tag and unlimited FAQ category support
23
  * Export all FAQs to a PDF to create a user manual
24
  * Insert custom CSS to style your FAQ posts
25
 
26
+ [youtube https://www.youtube.com/watch?v=xeGVZnVrZ6I]
27
 
28
+ <strong>With WooCommerce Integration!</strong> See the "Add FAQ to WooCommerce" section below for full details and features.
29
 
30
+ Select from multiple FAQ styles and FAQ layouts. You can use either the toggle FAQ and/or accordion FAQ style, to display one expanded FAQ answer on click, or choose to display all FAQs on page load, with the optional list FAQ style that offers a more traditional FAQ layout.
31
 
32
+ `
33
+ [ultimate-faqs]
34
+ `
35
 
36
+ Simply insert the shortcode above into any page to display your FAQs.
37
+
38
+ FAQ features include FAQ statistics that show how many times FAQs have been viewed, FAQ styling options, FAQ categories and FAQ tags, FAQ display and FAQ ordering options, among many other FAQ options. Includes an FAQ shortcode helper, that lets you create FAQ shortcodes with FAQ attributes without having to manually enter FAQs.
39
+
40
+ Ultimate FAQ also works great for any content that works similarly to FAQ and that needs to be hidden until it is clicked, like job postings, recipes, etc.!
41
 
42
  = Add FAQ to WooCommerce! =
43
 
47
 
48
  [youtube https://www.youtube.com/watch?v=cH3p0fW4c5o]
49
 
50
+ Want to decide exactly what order your FAQs are displayed in? Use our simple FAQ drag-and-drop reordering feature! Create SEO-friendly FAQ links to individual FAQ posts to simply direct customers to exactly the right FAQ answer, right away. Easily add links to your FAQ to popular social media, such as Facebook, Twitter and Pinterest so that your customers can help you spread the word about your FAQ!
51
+
52
+ With the smart [submit-question] FAQ shortcode (premium), you can let your customers add to your custom FAQ list by submitting an FAQ question and even proposing an FAQ answer for it!
53
+
54
  = Additional Features =
55
  * Select FAQ animation options for displaying FAQ posts
56
  * Toggle FAQ accordion (close open FAQ when a new one is opened) behaviour on/off
78
  * Advanced FAQ styling options
79
  * Drag and drop precise re-ordering of FAQs
80
  * Change the FAQ permalink slug base
81
+
82
+ <strong>** We are pleased to offer a free 7-day trial of the premium version, which users can use to test out all the features before buying the premium version! **</strong>
83
 
84
  = FAQ Shortcodes =
85
  * [ultimate-faqs]: display all FAQs, or only specific FAQ categories using include_category and exclude_category attributes (both take a comma-separated list of category slugs)
249
  13. View of FAQ custom fields in the admin
250
 
251
  == Changelog ==
252
+ = 1.5.34 =
253
+ - Added an option to display the number of FAQs in a category, when FAQs are grouped by category
254
+
255
  = 1.5.33 =
256
  - Updated the text domain of the plugin, to use the improved WordPress standard
257
 
542
 
543
  = 1.0.0 =
544
  - Premium version release, check out our website for all of the details <http://www.etoilewebdesign.com/ultimate-faq/>