Ultimate FAQ - Version 1.5.10

Version Description

  • Fixed an error where permalinks weren't displaying
Download this release

Release Info

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

Code changes from version 1.5.9 to 1.5.10

Functions/Update_Admin_Databases.php CHANGED
@@ -1,147 +1,143 @@
1
- <?php
2
- /* The file contains all of the functions which make changes to the WordPress tables */
3
-
4
- function EWD_UFAQ_Add_Post_Order_Meta($post_id) {
5
- $Current_Order = get_post_meta($post_id, "ufaq_order", true);
6
-
7
- if ($Current_Order == "") {
8
- update_post_meta($post_id, "ufaq_order", 1000);
9
- }
10
- }
11
- add_action('save_post_ufaq', 'EWD_UFAQ_Add_Post_Order_Meta');
12
-
13
- function EWD_UFAQ_UpdateOptions() {
14
- global $UFAQ_Full_Version;
15
-
16
- $Custom_CSS = $_POST['custom_css'];
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);}
23
- if (isset($_POST['faq_toggle'])) {update_option('EWD_UFAQ_Toggle', $_POST['faq_toggle']);}
24
- if (isset($_POST['faq_category_toggle'])) {update_option('EWD_UFAQ_Category_Toggle', $_POST['faq_category_toggle']);}
25
- if (isset($_POST['faq_accordion'])) {update_option('EWD_UFAQ_FAQ_Accordion', $_POST['faq_accordion']);}
26
- if (isset($_POST['faq_auto_complete_titles'])) {update_option('EWD_UFAQ_Auto_Complete_Titles', $_POST['faq_auto_complete_titles']);}
27
- if (isset($_POST['hide_categories'])) {update_option('EWD_UFAQ_Hide_Categories', $_POST['hide_categories']);}
28
- if (isset($_POST['hide_tags'])) {update_option('EWD_UFAQ_Hide_Tags', $_POST['hide_tags']);}
29
- if (isset($_POST['scroll_to_top'])) {update_option('EWD_UFAQ_Scroll_To_Top', $_POST['scroll_to_top']);}
30
- if (isset($_POST['display_all_answers'])) {update_option('EWD_UFAQ_Display_All_Answers', $_POST['display_all_answers']);}
31
- if (isset($_POST['display_author'])) {update_option('EWD_UFAQ_Display_Author', $_POST['display_author']);}
32
- if (isset($_POST['display_date'])) {update_option('EWD_UFAQ_Display_Date', $_POST['display_date']);}
33
- if (isset($_POST['display_back_to_top'])) {update_option('EWD_UFAQ_Display_Back_To_Top', $_POST['display_back_to_top']);}
34
- if (isset($_POST['include_permalink'])) {update_option('EWD_UFAQ_Include_Permalink', $_POST['include_permalink']);}
35
- if (isset($_POST['permalink_type'])) {update_option('EWD_UFAQ_Permalink_Type', $_POST['permalink_type']);}
36
- if (isset($_POST['show_tinymce'])) {update_option('EWD_UFAQ_Show_TinyMCE', $_POST['show_tinymce']);}
37
- if (isset($_POST['comments_on'])) {update_option('EWD_UFAQ_Comments_On', $_POST['comments_on']);}
38
-
39
- if (isset($_POST['display_style']) and $UFAQ_Full_Version == "Yes") {update_option('EWD_UFAQ_Display_Style', $_POST['display_style']);}
40
- if (isset($_POST['color_block_shape']) and $UFAQ_Full_Version == "Yes") {update_option('EWD_UFAQ_Color_Block_Shape', $_POST['color_block_shape']);}
41
- if (isset($_POST['faq_ratings']) and $UFAQ_Full_Version == "Yes") {update_option('EWD_UFAQ_FAQ_Ratings', $_POST['faq_ratings']);}
42
- if (isset($_POST['woocommerce_faqs']) and $UFAQ_Full_Version == "Yes") {update_option('EWD_UFAQ_WooCommerce_FAQs', $_POST['woocommerce_faqs']);}
43
- if (isset($_POST['use_product']) and $UFAQ_Full_Version == "Yes") {update_option('EWD_UFAQ_Use_Product', $_POST['use_product']);}
44
- if (isset($_POST['reveal_effect']) and $UFAQ_Full_Version == "Yes") {update_option('EWD_UFAQ_Reveal_Effect', $_POST['reveal_effect']);}
45
- if (isset($_POST['pretty_permalinks']) and $UFAQ_Full_Version == "Yes") {update_option('EWD_UFAQ_Pretty_Permalinks', $_POST['pretty_permalinks']);}
46
- if (isset($_POST['allow_proposed_answer']) and $UFAQ_Full_Version == "Yes") {update_option('EWD_UFAQ_Allow_Proposed_Answer', $_POST['allow_proposed_answer']);}
47
- if (isset($_POST['admin_question_notification']) and $UFAQ_Full_Version == "Yes") {update_option('EWD_UFAQ_Admin_Question_Notification', $_POST['admin_question_notification']);}
48
- if (isset($_POST['faq_auto_complete_titles']) and $UFAQ_Full_Version == "Yes") {update_option('EWD_UFAQ_Auto_Complete_Titles', $_POST['faq_auto_complete_titles']);}
49
- if (isset($_POST['slug_base']) and $UFAQ_Full_Version == "Yes") {update_option('EWD_UFAQ_Slug_Base', $_POST['slug_base']);}
50
- if (isset($_POST['Socialmedia']) and $UFAQ_Full_Version == "Yes") {update_option('EWD_UFAQ_Social_Media', $Social_Media);}
51
-
52
- if (isset($_POST['group_by_category'])) {update_option('EWD_UFAQ_Group_By_Category', $_POST['group_by_category']);}
53
- if (isset($_POST['group_by_order_by'])) {update_option('EWD_UFAQ_Group_By_Order_By', $_POST['group_by_order_by']);}
54
- if (isset($_POST['group_by_order'])) {update_option('EWD_UFAQ_Group_By_Order', $_POST['group_by_order']);}
55
- if (isset($_POST['order_by_setting'])) {update_option('EWD_UFAQ_Order_By', $_POST['order_by_setting']);}
56
- if (isset($_POST['order_setting'])) {update_option('EWD_UFAQ_Order', $_POST['order_setting']);}
57
-
58
- $Counter = 0;
59
- while ($Counter < 30) {
60
- if (isset($_POST['Custom_Field_' . $Counter . '_Name'])) {
61
- $Prefix = 'Custom_Field_' . $Counter;
62
-
63
- $Custom_Field_Item['FieldID'] = sanitize_text_field($_POST[$Prefix . '_ID']);
64
- $Custom_Field_Item['FieldName'] = sanitize_text_field($_POST[$Prefix . '_Name']);
65
- $Custom_Field_Item['FieldType'] = sanitize_text_field($_POST[$Prefix . '_Type']);
66
- $Custom_Field_Item['FieldValues'] = sanitize_text_field($_POST[$Prefix . '_Values']);
67
-
68
- $Custom_Fields[] = $Custom_Field_Item;
69
- unset($Custom_Field_Item);
70
- }
71
- $Counter++;
72
- }
73
- if (isset($_POST['Options_Submit'])) {update_option('EWD_UFAQ_FAQ_Fields', $Custom_Fields);}
74
- if (isset($_POST['hide_blank_fields'])) {update_option('EWD_UFAQ_Hide_Blank_Fields', $_POST['hide_blank_fields']);}
75
-
76
-
77
- if (isset($_POST['posted_label'])) {update_option('EWD_UFAQ_Posted_Label', $_POST['posted_label']);}
78
- if (isset($_POST['by_label'])) {update_option('EWD_UFAQ_By_Label', $_POST['by_label']);}
79
- if (isset($_POST['on_label'])) {update_option('EWD_UFAQ_On_Label', $_POST['on_label']);}
80
- if (isset($_POST['category_label'])) {update_option('EWD_UFAQ_Category_Label', $_POST['category_label']);}
81
- if (isset($_POST['tag_label'])) {update_option('EWD_UFAQ_Tag_Label', $_POST['tag_label']);}
82
- if (isset($_POST['enter_question_label'])) {update_option('EWD_UFAQ_Enter_Question_Label', $_POST['enter_question_label']);}
83
- if (isset($_POST['search_label'])) {update_option('EWD_UFAQ_Search_Label', $_POST['search_label']);}
84
- if (isset($_POST['search_placeholder_label'])) {update_option('EWD_UFAQ_Search_Placeholder_Label', $_POST['search_placeholder_label']);}
85
- if (isset($_POST['permalink_label'])) {update_option('EWD_UFAQ_Permalink_Label', $_POST['permalink_label']);}
86
- if (isset($_POST['back_to_top_label'])) {update_option('EWD_UFAQ_Back_To_Top_Label', $_POST['back_to_top_label']);}
87
- if (isset($_POST['retrieving_results_label'])) {update_option('EWD_UFAQ_Retrieving_Results_Label', $_POST['retrieving_results_label']);}
88
- if (isset($_POST['share_social_label'])) {update_option('EWD_UFAQ_Share_Social_Label', $_POST['share_social_label']);}
89
- if (isset($_POST['did_you_find_helpful_label'])) {update_option('EWD_UFAQ_Did_You_Find_Helpful_Label', $_POST['did_you_find_helpful_label']);}
90
-
91
- if (isset($_POST['thank_you_submit_label'])) {update_option('EWD_UFAQ_Thank_You_Submit_Label', $_POST['thank_you_submit_label']);}
92
- if (isset($_POST['submit_question_label'])) {update_option('EWD_UFAQ_Submit_Question_Label', $_POST['submit_question_label']);}
93
- if (isset($_POST['please_fill_form_below_label'])) {update_option('EWD_UFAQ_Please_Fill_Form_Below_Label', $_POST['please_fill_form_below_label']);}
94
- if (isset($_POST['send_question_label'])) {update_option('EWD_UFAQ_Send_Question_Label', $_POST['send_question_label']);}
95
- if (isset($_POST['question_title_label'])) {update_option('EWD_UFAQ_Question_Title_Label', $_POST['question_title_label']);}
96
- if (isset($_POST['what_question_being_answered_label'])) {update_option('EWD_UFAQ_What_Question_Being_Answered_Label', $_POST['what_question_being_answered_label']);}
97
- if (isset($_POST['proposed_answer_label'])) {update_option('EWD_UFAQ_Proposed_Answer_Label', $_POST['proposed_answer_label']);}
98
- if (isset($_POST['review_author_label'])) {update_option('EWD_UFAQ_Review_Author_Label', $_POST['review_author_label']);}
99
- if (isset($_POST['what_name_with_review_label'])) {update_option('EWD_UFAQ_What_Name_With_Review_Label', $_POST['what_name_with_review_label']);}
100
- if (isset($_POST['no_results_found_text'])) {update_option('EWD_UFAQ_No_Results_Found_Text', $_POST['no_results_found_text']);}
101
-
102
- if (isset($_POST['ufaq_styling_default_bg_color'])) {update_option('EWD_UFAQ_Styling_Default_Bg_Color', $_POST['ufaq_styling_default_bg_color']);}
103
- if (isset($_POST['ufaq_styling_default_font_color'])) {update_option('EWD_UFAQ_Styling_Default_Font_Color', $_POST['ufaq_styling_default_font_color']);}
104
- if (isset($_POST['ufaq_styling_default_border'])) {update_option('EWD_UFAQ_Styling_Default_Border', $_POST['ufaq_styling_default_border']);}
105
- if (isset($_POST['ufaq_styling_default_border_radius'])) {update_option('EWD_UFAQ_Styling_Default_Border_Radius', $_POST['ufaq_styling_default_border_radius']);}
106
- if (isset($_POST['ufaq_styling_block_bg_color'])) {update_option('EWD_UFAQ_Styling_Block_Bg_Color', $_POST['ufaq_styling_block_bg_color']);}
107
- if (isset($_POST['ufaq_styling_block_font_color'])) {update_option('EWD_UFAQ_Styling_Block_Font_Color', $_POST['ufaq_styling_block_font_color']);}
108
- if (isset($_POST['ufaq_styling_list_font'])) {update_option('EWD_UFAQ_Styling_List_Font', $_POST['ufaq_styling_list_font']);}
109
- if (isset($_POST['ufaq_styling_list_font_size'])) {update_option('EWD_UFAQ_Styling_List_Font_Size', $_POST['ufaq_styling_list_font_size']);}
110
- if (isset($_POST['ufaq_styling_list_font_color'])) {update_option('EWD_UFAQ_Styling_List_Font_Color', $_POST['ufaq_styling_list_font_color']);}
111
- if (isset($_POST['ufaq_styling_list_margin'])) {update_option('EWD_UFAQ_Styling_List_Margin', $_POST['ufaq_styling_list_margin']);}
112
- if (isset($_POST['ufaq_styling_list_padding'])) {update_option('EWD_UFAQ_Styling_List_Padding', $_POST['ufaq_styling_list_padding']);}
113
-
114
- if (isset($_POST['ufaq_styling_question_font'])) {update_option('EWD_UFAQ_Styling_Question_Font', $_POST['ufaq_styling_question_font']);}
115
- if (isset($_POST['ufaq_styling_question_font_size'])) {update_option('EWD_UFAQ_Styling_Question_Font_Size', $_POST['ufaq_styling_question_font_size']);}
116
- if (isset($_POST['ufaq_styling_question_font_color'])) {update_option('EWD_UFAQ_Styling_Question_Font_Color', $_POST['ufaq_styling_question_font_color']);}
117
- if (isset($_POST['ufaq_styling_question_margin'])) {update_option('EWD_UFAQ_Styling_Question_Margin', $_POST['ufaq_styling_question_margin']);}
118
- if (isset($_POST['ufaq_styling_question_padding'])) {update_option('EWD_UFAQ_Styling_Question_Padding', $_POST['ufaq_styling_question_padding']);}
119
- if (isset($_POST['ufaq_styling_question_icon_top_margin'])) {update_option('EWD_UFAQ_Styling_Question_Icon_Top_Margin', $_POST['ufaq_styling_question_icon_top_margin']);}
120
- if (isset($_POST['ufaq_styling_answer_font'])) {update_option('EWD_UFAQ_Styling_Answer_Font', $_POST['ufaq_styling_answer_font']);}
121
- if (isset($_POST['ufaq_styling_answer_font_size'])) {update_option('EWD_UFAQ_Styling_Answer_Font_Size', $_POST['ufaq_styling_answer_font_size']);}
122
- if (isset($_POST['ufaq_styling_answer_font_color'])) {update_option('EWD_UFAQ_Styling_Answer_Font_Color', $_POST['ufaq_styling_answer_font_color']);}
123
- if (isset($_POST['ufaq_styling_answer_margin'])) {update_option('EWD_UFAQ_Styling_Answer_Margin', $_POST['ufaq_styling_answer_margin']);}
124
- if (isset($_POST['ufaq_styling_answer_padding'])) {update_option('EWD_UFAQ_Styling_Answer_Padding', $_POST['ufaq_styling_answer_padding']);}
125
- if (isset($_POST['ufaq_styling_postdate_font'])) {update_option('EWD_UFAQ_Styling_Postdate_Font', $_POST['ufaq_styling_postdate_font']);}
126
- if (isset($_POST['ufaq_styling_postdate_font_size'])) {update_option('EWD_UFAQ_Styling_Postdate_Font_Size', $_POST['ufaq_styling_postdate_font_size']);}
127
- if (isset($_POST['ufaq_styling_postdate_font_color'])) {update_option('EWD_UFAQ_Styling_Postdate_Font_Color', $_POST['ufaq_styling_postdate_font_color']);}
128
- if (isset($_POST['ufaq_styling_postdate_margin'])) {update_option('EWD_UFAQ_Styling_Postdate_Margin', $_POST['ufaq_styling_postdate_margin']);}
129
- if (isset($_POST['ufaq_styling_postdate_padding'])) {update_option('EWD_UFAQ_Styling_Postdate_Padding', $_POST['ufaq_styling_postdate_padding']);}
130
- if (isset($_POST['ufaq_styling_category_font'])) {update_option('EWD_UFAQ_Styling_Category_Font', $_POST['ufaq_styling_category_font']);}
131
- if (isset($_POST['ufaq_styling_category_font_size'])) {update_option('EWD_UFAQ_Styling_Category_Font_Size', $_POST['ufaq_styling_category_font_size']);}
132
- if (isset($_POST['ufaq_styling_category_font_color'])) {update_option('EWD_UFAQ_Styling_Category_Font_Color', $_POST['ufaq_styling_category_font_color']);}
133
- if (isset($_POST['ufaq_styling_category_margin'])) {update_option('EWD_UFAQ_Styling_Category_Margin', $_POST['ufaq_styling_category_margin']);}
134
- if (isset($_POST['ufaq_styling_category_padding'])) {update_option('EWD_UFAQ_Styling_Category_Padding', $_POST['ufaq_styling_category_padding']);}
135
-
136
- if (isset($_POST['ufaq_styling_category_heading_type'])) {update_option('EWD_UFAQ_Styling_Category_Heading_Type', $_POST['ufaq_styling_category_heading_type']);}
137
- if (isset($_POST['ufaq_styling_faq_heading_type'])) {update_option('EWD_UFAQ_Styling_FAQ_Heading_Type', $_POST['ufaq_styling_faq_heading_type']);}
138
- if (isset($_POST['toggle_symbol'])) {update_option('EWD_UFAQ_Toggle_Symbol', $_POST['toggle_symbol']);}
139
-
140
- if (isset($_POST['custom_css'])) {update_option('EWD_UFAQ_Custom_CSS', $Custom_CSS);}
141
-
142
- if ($_POST['Pretty_Permalinks'] == "Yes") {
143
- update_option("EWD_UFAQ_Rewrite_Rules", "Yes");
144
- }
145
- }
146
-
147
- ?>
1
+ <?php
2
+ /* The file contains all of the functions which make changes to the WordPress tables */
3
+
4
+ function EWD_UFAQ_Add_Post_Order_Meta($post_id) {
5
+ $Current_Order = get_post_meta($post_id, "ufaq_order", true);
6
+
7
+ if ($Current_Order == "") {
8
+ update_post_meta($post_id, "ufaq_order", 1000);
9
+ }
10
+ }
11
+ add_action('save_post_ufaq', 'EWD_UFAQ_Add_Post_Order_Meta');
12
+
13
+ function EWD_UFAQ_UpdateOptions() {
14
+ global $UFAQ_Full_Version;
15
+
16
+ $Custom_CSS = $_POST['custom_css'];
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);}
23
+ if (isset($_POST['faq_toggle'])) {update_option('EWD_UFAQ_Toggle', $_POST['faq_toggle']);}
24
+ if (isset($_POST['faq_category_toggle'])) {update_option('EWD_UFAQ_Category_Toggle', $_POST['faq_category_toggle']);}
25
+ if (isset($_POST['faq_accordion'])) {update_option('EWD_UFAQ_FAQ_Accordion', $_POST['faq_accordion']);}
26
+ if (isset($_POST['faq_auto_complete_titles'])) {update_option('EWD_UFAQ_Auto_Complete_Titles', $_POST['faq_auto_complete_titles']);}
27
+ if (isset($_POST['hide_categories'])) {update_option('EWD_UFAQ_Hide_Categories', $_POST['hide_categories']);}
28
+ if (isset($_POST['hide_tags'])) {update_option('EWD_UFAQ_Hide_Tags', $_POST['hide_tags']);}
29
+ if (isset($_POST['scroll_to_top'])) {update_option('EWD_UFAQ_Scroll_To_Top', $_POST['scroll_to_top']);}
30
+ if (isset($_POST['display_all_answers'])) {update_option('EWD_UFAQ_Display_All_Answers', $_POST['display_all_answers']);}
31
+ if (isset($_POST['display_author'])) {update_option('EWD_UFAQ_Display_Author', $_POST['display_author']);}
32
+ if (isset($_POST['display_date'])) {update_option('EWD_UFAQ_Display_Date', $_POST['display_date']);}
33
+ if (isset($_POST['display_back_to_top'])) {update_option('EWD_UFAQ_Display_Back_To_Top', $_POST['display_back_to_top']);}
34
+ if (isset($_POST['include_permalink'])) {update_option('EWD_UFAQ_Include_Permalink', $_POST['include_permalink']);}
35
+ if (isset($_POST['permalink_type'])) {update_option('EWD_UFAQ_Permalink_Type', $_POST['permalink_type']);}
36
+ if (isset($_POST['show_tinymce'])) {update_option('EWD_UFAQ_Show_TinyMCE', $_POST['show_tinymce']);}
37
+ if (isset($_POST['comments_on'])) {update_option('EWD_UFAQ_Comments_On', $_POST['comments_on']);}
38
+
39
+ if (isset($_POST['display_style']) and $UFAQ_Full_Version == "Yes") {update_option('EWD_UFAQ_Display_Style', $_POST['display_style']);}
40
+ if (isset($_POST['color_block_shape']) and $UFAQ_Full_Version == "Yes") {update_option('EWD_UFAQ_Color_Block_Shape', $_POST['color_block_shape']);}
41
+ if (isset($_POST['faq_ratings']) and $UFAQ_Full_Version == "Yes") {update_option('EWD_UFAQ_FAQ_Ratings', $_POST['faq_ratings']);}
42
+ if (isset($_POST['woocommerce_faqs']) and $UFAQ_Full_Version == "Yes") {update_option('EWD_UFAQ_WooCommerce_FAQs', $_POST['woocommerce_faqs']);}
43
+ if (isset($_POST['use_product']) and $UFAQ_Full_Version == "Yes") {update_option('EWD_UFAQ_Use_Product', $_POST['use_product']);}
44
+ if (isset($_POST['reveal_effect']) and $UFAQ_Full_Version == "Yes") {update_option('EWD_UFAQ_Reveal_Effect', $_POST['reveal_effect']);}
45
+ if (isset($_POST['pretty_permalinks']) and $UFAQ_Full_Version == "Yes") {update_option('EWD_UFAQ_Pretty_Permalinks', $_POST['pretty_permalinks']);}
46
+ if (isset($_POST['allow_proposed_answer']) and $UFAQ_Full_Version == "Yes") {update_option('EWD_UFAQ_Allow_Proposed_Answer', $_POST['allow_proposed_answer']);}
47
+ if (isset($_POST['admin_question_notification']) and $UFAQ_Full_Version == "Yes") {update_option('EWD_UFAQ_Admin_Question_Notification', $_POST['admin_question_notification']);}
48
+ if (isset($_POST['faq_auto_complete_titles']) and $UFAQ_Full_Version == "Yes") {update_option('EWD_UFAQ_Auto_Complete_Titles', $_POST['faq_auto_complete_titles']);}
49
+ if (isset($_POST['slug_base']) and $UFAQ_Full_Version == "Yes") {update_option('EWD_UFAQ_Slug_Base', $_POST['slug_base']);}
50
+ if (isset($_POST['Socialmedia']) and $UFAQ_Full_Version == "Yes") {update_option('EWD_UFAQ_Social_Media', $Social_Media);}
51
+
52
+ if (isset($_POST['group_by_category'])) {update_option('EWD_UFAQ_Group_By_Category', $_POST['group_by_category']);}
53
+ if (isset($_POST['group_by_order_by'])) {update_option('EWD_UFAQ_Group_By_Order_By', $_POST['group_by_order_by']);}
54
+ if (isset($_POST['group_by_order'])) {update_option('EWD_UFAQ_Group_By_Order', $_POST['group_by_order']);}
55
+ if (isset($_POST['order_by_setting'])) {update_option('EWD_UFAQ_Order_By', $_POST['order_by_setting']);}
56
+ if (isset($_POST['order_setting'])) {update_option('EWD_UFAQ_Order', $_POST['order_setting']);}
57
+
58
+ $Counter = 0;
59
+ while ($Counter < 30) {
60
+ if (isset($_POST['Custom_Field_' . $Counter . '_Name'])) {
61
+ $Prefix = 'Custom_Field_' . $Counter;
62
+
63
+ $Custom_Field_Item['FieldID'] = sanitize_text_field($_POST[$Prefix . '_ID']);
64
+ $Custom_Field_Item['FieldName'] = sanitize_text_field($_POST[$Prefix . '_Name']);
65
+ $Custom_Field_Item['FieldType'] = sanitize_text_field($_POST[$Prefix . '_Type']);
66
+ $Custom_Field_Item['FieldValues'] = sanitize_text_field($_POST[$Prefix . '_Values']);
67
+
68
+ $Custom_Fields[] = $Custom_Field_Item;
69
+ unset($Custom_Field_Item);
70
+ }
71
+ $Counter++;
72
+ }
73
+ if (isset($_POST['Options_Submit'])) {update_option('EWD_UFAQ_FAQ_Fields', $Custom_Fields);}
74
+ if (isset($_POST['hide_blank_fields'])) {update_option('EWD_UFAQ_Hide_Blank_Fields', $_POST['hide_blank_fields']);}
75
+
76
+
77
+ if (isset($_POST['posted_label'])) {update_option('EWD_UFAQ_Posted_Label', $_POST['posted_label']);}
78
+ if (isset($_POST['by_label'])) {update_option('EWD_UFAQ_By_Label', $_POST['by_label']);}
79
+ if (isset($_POST['on_label'])) {update_option('EWD_UFAQ_On_Label', $_POST['on_label']);}
80
+ if (isset($_POST['category_label'])) {update_option('EWD_UFAQ_Category_Label', $_POST['category_label']);}
81
+ if (isset($_POST['tag_label'])) {update_option('EWD_UFAQ_Tag_Label', $_POST['tag_label']);}
82
+ if (isset($_POST['enter_question_label'])) {update_option('EWD_UFAQ_Enter_Question_Label', $_POST['enter_question_label']);}
83
+ if (isset($_POST['search_label'])) {update_option('EWD_UFAQ_Search_Label', $_POST['search_label']);}
84
+ if (isset($_POST['permalink_label'])) {update_option('EWD_UFAQ_Permalink_Label', $_POST['permalink_label']);}
85
+ if (isset($_POST['back_to_top_label'])) {update_option('EWD_UFAQ_Back_To_Top_Label', $_POST['back_to_top_label']);}
86
+ if (isset($_POST['no_results_found_text'])) {update_option('EWD_UFAQ_No_Results_Found_Text', $_POST['no_results_found_text']);}
87
+
88
+ if (isset($_POST['thank_you_submit_label'])) {update_option('EWD_UFAQ_Thank_You_Submit_Label', $_POST['thank_you_submit_label']);}
89
+ if (isset($_POST['submit_question_label'])) {update_option('EWD_UFAQ_Submit_Question_Label', $_POST['submit_question_label']);}
90
+ if (isset($_POST['please_fill_form_below_label'])) {update_option('EWD_UFAQ_Please_Fill_Form_Below_Label', $_POST['please_fill_form_below_label']);}
91
+ if (isset($_POST['send_question_label'])) {update_option('EWD_UFAQ_Send_Question_Label', $_POST['send_question_label']);}
92
+ if (isset($_POST['question_title_label'])) {update_option('EWD_UFAQ_Question_Title_Label', $_POST['question_title_label']);}
93
+ if (isset($_POST['what_question_being_answered_label'])) {update_option('EWD_UFAQ_What_Question_Being_Answered_Label', $_POST['what_question_being_answered_label']);}
94
+ if (isset($_POST['proposed_answer_label'])) {update_option('EWD_UFAQ_Proposed_Answer_Label', $_POST['proposed_answer_label']);}
95
+ if (isset($_POST['review_author_label'])) {update_option('EWD_UFAQ_Review_Author_Label', $_POST['review_author_label']);}
96
+ if (isset($_POST['what_name_with_review_label'])) {update_option('EWD_UFAQ_What_Name_With_Review_Label', $_POST['what_name_with_review_label']);}
97
+
98
+ if (isset($_POST['ufaq_styling_default_bg_color'])) {update_option('EWD_UFAQ_Styling_Default_Bg_Color', $_POST['ufaq_styling_default_bg_color']);}
99
+ if (isset($_POST['ufaq_styling_default_font_color'])) {update_option('EWD_UFAQ_Styling_Default_Font_Color', $_POST['ufaq_styling_default_font_color']);}
100
+ if (isset($_POST['ufaq_styling_default_border'])) {update_option('EWD_UFAQ_Styling_Default_Border', $_POST['ufaq_styling_default_border']);}
101
+ if (isset($_POST['ufaq_styling_default_border_radius'])) {update_option('EWD_UFAQ_Styling_Default_Border_Radius', $_POST['ufaq_styling_default_border_radius']);}
102
+ if (isset($_POST['ufaq_styling_block_bg_color'])) {update_option('EWD_UFAQ_Styling_Block_Bg_Color', $_POST['ufaq_styling_block_bg_color']);}
103
+ if (isset($_POST['ufaq_styling_block_font_color'])) {update_option('EWD_UFAQ_Styling_Block_Font_Color', $_POST['ufaq_styling_block_font_color']);}
104
+ if (isset($_POST['ufaq_styling_list_font'])) {update_option('EWD_UFAQ_Styling_List_Font', $_POST['ufaq_styling_list_font']);}
105
+ if (isset($_POST['ufaq_styling_list_font_size'])) {update_option('EWD_UFAQ_Styling_List_Font_Size', $_POST['ufaq_styling_list_font_size']);}
106
+ if (isset($_POST['ufaq_styling_list_font_color'])) {update_option('EWD_UFAQ_Styling_List_Font_Color', $_POST['ufaq_styling_list_font_color']);}
107
+ if (isset($_POST['ufaq_styling_list_margin'])) {update_option('EWD_UFAQ_Styling_List_Margin', $_POST['ufaq_styling_list_margin']);}
108
+ if (isset($_POST['ufaq_styling_list_padding'])) {update_option('EWD_UFAQ_Styling_List_Padding', $_POST['ufaq_styling_list_padding']);}
109
+
110
+ if (isset($_POST['ufaq_styling_question_font'])) {update_option('EWD_UFAQ_Styling_Question_Font', $_POST['ufaq_styling_question_font']);}
111
+ if (isset($_POST['ufaq_styling_question_font_size'])) {update_option('EWD_UFAQ_Styling_Question_Font_Size', $_POST['ufaq_styling_question_font_size']);}
112
+ if (isset($_POST['ufaq_styling_question_font_color'])) {update_option('EWD_UFAQ_Styling_Question_Font_Color', $_POST['ufaq_styling_question_font_color']);}
113
+ if (isset($_POST['ufaq_styling_question_margin'])) {update_option('EWD_UFAQ_Styling_Question_Margin', $_POST['ufaq_styling_question_margin']);}
114
+ if (isset($_POST['ufaq_styling_question_padding'])) {update_option('EWD_UFAQ_Styling_Question_Padding', $_POST['ufaq_styling_question_padding']);}
115
+ if (isset($_POST['ufaq_styling_question_icon_top_margin'])) {update_option('EWD_UFAQ_Styling_Question_Icon_Top_Margin', $_POST['ufaq_styling_question_icon_top_margin']);}
116
+ if (isset($_POST['ufaq_styling_answer_font'])) {update_option('EWD_UFAQ_Styling_Answer_Font', $_POST['ufaq_styling_answer_font']);}
117
+ if (isset($_POST['ufaq_styling_answer_font_size'])) {update_option('EWD_UFAQ_Styling_Answer_Font_Size', $_POST['ufaq_styling_answer_font_size']);}
118
+ if (isset($_POST['ufaq_styling_answer_font_color'])) {update_option('EWD_UFAQ_Styling_Answer_Font_Color', $_POST['ufaq_styling_answer_font_color']);}
119
+ if (isset($_POST['ufaq_styling_answer_margin'])) {update_option('EWD_UFAQ_Styling_Answer_Margin', $_POST['ufaq_styling_answer_margin']);}
120
+ if (isset($_POST['ufaq_styling_answer_padding'])) {update_option('EWD_UFAQ_Styling_Answer_Padding', $_POST['ufaq_styling_answer_padding']);}
121
+ if (isset($_POST['ufaq_styling_postdate_font'])) {update_option('EWD_UFAQ_Styling_Postdate_Font', $_POST['ufaq_styling_postdate_font']);}
122
+ if (isset($_POST['ufaq_styling_postdate_font_size'])) {update_option('EWD_UFAQ_Styling_Postdate_Font_Size', $_POST['ufaq_styling_postdate_font_size']);}
123
+ if (isset($_POST['ufaq_styling_postdate_font_color'])) {update_option('EWD_UFAQ_Styling_Postdate_Font_Color', $_POST['ufaq_styling_postdate_font_color']);}
124
+ if (isset($_POST['ufaq_styling_postdate_margin'])) {update_option('EWD_UFAQ_Styling_Postdate_Margin', $_POST['ufaq_styling_postdate_margin']);}
125
+ if (isset($_POST['ufaq_styling_postdate_padding'])) {update_option('EWD_UFAQ_Styling_Postdate_Padding', $_POST['ufaq_styling_postdate_padding']);}
126
+ if (isset($_POST['ufaq_styling_category_font'])) {update_option('EWD_UFAQ_Styling_Category_Font', $_POST['ufaq_styling_category_font']);}
127
+ if (isset($_POST['ufaq_styling_category_font_size'])) {update_option('EWD_UFAQ_Styling_Category_Font_Size', $_POST['ufaq_styling_category_font_size']);}
128
+ if (isset($_POST['ufaq_styling_category_font_color'])) {update_option('EWD_UFAQ_Styling_Category_Font_Color', $_POST['ufaq_styling_category_font_color']);}
129
+ if (isset($_POST['ufaq_styling_category_margin'])) {update_option('EWD_UFAQ_Styling_Category_Margin', $_POST['ufaq_styling_category_margin']);}
130
+ if (isset($_POST['ufaq_styling_category_padding'])) {update_option('EWD_UFAQ_Styling_Category_Padding', $_POST['ufaq_styling_category_padding']);}
131
+
132
+ if (isset($_POST['ufaq_styling_category_heading_type'])) {update_option('EWD_UFAQ_Styling_Category_Heading_Type', $_POST['ufaq_styling_category_heading_type']);}
133
+ if (isset($_POST['ufaq_styling_faq_heading_type'])) {update_option('EWD_UFAQ_Styling_FAQ_Heading_Type', $_POST['ufaq_styling_faq_heading_type']);}
134
+ if (isset($_POST['toggle_symbol'])) {update_option('EWD_UFAQ_Toggle_Symbol', $_POST['toggle_symbol']);}
135
+
136
+ if (isset($_POST['custom_css'])) {update_option('EWD_UFAQ_Custom_CSS', $Custom_CSS);}
137
+
138
+ if ($_POST['Pretty_Permalinks'] == "Yes") {
139
+ update_option("EWD_UFAQ_Rewrite_Rules", "Yes");
140
+ }
141
+ }
142
+
143
+ ?>
 
 
 
 
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.9
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.10
11
  */
12
 
13
  global $ewd_ufaq_message;
Shortcodes/DisplayFAQs.php CHANGED
@@ -1,484 +1,479 @@
1
- <?php
2
- /* The function that creates the HTML on the front-end, based on the parameters
3
- * supplied in the product-catalog shortcode */
4
- function Display_FAQs($atts) {
5
- $current_url = $_SERVER['REQUEST_URI'];
6
- if (strpos($current_url,'faq-tag') !== false) {$current_url = substr($current_url,0,strpos($current_url,'faq-tag'));}
7
- if (strpos($current_url,'faq-category') !== false) {$current_url = substr($current_url,0,strpos($current_url,'faq-category'));}
8
- if (strpos($current_url,'?include_tag') !== false) {$current_url = substr($current_url,0,strpos($current_url,'?include_tag'));}
9
- if (strpos($current_url,'?include_category') !== false) {$current_url = substr($current_url,0,strpos($current_url,'?include_category'));}
10
-
11
- $Custom_CSS = get_option("EWD_UFAQ_Custom_CSS");
12
- $FAQ_Toggle = get_option("EWD_UFAQ_Toggle");
13
- $Category_Toggle = get_option("EWD_UFAQ_Category_Toggle");
14
- $FAQ_Accordion = get_option("EWD_UFAQ_FAQ_Accordion");
15
- $Hide_Categories = get_option("EWD_UFAQ_Hide_Categories");
16
- $Hide_Tags = get_option("EWD_UFAQ_Hide_Tags");
17
- $Scroll_To_Top = get_option("EWD_UFAQ_Scroll_To_Top");
18
- $Display_Author = get_option("EWD_UFAQ_Display_Author");
19
- $Display_Date = get_option("EWD_UFAQ_Display_Date");
20
- $Display_Back_To_Top = get_option("EWD_UFAQ_Display_Back_To_Top");
21
- $Include_Permalink = get_option("EWD_UFAQ_Include_Permalf
22
- ewds-ufaink");
23
- $Permalink_Type = get_option("EWD_UFAQ_Permalink_Type");
24
- $Comments_On = get_option("EWD_UFAQ_Comments_On");
25
-
26
- $Display_Style = get_option("EWD_UFAQ_Display_Style");
27
- $Color_Block_Shape = get_option("EWD_UFAQ_Color_Block_Shape");
28
- $FAQ_Ratings = get_option("EWD_UFAQ_FAQ_Ratings");
29
- $Reveal_Effect = get_option("EWD_UFAQ_Reveal_Effect");
30
- $Pretty_Permalinks = get_option("EWD_UFAQ_Pretty_Permalinks");
31
- $Display_All_Answers = get_option("EWD_UFAQ_Display_All_Answers");
32
- $Socialmedia_String = get_option("EWD_UFAQ_Social_Media");
33
- $Socialmedia = explode(",", $Socialmedia_String);
34
-
35
- $Group_By_Category = get_option("EWD_UFAQ_Group_By_Category");
36
- $Group_By_Order_By = get_option("EWD_UFAQ_Group_By_Order_By");
37
- $Group_By_Order = get_option("EWD_UFAQ_Group_By_Order");
38
- $Order_By_Setting = get_option("EWD_UFAQ_Order_By");
39
- $Order_Setting = get_option("EWD_UFAQ_Order");
40
-
41
- $FAQ_Fields_Array = get_option("EWD_UFAQ_FAQ_Fields");
42
- if (!is_array($FAQ_Fields_Array)) {$FAQ_Fields_Array = array();}
43
- $Hide_Blank_Fields = get_option("EWD_UFAQ_Hide_Blank_Fields");
44
-
45
- $Posted_Label = get_option("EWD_UFAQ_Posted_Label");
46
- if ($Posted_Label == "") {$Posted_Label = __("Posted ", 'EWD_UFAQ');}
47
- $By_Label = get_option("EWD_UFAQ_By_Label");
48
- if ($By_Label == "") {$By_Label = __("by ", 'EWD_UFAQ');}
49
- $On_Label = get_option("EWD_UFAQ_On_Label");
50
- if ($On_Label == "") {$On_Label = __("on ", 'EWD_UFAQ');}
51
- $Category_Label = get_option("EWD_UFAQ_Category_Label");
52
- $Tag_Label = get_option("EWD_UFAQ_Tag_Label");
53
- $Back_To_Top_Label = get_option("EWD_UFAQ_Back_To_Top_Label");
54
- if ($Back_To_Top_Label == "") {$Back_To_Top_Label = __("Back to Top", 'EWD_UFAQ');}
55
- $Permalink_Label = get_option("EWD_UFAQ_Permalink_Label");
56
- if ($Permalink_Label == "") {$Permalink_Label = __("Permalink", 'EWD_UFAQ');}
57
- $No_Results_Found_Text = get_option("EWD_UFAQ_No_Results_Found_Text");
58
- if ($No_Results_Found_Text == "") {$No_Results_Found_Text = __("No result FAQ's contained the term '%s'", 'EWD_UFAQ');}
59
- $Share_Social_Label = get_option("EWD_UFAQ_Share_Social_Label");
60
- if($Share_Social_Label == ""){$Share_Social_Label = __("Share", 'EWD_UFAQ');}
61
- $Did_You_Find_Helpful_Label = get_option("EWD_UFAQ_Did_You_Find_Helpful_Label");
62
- if($Did_You_Find_Helpful_Label == ""){$Did_You_Find_Helpful_Label = __("Did you find this FAQ helpful?", 'EWD_UFAQ');}
63
-
64
- $UFAQ_Styling_Category_Heading_Type = get_option("EWD_UFAQ_Styling_Category_Heading_Type");
65
- $UFAQ_Styling_FAQ_Heading_Type = get_option("EWD_UFAQ_Styling_FAQ_Heading_Type");
66
-
67
- $Toggle_Symbol = get_option("EWD_UFAQ_Toggle_Symbol");
68
- if ($Toggle_Symbol == "") {$Toggle_Symbol = 'A';}
69
-
70
- if ($Display_Style != "Color_Block") {$Color_Block_Shape = "";}
71
- else {$Color_Block_Shape = "ewd-ufaq-" . $Color_Block_Shape;}
72
-
73
- $Unique_ID = EWD_UFAQ_Rand_Chars(3);
74
-
75
- $ReturnString = "";
76
- $HeaderString = "";
77
- $TitlesArray = array();
78
-
79
- // Get the attributes passed by the shortcode, and store them in new variables for processing
80
- extract( shortcode_atts( array(
81
- 'search_string' => "",
82
- 'post__in' => "",
83
- 'include_category' => "",
84
- 'exclude_category' => "",
85
- 'include_category_ids' => "",
86
- 'exclude_category_ids' => "",
87
- 'no_comments' => "",
88
- 'orderby' => "",
89
- 'order' => "",
90
- 'ajax' => "No",
91
- 'only_titles' => "No",
92
- 'display_all_answers' => "",
93
- 'post_count'=>-1),
94
- $atts
95
- )
96
- );
97
-
98
- if (strpos($No_Results_Found_Text, "%s")) {$No_Results_Found_Text = str_replace("%s", $search_string, $No_Results_Found_Text);}
99
-
100
- $search_string = strtolower($search_string);
101
-
102
- if ($display_all_answers != "") {$Display_All_Answers = $display_all_answers;}
103
-
104
- if ($post__in != "") {
105
- $post_id_array = json_decode(str_replace(array("&lsqb;", "&rsqb;"), array("[", "]"), $post__in));
106
- }
107
- else {$post_id_array = "";}
108
-
109
- if ($orderby == "") {$orderby = $Order_By_Setting;}
110
- if ($orderby == "popular" or $orderby == "set_order" or $orderby == "top_rated") {
111
- $orig_order_setting = $orderby;
112
- $orderby = "meta_value_num";
113
- }
114
-
115
- if ($order == "") {$order = $Order_Setting;}
116
- if ($orig_order_setting == "popular") {$order = "DESC";}
117
- if ($orig_order_setting == "top_rated") {$order = "DESC";}
118
- if ($orig_order_setting == "set_order") {$order = "ASC";}
119
-
120
- if ($Group_By_Category == "Yes") {
121
- $Category_Array = get_terms('ufaq-category', array('orderby' => $Group_By_Order_By, 'order' => $Group_By_Order));
122
- }
123
- else {
124
- $Category_Array = array("EWD_UFAQ_ALL_CATEGORIES");
125
- }
126
-
127
- if (isset($_GET['include_category'])) {$include_category = $_GET['include_category'];}
128
- if (get_query_var('ufaq_category_slug') != "") {$include_category = get_query_var('ufaq_category_slug');}
129
- if ($include_category_ids != "" ) {$include_category_ids_array = explode(",", $include_category_ids);}
130
- if ($include_category_ids != "") {
131
- foreach ($include_category_ids_array as $Category_ID) {
132
- $Term = get_term_by('id', $Category_ID, 'ufaq-category');
133
- $include_category .= $Term->slug . ",";
134
- }
135
- $include_category = substr($include_category, 0, -1);
136
- }
137
- if ($include_category != "" ) {$include_category_array = explode(",", $include_category);}
138
- else {$include_category_array = array();}
139
- if (sizeOf($include_category_array) > 0) {
140
- $include_category_filter_array = array( 'taxonomy' => 'ufaq-category',
141
- 'field' => 'slug',
142
- 'terms' => $include_category_array
143
- );
144
- }
145
- if ($exclude_category_ids != "" ) {$exclude_category_ids_array = explode(",", $exclude_category_ids);}
146
- if ($exclude_category_ids != "") {
147
- foreach ($exclude_category_ids_array as $Category_ID) {
148
- $Term = get_term_by('id', $Category_ID, 'ufaq-category');
149
- $exclude_category .= $Term->slug . ",";
150
- }
151
- $exclude_category = substr($exclude_category, 0, -1);
152
- }
153
- if ($exclude_category != "" ) {$exclude_category_array = explode(",", $exclude_category);}
154
- else {$exclude_category_array = array();}
155
- if (sizeOf($exclude_category_array) > 0) {
156
- $exclude_category_filter_array = array( 'taxonomy' => 'ufaq-category',
157
- 'field' => 'slug',
158
- 'terms' => $exclude_category_array,
159
- 'operator' => 'NOT IN'
160
- );
161
- }
162
-
163
- if (isset($_GET['include_tag'])) {$include_tag = $_GET['include_tag'];}
164
- if (get_query_var('ufaq_tag_slug') != "") {$include_tag = get_query_var('ufaq_tag_slug');}
165
- if (isset($include_tag) and $include_tag != "" ) {$include_tag_array = explode(",", $include_tag);}
166
- else {$include_tag_array = array();}
167
- if (sizeOf($include_tag_array) > 0) {
168
- $include_tag_filter_array = array( 'taxonomy' => 'ufaq-tag',
169
- 'field' => 'slug',
170
- 'terms' => $include_tag_array
171
- );
172
- }
173
-
174
- $ReturnString .= "<div class='ufaq-faq-list' id='ufaq-faq-list'>";
175
- $HeaderString .= "<div class='ufaq-faq-header'>";
176
-
177
- if (get_query_var('single_faq') != "") {
178
- $FAQ = get_page_by_path(get_query_var('single_faq'),OBJECT,'ufaq');
179
- $ReturnString .= "<script>var Display_FAQ_ID = '" . $FAQ->ID . "-%Counter_Placeholder%';</script>";
180
- $Display_FAQ_ID = $FAQ->ID;
181
- }
182
- elseif (isset($_GET['Display_FAQ'])) {
183
- $ReturnString .= "<script>var Display_FAQ_ID = '" . $_GET['Display_FAQ'] . "-%Counter_Placeholder%';</script>";
184
- $Display_FAQ_ID = $_GET['Display_FAQ'];
185
- }
186
- else {$Display_FAQ_ID = "";}
187
-
188
- if ($Custom_CSS != "") {$ReturnString .= "<style>" . $Custom_CSS . "</style>";}
189
- $ReturnString .= EWD_UFAQ_Add_Modified_Styles();
190
-
191
- $ReturnString .= "<script language='JavaScript' type='text/javascript'>";
192
- if ($FAQ_Accordion == "Yes") {$ReturnString .= "var faq_accordion = true;";}
193
- else {$ReturnString .= "var faq_accordion = false;";}
194
- if ($Scroll_To_Top == "Yes") {$ReturnString .= "var faq_scroll = true;";}
195
- else {$ReturnString .= "var faq_scroll = false;";}
196
- $ReturnString .= "var reveal_effect = '" . $Reveal_Effect . "';";
197
- $ReturnString .= "</script>";
198
-
199
- if ($Display_Style == "List") {
200
- $ReturnString .= "%LIST_HEADER_PLACEHOLDER%";
201
- }
202
-
203
- $Counter = 0;
204
- foreach ($Category_Array as $Category) {
205
-
206
- if ($Category != "EWD_UFAQ_ALL_CATEGORIES") {
207
- if (!EWD_UFAQ_Category_Matches($Category, $include_category_array, $exclude_category_array)) {continue;}
208
-
209
- $category_array = array( 'taxonomy' => 'ufaq-category',
210
- 'field' => 'slug',
211
- 'terms' => $Category->slug
212
- );
213
- }
214
-
215
- $tax_query_array = array('relation' => 'AND');
216
- if (isset($include_category_filter_array)) {$tax_query_array[] = $include_category_filter_array;}
217
- if (isset($exclude_category_filter_array)) {$tax_query_array[] = $exclude_category_filter_array;}
218
- if (isset($include_tag_filter_array)) {$tax_query_array[] = $include_tag_filter_array;}
219
- if (isset($category_array)) {$tax_query_array[] = $category_array;}
220
-
221
- $params = array('posts_per_page' => $post_count,
222
- 'post_type' => 'ufaq',
223
- 'orderby' => $orderby,
224
- 'order' => $order,
225
- 'tax_query' => $tax_query_array,
226
- 'suppress_filters' => false
227
- );
228
- unset($tax_query_array);
229
- if ($search_string != "") {$params['s'] = $search_string;}
230
- if (is_array($post_id_array)) {$params['post__in'] = $post_id_array;}
231
- if ($orig_order_setting == "popular") {$params['meta_key'] = 'ufaq_view_count';}
232
- if ($orig_order_setting == "top_rated") {$params['meta_key'] = 'FAQ_Total_Score';}
233
- if ($orig_order_setting == "set_order") {$params['meta_key'] = 'ufaq_order';}
234
- $FAQ_Query = new WP_Query($params);
235
-
236
- if ($Category != "EWD_UFAQ_ALL_CATEGORIES" and $FAQ_Query->post_count > 0) {
237
- $ReturnString .= "<div class='ufaq-faq-category'>";
238
- $ReturnString .= "<div class='ufaq-faq-category-title";
239
- if ($Category_Toggle == "Yes") {$ReturnString .= " ufaq-faq-category-title-toggle";}
240
- $ReturnString .= "' data-categoryid='" . $Category->term_id . "'>";
241
- $ReturnString .= "<" . $UFAQ_Styling_Category_Heading_Type . ">" . $Category->name . "</" . $UFAQ_Styling_Category_Heading_Type . ">";
242
- $ReturnString .= "</div>";
243
- $ReturnString .= "<div class='ufaq-faq-category-inner";
244
- if ($Category_Toggle == "Yes") {$ReturnString .= " ufaq-faq-category-body-hidden";}
245
- $ReturnString .= "' id='ufaq-faq-category-body-" . $Category->term_id . "'>";
246
-
247
- $HeaderString .= "<div class='ufaq-faq-header-category'>";
248
- $HeaderString .= "<div class='ufaq-faq-header-category-title' data-categoryid='" . $Category->term_id . "'>";
249
- $HeaderString .= "<" . $UFAQ_Styling_Category_Heading_Type . ">" . $Category->name . "</" . $UFAQ_Styling_Category_Heading_Type . ">";
250
- $HeaderString .= "</div>";
251
- }
252
-
253
- while ( $FAQ_Query->have_posts() ): $FAQ_Query->the_post(); global $post;
254
- $faq = get_post();
255
- $Category_Terms = wp_get_post_terms($faq->ID, 'ufaq-category');
256
- $Tag_Terms = wp_get_post_terms($faq->ID, 'ufaq-tag');
257
-
258
- if ($Permalink_Type == "IndividualPage") {
259
- $FAQ_Permalink = get_permalink($faq->ID);
260
- }
261
- else {
262
- if ($Pretty_Permalinks == "Yes") {$FAQ_Permalink = get_the_permalink() . "single-faq/" . $faq->post_name;}
263
- else {$FAQ_Permalink = get_the_permalink() . "?Display_FAQ=" . $faq->ID;}
264
- }
265
-
266
- if ($Display_FAQ_ID == $faq->ID) {
267
- $ReturnString = str_replace("%Counter_Placeholder%", $Counter, $ReturnString);
268
- $Display_FAQ_ID = "";
269
- }
270
-
271
- $TitlesArray[] = json_encode($faq->post_title);
272
- $HeaderString .= "<div class='ufaq-faq-header-title'><a href='' class='ufaq-faq-header-link' data-postid='" . $Unique_ID . "-" . $faq->ID . "-" . $Counter . "'>" . $faq->post_title . "</a></div>";
273
-
274
- $ReturnString .= "<div class='ufaq-faq-div ufaq-faq-display-style-" . $Display_Style . "' id='ufaq-post-" . $Unique_ID . "-" . $faq->ID . "-" . $Counter . "' data-postid='" . $Unique_ID . "-" . $faq->ID . "-" . $Counter . "' itemscope itemtype='http://schema.org/Question'>";
275
-
276
- $ReturnString .= "<div class='ufaq-faq-title";
277
- if ($FAQ_Toggle != "No") {$ReturnString .= " ufaq-faq-toggle";}
278
- $ReturnString .= "' id='ufaq-title-" . $faq->ID . "' data-postid='" . $Unique_ID . "-" . $faq->ID . "-" . $Counter . "'>";
279
- $ReturnString .= "<a class='ewd-ufaq-post-margin' href='" . get_permalink($faq->ID) . "'><div class='ewd-ufaq-post-margin-symbol " . $Color_Block_Shape . "' id='ewd-ufaq-post-margin-symbol-" . $Unique_ID . "-" . $faq->ID . "-" . $Counter . "'><span id='ewd-ufaq-post-symbol-" . $Unique_ID . "-" . $faq->ID . "-" . $Counter;
280
- if ($Display_All_Answers == "Yes") {$ReturnString .= "'>" . $Toggle_Symbol . "</span></div>";}
281
- else {$ReturnString .= "'>" . strtolower($Toggle_Symbol) . "</span></div>";}
282
- $ReturnString .= "<div class='ufaq-faq-title-text'><" . $UFAQ_Styling_FAQ_Heading_Type . " itemprop='name'>" .$faq->post_title . "</" . $UFAQ_Styling_FAQ_Heading_Type . "></div><div class='ewd-ufaq-clear'></div></a>";
283
- $ReturnString .= "</div>";
284
-
285
- if (strlen($faq->post_excerpt) > 0) {$ReturnString .= "<div class='ufaq-faq-excerpt' id='ufaq-excerpt-" . $faq->ID . "'>" . apply_filters('the_content', html_entity_decode($faq->post_excerpt)) . "</div>";}
286
- $ReturnString .= "<div class='ufaq-faq-body ufaq-body-" . $faq->ID;
287
- if ($Display_All_Answers != "Yes") {$ReturnString .= " ewd-ufaq-hidden";}
288
- $ReturnString .= "' id='ufaq-body-" . $Unique_ID . "-" . $faq->ID . "-" . $Counter . "' itemprop='suggestedAnswer acceptedAnswer' itemscope itemtype='http://schema.org/Answer'>";
289
-
290
- if ($Display_Author == "Yes" or $Display_Date == "Yes") {
291
- $Display_Author_Value = get_post_meta($faq->ID, "EWD_UFAQ_Post_Author", true);
292
- $Display_Date_Value = get_the_date("", $faq->ID);
293
- $ReturnString .= "<div class='ewd-ufaq-author-date' itemprop='author' itemscope itemtype='http://schema.org/Person'>";
294
- $ReturnString .= $Posted_Label . " " ;
295
- if ($Display_Author == "Yes" and $Display_Author_Value != "") {$ReturnString .= $By_Label . " <span class='ewd-ufaq-author' itemprop='name'>" . $Display_Author_Value . "</span> ";}
296
- if ($Display_Date == "Yes") {$ReturnString .= $On_Label . " <span class='ewd-ufaq-date'>" . $Display_Date_Value . "</span> ";}
297
- $ReturnString .= "</div>";
298
- }
299
-
300
- $ReturnString .= "<div class='ewd-ufaq-post-margin ufaq-faq-post' id='ufaq-post-" . $faq->ID . "' itemprop='text'>" . apply_filters('the_content', html_entity_decode($faq->post_content)) . "</div>";
301
-
302
- if (sizeOf($FAQ_Fields_Array) > 0) {
303
- $ReturnString .= "<div class='ufaq-faq-custom-fields' id='ufaq-custom-fields-" . $faq->ID . "'>";
304
- foreach ($FAQ_Fields_Array as $FAQ_Field_Item) {
305
- $Value = get_post_meta($faq->ID, "Custom_Field_" . $FAQ_Field_Item['FieldID'], true);
306
- if ($Hide_Blank_Fields != "Yes" or $Value != "") {
307
- $ReturnString .= "<div class='ufaq-custom-field-label'>" . $FAQ_Field_Item['FieldName'] . ": </div>";
308
- $ReturnString .= "<div class='ufaq-custom-field-value'>&nbsp;";
309
- if ($FAQ_Field_Item['FieldType'] == "file") {$ReturnString .= "<a href='" . $Value . "'>" . substr($Value, strrpos($Value, "/"+1)) . "</a>";}
310
- else {$ReturnString .= $Value;}
311
- $ReturnString .= "</div>";
312
- $ReturnString .= "<div class='ewd-ufaq-clear'></div>";
313
- }
314
- unset($Value);
315
- }
316
- $ReturnString .= "</div>";
317
- }
318
-
319
- if ($Hide_Categories == "No" and sizeOf($Category_Terms) > 0) {
320
- $ReturnString .= "<div class='ufaq-faq-categories' id='ufaq-categories-" . $faq->ID . "'>";
321
- if ($Category_Label == ""){
322
- if (sizeOf($Category_Terms) > 1) {$ReturnString .= "Categories: ";}
323
- else {$ReturnString .= "Category: ";}}
324
- else {$ReturnString .= $Category_Label . ": ";}
325
- foreach ($Category_Terms as $Category_Term) {
326
- if ($Pretty_Permalinks == "Yes") {$Category_URL = $current_url . "faq-category/" . $Category_Term->slug . "/";}
327
- else {$Category_URL = $current_url . "?include_category=" . $Category_Term->slug;}
328
- $ReturnString .= "<a href='" . $Category_URL ."'>" .$Category_Term->name . "</a>, ";
329
- }
330
- if (sizeOf($Category_Terms) > 0) {$ReturnString = substr($ReturnString, 0, strlen($ReturnString)-2);}
331
- $ReturnString .= "</div>";
332
- }
333
-
334
- if ($Hide_Tags == "No" and sizeOf($Tag_Terms) > 0) {
335
- $ReturnString .= "<div class='ufaq-faq-tags' id='ufaq-tags-" . $faq->ID . "'>";
336
- if ($Tag_Label == ""){
337
- if (sizeOf($Tag_Terms) > 1) {$ReturnString .= "Tags: ";}
338
- else {$ReturnString .= "Tag: ";}}
339
- else {$ReturnString .= $Tag_Label . ": ";}
340
- foreach ($Tag_Terms as $Tag_Term) {
341
- if ($Pretty_Permalinks == "Yes") {$Tag_URL = $current_url . "faq-tag/" . $Tag_Term->slug . "/";}
342
- else {$Tag_URL = $current_url . "?include_tag=" . $Tag_Term->slug;}
343
- $ReturnString .= "<a href='" . $Tag_URL . "'>" .$Tag_Term->name . "</a>, ";
344
- }
345
- if (sizeOf($Tag_Terms) > 0) {$ReturnString = substr($ReturnString, 0, strlen($ReturnString)-2);}
346
- $ReturnString .= "</div>";
347
- }
348
-
349
- if ($FAQ_Ratings == "Yes") {
350
- $Up_Votes = get_post_meta($faq->ID, "FAQ_Up_Votes", true);
351
- if ($Up_Votes == "") {$Up_Votes = 0;}
352
- $Down_Votes = get_post_meta($faq->ID, "FAQ_Down_Votes", true);
353
- if ($Down_Votes == "") {$Down_Votes = 0;}
354
-
355
- $ReturnString .= "<div class='ewd-ufaq-ratings'>";
356
- $ReturnString .= "<div class='ewd-ufaq-ratings-label'>";
357
- $ReturnString .= $Did_You_Find_Helpful_Label;
358
- $ReturnString .= "</div>";
359
- $ReturnString .= "<div class='ewd-ufaq-rating-button ewd-ufaq-up-vote' data-ratingfaqid='" . $faq->ID . "' itemprop='upvoteCount'>" . $Up_Votes . "</div>";
360
- $ReturnString .= "<div class='ewd-ufaq-rating-button ewd-ufaq-down-vote' data-ratingfaqid='" . $faq->ID . "' itemprop='downvoteCount'>" . $Down_Votes . "</div>";
361
- $ReturnString .= "</div>";
362
- $ReturnString .= "<div class='ewd-ufaq-clear'></div>";
363
- }
364
-
365
- if ($Socialmedia[0] != "Blank" and $Socialmedia[0] != "") {
366
- $ReturnString .= "<div class='ufaq-social-links'>" . $Share_Social_Label . ": ";
367
- $ReturnString .= "<ul class='rrssb-buttons'>";
368
- }
369
- if(in_array("Facebook", $Socialmedia)) {$ReturnString .= EWD_UFAQ_Add_Social_Media_Buttons("Facebook", $FAQ_Permalink, $faq->post_title);}
370
- if(in_array("Google", $Socialmedia)) {$ReturnString .= EWD_UFAQ_Add_Social_Media_Buttons("Google", $FAQ_Permalink, $faq->post_title);}
371
- if(in_array("Twitter", $Socialmedia)) {$ReturnString .= EWD_UFAQ_Add_Social_Media_Buttons("Twitter", $FAQ_Permalink, $faq->post_title);}
372
- if(in_array("Linkedin", $Socialmedia)) {$ReturnString .= EWD_UFAQ_Add_Social_Media_Buttons("Linkedin", $FAQ_Permalink, $faq->post_title);}
373
- if(in_array("Pinterest", $Socialmedia)) {$ReturnString .= EWD_UFAQ_Add_Social_Media_Buttons("Pinterest", $FAQ_Permalink, $faq->post_title);}
374
- if(in_array("Email", $Socialmedia)) {$ReturnString .= EWD_UFAQ_Add_Social_Media_Buttons("Email", $FAQ_Permalink, $faq->post_title);}
375
- if ($Socialmedia[0] != "Blank" and $Socialmedia[0] != "") {
376
- $ReturnString .= "</ul>";
377
- $ReturnString .= "</div>";
378
- }
379
-
380
- if ($Include_Permalink == "Yes" and $ajax == "No") {
381
- $ReturnString .= "<div class='ufaq-permalink'>" . $Permalink_Label;
382
- $ReturnString .= "<a href='" . $FAQ_Permalink . "'>";
383
- $ReturnString .= "<div class='ufaq-permalink-image'></div>";
384
- $ReturnString .= "</a>";
385
- $ReturnString .= "</div>";
386
- }
387
-
388
- if (comments_open($faq->ID) and $no_comments != "Yes" and $Comments_On == "Yes") {
389
- ob_start();
390
- $Comments = get_comments(array('post_id' => $faq->ID));
391
- wp_list_comments(array(), $Comments);
392
- comment_form(array(), $faq->ID);
393
- $ReturnString .= ob_get_contents();
394
- ob_end_clean();
395
- }
396
-
397
- if ($Display_Back_To_Top == "Yes") {
398
- $ReturnString .= "<div class='ufaq-back-to-top'>";
399
- $ReturnString .= "<a class='ufaq-back-to-top-link'>";
400
- $ReturnString .= $Back_To_Top_Label;
401
- $ReturnString .= "</a>";
402
- $ReturnString .= "</div>";
403
- }
404
-
405
- $ReturnString .= "</div>";
406
- $ReturnString .= "</div>";
407
-
408
- $Counter++;
409
- endwhile;
410
-
411
- if ($Category != "EWD_UFAQ_ALL_CATEGORIES" and $FAQ_Query->post_count > 0) {
412
- $ReturnString .= "</div>";
413
- $ReturnString .= "</div>";
414
- $HeaderString .= "</div>";
415
- }
416
- }
417
-
418
- if ($Counter == 0 and $search_string != "") {
419
- $ReturnString .= "<div class='ewd-ufaq-no-results'>" . $No_Results_Found_Text . "</div>";
420
- }
421
-
422
- $ReturnString .= "</div>";
423
- $HeaderString .= "</div>";
424
-
425
- $ReturnString = str_replace("%LIST_HEADER_PLACEHOLDER%", $HeaderString, $ReturnString);
426
-
427
- wp_reset_postdata();
428
-
429
- if ($only_titles == "Yes") {
430
- $UniqueTitles = array_unique($TitlesArray);
431
- $TitlesString = "";
432
- foreach ($UniqueTitles as $Title) {
433
- $TitlesString .= $Title . ",";
434
- }
435
- if ($TitlesString != "") {$TitlesString = substr($TitlesString, 0, -1);}
436
- return $TitlesString;
437
- }
438
-
439
- return $ReturnString;
440
- }
441
- add_shortcode("ultimate-faqs", "Display_FAQs");
442
-
443
- function EWD_UFAQ_Category_Matches($Category, $include_category_array, $exclude_category_array) {
444
- $Excluded = EWD_UFAQ_Excluded_Category_Check($Category, $exclude_category_array);
445
- $Included = EWD_UFAQ_Included_Category_Check($Category, $include_category_array);
446
-
447
- if ($Included and !$Excluded) {
448
- return true;
449
- }
450
- else {
451
- return false;
452
- }
453
- }
454
-
455
- function EWD_UFAQ_Excluded_Category_Check($Category, $exclude_category_array) {
456
- if (sizeof($exclude_category_array) == 0) {return false;}
457
-
458
- if (in_array($Category->slug, $exclude_category_array)) {return true;}
459
- elseif ($Category->parent == 0) {return false;}
460
- else {
461
- $Parent_Category = get_term($Category->parent, 'ufaq-category');
462
- return EWD_UFAQ_Excluded_Category_Check($Parent_Category, $exclude_category_array);
463
- }
464
- }
465
-
466
- function EWD_UFAQ_Included_Category_Check($Category, $include_category_array) {
467
- if (sizeof($include_category_array) == 0) {return true;}
468
-
469
- if (in_array($Category->slug, $include_category_array)) {return true;}
470
- elseif ($Category->parent == 0) {return false;}
471
- else {
472
- $Parent_Category = get_term($Category->parent, 'ufaq-category');
473
- return EWD_UFAQ_Included_Category_Check($Parent_Category, $include_category_array);
474
- }
475
- }
476
-
477
- function EWD_UFAQ_Rand_Chars($CharLength = 10) {
478
- $characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
479
- $randstring = '';
480
- for ($i = 0; $i < $CharLength; $i++) {
481
- $randstring .= $characters[rand(0, strlen($characters))];
482
- }
483
- return $randstring;
484
- }
1
+ <?php
2
+ /* The function that creates the HTML on the front-end, based on the parameters
3
+ * supplied in the product-catalog shortcode */
4
+ function Display_FAQs($atts) {
5
+ $current_url = $_SERVER['REQUEST_URI'];
6
+ if (strpos($current_url,'faq-tag') !== false) {$current_url = substr($current_url,0,strpos($current_url,'faq-tag'));}
7
+ if (strpos($current_url,'faq-category') !== false) {$current_url = substr($current_url,0,strpos($current_url,'faq-category'));}
8
+ if (strpos($current_url,'?include_tag') !== false) {$current_url = substr($current_url,0,strpos($current_url,'?include_tag'));}
9
+ if (strpos($current_url,'?include_category') !== false) {$current_url = substr($current_url,0,strpos($current_url,'?include_category'));}
10
+
11
+ $Custom_CSS = get_option("EWD_UFAQ_Custom_CSS");
12
+ $FAQ_Toggle = get_option("EWD_UFAQ_Toggle");
13
+ $Category_Toggle = get_option("EWD_UFAQ_Category_Toggle");
14
+ $FAQ_Accordion = get_option("EWD_UFAQ_FAQ_Accordion");
15
+ $Hide_Categories = get_option("EWD_UFAQ_Hide_Categories");
16
+ $Hide_Tags = get_option("EWD_UFAQ_Hide_Tags");
17
+ $Scroll_To_Top = get_option("EWD_UFAQ_Scroll_To_Top");
18
+ $Display_Author = get_option("EWD_UFAQ_Display_Author");
19
+ $Display_Date = get_option("EWD_UFAQ_Display_Date");
20
+ $Display_Back_To_Top = get_option("EWD_UFAQ_Display_Back_To_Top");
21
+ $Include_Permalink = get_option("EWD_UFAQ_Include_Permalink");
22
+ $Permalink_Type = get_option("EWD_UFAQ_Permalink_Type");
23
+ $Comments_On = get_option("EWD_UFAQ_Comments_On");
24
+
25
+ $Display_Style = get_option("EWD_UFAQ_Display_Style");
26
+ $Color_Block_Shape = get_option("EWD_UFAQ_Color_Block_Shape");
27
+ $FAQ_Ratings = get_option("EWD_UFAQ_FAQ_Ratings");
28
+ $Reveal_Effect = get_option("EWD_UFAQ_Reveal_Effect");
29
+ $Pretty_Permalinks = get_option("EWD_UFAQ_Pretty_Permalinks");
30
+ $Display_All_Answers = get_option("EWD_UFAQ_Display_All_Answers");
31
+ $Socialmedia_String = get_option("EWD_UFAQ_Social_Media");
32
+ $Socialmedia = explode(",", $Socialmedia_String);
33
+
34
+ $Group_By_Category = get_option("EWD_UFAQ_Group_By_Category");
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");
38
+ $Order_Setting = get_option("EWD_UFAQ_Order");
39
+
40
+ $FAQ_Fields_Array = get_option("EWD_UFAQ_FAQ_Fields");
41
+ if (!is_array($FAQ_Fields_Array)) {$FAQ_Fields_Array = array();}
42
+ $Hide_Blank_Fields = get_option("EWD_UFAQ_Hide_Blank_Fields");
43
+
44
+ $Posted_Label = get_option("EWD_UFAQ_Posted_Label");
45
+ if ($Posted_Label == "") {$Posted_Label = __("Posted ", 'EWD_UFAQ');}
46
+ $By_Label = get_option("EWD_UFAQ_By_Label");
47
+ if ($By_Label == "") {$By_Label = __("by ", 'EWD_UFAQ');}
48
+ $On_Label = get_option("EWD_UFAQ_On_Label");
49
+ if ($On_Label == "") {$On_Label = __("on ", 'EWD_UFAQ');}
50
+ $Category_Label = get_option("EWD_UFAQ_Category_Label");
51
+ $Tag_Label = get_option("EWD_UFAQ_Tag_Label");
52
+ $Back_To_Top_Label = get_option("EWD_UFAQ_Back_To_Top_Label");
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 result 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");
61
+
62
+ $Toggle_Symbol = get_option("EWD_UFAQ_Toggle_Symbol");
63
+ if ($Toggle_Symbol == "") {$Toggle_Symbol = 'A';}
64
+
65
+ if ($Display_Style != "Color_Block") {$Color_Block_Shape = "";}
66
+ else {$Color_Block_Shape = "ewd-ufaq-" . $Color_Block_Shape;}
67
+
68
+ $Unique_ID = EWD_UFAQ_Rand_Chars(3);
69
+
70
+ $ReturnString = "";
71
+ $HeaderString = "";
72
+ $TitlesArray = array();
73
+
74
+ // Get the attributes passed by the shortcode, and store them in new variables for processing
75
+ extract( shortcode_atts( array(
76
+ 'search_string' => "",
77
+ 'post__in' => "",
78
+ 'include_category' => "",
79
+ 'exclude_category' => "",
80
+ 'include_category_ids' => "",
81
+ 'exclude_category_ids' => "",
82
+ 'no_comments' => "",
83
+ 'orderby' => "",
84
+ 'order' => "",
85
+ 'ajax' => "No",
86
+ 'only_titles' => "No",
87
+ 'display_all_answers' => "",
88
+ 'post_count'=>-1),
89
+ $atts
90
+ )
91
+ );
92
+
93
+ if (strpos($No_Results_Found_Text, "%s")) {$No_Results_Found_Text = str_replace("%s", $search_string, $No_Results_Found_Text);}
94
+
95
+ $search_string = strtolower($search_string);
96
+
97
+ if ($display_all_answers != "") {$Display_All_Answers = $display_all_answers;}
98
+
99
+ if ($post__in != "") {
100
+ $post_id_array = json_decode(str_replace(array("&lsqb;", "&rsqb;"), array("[", "]"), $post__in));
101
+ }
102
+ else {$post_id_array = "";}
103
+
104
+ if ($orderby == "") {$orderby = $Order_By_Setting;}
105
+ if ($orderby == "popular" or $orderby == "set_order" or $orderby == "top_rated") {
106
+ $orig_order_setting = $orderby;
107
+ $orderby = "meta_value_num";
108
+ }
109
+
110
+ if ($order == "") {$order = $Order_Setting;}
111
+ if ($orig_order_setting == "popular") {$order = "DESC";}
112
+ if ($orig_order_setting == "top_rated") {$order = "DESC";}
113
+ if ($orig_order_setting == "set_order") {$order = "ASC";}
114
+
115
+ if ($Group_By_Category == "Yes") {
116
+ $Category_Array = get_terms('ufaq-category', array('orderby' => $Group_By_Order_By, 'order' => $Group_By_Order));
117
+ }
118
+ else {
119
+ $Category_Array = array("EWD_UFAQ_ALL_CATEGORIES");
120
+ }
121
+
122
+ if (isset($_GET['include_category'])) {$include_category = $_GET['include_category'];}
123
+ if (get_query_var('ufaq_category_slug') != "") {$include_category = get_query_var('ufaq_category_slug');}
124
+ if ($include_category_ids != "" ) {$include_category_ids_array = explode(",", $include_category_ids);}
125
+ if ($include_category_ids != "") {
126
+ foreach ($include_category_ids_array as $Category_ID) {
127
+ $Term = get_term_by('id', $Category_ID, 'ufaq-category');
128
+ $include_category .= $Term->slug . ",";
129
+ }
130
+ $include_category = substr($include_category, 0, -1);
131
+ }
132
+ if ($include_category != "" ) {$include_category_array = explode(",", $include_category);}
133
+ else {$include_category_array = array();}
134
+ if (sizeOf($include_category_array) > 0) {
135
+ $include_category_filter_array = array( 'taxonomy' => 'ufaq-category',
136
+ 'field' => 'slug',
137
+ 'terms' => $include_category_array
138
+ );
139
+ }
140
+ if ($exclude_category_ids != "" ) {$exclude_category_ids_array = explode(",", $exclude_category_ids);}
141
+ if ($exclude_category_ids != "") {
142
+ foreach ($exclude_category_ids_array as $Category_ID) {
143
+ $Term = get_term_by('id', $Category_ID, 'ufaq-category');
144
+ $exclude_category .= $Term->slug . ",";
145
+ }
146
+ $exclude_category = substr($exclude_category, 0, -1);
147
+ }
148
+ if ($exclude_category != "" ) {$exclude_category_array = explode(",", $exclude_category);}
149
+ else {$exclude_category_array = array();}
150
+ if (sizeOf($exclude_category_array) > 0) {
151
+ $exclude_category_filter_array = array( 'taxonomy' => 'ufaq-category',
152
+ 'field' => 'slug',
153
+ 'terms' => $exclude_category_array,
154
+ 'operator' => 'NOT IN'
155
+ );
156
+ }
157
+
158
+ if (isset($_GET['include_tag'])) {$include_tag = $_GET['include_tag'];}
159
+ if (get_query_var('ufaq_tag_slug') != "") {$include_tag = get_query_var('ufaq_tag_slug');}
160
+ if (isset($include_tag) and $include_tag != "" ) {$include_tag_array = explode(",", $include_tag);}
161
+ else {$include_tag_array = array();}
162
+ if (sizeOf($include_tag_array) > 0) {
163
+ $include_tag_filter_array = array( 'taxonomy' => 'ufaq-tag',
164
+ 'field' => 'slug',
165
+ 'terms' => $include_tag_array
166
+ );
167
+ }
168
+
169
+ $ReturnString .= "<div class='ufaq-faq-list' id='ufaq-faq-list'>";
170
+ $HeaderString .= "<div class='ufaq-faq-header'>";
171
+
172
+ if (get_query_var('single_faq') != "") {
173
+ $FAQ = get_page_by_path(get_query_var('single_faq'),OBJECT,'ufaq');
174
+ $ReturnString .= "<script>var Display_FAQ_ID = '" . $FAQ->ID . "-%Counter_Placeholder%';</script>";
175
+ $Display_FAQ_ID = $FAQ->ID;
176
+ }
177
+ elseif (isset($_GET['Display_FAQ'])) {
178
+ $ReturnString .= "<script>var Display_FAQ_ID = '" . $_GET['Display_FAQ'] . "-%Counter_Placeholder%';</script>";
179
+ $Display_FAQ_ID = $_GET['Display_FAQ'];
180
+ }
181
+ else {$Display_FAQ_ID = "";}
182
+
183
+ if ($Custom_CSS != "") {$ReturnString .= "<style>" . $Custom_CSS . "</style>";}
184
+ $ReturnString .= EWD_UFAQ_Add_Modified_Styles();
185
+
186
+ $ReturnString .= "<script language='JavaScript' type='text/javascript'>";
187
+ if ($FAQ_Accordion == "Yes") {$ReturnString .= "var faq_accordion = true;";}
188
+ else {$ReturnString .= "var faq_accordion = false;";}
189
+ if ($Scroll_To_Top == "Yes") {$ReturnString .= "var faq_scroll = true;";}
190
+ else {$ReturnString .= "var faq_scroll = false;";}
191
+ $ReturnString .= "var reveal_effect = '" . $Reveal_Effect . "';";
192
+ $ReturnString .= "</script>";
193
+
194
+ if ($Display_Style == "List") {
195
+ $ReturnString .= "%LIST_HEADER_PLACEHOLDER%";
196
+ }
197
+
198
+ $Counter = 0;
199
+ foreach ($Category_Array as $Category) {
200
+
201
+ if ($Category != "EWD_UFAQ_ALL_CATEGORIES") {
202
+ if (!EWD_UFAQ_Category_Matches($Category, $include_category_array, $exclude_category_array)) {continue;}
203
+
204
+ $category_array = array( 'taxonomy' => 'ufaq-category',
205
+ 'field' => 'slug',
206
+ 'terms' => $Category->slug
207
+ );
208
+ }
209
+
210
+ $tax_query_array = array('relation' => 'AND');
211
+ if (isset($include_category_filter_array)) {$tax_query_array[] = $include_category_filter_array;}
212
+ if (isset($exclude_category_filter_array)) {$tax_query_array[] = $exclude_category_filter_array;}
213
+ if (isset($include_tag_filter_array)) {$tax_query_array[] = $include_tag_filter_array;}
214
+ if (isset($category_array)) {$tax_query_array[] = $category_array;}
215
+
216
+ $params = array('posts_per_page' => $post_count,
217
+ 'post_type' => 'ufaq',
218
+ 'orderby' => $orderby,
219
+ 'order' => $order,
220
+ 'tax_query' => $tax_query_array,
221
+ 'suppress_filters' => false
222
+ );
223
+ unset($tax_query_array);
224
+ if ($search_string != "") {$params['s'] = $search_string;}
225
+ if (is_array($post_id_array)) {$params['post__in'] = $post_id_array;}
226
+ if ($orig_order_setting == "popular") {$params['meta_key'] = 'ufaq_view_count';}
227
+ if ($orig_order_setting == "top_rated") {$params['meta_key'] = 'FAQ_Total_Score';}
228
+ if ($orig_order_setting == "set_order") {$params['meta_key'] = 'ufaq_order';}
229
+ $FAQ_Query = new WP_Query($params);
230
+
231
+ if ($Category != "EWD_UFAQ_ALL_CATEGORIES" and $FAQ_Query->post_count > 0) {
232
+ $ReturnString .= "<div class='ufaq-faq-category'>";
233
+ $ReturnString .= "<div class='ufaq-faq-category-title";
234
+ if ($Category_Toggle == "Yes") {$ReturnString .= " ufaq-faq-category-title-toggle";}
235
+ $ReturnString .= "' data-categoryid='" . $Category->term_id . "'>";
236
+ $ReturnString .= "<" . $UFAQ_Styling_Category_Heading_Type . ">" . $Category->name . "</" . $UFAQ_Styling_Category_Heading_Type . ">";
237
+ $ReturnString .= "</div>";
238
+ $ReturnString .= "<div class='ufaq-faq-category-inner";
239
+ if ($Category_Toggle == "Yes") {$ReturnString .= " ufaq-faq-category-body-hidden";}
240
+ $ReturnString .= "' id='ufaq-faq-category-body-" . $Category->term_id . "'>";
241
+
242
+ $HeaderString .= "<div class='ufaq-faq-header-category'>";
243
+ $HeaderString .= "<div class='ufaq-faq-header-category-title' data-categoryid='" . $Category->term_id . "'>";
244
+ $HeaderString .= "<" . $UFAQ_Styling_Category_Heading_Type . ">" . $Category->name . "</" . $UFAQ_Styling_Category_Heading_Type . ">";
245
+ $HeaderString .= "</div>";
246
+ }
247
+
248
+ while ( $FAQ_Query->have_posts() ): $FAQ_Query->the_post(); global $post;
249
+ $faq = get_post();
250
+ $Category_Terms = wp_get_post_terms($faq->ID, 'ufaq-category');
251
+ $Tag_Terms = wp_get_post_terms($faq->ID, 'ufaq-tag');
252
+
253
+ if ($Permalink_Type == "IndividualPage") {
254
+ $FAQ_Permalink = get_permalink($faq->ID);
255
+ }
256
+ else {
257
+ if ($Pretty_Permalinks == "Yes") {$FAQ_Permalink = get_the_permalink() . "single-faq/" . $faq->post_name;}
258
+ else {$FAQ_Permalink = get_the_permalink() . "?Display_FAQ=" . $faq->ID;}
259
+ }
260
+
261
+ if ($Display_FAQ_ID == $faq->ID) {
262
+ $ReturnString = str_replace("%Counter_Placeholder%", $Counter, $ReturnString);
263
+ $Display_FAQ_ID = "";
264
+ }
265
+
266
+ $TitlesArray[] = json_encode($faq->post_title);
267
+ $HeaderString .= "<div class='ufaq-faq-header-title'><a href='' class='ufaq-faq-header-link' data-postid='" . $Unique_ID . "-" . $faq->ID . "-" . $Counter . "'>" . $faq->post_title . "</a></div>";
268
+
269
+ $ReturnString .= "<div class='ufaq-faq-div ufaq-faq-display-style-" . $Display_Style . "' id='ufaq-post-" . $Unique_ID . "-" . $faq->ID . "-" . $Counter . "' data-postid='" . $Unique_ID . "-" . $faq->ID . "-" . $Counter . "' itemscope itemtype='http://schema.org/Question'>";
270
+
271
+ $ReturnString .= "<div class='ufaq-faq-title";
272
+ if ($FAQ_Toggle != "No") {$ReturnString .= " ufaq-faq-toggle";}
273
+ $ReturnString .= "' id='ufaq-title-" . $faq->ID . "' data-postid='" . $Unique_ID . "-" . $faq->ID . "-" . $Counter . "'>";
274
+ $ReturnString .= "<a class='ewd-ufaq-post-margin' href='" . get_permalink($faq->ID) . "'><div class='ewd-ufaq-post-margin-symbol " . $Color_Block_Shape . "' id='ewd-ufaq-post-margin-symbol-" . $Unique_ID . "-" . $faq->ID . "-" . $Counter . "'><span id='ewd-ufaq-post-symbol-" . $Unique_ID . "-" . $faq->ID . "-" . $Counter;
275
+ if ($Display_All_Answers == "Yes") {$ReturnString .= "'>" . $Toggle_Symbol . "</span></div>";}
276
+ else {$ReturnString .= "'>" . strtolower($Toggle_Symbol) . "</span></div>";}
277
+ $ReturnString .= "<div class='ufaq-faq-title-text'><" . $UFAQ_Styling_FAQ_Heading_Type . " itemprop='name'>" .$faq->post_title . "</" . $UFAQ_Styling_FAQ_Heading_Type . "></div><div class='ewd-ufaq-clear'></div></a>";
278
+ $ReturnString .= "</div>";
279
+
280
+ if (strlen($faq->post_excerpt) > 0) {$ReturnString .= "<div class='ufaq-faq-excerpt' id='ufaq-excerpt-" . $faq->ID . "'>" . apply_filters('the_content', html_entity_decode($faq->post_excerpt)) . "</div>";}
281
+ $ReturnString .= "<div class='ufaq-faq-body ufaq-body-" . $faq->ID;
282
+ if ($Display_All_Answers != "Yes") {$ReturnString .= " ewd-ufaq-hidden";}
283
+ $ReturnString .= "' id='ufaq-body-" . $Unique_ID . "-" . $faq->ID . "-" . $Counter . "' itemprop='suggestedAnswer acceptedAnswer' itemscope itemtype='http://schema.org/Answer'>";
284
+
285
+ if ($Display_Author == "Yes" or $Display_Date == "Yes") {
286
+ $Display_Author_Value = get_post_meta($faq->ID, "EWD_UFAQ_Post_Author", true);
287
+ $Display_Date_Value = get_the_date("", $faq->ID);
288
+ $ReturnString .= "<div class='ewd-ufaq-author-date' itemprop='author' itemscope itemtype='http://schema.org/Person'>";
289
+ $ReturnString .= $Posted_Label . " " ;
290
+ if ($Display_Author == "Yes" and $Display_Author_Value != "") {$ReturnString .= $By_Label . " <span class='ewd-ufaq-author' itemprop='name'>" . $Display_Author_Value . "</span> ";}
291
+ if ($Display_Date == "Yes") {$ReturnString .= $On_Label . " <span class='ewd-ufaq-date'>" . $Display_Date_Value . "</span> ";}
292
+ $ReturnString .= "</div>";
293
+ }
294
+
295
+ $ReturnString .= "<div class='ewd-ufaq-post-margin ufaq-faq-post' id='ufaq-post-" . $faq->ID . "' itemprop='text'>" . apply_filters('the_content', html_entity_decode($faq->post_content)) . "</div>";
296
+
297
+ if (sizeOf($FAQ_Fields_Array) > 0) {
298
+ $ReturnString .= "<div class='ufaq-faq-custom-fields' id='ufaq-custom-fields-" . $faq->ID . "'>";
299
+ foreach ($FAQ_Fields_Array as $FAQ_Field_Item) {
300
+ $Value = get_post_meta($faq->ID, "Custom_Field_" . $FAQ_Field_Item['FieldID'], true);
301
+ if ($Hide_Blank_Fields != "Yes" or $Value != "") {
302
+ $ReturnString .= "<div class='ufaq-custom-field-label'>" . $FAQ_Field_Item['FieldName'] . ": </div>";
303
+ $ReturnString .= "<div class='ufaq-custom-field-value'>&nbsp;";
304
+ if ($FAQ_Field_Item['FieldType'] == "file") {$ReturnString .= "<a href='" . $Value . "'>" . substr($Value, strrpos($Value, "/"+1)) . "</a>";}
305
+ else {$ReturnString .= $Value;}
306
+ $ReturnString .= "</div>";
307
+ $ReturnString .= "<div class='ewd-ufaq-clear'></div>";
308
+ }
309
+ unset($Value);
310
+ }
311
+ $ReturnString .= "</div>";
312
+ }
313
+
314
+ if ($Hide_Categories == "No" and sizeOf($Category_Terms) > 0) {
315
+ $ReturnString .= "<div class='ufaq-faq-categories' id='ufaq-categories-" . $faq->ID . "'>";
316
+ if ($Category_Label == ""){
317
+ if (sizeOf($Category_Terms) > 1) {$ReturnString .= "Categories: ";}
318
+ else {$ReturnString .= "Category: ";}}
319
+ else {$ReturnString .= $Category_Label . ": ";}
320
+ foreach ($Category_Terms as $Category_Term) {
321
+ if ($Pretty_Permalinks == "Yes") {$Category_URL = $current_url . "faq-category/" . $Category_Term->slug . "/";}
322
+ else {$Category_URL = $current_url . "?include_category=" . $Category_Term->slug;}
323
+ $ReturnString .= "<a href='" . $Category_URL ."'>" .$Category_Term->name . "</a>, ";
324
+ }
325
+ if (sizeOf($Category_Terms) > 0) {$ReturnString = substr($ReturnString, 0, strlen($ReturnString)-2);}
326
+ $ReturnString .= "</div>";
327
+ }
328
+
329
+ if ($Hide_Tags == "No" and sizeOf($Tag_Terms) > 0) {
330
+ $ReturnString .= "<div class='ufaq-faq-tags' id='ufaq-tags-" . $faq->ID . "'>";
331
+ if ($Tag_Label == ""){
332
+ if (sizeOf($Tag_Terms) > 1) {$ReturnString .= "Tags: ";}
333
+ else {$ReturnString .= "Tag: ";}}
334
+ else {$ReturnString .= $Tag_Label . ": ";}
335
+ foreach ($Tag_Terms as $Tag_Term) {
336
+ if ($Pretty_Permalinks == "Yes") {$Tag_URL = $current_url . "faq-tag/" . $Tag_Term->slug . "/";}
337
+ else {$Tag_URL = $current_url . "?include_tag=" . $Tag_Term->slug;}
338
+ $ReturnString .= "<a href='" . $Tag_URL . "'>" .$Tag_Term->name . "</a>, ";
339
+ }
340
+ if (sizeOf($Tag_Terms) > 0) {$ReturnString = substr($ReturnString, 0, strlen($ReturnString)-2);}
341
+ $ReturnString .= "</div>";
342
+ }
343
+
344
+ if ($FAQ_Ratings == "Yes") {
345
+ $Up_Votes = get_post_meta($faq->ID, "FAQ_Up_Votes", true);
346
+ if ($Up_Votes == "") {$Up_Votes = 0;}
347
+ $Down_Votes = get_post_meta($faq->ID, "FAQ_Down_Votes", true);
348
+ if ($Down_Votes == "") {$Down_Votes = 0;}
349
+
350
+ $ReturnString .= "<div class='ewd-ufaq-ratings'>";
351
+ $ReturnString .= "<div class='ewd-ufaq-ratings-label'>";
352
+ $ReturnString .= __("Did you find this FAQ helpful?", 'EWD_UFAQ');
353
+ $ReturnString .= "</div>";
354
+ $ReturnString .= "<div class='ewd-ufaq-rating-button ewd-ufaq-up-vote' data-ratingfaqid='" . $faq->ID . "' itemprop='upvoteCount'>" . $Up_Votes . "</div>";
355
+ $ReturnString .= "<div class='ewd-ufaq-rating-button ewd-ufaq-down-vote' data-ratingfaqid='" . $faq->ID . "' itemprop='downvoteCount'>" . $Down_Votes . "</div>";
356
+ $ReturnString .= "</div>";
357
+ $ReturnString .= "<div class='ewd-ufaq-clear'></div>";
358
+ }
359
+
360
+ if ($Socialmedia[0] != "Blank" and $Socialmedia[0] != "") {
361
+ $ReturnString .= "<div class='ufaq-social-links'>Share: ";
362
+ $ReturnString .= "<ul class='rrssb-buttons'>";
363
+ }
364
+ if(in_array("Facebook", $Socialmedia)) {$ReturnString .= EWD_UFAQ_Add_Social_Media_Buttons("Facebook", $FAQ_Permalink, $faq->post_title);}
365
+ if(in_array("Google", $Socialmedia)) {$ReturnString .= EWD_UFAQ_Add_Social_Media_Buttons("Google", $FAQ_Permalink, $faq->post_title);}
366
+ if(in_array("Twitter", $Socialmedia)) {$ReturnString .= EWD_UFAQ_Add_Social_Media_Buttons("Twitter", $FAQ_Permalink, $faq->post_title);}
367
+ if(in_array("Linkedin", $Socialmedia)) {$ReturnString .= EWD_UFAQ_Add_Social_Media_Buttons("Linkedin", $FAQ_Permalink, $faq->post_title);}
368
+ if(in_array("Pinterest", $Socialmedia)) {$ReturnString .= EWD_UFAQ_Add_Social_Media_Buttons("Pinterest", $FAQ_Permalink, $faq->post_title);}
369
+ if(in_array("Email", $Socialmedia)) {$ReturnString .= EWD_UFAQ_Add_Social_Media_Buttons("Email", $FAQ_Permalink, $faq->post_title);}
370
+ if ($Socialmedia[0] != "Blank" and $Socialmedia[0] != "") {
371
+ $ReturnString .= "</ul>";
372
+ $ReturnString .= "</div>";
373
+ }
374
+
375
+ if ($Include_Permalink == "Yes" and $ajax == "No") {
376
+ $ReturnString .= "<div class='ufaq-permalink'>" . $Permalink_Label;
377
+ $ReturnString .= "<a href='" . $FAQ_Permalink . "'>";
378
+ $ReturnString .= "<div class='ufaq-permalink-image'></div>";
379
+ $ReturnString .= "</a>";
380
+ $ReturnString .= "</div>";
381
+ }
382
+
383
+ if (comments_open($faq->ID) and $no_comments != "Yes" and $Comments_On == "Yes") {
384
+ ob_start();
385
+ $Comments = get_comments(array('post_id' => $faq->ID));
386
+ wp_list_comments(array(), $Comments);
387
+ comment_form(array(), $faq->ID);
388
+ $ReturnString .= ob_get_contents();
389
+ ob_end_clean();
390
+ }
391
+
392
+ if ($Display_Back_To_Top == "Yes") {
393
+ $ReturnString .= "<div class='ufaq-back-to-top'>";
394
+ $ReturnString .= "<a class='ufaq-back-to-top-link'>";
395
+ $ReturnString .= $Back_To_Top_Label;
396
+ $ReturnString .= "</a>";
397
+ $ReturnString .= "</div>";
398
+ }
399
+
400
+ $ReturnString .= "</div>";
401
+ $ReturnString .= "</div>";
402
+
403
+ $Counter++;
404
+ endwhile;
405
+
406
+ if ($Category != "EWD_UFAQ_ALL_CATEGORIES" and $FAQ_Query->post_count > 0) {
407
+ $ReturnString .= "</div>";
408
+ $ReturnString .= "</div>";
409
+ $HeaderString .= "</div>";
410
+ }
411
+ }
412
+
413
+ if ($Counter == 0 and $search_string != "") {
414
+ $ReturnString .= "<div class='ewd-ufaq-no-results'>" . $No_Results_Found_Text . "</div>";
415
+ }
416
+
417
+ $ReturnString .= "</div>";
418
+ $HeaderString .= "</div>";
419
+
420
+ $ReturnString = str_replace("%LIST_HEADER_PLACEHOLDER%", $HeaderString, $ReturnString);
421
+
422
+ wp_reset_postdata();
423
+
424
+ if ($only_titles == "Yes") {
425
+ $UniqueTitles = array_unique($TitlesArray);
426
+ $TitlesString = "";
427
+ foreach ($UniqueTitles as $Title) {
428
+ $TitlesString .= $Title . ",";
429
+ }
430
+ if ($TitlesString != "") {$TitlesString = substr($TitlesString, 0, -1);}
431
+ return $TitlesString;
432
+ }
433
+
434
+ return $ReturnString;
435
+ }
436
+ add_shortcode("ultimate-faqs", "Display_FAQs");
437
+
438
+ function EWD_UFAQ_Category_Matches($Category, $include_category_array, $exclude_category_array) {
439
+ $Excluded = EWD_UFAQ_Excluded_Category_Check($Category, $exclude_category_array);
440
+ $Included = EWD_UFAQ_Included_Category_Check($Category, $include_category_array);
441
+
442
+ if ($Included and !$Excluded) {
443
+ return true;
444
+ }
445
+ else {
446
+ return false;
447
+ }
448
+ }
449
+
450
+ function EWD_UFAQ_Excluded_Category_Check($Category, $exclude_category_array) {
451
+ if (sizeof($exclude_category_array) == 0) {return false;}
452
+
453
+ if (in_array($Category->slug, $exclude_category_array)) {return true;}
454
+ elseif ($Category->parent == 0) {return false;}
455
+ else {
456
+ $Parent_Category = get_term($Category->parent, 'ufaq-category');
457
+ return EWD_UFAQ_Excluded_Category_Check($Parent_Category, $exclude_category_array);
458
+ }
459
+ }
460
+
461
+ function EWD_UFAQ_Included_Category_Check($Category, $include_category_array) {
462
+ if (sizeof($include_category_array) == 0) {return true;}
463
+
464
+ if (in_array($Category->slug, $include_category_array)) {return true;}
465
+ elseif ($Category->parent == 0) {return false;}
466
+ else {
467
+ $Parent_Category = get_term($Category->parent, 'ufaq-category');
468
+ return EWD_UFAQ_Included_Category_Check($Parent_Category, $include_category_array);
469
+ }
470
+ }
471
+
472
+ function EWD_UFAQ_Rand_Chars($CharLength = 10) {
473
+ $characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
474
+ $randstring = '';
475
+ for ($i = 0; $i < $CharLength; $i++) {
476
+ $randstring .= $characters[rand(0, strlen($characters))];
477
+ }
478
+ return $randstring;
479
+ }
 
 
 
 
 
Shortcodes/Display_FAQ_Search.php CHANGED
@@ -1,63 +1,60 @@
1
- <?php
2
-
3
- function UFAQ_AJAX_Search($atts) {
4
- global $wp;
5
- $Auto_Complete_Titles = get_option("EWD_UFAQ_Auto_Complete_Titles");
6
- $current_url = $_SERVER['REQUEST_URI'];
7
- $ReturnString = "";
8
-
9
- // Get the attributes passed by the shortcode, and store them in new variables for processing
10
- extract( shortcode_atts( array(
11
- 'include_category' => "",
12
- 'exclude_category' => "",
13
- 'show_on_load' => "No",
14
- 'orderby' => "",
15
- 'order' => "",
16
- 'post_count' => -1),
17
- $atts
18
- )
19
- );
20
-
21
- $Enter_Question_Label = get_option("EWD_UFAQ_Enter_Question_Label");
22
- if ($Enter_Question_Label == "") {$Enter_Question_Label = __('Enter your question', "EWD_UFAQ");}
23
- $Search_Label = get_option("EWD_UFAQ_Search_Label");
24
- if ($Search_Label == "") {$Search_Label = __("Search", 'EWD_UFAQ');}
25
- $Search_Placeholder_Label = get_option("EWD_UFAQ_Search_Placeholder_Label");
26
- if($Search_Placeholder_Label == ""){$Search_Placeholder_Label = __("Enter your question", 'EWD_UFAQ');}
27
-
28
- $ReturnString .= "<style type='text/css'>";
29
- $ReturnString .= ".ui-autocomplete {background:#FFF; border: #000 solid 1px; max-width:400px; max-height:200px; overflow:auto;}";
30
- $ReturnString .= $Custom_CSS;
31
- $ReturnString .= "</style>";
32
-
33
- if ($Auto_Complete_Titles == "Yes") {
34
- $ReturnString .= "<script>";
35
- $ReturnString .= "var autocompleteQuestion = 'Yes';\n";
36
- $ReturnString .= "var questionTitles = [";
37
- $ReturnString .= do_shortcode("[ultimate-faqs include_category='" . $include_category . "' exclude_category='" . $exclude_category . "' orderby='" . $orderby . "' order='" . $order . "' post_count='" . $post_count . "' only_titles='Yes']");
38
- $ReturnString .= "];\n";
39
- $ReturnString .= "</script>";
40
- }
41
-
42
- $ReturnString .= "<form action='#' method='post' id='ufaq-ajax-form' class='pure-form pure-form-aligned'>";
43
- $ReturnString .= "<input type='hidden' name='ufaq-input' value='Search'>";
44
- $ReturnString .= "<div id='ewd-ufaq-jquery-ajax-search' class='pure-control-group ui-front' style='position:relative;'>";
45
- $ReturnString .= "<label id='ufaq-ajax-search-lbl' class='ewd-otp-field-label ewd-otp-bold'>" . $Enter_Question_Label . ":</label>";
46
- $ReturnString .= "<input type='hidden' name'include_category' value='" . $include_category . "' id='ufaq-include-category' />";
47
- $ReturnString .= "<input type='hidden' name'exclude_category' value='" . $exclude_category . "' id='ufaq-exclude-category' />";
48
- $ReturnString .= "<input type='hidden' name'orderby' value='" . $orderby . "' id='ufaq-orderby' />";
49
- $ReturnString .= "<input type='hidden' name'order' value='" . $order . "' id='ufaq-order' />";
50
- $ReturnString .= "<input type='hidden' name'post_count' value='" . $post_count . "' id='ufaq-post-count' />";
51
- $ReturnString .= "<input type='text' id='ufaq-ajax-text-input' class='ufaq-text-input' name='Question ' placeholder='" . $Search_Placeholder_Label . "...'>";
52
- $ReturnString .= "</div>";
53
- if ($Auto_Complete_Titles != "Yes" and $show_on_load == "No") {$ReturnString .= "<label for='Submit'></label><input type='button' id='ufaq-ajax-search-btn' class='ewd-otp-submit pure-button pure-button-primary' name='Search' value='" . $Search_Label . "'>";}
54
- $ReturnString .= "</form>";
55
-
56
- $ReturnString .= "<div id='ufaq-ajax-results'>";
57
- if ($show_on_load == "Yes") {$ReturnString .= do_shortcode("[ultimate-faqs include_category='" . $include_category . "' exclude_category='" . $exclude_category . "' orderby='" . $orderby . "' order='" . $order . "' post_count='" . $post_count . "']");}
58
- $ReturnString .= "</div>";
59
-
60
- return $ReturnString;
61
- }
62
- if ($UFAQ_Full_Version == "Yes") {add_shortcode("ultimate-faq-search", "UFAQ_AJAX_Search");}
63
- ?>
1
+ <?php
2
+
3
+ function UFAQ_AJAX_Search($atts) {
4
+ global $wp;
5
+ $Auto_Complete_Titles = get_option("EWD_UFAQ_Auto_Complete_Titles");
6
+ $current_url = $_SERVER['REQUEST_URI'];
7
+ $ReturnString = "";
8
+
9
+ // Get the attributes passed by the shortcode, and store them in new variables for processing
10
+ extract( shortcode_atts( array(
11
+ 'include_category' => "",
12
+ 'exclude_category' => "",
13
+ 'show_on_load' => "No",
14
+ 'orderby' => "",
15
+ 'order' => "",
16
+ 'post_count' => -1),
17
+ $atts
18
+ )
19
+ );
20
+ $Enter_Question_Label = get_option("EWD_UFAQ_Enter_Question_Label");
21
+ if ($Enter_Question_Label == "") {$Enter_Question_Label = __('Enter your question', "EWD_UFAQ");}
22
+ $Search_Label = get_option("EWD_UFAQ_Search_Label");
23
+ if ($Search_Label == "") {$Search_Label = __("Search", 'EWD_UFAQ');}
24
+
25
+ $ReturnString .= "<style type='text/css'>";
26
+ $ReturnString .= ".ui-autocomplete {background:#FFF; border: #000 solid 1px; max-width:400px; max-height:200px; overflow:auto;}";
27
+ $ReturnString .= $Custom_CSS;
28
+ $ReturnString .= "</style>";
29
+
30
+ if ($Auto_Complete_Titles == "Yes") {
31
+ $ReturnString .= "<script>";
32
+ $ReturnString .= "var autocompleteQuestion = 'Yes';\n";
33
+ $ReturnString .= "var questionTitles = [";
34
+ $ReturnString .= do_shortcode("[ultimate-faqs include_category='" . $include_category . "' exclude_category='" . $exclude_category . "' orderby='" . $orderby . "' order='" . $order . "' post_count='" . $post_count . "' only_titles='Yes']");
35
+ $ReturnString .= "];\n";
36
+ $ReturnString .= "</script>";
37
+ }
38
+
39
+ $ReturnString .= "<form action='#' method='post' id='ufaq-ajax-form' class='pure-form pure-form-aligned'>";
40
+ $ReturnString .= "<input type='hidden' name='ufaq-input' value='Search'>";
41
+ $ReturnString .= "<div id='ewd-ufaq-jquery-ajax-search' class='pure-control-group ui-front' style='position:relative;'>";
42
+ $ReturnString .= "<label id='ufaq-ajax-search-lbl' class='ewd-otp-field-label ewd-otp-bold'>" . $Enter_Question_Label . ":</label>";
43
+ $ReturnString .= "<input type='hidden' name'include_category' value='" . $include_category . "' id='ufaq-include-category' />";
44
+ $ReturnString .= "<input type='hidden' name'exclude_category' value='" . $exclude_category . "' id='ufaq-exclude-category' />";
45
+ $ReturnString .= "<input type='hidden' name'orderby' value='" . $orderby . "' id='ufaq-orderby' />";
46
+ $ReturnString .= "<input type='hidden' name'order' value='" . $order . "' id='ufaq-order' />";
47
+ $ReturnString .= "<input type='hidden' name'post_count' value='" . $post_count . "' id='ufaq-post-count' />";
48
+ $ReturnString .= "<input type='text' id='ufaq-ajax-text-input' class='ufaq-text-input' name='Question ' placeholder='" . $Enter_Question_Label . "...'>";
49
+ $ReturnString .= "</div>";
50
+ if ($Auto_Complete_Titles != "Yes" and $show_on_load == "No") {$ReturnString .= "<label for='Submit'></label><input type='button' id='ufaq-ajax-search-btn' class='ewd-otp-submit pure-button pure-button-primary' name='Search' value='" . $Search_Label . "'>";}
51
+ $ReturnString .= "</form>";
52
+
53
+ $ReturnString .= "<div id='ufaq-ajax-results'>";
54
+ if ($show_on_load == "Yes") {$ReturnString .= do_shortcode("[ultimate-faqs include_category='" . $include_category . "' exclude_category='" . $exclude_category . "' orderby='" . $orderby . "' order='" . $order . "' post_count='" . $post_count . "']");}
55
+ $ReturnString .= "</div>";
56
+
57
+ return $ReturnString;
58
+ }
59
+ if ($UFAQ_Full_Version == "Yes") {add_shortcode("ultimate-faq-search", "UFAQ_AJAX_Search");}
60
+ ?>
 
 
 
html/OptionsPage.php CHANGED
@@ -1,1006 +1,980 @@
1
- <?php
2
- $Custom_CSS = get_option("EWD_UFAQ_Custom_CSS");
3
- $FAQ_Toggle = get_option("EWD_UFAQ_Toggle");
4
- $FAQ_Category_Toggle = get_option("EWD_UFAQ_Category_Toggle");
5
- $FAQ_Accordion = get_option("EWD_UFAQ_FAQ_Accordion");
6
- $Hide_Categories = get_option("EWD_UFAQ_Hide_Categories");
7
- $Hide_Tags = get_option("EWD_UFAQ_Hide_Tags");
8
- $Scroll_To_Top = get_option("EWD_UFAQ_Scroll_To_Top");
9
- $Display_All_Answers = get_option("EWD_UFAQ_Display_All_Answers");
10
- $Display_Author = get_option("EWD_UFAQ_Display_Author");
11
- $Display_Date = get_option("EWD_UFAQ_Display_Date");
12
- $Display_Back_To_Top = get_option("EWD_UFAQ_Display_Back_To_Top");
13
- $Include_Permalink = get_option("EWD_UFAQ_Include_Permalink");
14
- $Permalink_Type = get_option("EWD_UFAQ_Permalink_Type");
15
- $Show_TinyMCE = get_option("EWD_UFAQ_Show_TinyMCE");
16
- $Comments_On = get_option("EWD_UFAQ_Comments_On");
17
-
18
- $Display_Style = get_option("EWD_UFAQ_Display_Style");
19
- $Color_Block_Shape = get_option("EWD_UFAQ_Color_Block_Shape");
20
- $FAQ_Ratings = get_option("EWD_UFAQ_FAQ_Ratings");
21
- $WooCommerce_FAQs = get_option("EWD_UFAQ_WooCommerce_FAQs");
22
- $Use_Product = get_option("EWD_UFAQ_Use_Product");
23
- $Reveal_Effect = get_option("EWD_UFAQ_Reveal_Effect");
24
- $Pretty_Permalinks = get_option("EWD_UFAQ_Pretty_Permalinks");
25
- $Allow_Proposed_Answer = get_option("EWD_UFAQ_Allow_Proposed_Answer");
26
- $Admin_Question_Notification = get_option("EWD_UFAQ_Admin_Question_Notification");
27
- $FAQ_Auto_Complete_Titles = get_option("EWD_UFAQ_Auto_Complete_Titles");
28
- $Slug_Base = get_option("EWD_UFAQ_Slug_Base");
29
- $Socialmedia_String = get_option("EWD_UFAQ_Social_Media");
30
- $Socialmedia = explode(",", $Socialmedia_String);
31
-
32
- $Group_By_Category = get_option("EWD_UFAQ_Group_By_Category");
33
- $Group_By_Order_By = get_option("EWD_UFAQ_Group_By_Order_By");
34
- $Group_By_Order = get_option("EWD_UFAQ_Group_By_Order");
35
- $Order_By_Setting = get_option("EWD_UFAQ_Order_By");
36
- $Order_Setting = get_option("EWD_UFAQ_Order");
37
-
38
- $FAQ_Fields_Array = get_option("EWD_UFAQ_FAQ_Fields");
39
- $Hide_Blank_Fields = get_option("EWD_UFAQ_Hide_Blank_Fields");
40
-
41
- $Posted_Label = get_option("EWD_UFAQ_Posted_Label");
42
- $By_Label = get_option("EWD_UFAQ_By_Label");
43
- $On_Label = get_option("EWD_UFAQ_On_Label");
44
- $Category_Label = get_option("EWD_UFAQ_Category_Label");
45
- $Tag_Label = get_option("EWD_UFAQ_Tag_Label");
46
- $Enter_Question_Label = get_option("EWD_UFAQ_Enter_Question_Label");
47
- $Search_Placeholder_Label = get_option("EWD_UFAQ_Search_Placeholder_Label");
48
- $Search_Label = get_option("EWD_UFAQ_Search_Label");
49
- $Permalink_Label = get_option("EWD_UFAQ_Permalink_Label");
50
- $Back_To_Top_Label = get_option("EWD_UFAQ_Back_To_Top_Label");
51
- $Retrieving_Results_Label = get_option("EWD_UFAQ_Retrieving_Results_Label");
52
- $Share_Social_Label = get_option("EWD_UFAQ_Share_Social_Label");
53
- $Did_You_Find_Helpful_Label = get_option("EWD_UFAQ_Did_You_Find_Helpful_Label");
54
-
55
- $Thank_You_Submit_Label = get_option("EWD_UFAQ_Thank_You_Submit_Label");
56
- $Submit_Question_Label = get_option("EWD_UFAQ_Submit_Question_Label");
57
- $Please_Fill_Form_Below_Label = get_option("EWD_UFAQ_Please_Fill_Form_Below_Label");
58
- $Send_Question_Label = get_option("EWD_UFAQ_Send_Question_Label");
59
- $Question_Title_Label = get_option("EWD_UFAQ_Question_Title_Label");
60
- $What_Question_Being_Answered_Label = get_option("EWD_UFAQ_What_Question_Being_Answered_Label");
61
- $Proposed_Answer_Label = get_option("EWD_UFAQ_Proposed_Answer_Label");
62
- $Review_Author_Label = get_option("EWD_UFAQ_Review_Author_Label");
63
- $What_Name_With_Review_Label = get_option("EWD_UFAQ_What_Name_With_Review_Label");
64
- $No_Results_Found_Text = get_option("EWD_UFAQ_No_Results_Found_Text");
65
-
66
- $UFAQ_Styling_Default_Bg_Color = get_option("EWD_UFAQ_Styling_Default_Bg_Color");
67
- $UFAQ_Styling_Default_Font_Color = get_option("EWD_UFAQ_Styling_Default_Font_Color");
68
- $UFAQ_Styling_Default_Border = get_option("EWD_UFAQ_Styling_Default_Border");
69
- $UFAQ_Styling_Default_Border_Radius = get_option("EWD_UFAQ_Styling_Default_Border_Radius");
70
- $UFAQ_Styling_Block_Bg_Color = get_option("EWD_UFAQ_Styling_Block_Bg_Color");
71
- $UFAQ_Styling_Block_Font_Color = get_option("EWD_UFAQ_Styling_Block_Font_Color");
72
- $UFAQ_Styling_List_Font = get_option("EWD_UFAQ_Styling_List_Font");
73
- $UFAQ_Styling_List_Font_Size = get_option("EWD_UFAQ_Styling_List_Font_Size");
74
- $UFAQ_Styling_List_Font_Color = get_option("EWD_UFAQ_Styling_List_Font_Color");
75
- $UFAQ_Styling_List_Margin = get_option("EWD_UFAQ_Styling_List_Margin");
76
- $UFAQ_Styling_List_Padding = get_option("EWD_UFAQ_Styling_List_Padding");
77
-
78
- $UFAQ_Styling_Question_Font = get_option("EWD_UFAQ_Styling_Question_Font");
79
- $UFAQ_Styling_Question_Font_Size = get_option("EWD_UFAQ_Styling_Question_Font_Size");
80
- $UFAQ_Styling_Question_Font_Color = get_option("EWD_UFAQ_Styling_Question_Font_Color");
81
- $UFAQ_Styling_Question_Margin = get_option("EWD_UFAQ_Styling_Question_Margin");
82
- $UFAQ_Styling_Question_Padding = get_option("EWD_UFAQ_Styling_Question_Padding");
83
- $UFAQ_Styling_Question_Icon_Top_Margin = get_option("EWD_UFAQ_Styling_Question_Icon_Top_Margin");
84
- $UFAQ_Styling_Answer_Font = get_option("EWD_UFAQ_Styling_Answer_Font");
85
- $UFAQ_Styling_Answer_Font_Size = get_option("EWD_UFAQ_Styling_Answer_Font_Size");
86
- $UFAQ_Styling_Answer_Font_Color = get_option("EWD_UFAQ_Styling_Answer_Font_Color");
87
- $UFAQ_Styling_Answer_Margin = get_option("EWD_UFAQ_Styling_Answer_Margin");
88
- $UFAQ_Styling_Answer_Padding = get_option("EWD_UFAQ_Styling_Answer_Padding");
89
- $UFAQ_Styling_Postdate_Font = get_option("EWD_UFAQ_Styling_Postdate_Font");
90
- $UFAQ_Styling_Postdate_Font_Size = get_option("EWD_UFAQ_Styling_Postdate_Font_Size");
91
- $UFAQ_Styling_Postdate_Font_Color = get_option("EWD_UFAQ_Styling_Postdate_Font_Color");
92
- $UFAQ_Styling_Postdate_Margin = get_option("EWD_UFAQ_Styling_Postdate_Margin");
93
- $UFAQ_Styling_Postdate_Padding = get_option("EWD_UFAQ_Styling_Postdate_Padding");
94
- $UFAQ_Styling_Category_Font = get_option("EWD_UFAQ_Styling_Category_Font");
95
- $UFAQ_Styling_Category_Font_Size = get_option("EWD_UFAQ_Styling_Category_Font_Size");
96
- $UFAQ_Styling_Category_Font_Color = get_option("EWD_UFAQ_Styling_Category_Font_Color");
97
- $UFAQ_Styling_Category_Margin = get_option("EWD_UFAQ_Styling_Category_Margin");
98
- $UFAQ_Styling_Category_Padding = get_option("EWD_UFAQ_Styling_Category_Padding");
99
-
100
- $UFAQ_Styling_Category_Heading_Type = get_option("EWD_UFAQ_Styling_Category_Heading_Type");
101
- $UFAQ_Styling_FAQ_Heading_Type = get_option("EWD_UFAQ_Styling_FAQ_Heading_Type");
102
- $Toggle_Symbol = get_option("EWD_UFAQ_Toggle_Symbol");
103
-
104
- if (!isset($Display_Tab)) {$Display_Tab = "";}
105
- ?>
106
- <div class="wrap ufaq-options-page-tabbed">
107
- <div class="ufaq-options-submenu-div">
108
- <ul class="ufaq-options-submenu ufaq-options-page-tabbed-nav">
109
- <li><a id="Basic_Menu" class="MenuTab options-subnav-tab <?php if ($Display_Tab == '' or $Display_Tab == 'Basic') {echo 'options-subnav-tab-active';}?>" onclick="ShowOptionTab('Basic');">Basic</a></li>
110
- <li><a id="Premium_Menu" class="MenuTab options-subnav-tab <?php if ($Display_Tab == 'Premium') {echo 'options-subnav-tab-active';}?>" onclick="ShowOptionTab('Premium');">Premium</a></li>
111
- <li><a id="Order_Menu" class="MenuTab options-subnav-tab <?php if ($Display_Tab == 'Order') {echo 'options-subnav-tab-active';}?>" onclick="ShowOptionTab('Order');">Ordering</a></li>
112
- <li><a id="Fields_Menu" class="MenuTab options-subnav-tab <?php if ($Display_Tab == 'Fields') {echo 'options-subnav-tab-active';}?>" onclick="ShowOptionTab('Fields');">Fields</a></li>
113
- <li><a id="Labelling_Menu" class="MenuTab options-subnav-tab <?php if ($Display_Tab == 'Labelling') {echo 'options-subnav-tab-active';}?>" onclick="ShowOptionTab('Labelling');">Labelling</a></li>
114
- <li><a id="Styling_Menu" class="MenuTab options-subnav-tab <?php if ($Display_Tab == 'Styling') {echo 'options-subnav-tab-active';}?>" onclick="ShowOptionTab('Styling');">Styling</a></li>
115
- </ul>
116
- </div>
117
-
118
-
119
- <div class="ufaq-options-page-tabbed-content">
120
-
121
- <form method="post" action="admin.php?page=EWD-UFAQ-Options&DisplayPage=Options&Action=EWD_UFAQ_UpdateOptions">
122
- <div id='Basic' class='ufaq-option-set'>
123
- <h2 id='label-basic-options' class='ufaq-options-page-tab-title'>Basic Options</h2>
124
- <table class="form-table">
125
- <tr>
126
- <th scope="row">Custom CSS</th>
127
- <td>
128
- <fieldset><legend class="screen-reader-text"><span>Custom CSS</span></legend>
129
- <label title='Custom CSS'></label><textarea class='ewd-ufaq-textarea' name='custom_css'> <?php echo $Custom_CSS; ?></textarea><br />
130
- <p>You can add custom CSS styles for your FAQs in the box above.</p>
131
- </fieldset>
132
- </td>
133
- </tr>
134
- <tr>
135
- <th scope="row">FAQ Toggle</th>
136
- <td>
137
- <fieldset><legend class="screen-reader-text"><span>FAQ Toggle</span></legend>
138
- <label title='Yes'><input type='radio' name='faq_toggle' value='Yes' <?php if($FAQ_Toggle == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
139
- <label title='No'><input type='radio' name='faq_toggle' value='No' <?php if($FAQ_Toggle == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
140
- <p>Should the FAQs hide/open when they are clicked? </p>
141
- </fieldset>
142
- </td>
143
- </tr>
144
- <tr>
145
- <th scope="row">FAQ Category Toggle</th>
146
- <td>
147
- <fieldset><legend class="screen-reader-text"><span>FAQ Category Toggle</span></legend>
148
- <label title='Yes'><input type='radio' name='faq_category_toggle' value='Yes' <?php if($FAQ_Category_Toggle == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
149
- <label title='No'><input type='radio' name='faq_category_toggle' value='No' <?php if($FAQ_Category_Toggle == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
150
- <p>Should the FAQ categories hide/open when they are clicked, if FAQs are being grouped by category ("Group FAQs by Category" in the "Ordering" area)? </p>
151
- </fieldset>
152
- </td>
153
- </tr>
154
- <tr>
155
- <th scope="row">FAQ Accordion</th>
156
- <td>
157
- <fieldset><legend class="screen-reader-text"><span>FAQ Accordion</span></legend>
158
- <label title='Yes'><input type='radio' name='faq_accordion' value='Yes' <?php if($FAQ_Accordion == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
159
- <label title='No'><input type='radio' name='faq_accordion' value='No' <?php if($FAQ_Accordion == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
160
- <p>Should the FAQs accordion? (Only one FAQ is open at a time, requires FAQ Toggle)</p>
161
- </fieldset>
162
- </td>
163
- </tr>
164
-
165
- <tr>
166
- <th scope="row">Hide Categories</th>
167
- <td>
168
- <fieldset><legend class="screen-reader-text"><span>Hide Categories</span></legend>
169
- <label title='Yes'><input type='radio' name='hide_categories' value='Yes' <?php if($Hide_Categories == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
170
- <label title='No'><input type='radio' name='hide_categories' value='No' <?php if($Hide_Categories == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
171
- <p>Should the categories for each FAQ be hidden?</p>
172
- </fieldset>
173
- </td>
174
- </tr>
175
-
176
- <tr>
177
- <th scope="row">Hide Tags</th>
178
- <td>
179
- <fieldset><legend class="screen-reader-text"><span>Hide Tags</span></legend>
180
- <label title='Yes'><input type='radio' name='hide_tags' value='Yes' <?php if($Hide_Tags == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
181
- <label title='No'><input type='radio' name='hide_tags' value='No' <?php if($Hide_Tags == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
182
- <p>Should the tags for each FAQ be hidden?</p>
183
- </fieldset>
184
- </td>
185
- </tr>
186
- <tr>
187
- <th scope="row">Scroll To Top</th>
188
- <td>
189
- <fieldset><legend class="screen-reader-text"><span>Scroll To Top</span></legend>
190
- <label title='Yes'><input type='radio' name='scroll_to_top' value='Yes' <?php if($Scroll_To_Top == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
191
- <label title='No'><input type='radio' name='scroll_to_top' value='No' <?php if($Scroll_To_Top == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
192
- <p>Should the browser scroll to the top of the FAQ when it's opened?</p>
193
- </fieldset>
194
- </td>
195
- </tr>
196
- <tr>
197
- <th scope="row">Display All Answers</th>
198
- <td>
199
- <fieldset><legend class="screen-reader-text"><span>Display All Answers</span></legend>
200
- <label title='Yes'><input type='radio' name='display_all_answers' value='Yes' <?php if($Display_All_Answers == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
201
- <label title='No'><input type='radio' name='display_all_answers' value='No' <?php if($Display_All_Answers == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
202
- <p>Should all answers be displayed when the page loads? (Careful if FAQ Accordian is on)</p>
203
- </fieldset>
204
- </td>
205
- </tr>
206
- <tr>
207
- <th scope="row">Display Post Author</th>
208
- <td>
209
- <fieldset><legend class="screen-reader-text"><span>Display Post Author</span></legend>
210
- <label title='Yes'><input type='radio' name='display_author' value='Yes' <?php if($Display_Author == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
211
- <label title='No'><input type='radio' name='display_author' value='No' <?php if($Display_Author == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
212
- <p>Should the display name of the post's author be show beneath the FAQ title?</p>
213
- </fieldset>
214
- </td>
215
- </tr>
216
- <tr>
217
- <th scope="row">Display Post Date</th>
218
- <td>
219
- <fieldset><legend class="screen-reader-text"><span>Display Post Date</span></legend>
220
- <label title='Yes'><input type='radio' name='display_date' value='Yes' <?php if($Display_Date == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
221
- <label title='No'><input type='radio' name='display_date' value='No' <?php if($Display_Date == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
222
- <p>Should the date the post was created be show beneath the FAQ title?</p>
223
- </fieldset>
224
- </td>
225
- </tr>
226
- <tr>
227
- <th scope="row">Display 'Back to Top'</th>
228
- <td>
229
- <fieldset><legend class="screen-reader-text"><span>Display 'Back to Top'</span></legend>
230
- <label title='Yes'><input type='radio' name='display_back_to_top' value='Yes' <?php if($Display_Back_To_Top == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
231
- <label title='No'><input type='radio' name='display_back_to_top' value='No' <?php if($Display_Back_To_Top == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
232
- <p>Should a link to return to the top of the page be added to each FAQ post?</p>
233
- </fieldset>
234
- </td>
235
- </tr>
236
- <tr>
237
- <th scope="row">Include Permalink Icon</th>
238
- <td>
239
- <fieldset><legend class="screen-reader-text"><span>Include Permalink Icon</span></legend>
240
- <label title='Yes'><input type='radio' name='include_permalink' value='Yes' <?php if($Include_Permalink == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
241
- <label title='No'><input type='radio' name='include_permalink' value='No' <?php if($Include_Permalink == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
242
- <p>Should an icon to link directly to each question be displayed?</p>
243
- </fieldset>
244
- </td>
245
- </tr>
246
- <tr>
247
- <th scope="row">Permalink Type</th>
248
- <td>
249
- <fieldset><legend class="screen-reader-text"><span>Include Permalink Icon</span></legend>
250
- <label title='SamePage'><input type='radio' name='permalink_type' value='SamePage' <?php if($Permalink_Type == "SamePage") {echo "checked='checked'";} ?> /> <span>Main FAQ Page</span></label><br />
251
- <label title='IndividualPage'><input type='radio' name='permalink_type' value='IndividualPage' <?php if($Permalink_Type == "IndividualPage") {echo "checked='checked'";} ?> /> <span>Individual FAQ Page</span></label><br />
252
- <p>Should the permalink icon link to the main FAQ page, or to the individual FAQ post?</p>
253
- </fieldset>
254
- </td>
255
- </tr>
256
- <tr>
257
- <th scope="row">Show Editor Helper</th>
258
- <td>
259
- <fieldset><legend class="screen-reader-text"><span>Show Editor Helper</span></legend>
260
- <label title='Yes'><input type='radio' name='show_tinymce' value='Yes' <?php if($Show_TinyMCE == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
261
- <label title='No'><input type='radio' name='show_tinymce' value='No' <?php if($Show_TinyMCE == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
262
- <p>Should the shortcode builder be shown above the WordPress page/post editor, in the toolbar buttons?</p>
263
- </fieldset>
264
- </td>
265
- </tr>
266
- <tr>
267
- <th scope="row">Turn On Comment Support</th>
268
- <td>
269
- <fieldset><legend class="screen-reader-text"><span>Turn On Comment Support</span></legend>
270
- <label title='Yes'><input type='radio' name='comments_on' value='Yes' <?php if($Comments_On == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
271
- <label title='No'><input type='radio' name='comments_on' value='No' <?php if($Comments_On == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
272
- <p>Should comment support be turned on, so that if the "Allow Comments" checkbox is selected for a given FAQ, comments are shown in the FAQ list?</p>
273
- </fieldset>
274
- </td>
275
- </tr>
276
- </table>
277
- </div>
278
-
279
- <div id='Premium' class='ufaq-option-set ufaq-hidden'>
280
- <h2 id='label-premium-options' class='ufaq-options-page-tab-title'>Premium Options</h2>
281
- <table class="form-table">
282
- <tr>
283
- <th scope="row">FAQ Display Style</th>
284
- <td>
285
- <fieldset><legend class="screen-reader-text"><span>FAQ Display Style</span></legend>
286
- <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 />
287
- <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 />
288
- <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 />
289
- <label title='Border Block Style'><input type='radio' name='display_style' value='Border_Block' <?php if($Display_Style == "Border_Block") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/> <span>Border Block</span></label><br />
290
- <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 />
291
- <label title='Minimalist Style'><input type='radio' name='display_style' value='Minimalist' <?php if($Display_Style == "Minimalist") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/> <span>Minimalist</span></label><br />
292
- <p>Which theme should be used to display the FAQ's?</p>
293
- </fieldset>
294
- </td>
295
- </tr>
296
- <tr>
297
- <th scope="row">Color Block Shape</th>
298
- <td>
299
- <fieldset><legend class="screen-reader-text"><span>Color Block Shape</span></legend>
300
- <label title='Square'><input type='radio' name='color_block_shape' value='Square' <?php if($Color_Block_Shape == "Square") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /> <span>Square</span></label><br />
301
- <label title='Circle'><input type='radio' name='color_block_shape' value='Circle' <?php if($Color_Block_Shape == "Circle") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /> <span>Circle</span></label><br />
302
- <p>If "Color Block" is selected for "FAQ Display Style", should the block be square or circle?</p>
303
- </fieldset>
304
- </td>
305
- </tr>
306
- <tr>
307
- <th scope="row">FAQ Ratings</th>
308
- <td>
309
- <fieldset><legend class="screen-reader-text"><span>FAQ Ratings</span></legend>
310
- <label title='Yes'><input type='radio' name='faq_ratings' value='Yes' <?php if($FAQ_Ratings == "Yes") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /> <span>Yes</span></label><br />
311
- <label title='No'><input type='radio' name='faq_ratings' value='No' <?php if($FAQ_Ratings == "No") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /> <span>No</span></label><br />
312
- <p>Should visitors be able to up or down vote FAQs to let others know if they found them helpful?</p>
313
- </fieldset>
314
- </td>
315
- </tr>
316
- <tr>
317
- <th scope="row">WooCommerce FAQs</th>
318
- <td>
319
- <fieldset><legend class="screen-reader-text"><span>WooCommerce FAQs</span></legend>
320
- <label title='Yes'><input type='radio' name='woocommerce_faqs' value='Yes' <?php if($WooCommerce_FAQs == "Yes") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /> <span>Yes</span></label><br />
321
- <label title='No'><input type='radio' name='woocommerce_faqs' value='No' <?php if($WooCommerce_FAQs == "No") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /> <span>No</span></label><br />
322
- <p>Should FAQs for a given product be displayed as an extra tab on the WooCommerce product page?<br/> For this to work correctly, an FAQ category needs to be created with the same name as a given WooCommerce product.</p>
323
- </fieldset>
324
- </td>
325
- </tr>
326
- <tr>
327
- <th scope="row">Use WooCommerce Product Object</th>
328
- <td>
329
- <fieldset><legend class="screen-reader-text"><span>Use WooCommerce Product Object</span></legend>
330
- <label title='Yes'><input type='radio' name='use_product' value='Yes' <?php if($Use_Product == "Yes") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /> <span>Yes</span></label><br />
331
- <label title='No'><input type='radio' name='use_product' value='No' <?php if($Use_Product == "No") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /> <span>No</span></label><br />
332
- <p>Should the FAQ tab be set up using the WooCommerce product object, as in the WC documentation, or just using the ID of the page?</p>
333
- </fieldset>
334
- </td>
335
- </tr>
336
- <tr>
337
- <th scope="row">Reveal Effect</th>
338
- <td>
339
- <fieldset><legend class="screen-reader-text"><span>Reveal Effect</span></legend>
340
- <label title='Reveal Effect'></label>
341
-
342
- <select name="reveal_effect" <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> >
343
- <option value="none" <?php if($Reveal_Effect == "none") {echo "selected=selected";} ?> >None</option>
344
- <option value="blind" <?php if($Reveal_Effect == "blind") {echo "selected=selected";} ?> >Blind</option>
345
- <option value="bounce" <?php if($Reveal_Effect == "bounce") {echo "selected=selected";} ?> >Bounce</option>
346
- <option value="clip" <?php if($Reveal_Effect == "clip") {echo "selected=selected";} ?> >Clip</option>
347
- <option value="drop" <?php if($Reveal_Effect == "drop") {echo "selected=selected";} ?> >Drop</option>
348
- <option value="explode" <?php if($Reveal_Effect == "explode") {echo "selected=selected";} ?> >Explode</option>
349
- <option value="fade" <?php if($Reveal_Effect == "fade") {echo "selected=selected";} ?> >Fade</option>
350
- <option value="fold" <?php if($Reveal_Effect == "fold") {echo "selected=selected";} ?> >Fold</option>
351
- <option value="highlight" <?php if($Reveal_Effect == "highlight") {echo "selected=selected";} ?> >Highlight</option>
352
- <option value="puff" <?php if($Reveal_Effect == "puff") {echo "selected=selected";} ?> >Puff</option>
353
- <option value="pulsate" <?php if($Reveal_Effect == "pulsate") {echo "selected=selected";} ?> >Pulsate</option>
354
- <option value="shake" <?php if($Reveal_Effect == "shake") {echo "selected=selected";} ?> >Shake</option>
355
- <option value="size" <?php if($Reveal_Effect == "size") {echo "selected=selected";} ?> >Size</option>
356
- <option value="slide" <?php if($Reveal_Effect == "slide") {echo "selected=selected";} ?> >Slide</option>
357
- </select>
358
-
359
- <p>How should FAQ's be displayed when their titles are clicked?</p>
360
- </fieldset>
361
- </td>
362
- </tr>
363
- <tr>
364
- <th scope="row">Pretty Permalinks</th>
365
- <td>
366
- <fieldset><legend class="screen-reader-text"><span>Pretty Permalinks</span></legend>
367
- <label title='Yes'><input type='radio' name='pretty_permalinks' value='Yes' <?php if($Pretty_Permalinks == "Yes") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /> <span>Yes</span></label><br />
368
- <label title='No'><input type='radio' name='pretty_permalinks' value='No' <?php if($Pretty_Permalinks == "No") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /> <span>No</span></label><br />
369
- <p>Should an SEO friendly permalink structure be used for the link to this FAQ?</p>
370
- </fieldset>
371
- </td>
372
- </tr>
373
- <tr>
374
- <th scope="row">Allow Proposed Answer</th>
375
- <td>
376
- <fieldset><legend class="screen-reader-text"><span>Allow Proposed Answer</span></legend>
377
- <label title='Yes'><input type='radio' name='allow_proposed_answer' value='Yes' <?php if($Allow_Proposed_Answer == "Yes") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /> <span>Yes</span></label><br />
378
- <label title='No'><input type='radio' name='allow_proposed_answer' value='No' <?php if($Allow_Proposed_Answer == "No") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /> <span>No</span></label><br />
379
- <p>When using the user-submitted question shortcode, should users be able to propose an answer to the question they're submitting?</p>
380
- </fieldset>
381
- </td>
382
- </tr>
383
- <tr>
384
- <th scope="row">Admin Question Notification</th>
385
- <td>
386
- <fieldset><legend class="screen-reader-text"><span>Admin Question Notification</span></legend>
387
- <label title='Yes'><input type='radio' name='admin_question_notification' value='Yes' <?php if($Admin_Question_Notification == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
388
- <label title='No'><input type='radio' name='admin_question_notification' value='No' <?php if($Admin_Question_Notification == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
389
- <p>Should an email be sent to the site administrator when a question is submitted?</p>
390
- </fieldset>
391
- </td>
392
- </tr>
393
- <tr>
394
- <th scope="row">FAQ Auto Complete Titles</th>
395
- <td>
396
- <fieldset><legend class="screen-reader-text"><span>FAQ Auto Complete Titles</span></legend>
397
- <label title='Yes'><input type='radio' name='faq_auto_complete_titles' value='Yes' <?php if($FAQ_Auto_Complete_Titles == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
398
- <label title='No'><input type='radio' name='faq_auto_complete_titles' value='No' <?php if($FAQ_Auto_Complete_Titles == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
399
- <p>Should the FAQ Titles auto complete? </p>
400
- </fieldset>
401
- </td>
402
- </tr>
403
- <tr>
404
- <th scope="row">FAQ Slug Base</th>
405
- <td>
406
- <fieldset><legend class="screen-reader-text"><span>FAQ Slug Base</span></legend>
407
- <input type='text' name='slug_base' value='<?php echo $Slug_Base; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> size='60'/>
408
- <p>This option can be used to change the slug base for all FAQ posts. Be sure to go to "Settings" -> "Permalinks" in the WordPress sidebar and hit "Save Changes" to avoid 404 errors.</p>
409
- </fieldset>
410
- </td>
411
- </tr>
412
- <tr>
413
- <th scope="row">Social Media Option</th>
414
- <td>
415
- <fieldset><legend class="screen-reader-text"><span>Social Media Option</span></legend>
416
- <label title='Facebook'><input type='checkbox' name='Socialmedia[]' value='Facebook' <?php if(in_array("Facebook", $Socialmedia)) {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /> <span>Facebook</span></label><br />
417
- <label title='Name'><input type='checkbox' name='Socialmedia[]' value='Google' <?php if(in_array("Google", $Socialmedia)) {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /> <span>Google</span></label><br />
418
- <label title='Twitter'><input type='checkbox' name='Socialmedia[]' value='Twitter' <?php if(in_array("Twitter", $Socialmedia)) {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /> <span>Twitter</span></label><br />
419
- <label title='Linkedin'><input type='checkbox' name='Socialmedia[]' value='Linkedin' <?php if(in_array("Linkedin", $Socialmedia)) {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /> <span>Linkedin</span></label><br />
420
- <label title='Pinterest'><input type='checkbox' name='Socialmedia[]' value='Pinterest' <?php if(in_array("Pinterest", $Socialmedia)) {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /> <span>Pinterest</span></label><br />
421
- <label title='Email'><input type='checkbox' name='Socialmedia[]' value='Email' <?php if(in_array("Email", $Socialmedia)) {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /> <span>Email</span></label><br />
422
- <div style='display:none;'><label title='Blank'><input type='checkbox' name='Socialmedia[]' value='Blank' checked='checked'/> <span>Blank</span></label></div>
423
- </fieldset>
424
- </td>
425
- </tr>
426
- </table>
427
- </div>
428
-
429
- <div id='Order' class='ufaq-option-set ufaq-hidden'>
430
- <h2 id='label-order-options' class='ufaq-options-page-tab-title'>Ordering Options</h2>
431
- <table class="form-table">
432
- <tr>
433
- <th scope="row">Group FAQs by Category</th>
434
- <td>
435
- <fieldset><legend class="screen-reader-text"><span>Group FAQs by Category</span></legend>
436
- <label title='Yes'><input type='radio' name='group_by_category' value='Yes' <?php if($Group_By_Category == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
437
- <label title='No'><input type='radio' name='group_by_category' value='No' <?php if($Group_By_Category == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
438
- <p>Should FAQs be grouped by category, or should all categories be mixed together?</p>
439
- </fieldset>
440
- </td>
441
- </tr>
442
- <tr>
443
- <th scope="row">Sort Categories</th>
444
- <td>
445
- <fieldset><legend class="screen-reader-text"><span>Sort Categories</span></legend>
446
- <label title='Group By Order By'></label>
447
-
448
- <select name="group_by_order_by" <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> >
449
- <option value="name" <?php if($Group_By_Order_By == "name") {echo "selected=selected";} ?> >Name</option>
450
- <option value="count" <?php if($Group_By_Order_By == "count") {echo "selected=selected";} ?> >FAQ Count</option>
451
- <option value="slug" <?php if($Group_By_Order_By == "slug") {echo "selected=selected";} ?> >Slug</option>
452
- </select>
453
-
454
- <p>How should FAQ categories be ordered? (Only used if "Group FAQs by Category" above is set to "Yes")</p>
455
- </fieldset>
456
- </td>
457
- </tr>
458
- <tr>
459
- <th scope="row">Sort Categories Ordering</th>
460
- <td>
461
- <fieldset><legend class="screen-reader-text"><span>Sort Categories Ordering</span></legend>
462
- <label title='Ascending'><input type='radio' name='group_by_order' value='ASC' <?php if($Group_By_Order == "ASC") {echo "checked='checked'";} ?> /> <span>Ascending</span></label><br />
463
- <label title='Descending'><input type='radio' name='group_by_order' value='DESC' <?php if($Group_By_Order == "DESC") {echo "checked='checked'";} ?> /> <span>Descending</span></label><br />
464
- <p>How should FAQ categories be ordered? (Only used if "Group FAQs by Category" above is set to "Yes")</p>
465
- </fieldset>
466
- </td>
467
- </tr>
468
- <tr>
469
- <th scope="row">FAQ Ordering</th>
470
- <td>
471
- <fieldset><legend class="screen-reader-text"><span>FAQ Ordering</span></legend>
472
- <label title='FAQ Ordering'></label>
473
-
474
- <select name="order_by_setting" <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> >
475
- <option value="date" <?php if($Order_By_Setting == "date") {echo "selected=selected";} ?> >Created Date</option>
476
- <option value="title" <?php if($Order_By_Setting == "title") {echo "selected=selected";} ?> >Title</option>
477
- <option value="modified" <?php if($Order_By_Setting == "modified") {echo "selected=selected";} ?> >Modified Date</option>
478
- <option value="set_order" <?php if($Order_By_Setting == "set_order") {echo "selected=selected";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> >Selected Order (using Order table)</option>
479
- </select>
480
-
481
- <p>How should individual FAQs be ordered?</p>
482
- </fieldset>
483
- </td>
484
- </tr>
485
- <tr>
486
- <th scope="row">FAQ Order Setting</th>
487
- <td>
488
- <fieldset><legend class="screen-reader-text"><span>Sort Categories Ordering</span></legend>
489
- <label title='Yes'><input type='radio' name='order_setting' value='ASC' <?php if($Order_Setting == "ASC") {echo "checked='checked'";} ?> /> <span>Ascending</span></label><br />
490
- <label title='No'><input type='radio' name='order_setting' value='DESC' <?php if($Order_Setting == "DESC") {echo "checked='checked'";} ?> /> <span>Descending</span></label><br />
491
- <p>Should FAQ be ascending or descending order, based on the ordering criteria above?</p>
492
- </fieldset>
493
- </td>
494
- </tr>
495
- </table>
496
-
497
- <div class='ufaq-order-table'>
498
- <h3><?php echo __("Order Table", 'EWD_UFAQ'); ?></h3>
499
- <p><?php _e("Drag and drop the posts below to reorder them, if you have 'Selected Order' set for the 'FAQ Ordering' option", 'EWD_UFAQ'); ?></p>
500
- <?php
501
- if ($UFAQ_Full_Version != "Yes") {echo "<p>Upgrade to premium to access this feature.</p>";}
502
- else {
503
- ?>
504
- <!--<div id="col-right">
505
- <div class="col-wrap">
506
- <div id="add-page" class="postbox metabox-holder" >
507
- <div class="inside">
508
- <div id="posttype-page" class="posttypediv">-->
509
- <div id="tabs-panel-posttype-page-most-recent" class="tabs-panel tabs-panel-active">
510
-
511
- <table class="wp-list-table widefat tags sorttable ewd-ufaq-list">
512
- <thead>
513
- <tr>
514
- <th><?php _e("Question", 'UPCP') ?></th>
515
- <th><?php _e("Views", 'UPCP') ?></th>
516
- <th><?php _e("Categories", 'UPCP') ?></th>
517
- <th><?php _e("Tags", 'UPCP') ?></th>
518
- </tr>
519
- </thead>
520
- <tbody>
521
- <?php
522
- $params = array(
523
- 'post_type' => 'ufaq',
524
- 'posts_per_page' => -1,
525
- 'meta_key' => 'ufaq_order',
526
- 'orderby' => 'meta_value_num',
527
- 'order' => 'ASC'
528
- );
529
- $FAQs = get_posts($params);
530
- if (empty($FAQs)) { echo "<div class='ewd-ufaq-row list-item'><p>No FAQs have been created<p/></div>"; }
531
- else {
532
- foreach ($FAQs as $FAQ) {
533
- $FAQ_Views = get_post_meta($FAQ->ID, 'ufaq_view_count', true);
534
- $FAQ_Categories = get_the_term_list($FAQ->ID, 'ufaq-category', '', ', ', '');
535
- $FAQ_Tags = get_the_term_list($FAQ->ID, 'ufaq-tag', '', ', ', '');
536
- echo "<tr id='ewd-ufaq-item-" . $FAQ->ID . "' class='ewd-ufaq-item'>";
537
- echo "<td class='ufaq-title'>" . $FAQ->post_title . "</td>";
538
- echo "<td class='ufaq-title'>" . $FAQ_Views . "</td>";
539
- echo "<td class='ufaq-title'>" . $FAQ_Categories . "</td>";
540
- echo "<td class='ufaq-title'>" . $FAQ_Tags . "</td>";
541
- echo "</tr>";
542
- }
543
- }?>
544
- </tbody>
545
- <tfoot>
546
- <tr>
547
- <th><?php _e("Question", 'UPCP') ?></th>
548
- <th><?php _e("Views", 'UPCP') ?></th>
549
- <th><?php _e("Categories", 'UPCP') ?></th>
550
- <th><?php _e("Tags", 'UPCP') ?></th>
551
- </tr>
552
- </tfoot>
553
- </table>
554
- </div>
555
- <?php } ?>
556
-
557
- </div>
558
- </div>
559
-
560
- <div id='Fields' class='ufaq-option-set ufaq-hidden'>
561
- <h2 id='label-order-options' class='ufaq-options-page-tab-title'>Fields Options (Premium)</h2>
562
- <table class="form-table">
563
- <tr>
564
- <th scope="row">FAQ Custom Fields</th>
565
- <td>
566
- <fieldset><legend class="screen-reader-text"><span>FAQ Custom Fields</span></legend>
567
- <table id='ewd-ufaq-custom-fields-table'>
568
- <tr>
569
- <th></th>
570
- <th>Field Name</th>
571
- <th>Field Type</th>
572
- <th>Field Values</th>
573
- </tr>
574
- <?php
575
- $Counter = 0;
576
- $Max_ID = 0;
577
- if (!is_array($FAQ_Fields_Array)) {$FAQ_Fields_Array = array();}
578
- foreach ($FAQ_Fields_Array as $FAQ_Field_Item) {
579
- echo "<tr id='ewd-ufaq-custom-field-row-" . $Counter . "'>";
580
- echo "<td><input type='hidden' name='Custom_Field_" . $Counter . "_ID' value='" . $FAQ_Field_Item['FieldID'] . "' /><a class='ewd-ufaq-delete-custom-field' data-fieldid='" . $Counter . "'>Delete</a></td>";
581
- echo "<td><input type='text' name='Custom_Field_" . $Counter . "_Name' value='" . $FAQ_Field_Item['FieldName'] . "'/></td>";
582
- echo "<td><select name='Custom_Field_" . $Counter . "_Type'>"; ?>
583
- <option value='text' <?php if ($FAQ_Field_Item['FieldType'] == "text") {echo "selected='selected'";} ?>>Text</option>
584
- <option value='textarea' <?php if ($FAQ_Field_Item['FieldType'] == "textarea") {echo "selected='selected'";} ?>>Text Area</option>
585
- <option value='select' <?php if ($FAQ_Field_Item['FieldType'] == "select") {echo "selected='selected'";} ?>>Select Box</option>
586
- <option value='radio' <?php if ($FAQ_Field_Item['FieldType'] == "radio") {echo "selected='selected'";} ?>>Radio Buttons</option>
587
- <option value='checkbox' <?php if ($FAQ_Field_Item['FieldType'] == "checkbox") {echo "selected='selected'";} ?>>Checkbox</option>
588
- <option value='file' <?php if ($FAQ_Field_Item['FieldType'] == "file") {echo "selected='selected'";} ?>>File</option>
589
- <option value='date' <?php if ($FAQ_Field_Item['FieldType'] == "date") {echo "selected='selected'";} ?>>Date</option>
590
- <option value='datetime' <?php if ($FAQ_Field_Item['FieldType'] == "datetime") {echo "selected='selected'";} ?>>Date/Time</option>
591
- <?php echo "</select></td>";
592
- echo "<td><input type='text' name='Custom_Field_" . $Counter . "_Values' value='" . $FAQ_Field_Item['FieldValues'] . "'/></td>";
593
- echo "</tr>";
594
- $Counter++;
595
- $Max_ID = max($Max_ID, $Email_Message_Item['ID']);
596
- }
597
- $Max_ID++;
598
- echo "<tr><td colspan='4'><a class='ewd-ufaq-add-custom-field' data-nextid='" . $Counter . "' data-maxid='" . $Max_ID . "'>Add</a></td></tr>";
599
- ?>
600
- </table>
601
- <p>Should any extra fields be added to the FAQs?<br />
602
- The "Field Values" should be a comma-separated list of values for the select, radio or checkbox field types (no extra spaces after the comma)</p>
603
- </fieldset>
604
- </td>
605
- </tr>
606
- <tr>
607
- <th scope="row">Hide Blank Fields</th>
608
- <td>
609
- <fieldset><legend class="screen-reader-text"><span>Hide Blank Fields</span></legend>
610
- <label title='Yes'><input type='radio' name='hide_blank_fields' value='Yes' <?php if($Hide_Blank_Fields == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
611
- <label title='No'><input type='radio' name='hide_blank_fields' value='No' <?php if($Hide_Blank_Fields == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
612
- <p>Should field labels been hidden if a field hasn't been filled out for a particular FAQ?</p>
613
- </fieldset>
614
- </td>
615
- </tr>
616
- </table>
617
- </div>
618
-
619
-
620
- <div id='Labelling' class='ufaq-option-set ufaq-hidden'>
621
- <h2 id='label-order-options' class='ufaq-options-page-tab-title'>Labelling Options</h2>
622
- <div class="ufaq-label-description"> Replace the default text on the FAQ page </div>
623
-
624
- <div id='labelling-view-options' class="ufaq-options-div ufaq-options-flex">
625
- <div class='ufaq-subsection'>
626
- <div class='ufaq-subsection-content' id='ufaq-subsection-inline'>
627
- <div class='ufaq-option ufaq-label-option'>
628
- <?php _e("Posted", 'EWD_UFAQ')?>
629
- <fieldset>
630
- <input type='text' name='posted_label' value='<?php echo $Posted_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
631
- </fieldset>
632
- </div>
633
- <div class='ufaq-option ufaq-label-option'>
634
- <?php _e("By", 'EWD_UFAQ')?>
635
- <fieldset>
636
- <input type='text' name='by_label' value='<?php echo $By_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
637
- </fieldset>
638
- </div>
639
- <div class='ufaq-option ufaq-label-option'>
640
- <?php _e("On", 'EWD_UFAQ')?>
641
- <fieldset>
642
- <input type='text' name='on_label' value='<?php echo $On_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
643
- </fieldset>
644
- </div>
645
- <div class='ufaq-option ufaq-label-option'>
646
- <?php _e("Categories", 'EWD_UFAQ')?>
647
- <fieldset>
648
- <input type='text' name='category_label' value='<?php echo $Category_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> />
649
- </fieldset>
650
- </div>
651
- <div class='ufaq-option ufaq-label-option'>
652
- <?php _e("Tags", 'EWD_UFAQ')?>
653
- <fieldset>
654
- <input type='text' name='tag_label' value='<?php echo $Tag_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
655
- </fieldset>
656
- </div>
657
- <div class='ufaq-option ufaq-label-option'>
658
- <?php _e("Enter your question", 'EWD_UFAQ')?>
659
- <fieldset>
660
- <input type='text' name='enter_question_label' value='<?php echo $Enter_Question_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
661
- </fieldset>
662
- </div>
663
- <div class='ufaq-option ufaq-label-option'>
664
- <?php _e("Search Field Placeholder", 'EWD_UFAQ')?>
665
- <fieldset>
666
- <input type='text' name='search_placeholder_label' value='<?php echo $Search_Placeholder_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
667
- </fieldset>
668
- </div>
669
- <div class='ufaq-option ufaq-label-option'>
670
- <?php _e("Search (button)", 'EWD_UFAQ')?>
671
- <fieldset>
672
- <input type='text' name='search_label' value='<?php echo $Search_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
673
- </fieldset>
674
- </div>
675
- <div class='ufaq-option ufaq-label-option'>
676
- <?php _e("Permalink", 'EWD_UFAQ')?>
677
- <fieldset>
678
- <input type='text' name='permalink_label' value='<?php echo $Permalink_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
679
- </fieldset>
680
- </div>
681
- <div class='ufaq-option ufaq-label-option'>
682
- <?php _e("Back To Top", 'EWD_UFAQ')?>
683
- <fieldset>
684
- <input type='text' name='back_to_top_label' value='<?php echo $Back_To_Top_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
685
- </fieldset>
686
- </div>
687
- <div class='ufaq-option ufaq-label-option'>
688
- <?php _e("Retrieving Results", 'EWD_UFAQ')?>
689
- <fieldset>
690
- <input type='text' name='retrieving_results_label' value='<?php echo $Retrieving_Results_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
691
- </fieldset>
692
- </div>
693
- <div class='ufaq-option ufaq-label-option'>
694
- <?php _e("Share (above social icons)", 'EWD_UFAQ')?>
695
- <fieldset>
696
- <input type='text' name='share_social_label' value='<?php echo $Share_Social_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
697
- </fieldset>
698
- </div>
699
- <div class='ufaq-option ufaq-label-option'>
700
- <?php _e("Did you find this FAQ helpful?", 'EWD_UFAQ')?>
701
- <fieldset>
702
- <input type='text' name='did_you_find_helpful_label' value='<?php echo $Did_You_Find_Helpful_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
703
- </fieldset>
704
- </div>
705
- </div>
706
- </div>
707
- <div class='ufaq-subsection'>
708
- <div class='ufaq-subsection-content' id='ufaq-subsection-inline'>
709
- <div class='ufaq-option ufaq-label-option'>
710
- <?php _e("Thank you for submitting an FAQ", 'EWD_UFAQ')?>
711
- <fieldset>
712
- <input type='text' name='thank_you_submit_label' value='<?php echo $Thank_You_Submit_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
713
- </fieldset>
714
- </div>
715
- <div class='ufaq-option ufaq-label-option'>
716
- <?php _e("Submit a Question", 'EWD_UFAQ')?>
717
- <fieldset>
718
- <input type='text' name='submit_question_label' value='<?php echo $Submit_Question_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
719
- </fieldset>
720
- </div>
721
- <div class='ufaq-option ufaq-label-option'>
722
- <?php _e("Please fill out the form below to submit a question.", 'EWD_UFAQ')?>
723
- <fieldset>
724
- <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";} ?>/>
725
- </fieldset>
726
- </div>
727
- <div class='ufaq-option ufaq-label-option'>
728
- <?php _e("Send Question", 'EWD_UFAQ')?>
729
- <fieldset>
730
- <input type='text' name='send_question_label' value='<?php echo $Send_Question_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
731
- </fieldset>
732
- </div>
733
- <div class='ufaq-option ufaq-label-option'>
734
- <?php _e("Question Title", 'EWD_UFAQ')?>
735
- <fieldset>
736
- <input type='text' name='question_title_label' value='<?php echo $Question_Title_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
737
- </fieldset>
738
- </div>
739
- <div class='ufaq-option ufaq-label-option'>
740
- <?php _e("What question is being answered?", 'EWD_UFAQ')?>
741
- <fieldset>
742
- <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";} ?>/>
743
- </fieldset>
744
- </div>
745
- <div class='ufaq-option ufaq-label-option'>
746
- <?php _e("Proposed Answer", 'EWD_UFAQ')?>
747
- <fieldset>
748
- <input type='text' name='proposed_answer_label' value='<?php echo $Proposed_Answer_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
749
- </fieldset>
750
- </div>
751
- <div class='ufaq-option ufaq-label-option'>
752
- <?php _e("Question Author", 'EWD_UFAQ')?>
753
- <fieldset>
754
- <input type='text' name='review_author_label' value='<?php echo $Review_Author_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
755
- </fieldset>
756
- </div>
757
- <div class='ufaq-option ufaq-label-option'>
758
- <?php _e("What name should be displayed with your question?", 'EWD_UFAQ')?>
759
- <fieldset>
760
- <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";} ?>/>
761
- </fieldset>
762
- </div>
763
- <div class='ufaq-option ufaq-label-option'>
764
- <?php _e("No results FAQ's contained the term '%s'", 'EWD_UFAQ')?>
765
- <fieldset>
766
- <input type='text' name='no_results_found_text' value='<?php echo $No_Results_Found_Text; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
767
- </fieldset>
768
- </div>
769
- </div>
770
- </div>
771
- </div>
772
- </div>
773
- <div id='Styling' class='ufaq-option-set ufaq-hidden'>
774
- <h2 id='label-order-options' class='ufaq-options-page-tab-title'>Styling Options (Premium)</h2>
775
-
776
- <div id='ufaq-styling-options' class="ufaq-options-div ufaq-options-flex">
777
- <div class='ufaq-subsection'>
778
- <div class='ufaq-subsection-header'>Toggle Symbol</div>
779
- <div class='ufaq-subsection-content'>
780
- <div class='ufaq-option ufaq-styling-option'>
781
- <div class='ufaq-option-one-line'><input type='radio' name='toggle_symbol' value='A' <?php if ($Toggle_Symbol == "A") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /><span class='ufaq-toggle-symbol'>a A</span></div><br />
782
- <div class='ufaq-option-one-line'><input type='radio' name='toggle_symbol' value='B' <?php if ($Toggle_Symbol == "B") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /><span class='ufaq-toggle-symbol'>b B</span></div><br />
783
- <div class='ufaq-option-one-line'><input type='radio' name='toggle_symbol' value='C' <?php if ($Toggle_Symbol == "C") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /><span class='ufaq-toggle-symbol'>c C</span></div><br />
784
- <div class='ufaq-option-one-line'><input type='radio' name='toggle_symbol' value='D' <?php if ($Toggle_Symbol == "D") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /><span class='ufaq-toggle-symbol'>d D</span></div><br />
785
- <div class='ufaq-option-one-line'><input type='radio' name='toggle_symbol' value='E' <?php if ($Toggle_Symbol == "E") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /><span class='ufaq-toggle-symbol'>e E</span></div><br />
786
- <div class='ufaq-option-one-line'><input type='radio' name='toggle_symbol' value='F' <?php if ($Toggle_Symbol == "F") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /><span class='ufaq-toggle-symbol'>f F</span></div><br />
787
- <div class='ufaq-option-one-line'><input type='radio' name='toggle_symbol' value='G' <?php if ($Toggle_Symbol == "G") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /><span class='ufaq-toggle-symbol'>g G</span></div><br />
788
- <div class='ufaq-option-one-line'><input type='radio' name='toggle_symbol' value='H' <?php if ($Toggle_Symbol == "H") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /><span class='ufaq-toggle-symbol'>h H</span></div><br />
789
- <div class='ufaq-option-one-line'><input type='radio' name='toggle_symbol' value='I' <?php if ($Toggle_Symbol == "I") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /><span class='ufaq-toggle-symbol'>i I</span></div><br />
790
- <div class='ufaq-option-one-line'><input type='radio' name='toggle_symbol' value='J' <?php if ($Toggle_Symbol == "J") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /><span class='ufaq-toggle-symbol'>j J</span></div><br />
791
- <div class='ufaq-option-one-line'><input type='radio' name='toggle_symbol' value='K' <?php if ($Toggle_Symbol == "K") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /><span class='ufaq-toggle-symbol'>k K</span></div><br />
792
- <div class='ufaq-option-one-line'><input type='radio' name='toggle_symbol' value='L' <?php if ($Toggle_Symbol == "L") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /><span class='ufaq-toggle-symbol'>l L</span></div><br />
793
- <div class='ufaq-option-one-line'><input type='radio' name='toggle_symbol' value='M' <?php if ($Toggle_Symbol == "M") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /><span class='ufaq-toggle-symbol'>m M</span></div><br />
794
- <div class='ufaq-option-one-line'><input type='radio' name='toggle_symbol' value='N' <?php if ($Toggle_Symbol == "N") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /><span class='ufaq-toggle-symbol'>n N</span></div><br />
795
- <div class='ufaq-option-one-line'><input type='radio' name='toggle_symbol' value='O' <?php if ($Toggle_Symbol == "O") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /><span class='ufaq-toggle-symbol'>o O</span></div><br />
796
- </div>
797
- </div>
798
- </div>
799
- <div class='ufaq-subsection'>
800
- <div class='ufaq-subsection-header'>Color Block Theme</div>
801
- <div class='ufaq-subsection-content'>
802
- <div class='ufaq-option ufaq-styling-option'>
803
- <div class='ufaq-option-label'>Icon Background Color</div>
804
- <div class='ufaq-color-option-input'><input type='text' class='ewd-ufaq-spectrum' name='ufaq_styling_default_bg_color' value='<?php echo $UFAQ_Styling_Default_Bg_Color; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
805
- </div>
806
- <div class='ufaq-option ufaq-styling-option'>
807
- <div class='ufaq-option-label'>Icon Font Color</div>
808
- <div class='ufaq-option-input'><input type='text' class='ewd-ufaq-spectrum' name='ufaq_styling_default_font_color' value='<?php echo $UFAQ_Styling_Default_Font_Color; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
809
- </div>
810
- <div class='ufaq-option ufaq-styling-option'>
811
- <div class='ufaq-option-label'>Icon Border Color</div>
812
- <div class='ufaq-option-input'><input type='text' name='ufaq_styling_default_border' value='<?php echo $UFAQ_Styling_Default_Border_Color; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
813
- </div>
814
- <div class='ufaq-option ufaq-styling-option'>
815
- <div class='ufaq-option-label'>Icon Border Radius</div>
816
- <div class='ufaq-option-input'><input type='text' name='ufaq_styling_default_border_radius' value='<?php echo $UFAQ_Styling_Default_Border_Radius; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
817
- </div>
818
- </div>
819
- </div>
820
- <div class='ufaq-subsection'>
821
- <div class='ufaq-subsection-header'>Block Theme</div>
822
- <div class='ufaq-subsection-content'>
823
- <div class='ufaq-option ufaq-styling-option'>
824
- <div class='ufaq-option-label'>Hover Background Color</div>
825
- <div class='ufaq-option-input'><input type='text' class='ewd-ufaq-spectrum' name='ufaq_styling_block_bg_color' value='<?php echo $UFAQ_Styling_Block_Bg_Color; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
826
- </div>
827
- <div class='ufaq-option ufaq-styling-option'>
828
- <div class='ufaq-option-label'>Hover Font Color</div>
829
- <div class='ufaq-option-input'><input type='text' class='ewd-ufaq-spectrum' name='ufaq_styling_block_font_color' value='<?php echo $UFAQ_Styling_Block_Font_Color; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
830
- </div>
831
- </div>
832
- </div>
833
- <div class='ufaq-subsection'>
834
- <div class='ufaq-subsection-header'>List Theme Anchors</div>
835
- <div class='ufaq-subsection-content'>
836
- <div class='ufaq-option ufaq-styling-option'>
837
- <div class='ufaq-option-label'>Font Family</div>
838
- <div class='ufaq-option-input'><input type='text' name='ufaq_styling_list_font' value='<?php echo $UFAQ_Styling_List_Font; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
839
- </div>
840
- <div class='ufaq-option ufaq-styling-option'>
841
- <div class='ufaq-option-label'>Font Size</div>
842
- <div class='ufaq-option-input'><input type='text' name='ufaq_styling_list_font_size' value='<?php echo $UFAQ_Styling_List_Font_Size; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
843
- </div>
844
- <div class='ufaq-option ufaq-styling-option'>
845
- <div class='ufaq-option-label'>Font Color</div>
846
- <div class='ufaq-option-input'><input type='text' class='ewd-ufaq-spectrum' name='ufaq_styling_list_font_color' value='<?php echo $UFAQ_Styling_List_Font_Color; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
847
- </div>
848
- <div class='ufaq-option ufaq-styling-option'>
849
- <div class='ufaq-option-label'>Margin</div>
850
- <div class='ufaq-option-input'><input type='text' name='ufaq_styling_list_margin' value='<?php echo $UFAQ_Styling_List_Margin; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
851
- </div>
852
- <div class='ufaq-option ufaq-styling-option'>
853
- <div class='ufaq-option-label'>Padding</div>
854
- <div class='ufaq-option-input'><input type='text' name='ufaq_styling_list_padding' value='<?php echo $UFAQ_Styling_List_Padding; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
855
- </div>
856
- </div>
857
- </div>
858
- <div class='ufaq-subsection'>
859
- <div class='ufaq-subsection-header'>FAQ Question</div>
860
- <div class='ufaq-subsection-content'>
861
- <div class='ufaq-option ufaq-styling-option'>
862
- <div class='ufaq-option-label'>Font Family</div>
863
- <div class='ufaq-option-input'><input type='text' name='ufaq_styling_question_font' value='<?php echo $UFAQ_Styling_Question_Font; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
864
- </div>
865
- <div class='ufaq-option ufaq-styling-option'>
866
- <div class='ufaq-option-label'>Font Size</div>
867
- <div class='ufaq-option-input'><input type='text' name='ufaq_styling_question_font_size' value='<?php echo $UFAQ_Styling_Question_Font_Size; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
868
- </div>
869
- <div class='ufaq-option ufaq-styling-option'>
870
- <div class='ufaq-option-label'>Font Color</div>
871
- <div class='ufaq-option-input'><input type='text' class='ewd-ufaq-spectrum' name='ufaq_styling_question_font_color' value='<?php echo $UFAQ_Styling_Question_Font_Color; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
872
- </div>
873
- <div class='ufaq-option ufaq-styling-option'>
874
- <div class='ufaq-option-label'>Margin</div>
875
- <div class='ufaq-option-input'><input type='text' name='ufaq_styling_question_margin' value='<?php echo $UFAQ_Styling_Question_Margin; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
876
- </div>
877
- <div class='ufaq-option ufaq-styling-option'>
878
- <div class='ufaq-option-label'>Padding</div>
879
- <div class='ufaq-option-input'><input type='text' name='ufaq_styling_question_padding' value='<?php echo $UFAQ_Styling_Question_Padding; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
880
- </div>
881
- <div class='ufaq-option ufaq-styling-option'>
882
- <div class='ufaq-option-label'>Toggle Symbol Top Margin</div>
883
- <div class='ufaq-option-input'><input type='text' name='ufaq_styling_question_icon_top_margin' value='<?php echo $UFAQ_Styling_Question_Icon_Top_Margin; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
884
- </div>
885
- </div>
886
- </div>
887
- <div class='ufaq-subsection'>
888
- <div class='ufaq-subsection-header'>FAQ Answer</div>
889
- <div class='ufaq-subsection-content'>
890
- <div class='ufaq-option ufaq-styling-option'>
891
- <div class='ufaq-option-label'>Font Family</div>
892
- <div class='ufaq-option-input'><input type='text' name='ufaq_styling_answer_font' value='<?php echo $UFAQ_Styling_Answer_Font; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
893
- </div>
894
- <div class='ufaq-option ufaq-styling-option'>
895
- <div class='ufaq-option-label'>Font Size</div>
896
- <div class='ufaq-option-input'><input type='text' name='ufaq_styling_answer_font_size' value='<?php echo $UFAQ_Styling_Answer_Font_Size; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
897
- </div>
898
- <div class='ufaq-option ufaq-styling-option'>
899
- <div class='ufaq-option-label'>Font Color</div>
900
- <div class='ufaq-option-input'><input type='text' class='ewd-ufaq-spectrum' name='ufaq_styling_answer_font_color' value='<?php echo $UFAQ_Styling_Answer_Font_Color; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
901
- </div>
902
- <div class='ufaq-option ufaq-styling-option'>
903
- <div class='ufaq-option-label'>Margin</div>
904
- <div class='ufaq-option-input'><input type='text' name='ufaq_styling_answer_margin' value='<?php echo $UFAQ_Styling_Answer_Margin; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
905
- </div>
906
- <div class='ufaq-option ufaq-styling-option'>
907
- <div class='ufaq-option-label'>Padding</div>
908
- <div class='ufaq-option-input'><input type='text' name='ufaq_styling_answer_padding' value='<?php echo $UFAQ_Styling_Answer_Padding; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
909
- </div>
910
- </div>
911
- </div>
912
- <div class='ufaq-subsection'>
913
- <div class='ufaq-subsection-header'>FAQ Post Date</div>
914
- <div class='ufaq-subsection-content'>
915
- <div class='ufaq-option ufaq-styling-option'>
916
- <div class='ufaq-option-label'>Font Family</div>
917
- <div class='ufaq-option-input'><input type='text' name='ufaq_styling_postdate_font' value='<?php echo $UFAQ_Styling_Postdate_Font; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
918
- </div>
919
- <div class='ufaq-option ufaq-styling-option'>
920
- <div class='ufaq-option-label'>Font Size</div>
921
- <div class='ufaq-option-input'><input type='text' name='ufaq_styling_postdate_font_size' value='<?php echo $UFAQ_Styling_Postdate_Font_Size; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
922
- </div>
923
- <div class='ufaq-option ufaq-styling-option'>
924
- <div class='ufaq-option-label'>Font Color</div>
925
- <div class='ufaq-option-input'><input type='text' class='ewd-ufaq-spectrum' name='ufaq_styling_postdate_font_color' value='<?php echo $UFAQ_Styling_Postdate_Font_Color; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
926
- </div>
927
- <div class='ufaq-option ufaq-styling-option'>
928
- <div class='ufaq-option-label'>Margin</div>
929
- <div class='ufaq-option-input'><input type='text' name='ufaq_styling_postdate_margin' value='<?php echo $UFAQ_Styling_Postdate_Margin; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
930
- </div>
931
- <div class='ufaq-option ufaq-styling-option'>
932
- <div class='ufaq-option-label'>Padding</div>
933
- <div class='ufaq-option-input'><input type='text' name='ufaq_styling_postdate_padding' value='<?php echo $UFAQ_Styling_Postdate_Padding; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
934
- </div>
935
- </div>
936
- </div>
937
- <div class='ufaq-subsection'>
938
- <div class='ufaq-subsection-header'>FAQ Category, Tags</div>
939
- <div class='ufaq-subsection-content'>
940
- <div class='ufaq-option ufaq-styling-option'>
941
- <div class='ufaq-option-label'>Font Family</div>
942
- <div class='ufaq-option-input'><input type='text' name='ufaq_styling_category_font' value='<?php echo $UFAQ_Styling_Category_Font; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
943
- </div>
944
- <div class='ufaq-option ufaq-styling-option'>
945
- <div class='ufaq-option-label'>Font Size</div>
946
- <div class='ufaq-option-input'><input type='text' name='ufaq_styling_category_font_size' value='<?php echo $UFAQ_Styling_Category_Font_Size; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
947
- </div>
948
- <div class='ufaq-option ufaq-styling-option'>
949
- <div class='ufaq-option-label'>Font Color</div>
950
- <div class='ufaq-option-input'><input type='text' class='ewd-ufaq-spectrum' name='ufaq_styling_category_font_color' value='<?php echo $UFAQ_Styling_Category_Font_Color; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
951
- </div>
952
- <div class='ufaq-option ufaq-styling-option'>
953
- <div class='ufaq-option-label'>Margin</div>
954
- <div class='ufaq-option-input'><input type='text' name='ufaq_styling_category_margin' value='<?php echo $UFAQ_Styling_Category_Margin; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
955
- </div>
956
- <div class='ufaq-option ufaq-styling-option'>
957
- <div class='ufaq-option-label'>Padding</div>
958
- <div class='ufaq-option-input'><input type='text' name='ufaq_styling_category_padding' value='<?php echo $UFAQ_Styling_Category_Padding; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
959
- </div>
960
- </div>
961
- </div>
962
- <div class='ufaq-subsection'>
963
- <div class='ufaq-subsection-header'>FAQ Heading Types</div>
964
- <div class='ufaq-subsection-content'>
965
- <div class='ufaq-option ufaq-styling-option'>
966
- <div class='ufaq-option-label'>Category Heading Type</div>
967
- <div class='ufaq-option-input'>
968
- <select name='ufaq_styling_category_heading_type' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> >
969
- <option value='h1' <?php if ($UFAQ_Styling_Category_Heading_Type == 'h1') {echo "selected='selected'";} ?>>H1</option>
970
- <option value='h2' <?php if ($UFAQ_Styling_Category_Heading_Type == 'h2') {echo "selected='selected'";} ?>>H2</option>
971
- <option value='h3' <?php if ($UFAQ_Styling_Category_Heading_Type == 'h3') {echo "selected='selected'";} ?>>H3</option>
972
- <option value='h4' <?php if ($UFAQ_Styling_Category_Heading_Type == 'h4') {echo "selected='selected'";} ?>>H4</option>
973
- <option value='h5' <?php if ($UFAQ_Styling_Category_Heading_Type == 'h5') {echo "selected='selected'";} ?>>H5</option>
974
- <option value='h6' <?php if ($UFAQ_Styling_Category_Heading_Type == 'h6') {echo "selected='selected'";} ?>>H6</option>
975
- </select>
976
- </div>
977
- </div>
978
- <div class='ufaq-option ufaq-styling-option'>
979
- <div class='ufaq-option-label'>FAQ Heading Type</div>
980
- <div class='ufaq-option-input'>
981
- <select name='ufaq_styling_faq_heading_type' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> >
982
- <option value='h1' <?php if ($UFAQ_Styling_FAQ_Heading_Type == 'h1') {echo "selected='selected'";} ?>>H1</option>
983
- <option value='h2' <?php if ($UFAQ_Styling_FAQ_Heading_Type == 'h2') {echo "selected='selected'";} ?>>H2</option>
984
- <option value='h3' <?php if ($UFAQ_Styling_FAQ_Heading_Type == 'h3') {echo "selected='selected'";} ?>>H3</option>
985
- <option value='h4' <?php if ($UFAQ_Styling_FAQ_Heading_Type == 'h4') {echo "selected='selected'";} ?>>H4</option>
986
- <option value='h5' <?php if ($UFAQ_Styling_FAQ_Heading_Type == 'h5') {echo "selected='selected'";} ?>>H5</option>
987
- <option value='h6' <?php if ($UFAQ_Styling_FAQ_Heading_Type == 'h6') {echo "selected='selected'";} ?>>H6</option>
988
- </select>
989
- </div>
990
- </div>
991
- </div>
992
- </div>
993
-
994
- </div>
995
- </div>
996
-
997
- <p class="submit"><input type="submit" name="Options_Submit" id="submit" class="button button-primary" value="Save Changes" /></p></form>
998
-
999
- <?php /* </div><!-- /.tabs-panel -->
1000
- </div><!-- /.posttypediv -->
1001
- </div>
1002
- </div>
1003
- </div>
1004
- </div><!-- col-right --> */ ?>
1005
- </div>
1006
- </div>
1
+ <?php
2
+ $Custom_CSS = get_option("EWD_UFAQ_Custom_CSS");
3
+ $FAQ_Toggle = get_option("EWD_UFAQ_Toggle");
4
+ $FAQ_Category_Toggle = get_option("EWD_UFAQ_Category_Toggle");
5
+ $FAQ_Accordion = get_option("EWD_UFAQ_FAQ_Accordion");
6
+ $Hide_Categories = get_option("EWD_UFAQ_Hide_Categories");
7
+ $Hide_Tags = get_option("EWD_UFAQ_Hide_Tags");
8
+ $Scroll_To_Top = get_option("EWD_UFAQ_Scroll_To_Top");
9
+ $Display_All_Answers = get_option("EWD_UFAQ_Display_All_Answers");
10
+ $Display_Author = get_option("EWD_UFAQ_Display_Author");
11
+ $Display_Date = get_option("EWD_UFAQ_Display_Date");
12
+ $Display_Back_To_Top = get_option("EWD_UFAQ_Display_Back_To_Top");
13
+ $Include_Permalink = get_option("EWD_UFAQ_Include_Permalink");
14
+ $Permalink_Type = get_option("EWD_UFAQ_Permalink_Type");
15
+ $Show_TinyMCE = get_option("EWD_UFAQ_Show_TinyMCE");
16
+ $Comments_On = get_option("EWD_UFAQ_Comments_On");
17
+
18
+ $Display_Style = get_option("EWD_UFAQ_Display_Style");
19
+ $Color_Block_Shape = get_option("EWD_UFAQ_Color_Block_Shape");
20
+ $FAQ_Ratings = get_option("EWD_UFAQ_FAQ_Ratings");
21
+ $WooCommerce_FAQs = get_option("EWD_UFAQ_WooCommerce_FAQs");
22
+ $Use_Product = get_option("EWD_UFAQ_Use_Product");
23
+ $Reveal_Effect = get_option("EWD_UFAQ_Reveal_Effect");
24
+ $Pretty_Permalinks = get_option("EWD_UFAQ_Pretty_Permalinks");
25
+ $Allow_Proposed_Answer = get_option("EWD_UFAQ_Allow_Proposed_Answer");
26
+ $Admin_Question_Notification = get_option("EWD_UFAQ_Admin_Question_Notification");
27
+ $FAQ_Auto_Complete_Titles = get_option("EWD_UFAQ_Auto_Complete_Titles");
28
+ $Slug_Base = get_option("EWD_UFAQ_Slug_Base");
29
+ $Socialmedia_String = get_option("EWD_UFAQ_Social_Media");
30
+ $Socialmedia = explode(",", $Socialmedia_String);
31
+
32
+ $Group_By_Category = get_option("EWD_UFAQ_Group_By_Category");
33
+ $Group_By_Order_By = get_option("EWD_UFAQ_Group_By_Order_By");
34
+ $Group_By_Order = get_option("EWD_UFAQ_Group_By_Order");
35
+ $Order_By_Setting = get_option("EWD_UFAQ_Order_By");
36
+ $Order_Setting = get_option("EWD_UFAQ_Order");
37
+
38
+ $FAQ_Fields_Array = get_option("EWD_UFAQ_FAQ_Fields");
39
+ $Hide_Blank_Fields = get_option("EWD_UFAQ_Hide_Blank_Fields");
40
+
41
+ $Posted_Label = get_option("EWD_UFAQ_Posted_Label");
42
+ $By_Label = get_option("EWD_UFAQ_By_Label");
43
+ $On_Label = get_option("EWD_UFAQ_On_Label");
44
+ $Category_Label = get_option("EWD_UFAQ_Category_Label");
45
+ $Tag_Label = get_option("EWD_UFAQ_Tag_Label");
46
+ $Enter_Question_Label = get_option("EWD_UFAQ_Enter_Question_Label");
47
+ $Search_Label = get_option("EWD_UFAQ_Search_Label");
48
+ $Permalink_Label = get_option("EWD_UFAQ_Permalink_Label");
49
+ $Back_To_Top_Label = get_option("EWD_UFAQ_Back_To_Top_Label");
50
+
51
+ $Thank_You_Submit_Label = get_option("EWD_UFAQ_Thank_You_Submit_Label");
52
+ $Submit_Question_Label = get_option("EWD_UFAQ_Submit_Question_Label");
53
+ $Please_Fill_Form_Below_Label = get_option("EWD_UFAQ_Please_Fill_Form_Below_Label");
54
+ $Send_Question_Label = get_option("EWD_UFAQ_Send_Question_Label");
55
+ $Question_Title_Label = get_option("EWD_UFAQ_Question_Title_Label");
56
+ $What_Question_Being_Answered_Label = get_option("EWD_UFAQ_What_Question_Being_Answered_Label");
57
+ $Proposed_Answer_Label = get_option("EWD_UFAQ_Proposed_Answer_Label");
58
+ $Review_Author_Label = get_option("EWD_UFAQ_Review_Author_Label");
59
+ $What_Name_With_Review_Label = get_option("EWD_UFAQ_What_Name_With_Review_Label");
60
+ $No_Results_Found_Text = get_option("EWD_UFAQ_No_Results_Found_Text");
61
+
62
+ $UFAQ_Styling_Default_Bg_Color = get_option("EWD_UFAQ_Styling_Default_Bg_Color");
63
+ $UFAQ_Styling_Default_Font_Color = get_option("EWD_UFAQ_Styling_Default_Font_Color");
64
+ $UFAQ_Styling_Default_Border = get_option("EWD_UFAQ_Styling_Default_Border");
65
+ $UFAQ_Styling_Default_Border_Radius = get_option("EWD_UFAQ_Styling_Default_Border_Radius");
66
+ $UFAQ_Styling_Block_Bg_Color = get_option("EWD_UFAQ_Styling_Block_Bg_Color");
67
+ $UFAQ_Styling_Block_Font_Color = get_option("EWD_UFAQ_Styling_Block_Font_Color");
68
+ $UFAQ_Styling_List_Font = get_option("EWD_UFAQ_Styling_List_Font");
69
+ $UFAQ_Styling_List_Font_Size = get_option("EWD_UFAQ_Styling_List_Font_Size");
70
+ $UFAQ_Styling_List_Font_Color = get_option("EWD_UFAQ_Styling_List_Font_Color");
71
+ $UFAQ_Styling_List_Margin = get_option("EWD_UFAQ_Styling_List_Margin");
72
+ $UFAQ_Styling_List_Padding = get_option("EWD_UFAQ_Styling_List_Padding");
73
+
74
+ $UFAQ_Styling_Question_Font = get_option("EWD_UFAQ_Styling_Question_Font");
75
+ $UFAQ_Styling_Question_Font_Size = get_option("EWD_UFAQ_Styling_Question_Font_Size");
76
+ $UFAQ_Styling_Question_Font_Color = get_option("EWD_UFAQ_Styling_Question_Font_Color");
77
+ $UFAQ_Styling_Question_Margin = get_option("EWD_UFAQ_Styling_Question_Margin");
78
+ $UFAQ_Styling_Question_Padding = get_option("EWD_UFAQ_Styling_Question_Padding");
79
+ $UFAQ_Styling_Question_Icon_Top_Margin = get_option("EWD_UFAQ_Styling_Question_Icon_Top_Margin");
80
+ $UFAQ_Styling_Answer_Font = get_option("EWD_UFAQ_Styling_Answer_Font");
81
+ $UFAQ_Styling_Answer_Font_Size = get_option("EWD_UFAQ_Styling_Answer_Font_Size");
82
+ $UFAQ_Styling_Answer_Font_Color = get_option("EWD_UFAQ_Styling_Answer_Font_Color");
83
+ $UFAQ_Styling_Answer_Margin = get_option("EWD_UFAQ_Styling_Answer_Margin");
84
+ $UFAQ_Styling_Answer_Padding = get_option("EWD_UFAQ_Styling_Answer_Padding");
85
+ $UFAQ_Styling_Postdate_Font = get_option("EWD_UFAQ_Styling_Postdate_Font");
86
+ $UFAQ_Styling_Postdate_Font_Size = get_option("EWD_UFAQ_Styling_Postdate_Font_Size");
87
+ $UFAQ_Styling_Postdate_Font_Color = get_option("EWD_UFAQ_Styling_Postdate_Font_Color");
88
+ $UFAQ_Styling_Postdate_Margin = get_option("EWD_UFAQ_Styling_Postdate_Margin");
89
+ $UFAQ_Styling_Postdate_Padding = get_option("EWD_UFAQ_Styling_Postdate_Padding");
90
+ $UFAQ_Styling_Category_Font = get_option("EWD_UFAQ_Styling_Category_Font");
91
+ $UFAQ_Styling_Category_Font_Size = get_option("EWD_UFAQ_Styling_Category_Font_Size");
92
+ $UFAQ_Styling_Category_Font_Color = get_option("EWD_UFAQ_Styling_Category_Font_Color");
93
+ $UFAQ_Styling_Category_Margin = get_option("EWD_UFAQ_Styling_Category_Margin");
94
+ $UFAQ_Styling_Category_Padding = get_option("EWD_UFAQ_Styling_Category_Padding");
95
+
96
+ $UFAQ_Styling_Category_Heading_Type = get_option("EWD_UFAQ_Styling_Category_Heading_Type");
97
+ $UFAQ_Styling_FAQ_Heading_Type = get_option("EWD_UFAQ_Styling_FAQ_Heading_Type");
98
+ $Toggle_Symbol = get_option("EWD_UFAQ_Toggle_Symbol");
99
+
100
+ if (!isset($Display_Tab)) {$Display_Tab = "";}
101
+ ?>
102
+ <div class="wrap ufaq-options-page-tabbed">
103
+ <div class="ufaq-options-submenu-div">
104
+ <ul class="ufaq-options-submenu ufaq-options-page-tabbed-nav">
105
+ <li><a id="Basic_Menu" class="MenuTab options-subnav-tab <?php if ($Display_Tab == '' or $Display_Tab == 'Basic') {echo 'options-subnav-tab-active';}?>" onclick="ShowOptionTab('Basic');">Basic</a></li>
106
+ <li><a id="Premium_Menu" class="MenuTab options-subnav-tab <?php if ($Display_Tab == 'Premium') {echo 'options-subnav-tab-active';}?>" onclick="ShowOptionTab('Premium');">Premium</a></li>
107
+ <li><a id="Order_Menu" class="MenuTab options-subnav-tab <?php if ($Display_Tab == 'Order') {echo 'options-subnav-tab-active';}?>" onclick="ShowOptionTab('Order');">Ordering</a></li>
108
+ <li><a id="Fields_Menu" class="MenuTab options-subnav-tab <?php if ($Display_Tab == 'Fields') {echo 'options-subnav-tab-active';}?>" onclick="ShowOptionTab('Fields');">Fields</a></li>
109
+ <li><a id="Labelling_Menu" class="MenuTab options-subnav-tab <?php if ($Display_Tab == 'Labelling') {echo 'options-subnav-tab-active';}?>" onclick="ShowOptionTab('Labelling');">Labelling</a></li>
110
+ <li><a id="Styling_Menu" class="MenuTab options-subnav-tab <?php if ($Display_Tab == 'Styling') {echo 'options-subnav-tab-active';}?>" onclick="ShowOptionTab('Styling');">Styling</a></li>
111
+ </ul>
112
+ </div>
113
+
114
+
115
+ <div class="ufaq-options-page-tabbed-content">
116
+
117
+ <form method="post" action="admin.php?page=EWD-UFAQ-Options&DisplayPage=Options&Action=EWD_UFAQ_UpdateOptions">
118
+ <div id='Basic' class='ufaq-option-set'>
119
+ <h2 id='label-basic-options' class='ufaq-options-page-tab-title'>Basic Options</h2>
120
+ <table class="form-table">
121
+ <tr>
122
+ <th scope="row">Custom CSS</th>
123
+ <td>
124
+ <fieldset><legend class="screen-reader-text"><span>Custom CSS</span></legend>
125
+ <label title='Custom CSS'></label><textarea class='ewd-ufaq-textarea' name='custom_css'> <?php echo $Custom_CSS; ?></textarea><br />
126
+ <p>You can add custom CSS styles for your FAQs in the box above.</p>
127
+ </fieldset>
128
+ </td>
129
+ </tr>
130
+ <tr>
131
+ <th scope="row">FAQ Toggle</th>
132
+ <td>
133
+ <fieldset><legend class="screen-reader-text"><span>FAQ Toggle</span></legend>
134
+ <label title='Yes'><input type='radio' name='faq_toggle' value='Yes' <?php if($FAQ_Toggle == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
135
+ <label title='No'><input type='radio' name='faq_toggle' value='No' <?php if($FAQ_Toggle == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
136
+ <p>Should the FAQs hide/open when they are clicked? </p>
137
+ </fieldset>
138
+ </td>
139
+ </tr>
140
+ <tr>
141
+ <th scope="row">FAQ Category Toggle</th>
142
+ <td>
143
+ <fieldset><legend class="screen-reader-text"><span>FAQ Category Toggle</span></legend>
144
+ <label title='Yes'><input type='radio' name='faq_category_toggle' value='Yes' <?php if($FAQ_Category_Toggle == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
145
+ <label title='No'><input type='radio' name='faq_category_toggle' value='No' <?php if($FAQ_Category_Toggle == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
146
+ <p>Should the FAQ categories hide/open when they are clicked, if FAQs are being grouped by category ("Group FAQs by Category" in the "Ordering" area)? </p>
147
+ </fieldset>
148
+ </td>
149
+ </tr>
150
+ <tr>
151
+ <th scope="row">FAQ Accordion</th>
152
+ <td>
153
+ <fieldset><legend class="screen-reader-text"><span>FAQ Accordion</span></legend>
154
+ <label title='Yes'><input type='radio' name='faq_accordion' value='Yes' <?php if($FAQ_Accordion == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
155
+ <label title='No'><input type='radio' name='faq_accordion' value='No' <?php if($FAQ_Accordion == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
156
+ <p>Should the FAQs accordion? (Only one FAQ is open at a time, requires FAQ Toggle)</p>
157
+ </fieldset>
158
+ </td>
159
+ </tr>
160
+
161
+ <tr>
162
+ <th scope="row">Hide Categories</th>
163
+ <td>
164
+ <fieldset><legend class="screen-reader-text"><span>Hide Categories</span></legend>
165
+ <label title='Yes'><input type='radio' name='hide_categories' value='Yes' <?php if($Hide_Categories == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
166
+ <label title='No'><input type='radio' name='hide_categories' value='No' <?php if($Hide_Categories == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
167
+ <p>Should the categories for each FAQ be hidden?</p>
168
+ </fieldset>
169
+ </td>
170
+ </tr>
171
+
172
+ <tr>
173
+ <th scope="row">Hide Tags</th>
174
+ <td>
175
+ <fieldset><legend class="screen-reader-text"><span>Hide Tags</span></legend>
176
+ <label title='Yes'><input type='radio' name='hide_tags' value='Yes' <?php if($Hide_Tags == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
177
+ <label title='No'><input type='radio' name='hide_tags' value='No' <?php if($Hide_Tags == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
178
+ <p>Should the tags for each FAQ be hidden?</p>
179
+ </fieldset>
180
+ </td>
181
+ </tr>
182
+ <tr>
183
+ <th scope="row">Scroll To Top</th>
184
+ <td>
185
+ <fieldset><legend class="screen-reader-text"><span>Scroll To Top</span></legend>
186
+ <label title='Yes'><input type='radio' name='scroll_to_top' value='Yes' <?php if($Scroll_To_Top == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
187
+ <label title='No'><input type='radio' name='scroll_to_top' value='No' <?php if($Scroll_To_Top == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
188
+ <p>Should the browser scroll to the top of the FAQ when it's opened?</p>
189
+ </fieldset>
190
+ </td>
191
+ </tr>
192
+ <tr>
193
+ <th scope="row">Display All Answers</th>
194
+ <td>
195
+ <fieldset><legend class="screen-reader-text"><span>Display All Answers</span></legend>
196
+ <label title='Yes'><input type='radio' name='display_all_answers' value='Yes' <?php if($Display_All_Answers == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
197
+ <label title='No'><input type='radio' name='display_all_answers' value='No' <?php if($Display_All_Answers == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
198
+ <p>Should all answers be displayed when the page loads? (Careful if FAQ Accordian is on)</p>
199
+ </fieldset>
200
+ </td>
201
+ </tr>
202
+ <tr>
203
+ <th scope="row">Display Post Author</th>
204
+ <td>
205
+ <fieldset><legend class="screen-reader-text"><span>Display Post Author</span></legend>
206
+ <label title='Yes'><input type='radio' name='display_author' value='Yes' <?php if($Display_Author == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
207
+ <label title='No'><input type='radio' name='display_author' value='No' <?php if($Display_Author == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
208
+ <p>Should the display name of the post's author be show beneath the FAQ title?</p>
209
+ </fieldset>
210
+ </td>
211
+ </tr>
212
+ <tr>
213
+ <th scope="row">Display Post Date</th>
214
+ <td>
215
+ <fieldset><legend class="screen-reader-text"><span>Display Post Date</span></legend>
216
+ <label title='Yes'><input type='radio' name='display_date' value='Yes' <?php if($Display_Date == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
217
+ <label title='No'><input type='radio' name='display_date' value='No' <?php if($Display_Date == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
218
+ <p>Should the date the post was created be show beneath the FAQ title?</p>
219
+ </fieldset>
220
+ </td>
221
+ </tr>
222
+ <tr>
223
+ <th scope="row">Display 'Back to Top'</th>
224
+ <td>
225
+ <fieldset><legend class="screen-reader-text"><span>Display 'Back to Top'</span></legend>
226
+ <label title='Yes'><input type='radio' name='display_back_to_top' value='Yes' <?php if($Display_Back_To_Top == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
227
+ <label title='No'><input type='radio' name='display_back_to_top' value='No' <?php if($Display_Back_To_Top == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
228
+ <p>Should a link to return to the top of the page be added to each FAQ post?</p>
229
+ </fieldset>
230
+ </td>
231
+ </tr>
232
+ <tr>
233
+ <th scope="row">Include Permalink Icon</th>
234
+ <td>
235
+ <fieldset><legend class="screen-reader-text"><span>Include Permalink Icon</span></legend>
236
+ <label title='Yes'><input type='radio' name='include_permalink' value='Yes' <?php if($Include_Permalink == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
237
+ <label title='No'><input type='radio' name='include_permalink' value='No' <?php if($Include_Permalink == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
238
+ <p>Should an icon to link directly to each question be displayed?</p>
239
+ </fieldset>
240
+ </td>
241
+ </tr>
242
+ <tr>
243
+ <th scope="row">Permalink Type</th>
244
+ <td>
245
+ <fieldset><legend class="screen-reader-text"><span>Include Permalink Icon</span></legend>
246
+ <label title='SamePage'><input type='radio' name='permalink_type' value='SamePage' <?php if($Permalink_Type == "SamePage") {echo "checked='checked'";} ?> /> <span>Main FAQ Page</span></label><br />
247
+ <label title='IndividualPage'><input type='radio' name='permalink_type' value='IndividualPage' <?php if($Permalink_Type == "IndividualPage") {echo "checked='checked'";} ?> /> <span>Individual FAQ Page</span></label><br />
248
+ <p>Should the permalink icon link to the main FAQ page, or to the individual FAQ post?</p>
249
+ </fieldset>
250
+ </td>
251
+ </tr>
252
+ <tr>
253
+ <th scope="row">Show Editor Helper</th>
254
+ <td>
255
+ <fieldset><legend class="screen-reader-text"><span>Show Editor Helper</span></legend>
256
+ <label title='Yes'><input type='radio' name='show_tinymce' value='Yes' <?php if($Show_TinyMCE == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
257
+ <label title='No'><input type='radio' name='show_tinymce' value='No' <?php if($Show_TinyMCE == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
258
+ <p>Should the shortcode builder be shown above the WordPress page/post editor, in the toolbar buttons?</p>
259
+ </fieldset>
260
+ </td>
261
+ </tr>
262
+ <tr>
263
+ <th scope="row">Turn On Comment Support</th>
264
+ <td>
265
+ <fieldset><legend class="screen-reader-text"><span>Turn On Comment Support</span></legend>
266
+ <label title='Yes'><input type='radio' name='comments_on' value='Yes' <?php if($Comments_On == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
267
+ <label title='No'><input type='radio' name='comments_on' value='No' <?php if($Comments_On == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
268
+ <p>Should comment support be turned on, so that if the "Allow Comments" checkbox is selected for a given FAQ, comments are shown in the FAQ list?</p>
269
+ </fieldset>
270
+ </td>
271
+ </tr>
272
+ </table>
273
+ </div>
274
+
275
+ <div id='Premium' class='ufaq-option-set ufaq-hidden'>
276
+ <h2 id='label-premium-options' class='ufaq-options-page-tab-title'>Premium Options</h2>
277
+ <table class="form-table">
278
+ <tr>
279
+ <th scope="row">FAQ Display Style</th>
280
+ <td>
281
+ <fieldset><legend class="screen-reader-text"><span>FAQ Display Style</span></legend>
282
+ <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 />
283
+ <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 />
284
+ <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 />
285
+ <label title='Border Block Style'><input type='radio' name='display_style' value='Border_Block' <?php if($Display_Style == "Border_Block") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/> <span>Border Block</span></label><br />
286
+ <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 />
287
+ <label title='Minimalist Style'><input type='radio' name='display_style' value='Minimalist' <?php if($Display_Style == "Minimalist") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/> <span>Minimalist</span></label><br />
288
+ <p>Which theme should be used to display the FAQ's?</p>
289
+ </fieldset>
290
+ </td>
291
+ </tr>
292
+ <tr>
293
+ <th scope="row">Color Block Shape</th>
294
+ <td>
295
+ <fieldset><legend class="screen-reader-text"><span>Color Block Shape</span></legend>
296
+ <label title='Square'><input type='radio' name='color_block_shape' value='Square' <?php if($Color_Block_Shape == "Square") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /> <span>Square</span></label><br />
297
+ <label title='Circle'><input type='radio' name='color_block_shape' value='Circle' <?php if($Color_Block_Shape == "Circle") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /> <span>Circle</span></label><br />
298
+ <p>If "Color Block" is selected for "FAQ Display Style", should the block be square or circle?</p>
299
+ </fieldset>
300
+ </td>
301
+ </tr>
302
+ <tr>
303
+ <th scope="row">FAQ Ratings</th>
304
+ <td>
305
+ <fieldset><legend class="screen-reader-text"><span>FAQ Ratings</span></legend>
306
+ <label title='Yes'><input type='radio' name='faq_ratings' value='Yes' <?php if($FAQ_Ratings == "Yes") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /> <span>Yes</span></label><br />
307
+ <label title='No'><input type='radio' name='faq_ratings' value='No' <?php if($FAQ_Ratings == "No") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /> <span>No</span></label><br />
308
+ <p>Should visitors be able to up or down vote FAQs to let others know if they found them helpful?</p>
309
+ </fieldset>
310
+ </td>
311
+ </tr>
312
+ <tr>
313
+ <th scope="row">WooCommerce FAQs</th>
314
+ <td>
315
+ <fieldset><legend class="screen-reader-text"><span>WooCommerce FAQs</span></legend>
316
+ <label title='Yes'><input type='radio' name='woocommerce_faqs' value='Yes' <?php if($WooCommerce_FAQs == "Yes") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /> <span>Yes</span></label><br />
317
+ <label title='No'><input type='radio' name='woocommerce_faqs' value='No' <?php if($WooCommerce_FAQs == "No") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /> <span>No</span></label><br />
318
+ <p>Should FAQs for a given product be displayed as an extra tab on the WooCommerce product page?<br/> For this to work correctly, an FAQ category needs to be created with the same name as a given WooCommerce product.</p>
319
+ </fieldset>
320
+ </td>
321
+ </tr>
322
+ <tr>
323
+ <th scope="row">Use WooCommerce Product Object</th>
324
+ <td>
325
+ <fieldset><legend class="screen-reader-text"><span>Use WooCommerce Product Object</span></legend>
326
+ <label title='Yes'><input type='radio' name='use_product' value='Yes' <?php if($Use_Product == "Yes") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /> <span>Yes</span></label><br />
327
+ <label title='No'><input type='radio' name='use_product' value='No' <?php if($Use_Product == "No") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /> <span>No</span></label><br />
328
+ <p>Should the FAQ tab be set up using the WooCommerce product object, as in the WC documentation, or just using the ID of the page?</p>
329
+ </fieldset>
330
+ </td>
331
+ </tr>
332
+ <tr>
333
+ <th scope="row">Reveal Effect</th>
334
+ <td>
335
+ <fieldset><legend class="screen-reader-text"><span>Reveal Effect</span></legend>
336
+ <label title='Reveal Effect'></label>
337
+
338
+ <select name="reveal_effect" <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> >
339
+ <option value="none" <?php if($Reveal_Effect == "none") {echo "selected=selected";} ?> >None</option>
340
+ <option value="blind" <?php if($Reveal_Effect == "blind") {echo "selected=selected";} ?> >Blind</option>
341
+ <option value="bounce" <?php if($Reveal_Effect == "bounce") {echo "selected=selected";} ?> >Bounce</option>
342
+ <option value="clip" <?php if($Reveal_Effect == "clip") {echo "selected=selected";} ?> >Clip</option>
343
+ <option value="drop" <?php if($Reveal_Effect == "drop") {echo "selected=selected";} ?> >Drop</option>
344
+ <option value="explode" <?php if($Reveal_Effect == "explode") {echo "selected=selected";} ?> >Explode</option>
345
+ <option value="fade" <?php if($Reveal_Effect == "fade") {echo "selected=selected";} ?> >Fade</option>
346
+ <option value="fold" <?php if($Reveal_Effect == "fold") {echo "selected=selected";} ?> >Fold</option>
347
+ <option value="highlight" <?php if($Reveal_Effect == "highlight") {echo "selected=selected";} ?> >Highlight</option>
348
+ <option value="puff" <?php if($Reveal_Effect == "puff") {echo "selected=selected";} ?> >Puff</option>
349
+ <option value="pulsate" <?php if($Reveal_Effect == "pulsate") {echo "selected=selected";} ?> >Pulsate</option>
350
+ <option value="shake" <?php if($Reveal_Effect == "shake") {echo "selected=selected";} ?> >Shake</option>
351
+ <option value="size" <?php if($Reveal_Effect == "size") {echo "selected=selected";} ?> >Size</option>
352
+ <option value="slide" <?php if($Reveal_Effect == "slide") {echo "selected=selected";} ?> >Slide</option>
353
+ </select>
354
+
355
+ <p>How should FAQ's be displayed when their titles are clicked?</p>
356
+ </fieldset>
357
+ </td>
358
+ </tr>
359
+ <tr>
360
+ <th scope="row">Pretty Permalinks</th>
361
+ <td>
362
+ <fieldset><legend class="screen-reader-text"><span>Pretty Permalinks</span></legend>
363
+ <label title='Yes'><input type='radio' name='pretty_permalinks' value='Yes' <?php if($Pretty_Permalinks == "Yes") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /> <span>Yes</span></label><br />
364
+ <label title='No'><input type='radio' name='pretty_permalinks' value='No' <?php if($Pretty_Permalinks == "No") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /> <span>No</span></label><br />
365
+ <p>Should an SEO friendly permalink structure be used for the link to this FAQ?</p>
366
+ </fieldset>
367
+ </td>
368
+ </tr>
369
+ <tr>
370
+ <th scope="row">Allow Proposed Answer</th>
371
+ <td>
372
+ <fieldset><legend class="screen-reader-text"><span>Allow Proposed Answer</span></legend>
373
+ <label title='Yes'><input type='radio' name='allow_proposed_answer' value='Yes' <?php if($Allow_Proposed_Answer == "Yes") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /> <span>Yes</span></label><br />
374
+ <label title='No'><input type='radio' name='allow_proposed_answer' value='No' <?php if($Allow_Proposed_Answer == "No") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /> <span>No</span></label><br />
375
+ <p>When using the user-submitted question shortcode, should users be able to propose an answer to the question they're submitting?</p>
376
+ </fieldset>
377
+ </td>
378
+ </tr>
379
+ <tr>
380
+ <th scope="row">Admin Question Notification</th>
381
+ <td>
382
+ <fieldset><legend class="screen-reader-text"><span>Admin Question Notification</span></legend>
383
+ <label title='Yes'><input type='radio' name='admin_question_notification' value='Yes' <?php if($Admin_Question_Notification == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
384
+ <label title='No'><input type='radio' name='admin_question_notification' value='No' <?php if($Admin_Question_Notification == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
385
+ <p>Should an email be sent to the site administrator when a question is submitted?</p>
386
+ </fieldset>
387
+ </td>
388
+ </tr>
389
+ <tr>
390
+ <th scope="row">FAQ Auto Complete Titles</th>
391
+ <td>
392
+ <fieldset><legend class="screen-reader-text"><span>FAQ Auto Complete Titles</span></legend>
393
+ <label title='Yes'><input type='radio' name='faq_auto_complete_titles' value='Yes' <?php if($FAQ_Auto_Complete_Titles == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
394
+ <label title='No'><input type='radio' name='faq_auto_complete_titles' value='No' <?php if($FAQ_Auto_Complete_Titles == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
395
+ <p>Should the FAQ Titles auto complete? </p>
396
+ </fieldset>
397
+ </td>
398
+ </tr>
399
+ <tr>
400
+ <th scope="row">FAQ Slug Base</th>
401
+ <td>
402
+ <fieldset><legend class="screen-reader-text"><span>FAQ Slug Base</span></legend>
403
+ <input type='text' name='slug_base' value='<?php echo $Slug_Base; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> size='60'/>
404
+ <p>This option can be used to change the slug base for all FAQ posts. Be sure to go to "Settings" -> "Permalinks" in the WordPress sidebar and hit "Save Changes" to avoid 404 errors.</p>
405
+ </fieldset>
406
+ </td>
407
+ </tr>
408
+ <tr>
409
+ <th scope="row">Social Media Option</th>
410
+ <td>
411
+ <fieldset><legend class="screen-reader-text"><span>Social Media Option</span></legend>
412
+ <label title='Facebook'><input type='checkbox' name='Socialmedia[]' value='Facebook' <?php if(in_array("Facebook", $Socialmedia)) {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /> <span>Facebook</span></label><br />
413
+ <label title='Name'><input type='checkbox' name='Socialmedia[]' value='Google' <?php if(in_array("Google", $Socialmedia)) {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /> <span>Google</span></label><br />
414
+ <label title='Twitter'><input type='checkbox' name='Socialmedia[]' value='Twitter' <?php if(in_array("Twitter", $Socialmedia)) {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /> <span>Twitter</span></label><br />
415
+ <label title='Linkedin'><input type='checkbox' name='Socialmedia[]' value='Linkedin' <?php if(in_array("Linkedin", $Socialmedia)) {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /> <span>Linkedin</span></label><br />
416
+ <label title='Pinterest'><input type='checkbox' name='Socialmedia[]' value='Pinterest' <?php if(in_array("Pinterest", $Socialmedia)) {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /> <span>Pinterest</span></label><br />
417
+ <label title='Email'><input type='checkbox' name='Socialmedia[]' value='Email' <?php if(in_array("Email", $Socialmedia)) {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /> <span>Email</span></label><br />
418
+ <div style='display:none;'><label title='Blank'><input type='checkbox' name='Socialmedia[]' value='Blank' checked='checked'/> <span>Blank</span></label></div>
419
+ </fieldset>
420
+ </td>
421
+ </tr>
422
+ </table>
423
+ </div>
424
+
425
+ <div id='Order' class='ufaq-option-set ufaq-hidden'>
426
+ <h2 id='label-order-options' class='ufaq-options-page-tab-title'>Ordering Options</h2>
427
+ <table class="form-table">
428
+ <tr>
429
+ <th scope="row">Group FAQs by Category</th>
430
+ <td>
431
+ <fieldset><legend class="screen-reader-text"><span>Group FAQs by Category</span></legend>
432
+ <label title='Yes'><input type='radio' name='group_by_category' value='Yes' <?php if($Group_By_Category == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
433
+ <label title='No'><input type='radio' name='group_by_category' value='No' <?php if($Group_By_Category == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
434
+ <p>Should FAQs be grouped by category, or should all categories be mixed together?</p>
435
+ </fieldset>
436
+ </td>
437
+ </tr>
438
+ <tr>
439
+ <th scope="row">Sort Categories</th>
440
+ <td>
441
+ <fieldset><legend class="screen-reader-text"><span>Sort Categories</span></legend>
442
+ <label title='Group By Order By'></label>
443
+
444
+ <select name="group_by_order_by" <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> >
445
+ <option value="name" <?php if($Group_By_Order_By == "name") {echo "selected=selected";} ?> >Name</option>
446
+ <option value="count" <?php if($Group_By_Order_By == "count") {echo "selected=selected";} ?> >FAQ Count</option>
447
+ <option value="slug" <?php if($Group_By_Order_By == "slug") {echo "selected=selected";} ?> >Slug</option>
448
+ </select>
449
+
450
+ <p>How should FAQ categories be ordered? (Only used if "Group FAQs by Category" above is set to "Yes")</p>
451
+ </fieldset>
452
+ </td>
453
+ </tr>
454
+ <tr>
455
+ <th scope="row">Sort Categories Ordering</th>
456
+ <td>
457
+ <fieldset><legend class="screen-reader-text"><span>Sort Categories Ordering</span></legend>
458
+ <label title='Ascending'><input type='radio' name='group_by_order' value='ASC' <?php if($Group_By_Order == "ASC") {echo "checked='checked'";} ?> /> <span>Ascending</span></label><br />
459
+ <label title='Descending'><input type='radio' name='group_by_order' value='DESC' <?php if($Group_By_Order == "DESC") {echo "checked='checked'";} ?> /> <span>Descending</span></label><br />
460
+ <p>How should FAQ categories be ordered? (Only used if "Group FAQs by Category" above is set to "Yes")</p>
461
+ </fieldset>
462
+ </td>
463
+ </tr>
464
+ <tr>
465
+ <th scope="row">FAQ Ordering</th>
466
+ <td>
467
+ <fieldset><legend class="screen-reader-text"><span>FAQ Ordering</span></legend>
468
+ <label title='FAQ Ordering'></label>
469
+
470
+ <select name="order_by_setting" <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> >
471
+ <option value="date" <?php if($Order_By_Setting == "date") {echo "selected=selected";} ?> >Created Date</option>
472
+ <option value="title" <?php if($Order_By_Setting == "title") {echo "selected=selected";} ?> >Title</option>
473
+ <option value="modified" <?php if($Order_By_Setting == "modified") {echo "selected=selected";} ?> >Modified Date</option>
474
+ <option value="set_order" <?php if($Order_By_Setting == "set_order") {echo "selected=selected";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> >Selected Order (using Order table)</option>
475
+ </select>
476
+
477
+ <p>How should individual FAQs be ordered?</p>
478
+ </fieldset>
479
+ </td>
480
+ </tr>
481
+ <tr>
482
+ <th scope="row">FAQ Order Setting</th>
483
+ <td>
484
+ <fieldset><legend class="screen-reader-text"><span>Sort Categories Ordering</span></legend>
485
+ <label title='Yes'><input type='radio' name='order_setting' value='ASC' <?php if($Order_Setting == "ASC") {echo "checked='checked'";} ?> /> <span>Ascending</span></label><br />
486
+ <label title='No'><input type='radio' name='order_setting' value='DESC' <?php if($Order_Setting == "DESC") {echo "checked='checked'";} ?> /> <span>Descending</span></label><br />
487
+ <p>Should FAQ be ascending or descending order, based on the ordering criteria above?</p>
488
+ </fieldset>
489
+ </td>
490
+ </tr>
491
+ </table>
492
+
493
+ <div class='ufaq-order-table'>
494
+ <h3><?php echo __("Order Table", 'EWD_UFAQ'); ?></h3>
495
+ <p><?php _e("Drag and drop the posts below to reorder them, if you have 'Selected Order' set for the 'FAQ Ordering' option", 'EWD_UFAQ'); ?></p>
496
+ <?php
497
+ if ($UFAQ_Full_Version != "Yes") {echo "<p>Upgrade to premium to access this feature.</p>";}
498
+ else {
499
+ ?>
500
+ <!--<div id="col-right">
501
+ <div class="col-wrap">
502
+ <div id="add-page" class="postbox metabox-holder" >
503
+ <div class="inside">
504
+ <div id="posttype-page" class="posttypediv">-->
505
+ <div id="tabs-panel-posttype-page-most-recent" class="tabs-panel tabs-panel-active">
506
+
507
+ <table class="wp-list-table widefat tags sorttable ewd-ufaq-list">
508
+ <thead>
509
+ <tr>
510
+ <th><?php _e("Question", 'UPCP') ?></th>
511
+ <th><?php _e("Views", 'UPCP') ?></th>
512
+ <th><?php _e("Categories", 'UPCP') ?></th>
513
+ <th><?php _e("Tags", 'UPCP') ?></th>
514
+ </tr>
515
+ </thead>
516
+ <tbody>
517
+ <?php
518
+ $params = array(
519
+ 'post_type' => 'ufaq',
520
+ 'posts_per_page' => -1,
521
+ 'meta_key' => 'ufaq_order',
522
+ 'orderby' => 'meta_value_num',
523
+ 'order' => 'ASC'
524
+ );
525
+ $FAQs = get_posts($params);
526
+ if (empty($FAQs)) { echo "<div class='ewd-ufaq-row list-item'><p>No FAQs have been created<p/></div>"; }
527
+ else {
528
+ foreach ($FAQs as $FAQ) {
529
+ $FAQ_Views = get_post_meta($FAQ->ID, 'ufaq_view_count', true);
530
+ $FAQ_Categories = get_the_term_list($FAQ->ID, 'ufaq-category', '', ', ', '');
531
+ $FAQ_Tags = get_the_term_list($FAQ->ID, 'ufaq-tag', '', ', ', '');
532
+ echo "<tr id='ewd-ufaq-item-" . $FAQ->ID . "' class='ewd-ufaq-item'>";
533
+ echo "<td class='ufaq-title'>" . $FAQ->post_title . "</td>";
534
+ echo "<td class='ufaq-title'>" . $FAQ_Views . "</td>";
535
+ echo "<td class='ufaq-title'>" . $FAQ_Categories . "</td>";
536
+ echo "<td class='ufaq-title'>" . $FAQ_Tags . "</td>";
537
+ echo "</tr>";
538
+ }
539
+ }?>
540
+ </tbody>
541
+ <tfoot>
542
+ <tr>
543
+ <th><?php _e("Question", 'UPCP') ?></th>
544
+ <th><?php _e("Views", 'UPCP') ?></th>
545
+ <th><?php _e("Categories", 'UPCP') ?></th>
546
+ <th><?php _e("Tags", 'UPCP') ?></th>
547
+ </tr>
548
+ </tfoot>
549
+ </table>
550
+ </div>
551
+ <?php } ?>
552
+
553
+ </div>
554
+ </div>
555
+
556
+ <div id='Fields' class='ufaq-option-set ufaq-hidden'>
557
+ <h2 id='label-order-options' class='ufaq-options-page-tab-title'>Fields Options (Premium)</h2>
558
+ <table class="form-table">
559
+ <tr>
560
+ <th scope="row">FAQ Custom Fields</th>
561
+ <td>
562
+ <fieldset><legend class="screen-reader-text"><span>FAQ Custom Fields</span></legend>
563
+ <table id='ewd-ufaq-custom-fields-table'>
564
+ <tr>
565
+ <th></th>
566
+ <th>Field Name</th>
567
+ <th>Field Type</th>
568
+ <th>Field Values</th>
569
+ </tr>
570
+ <?php
571
+ $Counter = 0;
572
+ $Max_ID = 0;
573
+ if (!is_array($FAQ_Fields_Array)) {$FAQ_Fields_Array = array();}
574
+ foreach ($FAQ_Fields_Array as $FAQ_Field_Item) {
575
+ echo "<tr id='ewd-ufaq-custom-field-row-" . $Counter . "'>";
576
+ echo "<td><input type='hidden' name='Custom_Field_" . $Counter . "_ID' value='" . $FAQ_Field_Item['FieldID'] . "' /><a class='ewd-ufaq-delete-custom-field' data-fieldid='" . $Counter . "'>Delete</a></td>";
577
+ echo "<td><input type='text' name='Custom_Field_" . $Counter . "_Name' value='" . $FAQ_Field_Item['FieldName'] . "'/></td>";
578
+ echo "<td><select name='Custom_Field_" . $Counter . "_Type'>"; ?>
579
+ <option value='text' <?php if ($FAQ_Field_Item['FieldType'] == "text") {echo "selected='selected'";} ?>>Text</option>
580
+ <option value='textarea' <?php if ($FAQ_Field_Item['FieldType'] == "textarea") {echo "selected='selected'";} ?>>Text Area</option>
581
+ <option value='select' <?php if ($FAQ_Field_Item['FieldType'] == "select") {echo "selected='selected'";} ?>>Select Box</option>
582
+ <option value='radio' <?php if ($FAQ_Field_Item['FieldType'] == "radio") {echo "selected='selected'";} ?>>Radio Buttons</option>
583
+ <option value='checkbox' <?php if ($FAQ_Field_Item['FieldType'] == "checkbox") {echo "selected='selected'";} ?>>Checkbox</option>
584
+ <option value='file' <?php if ($FAQ_Field_Item['FieldType'] == "file") {echo "selected='selected'";} ?>>File</option>
585
+ <option value='date' <?php if ($FAQ_Field_Item['FieldType'] == "date") {echo "selected='selected'";} ?>>Date</option>
586
+ <option value='datetime' <?php if ($FAQ_Field_Item['FieldType'] == "datetime") {echo "selected='selected'";} ?>>Date/Time</option>
587
+ <?php echo "</select></td>";
588
+ echo "<td><input type='text' name='Custom_Field_" . $Counter . "_Values' value='" . $FAQ_Field_Item['FieldValues'] . "'/></td>";
589
+ echo "</tr>";
590
+ $Counter++;
591
+ $Max_ID = max($Max_ID, $Email_Message_Item['ID']);
592
+ }
593
+ $Max_ID++;
594
+ echo "<tr><td colspan='4'><a class='ewd-ufaq-add-custom-field' data-nextid='" . $Counter . "' data-maxid='" . $Max_ID . "'>Add</a></td></tr>";
595
+ ?>
596
+ </table>
597
+ <p>Should any extra fields be added to the FAQs?<br />
598
+ The "Field Values" should be a comma-separated list of values for the select, radio or checkbox field types (no extra spaces after the comma)</p>
599
+ </fieldset>
600
+ </td>
601
+ </tr>
602
+ <tr>
603
+ <th scope="row">Hide Blank Fields</th>
604
+ <td>
605
+ <fieldset><legend class="screen-reader-text"><span>Hide Blank Fields</span></legend>
606
+ <label title='Yes'><input type='radio' name='hide_blank_fields' value='Yes' <?php if($Hide_Blank_Fields == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
607
+ <label title='No'><input type='radio' name='hide_blank_fields' value='No' <?php if($Hide_Blank_Fields == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
608
+ <p>Should field labels been hidden if a field hasn't been filled out for a particular FAQ?</p>
609
+ </fieldset>
610
+ </td>
611
+ </tr>
612
+ </table>
613
+ </div>
614
+
615
+
616
+ <div id='Labelling' class='ufaq-option-set ufaq-hidden'>
617
+ <h2 id='label-order-options' class='ufaq-options-page-tab-title'>Labelling Options</h2>
618
+ <div class="ufaq-label-description"> Replace the default text on the FAQ page </div>
619
+
620
+ <div id='labelling-view-options' class="ufaq-options-div ufaq-options-flex">
621
+ <div class='ufaq-subsection'>
622
+ <div class='ufaq-subsection-content' id='ufaq-subsection-inline'>
623
+ <div class='ufaq-option ufaq-label-option'>
624
+ <?php _e("Posted", 'EWD_UFAQ')?>
625
+ <fieldset>
626
+ <input type='text' name='posted_label' value='<?php echo $Posted_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
627
+ </fieldset>
628
+ </div>
629
+ <div class='ufaq-option ufaq-label-option'>
630
+ <?php _e("By", 'EWD_UFAQ')?>
631
+ <fieldset>
632
+ <input type='text' name='by_label' value='<?php echo $By_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
633
+ </fieldset>
634
+ </div>
635
+ <div class='ufaq-option ufaq-label-option'>
636
+ <?php _e("On", 'EWD_UFAQ')?>
637
+ <fieldset>
638
+ <input type='text' name='on_label' value='<?php echo $On_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
639
+ </fieldset>
640
+ </div>
641
+ <div class='ufaq-option ufaq-label-option'>
642
+ <?php _e("Categories", 'EWD_UFAQ')?>
643
+ <fieldset>
644
+ <input type='text' name='category_label' value='<?php echo $Category_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> />
645
+ </fieldset>
646
+ </div>
647
+ <div class='ufaq-option ufaq-label-option'>
648
+ <?php _e("Tags", 'EWD_UFAQ')?>
649
+ <fieldset>
650
+ <input type='text' name='tag_label' value='<?php echo $Tag_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
651
+ </fieldset>
652
+ </div>
653
+ <div class='ufaq-option ufaq-label-option'>
654
+ <?php _e("Enter your question", 'EWD_UFAQ')?>
655
+ <fieldset>
656
+ <input type='text' name='enter_question_label' value='<?php echo $Enter_Question_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
657
+ </fieldset>
658
+ </div>
659
+ <div class='ufaq-option ufaq-label-option'>
660
+ <?php _e("Search", 'EWD_UFAQ')?>
661
+ <fieldset>
662
+ <input type='text' name='search_label' value='<?php echo $Search_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
663
+ </fieldset>
664
+ </div>
665
+ <div class='ufaq-option ufaq-label-option'>
666
+ <?php _e("Permalink", 'EWD_UFAQ')?>
667
+ <fieldset>
668
+ <input type='text' name='permalink_label' value='<?php echo $Permalink_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
669
+ </fieldset>
670
+ </div>
671
+ <div class='ufaq-option ufaq-label-option'>
672
+ <?php _e("Back To Top", 'EWD_UFAQ')?>
673
+ <fieldset>
674
+ <input type='text' name='back_to_top_label' value='<?php echo $Back_To_Top_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
675
+ </fieldset>
676
+ </div>
677
+ </div>
678
+ </div>
679
+ <div class='ufaq-subsection'>
680
+ <div class='ufaq-subsection-content' id='ufaq-subsection-inline'>
681
+ <div class='ufaq-option ufaq-label-option'>
682
+ <?php _e("Thank you for submitting an FAQ", 'EWD_UFAQ')?>
683
+ <fieldset>
684
+ <input type='text' name='thank_you_submit_label' value='<?php echo $Thank_You_Submit_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
685
+ </fieldset>
686
+ </div>
687
+ <div class='ufaq-option ufaq-label-option'>
688
+ <?php _e("Submit a Question", 'EWD_UFAQ')?>
689
+ <fieldset>
690
+ <input type='text' name='submit_question_label' value='<?php echo $Submit_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("Please fill out the form below to submit a question.", 'EWD_UFAQ')?>
695
+ <fieldset>
696
+ <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";} ?>/>
697
+ </fieldset>
698
+ </div>
699
+ <div class='ufaq-option ufaq-label-option'>
700
+ <?php _e("Send Question", 'EWD_UFAQ')?>
701
+ <fieldset>
702
+ <input type='text' name='send_question_label' value='<?php echo $Send_Question_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
703
+ </fieldset>
704
+ </div>
705
+ <div class='ufaq-option ufaq-label-option'>
706
+ <?php _e("Question Title", 'EWD_UFAQ')?>
707
+ <fieldset>
708
+ <input type='text' name='question_title_label' value='<?php echo $Question_Title_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
709
+ </fieldset>
710
+ </div>
711
+ <div class='ufaq-option ufaq-label-option'>
712
+ <?php _e("What question is being answered?", 'EWD_UFAQ')?>
713
+ <fieldset>
714
+ <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";} ?>/>
715
+ </fieldset>
716
+ </div>
717
+ <div class='ufaq-option ufaq-label-option'>
718
+ <?php _e("Proposed Answer", 'EWD_UFAQ')?>
719
+ <fieldset>
720
+ <input type='text' name='proposed_answer_label' value='<?php echo $Proposed_Answer_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
721
+ </fieldset>
722
+ </div>
723
+ <div class='ufaq-option ufaq-label-option'>
724
+ <?php _e("Question Author", 'EWD_UFAQ')?>
725
+ <fieldset>
726
+ <input type='text' name='review_author_label' value='<?php echo $Review_Author_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
727
+ </fieldset>
728
+ </div>
729
+ <div class='ufaq-option ufaq-label-option'>
730
+ <?php _e("What name should be displayed with your question?", 'EWD_UFAQ')?>
731
+ <fieldset>
732
+ <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";} ?>/>
733
+ </fieldset>
734
+ </div>
735
+ <div class='ufaq-option ufaq-label-option'>
736
+ <?php _e("No results FAQ's contained the term '%s'", 'EWD_UFAQ')?>
737
+ <fieldset>
738
+ <input type='text' name='no_results_found_text' value='<?php echo $No_Results_Found_Text; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
739
+ </fieldset>
740
+ </div>
741
+ </div>
742
+ </div>
743
+ </div>
744
+ </div>
745
+ <div id='Styling' class='ufaq-option-set ufaq-hidden'>
746
+ <h2 id='label-order-options' class='ufaq-options-page-tab-title'>Styling Options (Premium)</h2>
747
+
748
+ <div id='ufaq-styling-options' class="ufaq-options-div ufaq-options-flex">
749
+ <div class='ufaq-subsection'>
750
+ <div class='ufaq-subsection-header'>Toggle Symbol</div>
751
+ <div class='ufaq-subsection-content'>
752
+ <div class='ufaq-option ufaq-styling-option'>
753
+ <div class='ufaq-option-one-line'><input type='radio' name='toggle_symbol' value='A' <?php if ($Toggle_Symbol == "A") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /><span class='ufaq-toggle-symbol'>a A</span></div><br />
754
+ <div class='ufaq-option-one-line'><input type='radio' name='toggle_symbol' value='B' <?php if ($Toggle_Symbol == "B") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /><span class='ufaq-toggle-symbol'>b B</span></div><br />
755
+ <div class='ufaq-option-one-line'><input type='radio' name='toggle_symbol' value='C' <?php if ($Toggle_Symbol == "C") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /><span class='ufaq-toggle-symbol'>c C</span></div><br />
756
+ <div class='ufaq-option-one-line'><input type='radio' name='toggle_symbol' value='D' <?php if ($Toggle_Symbol == "D") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /><span class='ufaq-toggle-symbol'>d D</span></div><br />
757
+ <div class='ufaq-option-one-line'><input type='radio' name='toggle_symbol' value='E' <?php if ($Toggle_Symbol == "E") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /><span class='ufaq-toggle-symbol'>e E</span></div><br />
758
+ <div class='ufaq-option-one-line'><input type='radio' name='toggle_symbol' value='F' <?php if ($Toggle_Symbol == "F") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /><span class='ufaq-toggle-symbol'>f F</span></div><br />
759
+ <div class='ufaq-option-one-line'><input type='radio' name='toggle_symbol' value='G' <?php if ($Toggle_Symbol == "G") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /><span class='ufaq-toggle-symbol'>g G</span></div><br />
760
+ <div class='ufaq-option-one-line'><input type='radio' name='toggle_symbol' value='H' <?php if ($Toggle_Symbol == "H") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /><span class='ufaq-toggle-symbol'>h H</span></div><br />
761
+ <div class='ufaq-option-one-line'><input type='radio' name='toggle_symbol' value='I' <?php if ($Toggle_Symbol == "I") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /><span class='ufaq-toggle-symbol'>i I</span></div><br />
762
+ <div class='ufaq-option-one-line'><input type='radio' name='toggle_symbol' value='J' <?php if ($Toggle_Symbol == "J") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /><span class='ufaq-toggle-symbol'>j J</span></div><br />
763
+ <div class='ufaq-option-one-line'><input type='radio' name='toggle_symbol' value='K' <?php if ($Toggle_Symbol == "K") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /><span class='ufaq-toggle-symbol'>k K</span></div><br />
764
+ <div class='ufaq-option-one-line'><input type='radio' name='toggle_symbol' value='L' <?php if ($Toggle_Symbol == "L") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /><span class='ufaq-toggle-symbol'>l L</span></div><br />
765
+ <div class='ufaq-option-one-line'><input type='radio' name='toggle_symbol' value='M' <?php if ($Toggle_Symbol == "M") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /><span class='ufaq-toggle-symbol'>m M</span></div><br />
766
+ <div class='ufaq-option-one-line'><input type='radio' name='toggle_symbol' value='N' <?php if ($Toggle_Symbol == "N") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /><span class='ufaq-toggle-symbol'>n N</span></div><br />
767
+ <div class='ufaq-option-one-line'><input type='radio' name='toggle_symbol' value='O' <?php if ($Toggle_Symbol == "O") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /><span class='ufaq-toggle-symbol'>o O</span></div><br />
768
+ </div>
769
+ </div>
770
+ </div>
771
+ <div class='ufaq-subsection'>
772
+ <div class='ufaq-subsection-header'>Color Block Theme</div>
773
+ <div class='ufaq-subsection-content'>
774
+ <div class='ufaq-option ufaq-styling-option'>
775
+ <div class='ufaq-option-label'>Icon Background Color</div>
776
+ <div class='ufaq-color-option-input'><input type='text' class='ewd-ufaq-spectrum' name='ufaq_styling_default_bg_color' value='<?php echo $UFAQ_Styling_Default_Bg_Color; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
777
+ </div>
778
+ <div class='ufaq-option ufaq-styling-option'>
779
+ <div class='ufaq-option-label'>Icon Font Color</div>
780
+ <div class='ufaq-option-input'><input type='text' class='ewd-ufaq-spectrum' name='ufaq_styling_default_font_color' value='<?php echo $UFAQ_Styling_Default_Font_Color; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
781
+ </div>
782
+ <div class='ufaq-option ufaq-styling-option'>
783
+ <div class='ufaq-option-label'>Icon Border Color</div>
784
+ <div class='ufaq-option-input'><input type='text' name='ufaq_styling_default_border' value='<?php echo $UFAQ_Styling_Default_Border_Color; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
785
+ </div>
786
+ <div class='ufaq-option ufaq-styling-option'>
787
+ <div class='ufaq-option-label'>Icon Border Radius</div>
788
+ <div class='ufaq-option-input'><input type='text' name='ufaq_styling_default_border_radius' value='<?php echo $UFAQ_Styling_Default_Border_Radius; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
789
+ </div>
790
+ </div>
791
+ </div>
792
+ <div class='ufaq-subsection'>
793
+ <div class='ufaq-subsection-header'>Block Theme</div>
794
+ <div class='ufaq-subsection-content'>
795
+ <div class='ufaq-option ufaq-styling-option'>
796
+ <div class='ufaq-option-label'>Hover Background Color</div>
797
+ <div class='ufaq-option-input'><input type='text' class='ewd-ufaq-spectrum' name='ufaq_styling_block_bg_color' value='<?php echo $UFAQ_Styling_Block_Bg_Color; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
798
+ </div>
799
+ <div class='ufaq-option ufaq-styling-option'>
800
+ <div class='ufaq-option-label'>Hover Font Color</div>
801
+ <div class='ufaq-option-input'><input type='text' class='ewd-ufaq-spectrum' name='ufaq_styling_block_font_color' value='<?php echo $UFAQ_Styling_Block_Font_Color; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
802
+ </div>
803
+ </div>
804
+ </div>
805
+ <div class='ufaq-subsection'>
806
+ <div class='ufaq-subsection-header'>List Theme Anchors</div>
807
+ <div class='ufaq-subsection-content'>
808
+ <div class='ufaq-option ufaq-styling-option'>
809
+ <div class='ufaq-option-label'>Font Family</div>
810
+ <div class='ufaq-option-input'><input type='text' name='ufaq_styling_list_font' value='<?php echo $UFAQ_Styling_List_Font; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
811
+ </div>
812
+ <div class='ufaq-option ufaq-styling-option'>
813
+ <div class='ufaq-option-label'>Font Size</div>
814
+ <div class='ufaq-option-input'><input type='text' name='ufaq_styling_list_font_size' value='<?php echo $UFAQ_Styling_List_Font_Size; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
815
+ </div>
816
+ <div class='ufaq-option ufaq-styling-option'>
817
+ <div class='ufaq-option-label'>Font Color</div>
818
+ <div class='ufaq-option-input'><input type='text' class='ewd-ufaq-spectrum' name='ufaq_styling_list_font_color' value='<?php echo $UFAQ_Styling_List_Font_Color; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
819
+ </div>
820
+ <div class='ufaq-option ufaq-styling-option'>
821
+ <div class='ufaq-option-label'>Margin</div>
822
+ <div class='ufaq-option-input'><input type='text' name='ufaq_styling_list_margin' value='<?php echo $UFAQ_Styling_List_Margin; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
823
+ </div>
824
+ <div class='ufaq-option ufaq-styling-option'>
825
+ <div class='ufaq-option-label'>Padding</div>
826
+ <div class='ufaq-option-input'><input type='text' name='ufaq_styling_list_padding' value='<?php echo $UFAQ_Styling_List_Padding; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
827
+ </div>
828
+ </div>
829
+ </div>
830
+ <div class='ufaq-subsection'>
831
+ <div class='ufaq-subsection-header'>FAQ Question</div>
832
+ <div class='ufaq-subsection-content'>
833
+ <div class='ufaq-option ufaq-styling-option'>
834
+ <div class='ufaq-option-label'>Font Family</div>
835
+ <div class='ufaq-option-input'><input type='text' name='ufaq_styling_question_font' value='<?php echo $UFAQ_Styling_Question_Font; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
836
+ </div>
837
+ <div class='ufaq-option ufaq-styling-option'>
838
+ <div class='ufaq-option-label'>Font Size</div>
839
+ <div class='ufaq-option-input'><input type='text' name='ufaq_styling_question_font_size' value='<?php echo $UFAQ_Styling_Question_Font_Size; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
840
+ </div>
841
+ <div class='ufaq-option ufaq-styling-option'>
842
+ <div class='ufaq-option-label'>Font Color</div>
843
+ <div class='ufaq-option-input'><input type='text' class='ewd-ufaq-spectrum' name='ufaq_styling_question_font_color' value='<?php echo $UFAQ_Styling_Question_Font_Color; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
844
+ </div>
845
+ <div class='ufaq-option ufaq-styling-option'>
846
+ <div class='ufaq-option-label'>Margin</div>
847
+ <div class='ufaq-option-input'><input type='text' name='ufaq_styling_question_margin' value='<?php echo $UFAQ_Styling_Question_Margin; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
848
+ </div>
849
+ <div class='ufaq-option ufaq-styling-option'>
850
+ <div class='ufaq-option-label'>Padding</div>
851
+ <div class='ufaq-option-input'><input type='text' name='ufaq_styling_question_padding' value='<?php echo $UFAQ_Styling_Question_Padding; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
852
+ </div>
853
+ <div class='ufaq-option ufaq-styling-option'>
854
+ <div class='ufaq-option-label'>Toggle Symbol Top Margin</div>
855
+ <div class='ufaq-option-input'><input type='text' name='ufaq_styling_question_icon_top_margin' value='<?php echo $UFAQ_Styling_Question_Icon_Top_Margin; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
856
+ </div>
857
+ </div>
858
+ </div>
859
+ <div class='ufaq-subsection'>
860
+ <div class='ufaq-subsection-header'>FAQ Answer</div>
861
+ <div class='ufaq-subsection-content'>
862
+ <div class='ufaq-option ufaq-styling-option'>
863
+ <div class='ufaq-option-label'>Font Family</div>
864
+ <div class='ufaq-option-input'><input type='text' name='ufaq_styling_answer_font' value='<?php echo $UFAQ_Styling_Answer_Font; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
865
+ </div>
866
+ <div class='ufaq-option ufaq-styling-option'>
867
+ <div class='ufaq-option-label'>Font Size</div>
868
+ <div class='ufaq-option-input'><input type='text' name='ufaq_styling_answer_font_size' value='<?php echo $UFAQ_Styling_Answer_Font_Size; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
869
+ </div>
870
+ <div class='ufaq-option ufaq-styling-option'>
871
+ <div class='ufaq-option-label'>Font Color</div>
872
+ <div class='ufaq-option-input'><input type='text' class='ewd-ufaq-spectrum' name='ufaq_styling_answer_font_color' value='<?php echo $UFAQ_Styling_Answer_Font_Color; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
873
+ </div>
874
+ <div class='ufaq-option ufaq-styling-option'>
875
+ <div class='ufaq-option-label'>Margin</div>
876
+ <div class='ufaq-option-input'><input type='text' name='ufaq_styling_answer_margin' value='<?php echo $UFAQ_Styling_Answer_Margin; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
877
+ </div>
878
+ <div class='ufaq-option ufaq-styling-option'>
879
+ <div class='ufaq-option-label'>Padding</div>
880
+ <div class='ufaq-option-input'><input type='text' name='ufaq_styling_answer_padding' value='<?php echo $UFAQ_Styling_Answer_Padding; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
881
+ </div>
882
+ </div>
883
+ </div>
884
+ <div class='ufaq-subsection'>
885
+ <div class='ufaq-subsection-header'>FAQ Post Date</div>
886
+ <div class='ufaq-subsection-content'>
887
+ <div class='ufaq-option ufaq-styling-option'>
888
+ <div class='ufaq-option-label'>Font Family</div>
889
+ <div class='ufaq-option-input'><input type='text' name='ufaq_styling_postdate_font' value='<?php echo $UFAQ_Styling_Postdate_Font; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
890
+ </div>
891
+ <div class='ufaq-option ufaq-styling-option'>
892
+ <div class='ufaq-option-label'>Font Size</div>
893
+ <div class='ufaq-option-input'><input type='text' name='ufaq_styling_postdate_font_size' value='<?php echo $UFAQ_Styling_Postdate_Font_Size; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
894
+ </div>
895
+ <div class='ufaq-option ufaq-styling-option'>
896
+ <div class='ufaq-option-label'>Font Color</div>
897
+ <div class='ufaq-option-input'><input type='text' class='ewd-ufaq-spectrum' name='ufaq_styling_postdate_font_color' value='<?php echo $UFAQ_Styling_Postdate_Font_Color; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
898
+ </div>
899
+ <div class='ufaq-option ufaq-styling-option'>
900
+ <div class='ufaq-option-label'>Margin</div>
901
+ <div class='ufaq-option-input'><input type='text' name='ufaq_styling_postdate_margin' value='<?php echo $UFAQ_Styling_Postdate_Margin; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
902
+ </div>
903
+ <div class='ufaq-option ufaq-styling-option'>
904
+ <div class='ufaq-option-label'>Padding</div>
905
+ <div class='ufaq-option-input'><input type='text' name='ufaq_styling_postdate_padding' value='<?php echo $UFAQ_Styling_Postdate_Padding; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
906
+ </div>
907
+ </div>
908
+ </div>
909
+ <div class='ufaq-subsection'>
910
+ <div class='ufaq-subsection-header'>FAQ Category, Tags</div>
911
+ <div class='ufaq-subsection-content'>
912
+ <div class='ufaq-option ufaq-styling-option'>
913
+ <div class='ufaq-option-label'>Font Family</div>
914
+ <div class='ufaq-option-input'><input type='text' name='ufaq_styling_category_font' value='<?php echo $UFAQ_Styling_Category_Font; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
915
+ </div>
916
+ <div class='ufaq-option ufaq-styling-option'>
917
+ <div class='ufaq-option-label'>Font Size</div>
918
+ <div class='ufaq-option-input'><input type='text' name='ufaq_styling_category_font_size' value='<?php echo $UFAQ_Styling_Category_Font_Size; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
919
+ </div>
920
+ <div class='ufaq-option ufaq-styling-option'>
921
+ <div class='ufaq-option-label'>Font Color</div>
922
+ <div class='ufaq-option-input'><input type='text' class='ewd-ufaq-spectrum' name='ufaq_styling_category_font_color' value='<?php echo $UFAQ_Styling_Category_Font_Color; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
923
+ </div>
924
+ <div class='ufaq-option ufaq-styling-option'>
925
+ <div class='ufaq-option-label'>Margin</div>
926
+ <div class='ufaq-option-input'><input type='text' name='ufaq_styling_category_margin' value='<?php echo $UFAQ_Styling_Category_Margin; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
927
+ </div>
928
+ <div class='ufaq-option ufaq-styling-option'>
929
+ <div class='ufaq-option-label'>Padding</div>
930
+ <div class='ufaq-option-input'><input type='text' name='ufaq_styling_category_padding' value='<?php echo $UFAQ_Styling_Category_Padding; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
931
+ </div>
932
+ </div>
933
+ </div>
934
+ <div class='ufaq-subsection'>
935
+ <div class='ufaq-subsection-header'>FAQ Heading Types</div>
936
+ <div class='ufaq-subsection-content'>
937
+ <div class='ufaq-option ufaq-styling-option'>
938
+ <div class='ufaq-option-label'>Category Heading Type</div>
939
+ <div class='ufaq-option-input'>
940
+ <select name='ufaq_styling_category_heading_type' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> >
941
+ <option value='h1' <?php if ($UFAQ_Styling_Category_Heading_Type == 'h1') {echo "selected='selected'";} ?>>H1</option>
942
+ <option value='h2' <?php if ($UFAQ_Styling_Category_Heading_Type == 'h2') {echo "selected='selected'";} ?>>H2</option>
943
+ <option value='h3' <?php if ($UFAQ_Styling_Category_Heading_Type == 'h3') {echo "selected='selected'";} ?>>H3</option>
944
+ <option value='h4' <?php if ($UFAQ_Styling_Category_Heading_Type == 'h4') {echo "selected='selected'";} ?>>H4</option>
945
+ <option value='h5' <?php if ($UFAQ_Styling_Category_Heading_Type == 'h5') {echo "selected='selected'";} ?>>H5</option>
946
+ <option value='h6' <?php if ($UFAQ_Styling_Category_Heading_Type == 'h6') {echo "selected='selected'";} ?>>H6</option>
947
+ </select>
948
+ </div>
949
+ </div>
950
+ <div class='ufaq-option ufaq-styling-option'>
951
+ <div class='ufaq-option-label'>FAQ Heading Type</div>
952
+ <div class='ufaq-option-input'>
953
+ <select name='ufaq_styling_faq_heading_type' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> >
954
+ <option value='h1' <?php if ($UFAQ_Styling_FAQ_Heading_Type == 'h1') {echo "selected='selected'";} ?>>H1</option>
955
+ <option value='h2' <?php if ($UFAQ_Styling_FAQ_Heading_Type == 'h2') {echo "selected='selected'";} ?>>H2</option>
956
+ <option value='h3' <?php if ($UFAQ_Styling_FAQ_Heading_Type == 'h3') {echo "selected='selected'";} ?>>H3</option>
957
+ <option value='h4' <?php if ($UFAQ_Styling_FAQ_Heading_Type == 'h4') {echo "selected='selected'";} ?>>H4</option>
958
+ <option value='h5' <?php if ($UFAQ_Styling_FAQ_Heading_Type == 'h5') {echo "selected='selected'";} ?>>H5</option>
959
+ <option value='h6' <?php if ($UFAQ_Styling_FAQ_Heading_Type == 'h6') {echo "selected='selected'";} ?>>H6</option>
960
+ </select>
961
+ </div>
962
+ </div>
963
+ </div>
964
+ </div>
965
+
966
+ </div>
967
+ </div>
968
+
969
+ <p class="submit"><input type="submit" name="Options_Submit" id="submit" class="button button-primary" value="Save Changes" /></p></form>
970
+
971
+ <?php /* </div><!-- /.tabs-panel -->
972
+ </div><!-- /.posttypediv -->
973
+ </div>
974
+ </div>
975
+ </div>
976
+ </div><!-- col-right --> */ ?>
977
+ </div>
978
+ </div>
979
+
980
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
readme.txt CHANGED
@@ -210,8 +210,8 @@ Video 3 - FAQs Ordering
210
  9. All answers displayed in the 'list' FAQ mode
211
 
212
  == Changelog ==
213
- = 1.5.9 =
214
- - Added labelling options
215
 
216
  = 1.5.8 =
217
  - Added in a pre-built shortcode display on the edit FAQ page, to display a single FAQ
@@ -426,5 +426,3 @@ Video 3 - FAQs Ordering
426
 
427
  = 1.0.0 =
428
  - Premium version release, check out our website for all of the details <http://www.etoilewebdesign.com/ultimate-faq/>
429
-
430
-
210
  9. All answers displayed in the 'list' FAQ mode
211
 
212
  == Changelog ==
213
+ = 1.5.10 =
214
+ - Fixed an error where permalinks weren't displaying
215
 
216
  = 1.5.8 =
217
  - Added in a pre-built shortcode display on the edit FAQ page, to display a single FAQ
426
 
427
  = 1.0.0 =
428
  - Premium version release, check out our website for all of the details <http://www.etoilewebdesign.com/ultimate-faq/>