Ultimate FAQ - Version 1.1.1

Version Description

Download this release

Release Info

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

Code changes from version 1.1.0 to 1.1.1

Files changed (4) hide show
  1. Main.php +1 -1
  2. Shortcodes/DisplayFAQs.php +3 -0
  3. html/OptionsPage.php +4 -4
  4. readme.txt +4 -0
Main.php CHANGED
@@ -7,7 +7,7 @@ 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: EWD_UFAQ
10
- Version: 1.1.0
11
  */
12
 
13
  global $ewd_ufaq_message;
7
  Author URI: http://www.EtoileWebDesign.com/wordpress-plugins/
8
  Terms and Conditions: http://www.etoilewebdesign.com/plugin-terms-and-conditions/
9
  Text Domain: EWD_UFAQ
10
+ Version: 1.1.1
11
  */
12
 
13
  global $ewd_ufaq_message;
Shortcodes/DisplayFAQs.php CHANGED
@@ -53,6 +53,7 @@ function Display_FAQs($atts) {
53
  'order' => "",
54
  'ajax' => "No",
55
  'only_titles' => "No",
 
56
  'post_count'=>-1),
57
  $atts
58
  )
@@ -60,6 +61,8 @@ function Display_FAQs($atts) {
60
 
61
  $search_string = strtolower($search_string);
62
 
 
 
63
  if ($orderby == "") {$orderby = $Order_By_Setting;}
64
  if ($orderby == "popular" or $orderby == "set_order") {
65
  $orig_order_setting = $orderby;
53
  'order' => "",
54
  'ajax' => "No",
55
  'only_titles' => "No",
56
+ 'display_all_answers' => "",
57
  'post_count'=>-1),
58
  $atts
59
  )
61
 
62
  $search_string = strtolower($search_string);
63
 
64
+ if ($display_all_answers != "") {$Display_All_Answers = $display_all_answers;}
65
+
66
  if ($orderby == "") {$orderby = $Order_By_Setting;}
67
  if ($orderby == "popular" or $orderby == "set_order") {
68
  $orig_order_setting = $orderby;
html/OptionsPage.php CHANGED
@@ -205,10 +205,10 @@
205
  <th scope="row">FAQ Display Style</th>
206
  <td>
207
  <fieldset><legend class="screen-reader-text"><span>FAQ Display Style</span></legend>
208
- <label title='Default Style'><input type='radio' name='display_style' value='Default' <?php if($Display_Style == "Default") {echo "checked='checked'";} ?> /> <span>Default</span></label><br />
209
- <label title='Color Block Style'><input type='radio' name='display_style' value='Color_Block' <?php if($Display_Style == "Color_Block") {echo "checked='checked'";} ?> /> <span>Color Block</span></label><br />
210
- <label title='Block Style'><input type='radio' name='display_style' value='Block' <?php if($Display_Style == "Block") {echo "checked='checked'";} ?> /> <span>Block</span></label><br />
211
- <label title='List Style'><input type='radio' name='display_style' value='List' <?php if($Display_Style == "List") {echo "checked='checked'";} ?> /> <span>List</span></label><br />
212
  <p>Which theme should be used to display the FAQ's?</p>
213
  </fieldset>
214
  </td>
205
  <th scope="row">FAQ Display Style</th>
206
  <td>
207
  <fieldset><legend class="screen-reader-text"><span>FAQ Display Style</span></legend>
208
+ <label title='Default Style'><input type='radio' name='display_style' value='Default' <?php if($Display_Style == "Default") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/> <span>Default</span></label><br />
209
+ <label title='Color Block Style'><input type='radio' name='display_style' value='Color_Block' <?php if($Display_Style == "Color_Block") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/> <span>Color Block</span></label><br />
210
+ <label title='Block Style'><input type='radio' name='display_style' value='Block' <?php if($Display_Style == "Block") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/> <span>Block</span></label><br />
211
+ <label title='List Style'><input type='radio' name='display_style' value='List' <?php if($Display_Style == "List") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/> <span>List</span></label><br />
212
  <p>Which theme should be used to display the FAQ's?</p>
213
  </fieldset>
214
  </td>
readme.txt CHANGED
@@ -113,6 +113,10 @@ For more questions and support you can post in the support forum:
113
  8. All answers displayed in the 'list' FAQ mode
114
 
115
  == Changelog ==
 
 
 
 
116
  = 1.1.0 =
117
  - Added new premium display styles
118
  - Added an autocomplete titles option for the AJAX search shortcode
113
  8. All answers displayed in the 'list' FAQ mode
114
 
115
  == Changelog ==
116
+ = 1.1.0 =
117
+ - Added 'display_all_answers' as a shortcode attribute, so some pages can have all answers displayed and others can have the started list style
118
+ - Fixed an option mistake
119
+
120
  = 1.1.0 =
121
  - Added new premium display styles
122
  - Added an autocomplete titles option for the AJAX search shortcode