Version Description
- Added in a message if no FAQs are found in search, and a label for that message in the back-end
Download this release
Release Info
Developer | Rustaurius |
Plugin | Ultimate FAQ |
Version | 1.5.1 |
Comparing to | |
See all releases |
Code changes from version 1.5.0 to 1.5.1
- Functions/Update_Admin_Databases.php +10 -20
- Main.php +1 -1
- Shortcodes/DisplayFAQs.php +9 -0
- html/OptionsPage.php +15 -8
- readme.txt +3 -0
Functions/Update_Admin_Databases.php
CHANGED
@@ -17,17 +17,6 @@ function EWD_UFAQ_UpdateOptions() {
|
|
17 |
$Social_Media_Array = $_POST['Socialmedia'];
|
18 |
if (is_array($Social_Media_Array)) {$Social_Media = implode(",", $Social_Media_Array);}
|
19 |
|
20 |
-
$Posted_Label = $_POST['posted_label'];
|
21 |
-
$By_Label = $_POST['by_label'];
|
22 |
-
$On_Label = $_POST['on_label'];
|
23 |
-
$Category_Label = $_POST['category_label'];
|
24 |
-
$Tag_Label = $_POST['tag_label'];
|
25 |
-
$Enter_Question_Label = $_POST['enter_question_label'];
|
26 |
-
$Search_Label = $_POST['search_label'];
|
27 |
-
$Permalink_Label = $_POST['permalink_label'];
|
28 |
-
$Back_To_Top_Label = $_POST['back_to_top_label'];
|
29 |
-
|
30 |
-
|
31 |
$Custom_CSS = stripslashes_deep($Custom_CSS);
|
32 |
|
33 |
if (isset($_POST['custom_css'])) {update_option('EWD_UFAQ_Custom_CSS', $Custom_CSS);}
|
@@ -84,15 +73,16 @@ function EWD_UFAQ_UpdateOptions() {
|
|
84 |
if (isset($_POST['hide_blank_fields'])) {update_option('EWD_UFAQ_Hide_Blank_Fields', $_POST['hide_blank_fields']);}
|
85 |
|
86 |
|
87 |
-
if (isset($_POST['posted_label'])) {update_option('EWD_UFAQ_Posted_Label', $
|
88 |
-
if (isset($_POST['by_label'])) {update_option('EWD_UFAQ_By_Label', $
|
89 |
-
if (isset($_POST['on_label'])) {update_option('EWD_UFAQ_On_Label', $
|
90 |
-
if (isset($_POST['category_label'])) {update_option('EWD_UFAQ_Category_Label', $
|
91 |
-
if (isset($_POST['tag_label'])) {update_option('EWD_UFAQ_Tag_Label', $
|
92 |
-
if (isset($
|
93 |
-
if (isset($
|
94 |
-
if (isset($
|
95 |
-
if (isset($
|
|
|
96 |
|
97 |
if (isset($_POST['thank_you_submit_label'])) {update_option('EWD_UFAQ_Thank_You_Submit_Label', $_POST['thank_you_submit_label']);}
|
98 |
if (isset($_POST['submit_question_label'])) {update_option('EWD_UFAQ_Submit_Question_Label', $_POST['submit_question_label']);}
|
17 |
$Social_Media_Array = $_POST['Socialmedia'];
|
18 |
if (is_array($Social_Media_Array)) {$Social_Media = implode(",", $Social_Media_Array);}
|
19 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
$Custom_CSS = stripslashes_deep($Custom_CSS);
|
21 |
|
22 |
if (isset($_POST['custom_css'])) {update_option('EWD_UFAQ_Custom_CSS', $Custom_CSS);}
|
73 |
if (isset($_POST['hide_blank_fields'])) {update_option('EWD_UFAQ_Hide_Blank_Fields', $_POST['hide_blank_fields']);}
|
74 |
|
75 |
|
76 |
+
if (isset($_POST['posted_label'])) {update_option('EWD_UFAQ_Posted_Label', $_POST['posted_label']);}
|
77 |
+
if (isset($_POST['by_label'])) {update_option('EWD_UFAQ_By_Label', $_POST['by_label']);}
|
78 |
+
if (isset($_POST['on_label'])) {update_option('EWD_UFAQ_On_Label', $_POST['on_label']);}
|
79 |
+
if (isset($_POST['category_label'])) {update_option('EWD_UFAQ_Category_Label', $_POST['category_label']);}
|
80 |
+
if (isset($_POST['tag_label'])) {update_option('EWD_UFAQ_Tag_Label', $_POST['tag_label']);}
|
81 |
+
if (isset($_POST['enter_question_label'])) {update_option('EWD_UFAQ_Enter_Question_Label', $_POST['enter_question_label']);}
|
82 |
+
if (isset($_POST['search_label'])) {update_option('EWD_UFAQ_Search_Label', $_POST['search_label']);}
|
83 |
+
if (isset($_POST['permalink_label'])) {update_option('EWD_UFAQ_Permalink_Label', $_POST['permalink_label']);}
|
84 |
+
if (isset($_POST['back_to_top_label'])) {update_option('EWD_UFAQ_Back_To_Top_Label', $_POST['back_to_top_label']);}
|
85 |
+
if (isset($_POST['no_results_found_text'])) {update_option('EWD_UFAQ_No_Results_Found_Text', $_POST['no_results_found_text']);}
|
86 |
|
87 |
if (isset($_POST['thank_you_submit_label'])) {update_option('EWD_UFAQ_Thank_You_Submit_Label', $_POST['thank_you_submit_label']);}
|
88 |
if (isset($_POST['submit_question_label'])) {update_option('EWD_UFAQ_Submit_Question_Label', $_POST['submit_question_label']);}
|
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.5.
|
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.5.1
|
11 |
*/
|
12 |
|
13 |
global $ewd_ufaq_message;
|
Shortcodes/DisplayFAQs.php
CHANGED
@@ -53,6 +53,8 @@ function Display_FAQs($atts) {
|
|
53 |
if ($Back_To_Top_Label == "") {$Back_To_Top_Label = __("Back to Top", 'EWD_UFAQ');}
|
54 |
$Permalink_Label = get_option("EWD_UFAQ_Permalink_Label");
|
55 |
if ($Permalink_Label == "") {$Permalink_Label = __("Permalink", 'EWD_UFAQ');}
|
|
|
|
|
56 |
|
57 |
$UFAQ_Styling_Category_Heading_Type = get_option("EWD_UFAQ_Styling_Category_Heading_Type");
|
58 |
$UFAQ_Styling_FAQ_Heading_Type = get_option("EWD_UFAQ_Styling_FAQ_Heading_Type");
|
@@ -85,6 +87,8 @@ function Display_FAQs($atts) {
|
|
85 |
$atts
|
86 |
)
|
87 |
);
|
|
|
|
|
88 |
|
89 |
$search_string = strtolower($search_string);
|
90 |
|
@@ -387,6 +391,11 @@ function Display_FAQs($atts) {
|
|
387 |
$HeaderString .= "</div>";
|
388 |
}
|
389 |
}
|
|
|
|
|
|
|
|
|
|
|
390 |
$ReturnString .= "</div>";
|
391 |
$HeaderString .= "</div>";
|
392 |
|
53 |
if ($Back_To_Top_Label == "") {$Back_To_Top_Label = __("Back to Top", 'EWD_UFAQ');}
|
54 |
$Permalink_Label = get_option("EWD_UFAQ_Permalink_Label");
|
55 |
if ($Permalink_Label == "") {$Permalink_Label = __("Permalink", 'EWD_UFAQ');}
|
56 |
+
$No_Results_Found_Text = get_option("EWD_UFAQ_No_Results_Found_Text");
|
57 |
+
if ($No_Results_Found_Text == "") {$No_Results_Found_Text = __("No results FAQ's contained the term '%s'", 'EWD_UFAQ');}
|
58 |
|
59 |
$UFAQ_Styling_Category_Heading_Type = get_option("EWD_UFAQ_Styling_Category_Heading_Type");
|
60 |
$UFAQ_Styling_FAQ_Heading_Type = get_option("EWD_UFAQ_Styling_FAQ_Heading_Type");
|
87 |
$atts
|
88 |
)
|
89 |
);
|
90 |
+
|
91 |
+
if (strpos($No_Results_Found_Text, "%s")) {$No_Results_Found_Text = str_replace("%s", $search_string, $No_Results_Found_Text);}
|
92 |
|
93 |
$search_string = strtolower($search_string);
|
94 |
|
391 |
$HeaderString .= "</div>";
|
392 |
}
|
393 |
}
|
394 |
+
|
395 |
+
if ($Counter == 0 and $search_string != "") {
|
396 |
+
$ReturnString .= "<div class='ewd-ufaq-no-results'>" . $No_Results_Found_Text . "</div>";
|
397 |
+
}
|
398 |
+
|
399 |
$ReturnString .= "</div>";
|
400 |
$HeaderString .= "</div>";
|
401 |
|
html/OptionsPage.php
CHANGED
@@ -56,6 +56,7 @@
|
|
56 |
$Proposed_Answer_Label = get_option("EWD_UFAQ_Proposed_Answer_Label");
|
57 |
$Review_Author_Label = get_option("EWD_UFAQ_Review_Author_Label");
|
58 |
$What_Name_With_Review_Label = get_option("EWD_UFAQ_What_Name_With_Review_Label");
|
|
|
59 |
|
60 |
$UFAQ_Styling_Default_Bg_Color = get_option("EWD_UFAQ_Styling_Default_Bg_Color");
|
61 |
$UFAQ_Styling_Default_Font_Color = get_option("EWD_UFAQ_Styling_Default_Font_Color");
|
@@ -672,54 +673,60 @@
|
|
672 |
<input type='text' name='thank_you_submit_label' value='<?php echo $Thank_You_Submit_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
|
673 |
</fieldset>
|
674 |
</div>
|
675 |
-
<div class='ufaq-option ufaq-label-option'>
|
676 |
<?php _e("Submit a Question", 'EWD_UFAQ')?>
|
677 |
<fieldset>
|
678 |
<input type='text' name='submit_question_label' value='<?php echo $Submit_Question_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
|
679 |
</fieldset>
|
680 |
</div>
|
681 |
-
<div class='ufaq-option ufaq-label-option'>
|
682 |
<?php _e("Please fill out the form below to submit a question.", 'EWD_UFAQ')?>
|
683 |
<fieldset>
|
684 |
<input type='text' name='please_fill_form_below_label' value='<?php echo $Please_Fill_Form_Below_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
|
685 |
</fieldset>
|
686 |
</div>
|
687 |
-
<div class='ufaq-option ufaq-label-option'>
|
688 |
<?php _e("Send Question", 'EWD_UFAQ')?>
|
689 |
<fieldset>
|
690 |
<input type='text' name='send_question_label' value='<?php echo $Send_Question_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
|
691 |
</fieldset>
|
692 |
</div>
|
693 |
-
<div class='ufaq-option ufaq-label-option'>
|
694 |
<?php _e("Question Title", 'EWD_UFAQ')?>
|
695 |
<fieldset>
|
696 |
<input type='text' name='question_title_label' value='<?php echo $Question_Title_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
|
697 |
</fieldset>
|
698 |
</div>
|
699 |
-
<div class='ufaq-option ufaq-label-option'>
|
700 |
<?php _e("What question is being answered?", 'EWD_UFAQ')?>
|
701 |
<fieldset>
|
702 |
<input type='text' name='what_question_being_answered_label' value='<?php echo $What_Question_Being_Answered_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
|
703 |
</fieldset>
|
704 |
</div>
|
705 |
-
<div class='ufaq-option ufaq-label-option'>
|
706 |
<?php _e("Proposed Answer", 'EWD_UFAQ')?>
|
707 |
<fieldset>
|
708 |
<input type='text' name='proposed_answer_label' value='<?php echo $Proposed_Answer_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
|
709 |
</fieldset>
|
710 |
</div>
|
711 |
-
<div class='ufaq-option ufaq-label-option'>
|
712 |
<?php _e("Review Author", 'EWD_UFAQ')?>
|
713 |
<fieldset>
|
714 |
<input type='text' name='review_author_label' value='<?php echo $Review_Author_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
|
715 |
</fieldset>
|
716 |
</div>
|
717 |
-
<div class='ufaq-option ufaq-label-option'>
|
718 |
<?php _e("What name should be displayed with your review?", 'EWD_UFAQ')?>
|
719 |
<fieldset>
|
720 |
<input type='text' name='what_name_with_review_label' value='<?php echo $What_Name_With_Review_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
|
721 |
</fieldset>
|
722 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
723 |
</div>
|
724 |
</div>
|
725 |
</div>
|
56 |
$Proposed_Answer_Label = get_option("EWD_UFAQ_Proposed_Answer_Label");
|
57 |
$Review_Author_Label = get_option("EWD_UFAQ_Review_Author_Label");
|
58 |
$What_Name_With_Review_Label = get_option("EWD_UFAQ_What_Name_With_Review_Label");
|
59 |
+
$No_Results_Found_Text = get_option("EWD_UFAQ_No_Results_Found_Text");
|
60 |
|
61 |
$UFAQ_Styling_Default_Bg_Color = get_option("EWD_UFAQ_Styling_Default_Bg_Color");
|
62 |
$UFAQ_Styling_Default_Font_Color = get_option("EWD_UFAQ_Styling_Default_Font_Color");
|
673 |
<input type='text' name='thank_you_submit_label' value='<?php echo $Thank_You_Submit_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
|
674 |
</fieldset>
|
675 |
</div>
|
676 |
+
<div class='ufaq-option ufaq-label-option'>
|
677 |
<?php _e("Submit a Question", 'EWD_UFAQ')?>
|
678 |
<fieldset>
|
679 |
<input type='text' name='submit_question_label' value='<?php echo $Submit_Question_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
|
680 |
</fieldset>
|
681 |
</div>
|
682 |
+
<div class='ufaq-option ufaq-label-option'>
|
683 |
<?php _e("Please fill out the form below to submit a question.", 'EWD_UFAQ')?>
|
684 |
<fieldset>
|
685 |
<input type='text' name='please_fill_form_below_label' value='<?php echo $Please_Fill_Form_Below_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
|
686 |
</fieldset>
|
687 |
</div>
|
688 |
+
<div class='ufaq-option ufaq-label-option'>
|
689 |
<?php _e("Send Question", 'EWD_UFAQ')?>
|
690 |
<fieldset>
|
691 |
<input type='text' name='send_question_label' value='<?php echo $Send_Question_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
|
692 |
</fieldset>
|
693 |
</div>
|
694 |
+
<div class='ufaq-option ufaq-label-option'>
|
695 |
<?php _e("Question Title", 'EWD_UFAQ')?>
|
696 |
<fieldset>
|
697 |
<input type='text' name='question_title_label' value='<?php echo $Question_Title_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
|
698 |
</fieldset>
|
699 |
</div>
|
700 |
+
<div class='ufaq-option ufaq-label-option'>
|
701 |
<?php _e("What question is being answered?", 'EWD_UFAQ')?>
|
702 |
<fieldset>
|
703 |
<input type='text' name='what_question_being_answered_label' value='<?php echo $What_Question_Being_Answered_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
|
704 |
</fieldset>
|
705 |
</div>
|
706 |
+
<div class='ufaq-option ufaq-label-option'>
|
707 |
<?php _e("Proposed Answer", 'EWD_UFAQ')?>
|
708 |
<fieldset>
|
709 |
<input type='text' name='proposed_answer_label' value='<?php echo $Proposed_Answer_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
|
710 |
</fieldset>
|
711 |
</div>
|
712 |
+
<div class='ufaq-option ufaq-label-option'>
|
713 |
<?php _e("Review Author", 'EWD_UFAQ')?>
|
714 |
<fieldset>
|
715 |
<input type='text' name='review_author_label' value='<?php echo $Review_Author_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
|
716 |
</fieldset>
|
717 |
</div>
|
718 |
+
<div class='ufaq-option ufaq-label-option'>
|
719 |
<?php _e("What name should be displayed with your review?", 'EWD_UFAQ')?>
|
720 |
<fieldset>
|
721 |
<input type='text' name='what_name_with_review_label' value='<?php echo $What_Name_With_Review_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
|
722 |
</fieldset>
|
723 |
</div>
|
724 |
+
<div class='ufaq-option ufaq-label-option'>
|
725 |
+
<?php _e("No results FAQ's contained the term '%s'", 'EWD_UFAQ')?>
|
726 |
+
<fieldset>
|
727 |
+
<input type='text' name='no_results_found_text' value='<?php echo $No_Results_Found_Text; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
|
728 |
+
</fieldset>
|
729 |
+
</div>
|
730 |
</div>
|
731 |
</div>
|
732 |
</div>
|
readme.txt
CHANGED
@@ -209,6 +209,9 @@ Video 3 - FAQs Ordering
|
|
209 |
9. All answers displayed in the 'list' FAQ mode
|
210 |
|
211 |
== Changelog ==
|
|
|
|
|
|
|
212 |
= 1.5.0 =
|
213 |
- Added in a new premium option to change the toggle icon to one of 15 different sets of icons
|
214 |
- Added in microdata support, to help with SEO
|
209 |
9. All answers displayed in the 'list' FAQ mode
|
210 |
|
211 |
== Changelog ==
|
212 |
+
= 1.5.1 =
|
213 |
+
- Added in a message if no FAQs are found in search, and a label for that message in the back-end
|
214 |
+
|
215 |
= 1.5.0 =
|
216 |
- Added in a new premium option to change the toggle icon to one of 15 different sets of icons
|
217 |
- Added in microdata support, to help with SEO
|