Version Description
- Added labelling options
Download this release
Release Info
Developer | Rustaurius |
Plugin | Ultimate FAQ |
Version | 1.5.9 |
Comparing to | |
See all releases |
Code changes from version 1.5.8 to 1.5.9
- Functions/Update_Admin_Databases.php +147 -143
- Main.php +1 -1
- Shortcodes/DisplayFAQs.php +484 -480
- Shortcodes/Display_FAQ_Search.php +63 -60
- html/OptionsPage.php +1006 -980
- readme.txt +5 -0
Functions/Update_Admin_Databases.php
CHANGED
@@ -1,143 +1,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['
|
85 |
-
if (isset($_POST['
|
86 |
-
if (isset($_POST['
|
87 |
-
|
88 |
-
if (isset($_POST['
|
89 |
-
if (isset($_POST['
|
90 |
-
|
91 |
-
if (isset($_POST['
|
92 |
-
if (isset($_POST['
|
93 |
-
if (isset($_POST['
|
94 |
-
if (isset($_POST['
|
95 |
-
if (isset($_POST['
|
96 |
-
if (isset($_POST['
|
97 |
-
|
98 |
-
if (isset($_POST['
|
99 |
-
if (isset($_POST['
|
100 |
-
if (isset($_POST['
|
101 |
-
|
102 |
-
if (isset($_POST['
|
103 |
-
if (isset($_POST['
|
104 |
-
if (isset($_POST['
|
105 |
-
if (isset($_POST['
|
106 |
-
if (isset($_POST['
|
107 |
-
if (isset($_POST['
|
108 |
-
if (isset($_POST['
|
109 |
-
|
110 |
-
if (isset($_POST['
|
111 |
-
if (isset($_POST['
|
112 |
-
if (isset($_POST['
|
113 |
-
|
114 |
-
if (isset($_POST['
|
115 |
-
if (isset($_POST['
|
116 |
-
if (isset($_POST['
|
117 |
-
if (isset($_POST['
|
118 |
-
if (isset($_POST['
|
119 |
-
if (isset($_POST['
|
120 |
-
if (isset($_POST['
|
121 |
-
if (isset($_POST['
|
122 |
-
if (isset($_POST['
|
123 |
-
if (isset($_POST['
|
124 |
-
if (isset($_POST['
|
125 |
-
if (isset($_POST['
|
126 |
-
if (isset($_POST['
|
127 |
-
if (isset($_POST['
|
128 |
-
if (isset($_POST['
|
129 |
-
if (isset($_POST['
|
130 |
-
if (isset($_POST['
|
131 |
-
|
132 |
-
if (isset($_POST['
|
133 |
-
if (isset($_POST['
|
134 |
-
if (isset($_POST['
|
135 |
-
|
136 |
-
if (isset($_POST['
|
137 |
-
|
138 |
-
if ($_POST['
|
139 |
-
|
140 |
-
}
|
141 |
-
|
142 |
-
|
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 |
+
?>
|
Main.php
CHANGED
@@ -7,7 +7,7 @@ Author: Etoile Web Design
|
|
7 |
Author URI: http://www.EtoileWebDesign.com/wordpress-plugins/
|
8 |
Terms and Conditions: http://www.etoilewebdesign.com/plugin-terms-and-conditions/
|
9 |
Text Domain: EWD_UFAQ
|
10 |
-
Version: 1.5.
|
11 |
*/
|
12 |
|
13 |
global $ewd_ufaq_message;
|
7 |
Author URI: http://www.EtoileWebDesign.com/wordpress-plugins/
|
8 |
Terms and Conditions: http://www.etoilewebdesign.com/plugin-terms-and-conditions/
|
9 |
Text Domain: EWD_UFAQ
|
10 |
+
Version: 1.5.9
|
11 |
*/
|
12 |
|
13 |
global $ewd_ufaq_message;
|
Shortcodes/DisplayFAQs.php
CHANGED
@@ -1,480 +1,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_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 |
-
|
60 |
-
$
|
61 |
-
$
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
$
|
72 |
-
|
73 |
-
$
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
'
|
82 |
-
'
|
83 |
-
'
|
84 |
-
'
|
85 |
-
'
|
86 |
-
'
|
87 |
-
'
|
88 |
-
'
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
if ($
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
}
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
}
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
if ($
|
117 |
-
|
118 |
-
}
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
if (
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
$ReturnString .= "<script>var Display_FAQ_ID = '" . $
|
180 |
-
$Display_FAQ_ID = $
|
181 |
-
}
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
if ($
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
$ReturnString .= "var
|
193 |
-
$ReturnString .= "
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
$
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
$
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
'
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
if ($
|
230 |
-
$
|
231 |
-
|
232 |
-
if ($
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
$ReturnString .= "<
|
238 |
-
$ReturnString .= "
|
239 |
-
$ReturnString .= "
|
240 |
-
|
241 |
-
$ReturnString .= "
|
242 |
-
|
243 |
-
$
|
244 |
-
$
|
245 |
-
$
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
}
|
261 |
-
|
262 |
-
|
263 |
-
$
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
$
|
273 |
-
|
274 |
-
$ReturnString .= "' id='ufaq-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
$ReturnString .= "
|
279 |
-
$ReturnString .= "
|
280 |
-
|
281 |
-
|
282 |
-
$ReturnString .= "<div class='ufaq-faq-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
$ReturnString .= "
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
$ReturnString .= "</div>";
|
308 |
-
$ReturnString .= "<div class='
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
$ReturnString .= "
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
if ($
|
323 |
-
else {$
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
$ReturnString .= "
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
if ($
|
338 |
-
else {$
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
$
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
$
|
352 |
-
$
|
353 |
-
$
|
354 |
-
|
355 |
-
$ReturnString .= "<div class='ewd-ufaq-
|
356 |
-
$ReturnString .= "<div class='ewd-ufaq-
|
357 |
-
$ReturnString .=
|
358 |
-
$ReturnString .= "
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
$ReturnString .= "<div class='ufaq-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
if(in_array("
|
370 |
-
if(in_array("
|
371 |
-
if
|
372 |
-
|
373 |
-
|
374 |
-
}
|
375 |
-
|
376 |
-
|
377 |
-
$ReturnString .= "
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
$ReturnString .= "
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
$ReturnString .= "
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
-
$
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
}
|
417 |
-
|
418 |
-
$
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
}
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
}
|
460 |
-
|
461 |
-
|
462 |
-
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
}
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
|
480 |
-
|
|
|
|
|
|
|
|
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("[", "]"), 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'> ";
|
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 |
+
}
|
Shortcodes/Display_FAQ_Search.php
CHANGED
@@ -1,60 +1,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 |
-
|
21 |
-
|
22 |
-
$
|
23 |
-
|
24 |
-
|
25 |
-
$
|
26 |
-
$
|
27 |
-
|
28 |
-
$ReturnString .= "
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
$ReturnString .=
|
35 |
-
$ReturnString .= "
|
36 |
-
$ReturnString .= "
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
$ReturnString .= "<
|
43 |
-
$ReturnString .= "<input type='hidden' name'
|
44 |
-
$ReturnString .= "<
|
45 |
-
$ReturnString .= "<
|
46 |
-
$ReturnString .= "<input type='hidden' name'
|
47 |
-
$ReturnString .= "<input type='hidden' name'
|
48 |
-
$ReturnString .= "<input type='
|
49 |
-
$ReturnString .= "
|
50 |
-
|
51 |
-
$ReturnString .= "
|
52 |
-
|
53 |
-
$ReturnString .= "<
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
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 |
+
?>
|
html/OptionsPage.php
CHANGED
@@ -1,980 +1,1006 @@
|
|
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 |
-
$
|
48 |
-
$
|
49 |
-
$
|
50 |
-
|
51 |
-
$
|
52 |
-
$
|
53 |
-
$
|
54 |
-
|
55 |
-
$
|
56 |
-
$
|
57 |
-
$
|
58 |
-
$
|
59 |
-
$
|
60 |
-
$
|
61 |
-
|
62 |
-
$
|
63 |
-
$
|
64 |
-
$
|
65 |
-
|
66 |
-
$
|
67 |
-
$
|
68 |
-
$
|
69 |
-
$
|
70 |
-
$
|
71 |
-
$
|
72 |
-
$
|
73 |
-
|
74 |
-
$
|
75 |
-
$
|
76 |
-
$
|
77 |
-
|
78 |
-
$
|
79 |
-
$
|
80 |
-
$
|
81 |
-
$
|
82 |
-
$
|
83 |
-
$
|
84 |
-
$
|
85 |
-
$
|
86 |
-
$
|
87 |
-
$
|
88 |
-
$
|
89 |
-
$
|
90 |
-
$
|
91 |
-
$
|
92 |
-
$
|
93 |
-
$
|
94 |
-
$
|
95 |
-
|
96 |
-
$
|
97 |
-
$
|
98 |
-
$
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
<li><a id="
|
110 |
-
<li><a id="
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
<
|
120 |
-
|
121 |
-
<
|
122 |
-
<
|
123 |
-
<
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
</
|
129 |
-
|
130 |
-
<
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
</
|
139 |
-
</
|
140 |
-
<
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
</
|
149 |
-
</
|
150 |
-
<
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
</
|
159 |
-
</
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
</
|
170 |
-
</
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
</
|
181 |
-
</
|
182 |
-
<
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
</
|
191 |
-
</
|
192 |
-
<
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
</
|
201 |
-
</
|
202 |
-
<
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
</
|
211 |
-
</
|
212 |
-
<
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
</
|
221 |
-
</
|
222 |
-
<
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
</
|
231 |
-
</
|
232 |
-
<
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
</
|
241 |
-
</
|
242 |
-
<
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
</
|
251 |
-
</
|
252 |
-
<
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
</
|
261 |
-
</
|
262 |
-
<
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
</
|
271 |
-
</
|
272 |
-
|
273 |
-
</
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
<
|
280 |
-
<
|
281 |
-
<
|
282 |
-
<
|
283 |
-
<
|
284 |
-
<
|
285 |
-
<
|
286 |
-
<label title='
|
287 |
-
<label title='
|
288 |
-
<
|
289 |
-
</
|
290 |
-
</
|
291 |
-
</
|
292 |
-
<
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
</
|
301 |
-
</
|
302 |
-
<
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
</
|
311 |
-
</
|
312 |
-
<
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
</
|
321 |
-
</
|
322 |
-
<
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
</
|
331 |
-
</
|
332 |
-
<
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
<option value="
|
344 |
-
|
345 |
-
<option value="
|
346 |
-
<option value="
|
347 |
-
<option value="
|
348 |
-
<option value="
|
349 |
-
<option value="
|
350 |
-
<option value="
|
351 |
-
<option value="
|
352 |
-
<option value="
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
</
|
358 |
-
|
359 |
-
<
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
</
|
368 |
-
</
|
369 |
-
<
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
</
|
378 |
-
</
|
379 |
-
<
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
</
|
388 |
-
</
|
389 |
-
<
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
</
|
398 |
-
</
|
399 |
-
<
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
</
|
407 |
-
|
408 |
-
<
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
<label title='
|
417 |
-
<label title='
|
418 |
-
<
|
419 |
-
|
420 |
-
</
|
421 |
-
</
|
422 |
-
</
|
423 |
-
</
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
<
|
430 |
-
<
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
</
|
437 |
-
</
|
438 |
-
<
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
</
|
453 |
-
|
454 |
-
<
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
|
462 |
-
</
|
463 |
-
</
|
464 |
-
<
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
</
|
480 |
-
|
481 |
-
<
|
482 |
-
|
483 |
-
|
484 |
-
|
485 |
-
|
486 |
-
|
487 |
-
|
488 |
-
|
489 |
-
</
|
490 |
-
</
|
491 |
-
|
492 |
-
|
493 |
-
|
494 |
-
|
495 |
-
|
496 |
-
|
497 |
-
|
498 |
-
|
499 |
-
|
500 |
-
|
501 |
-
|
502 |
-
|
503 |
-
|
504 |
-
|
505 |
-
<div
|
506 |
-
|
507 |
-
<
|
508 |
-
|
509 |
-
|
510 |
-
|
511 |
-
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
-
|
516 |
-
|
517 |
-
|
518 |
-
|
519 |
-
|
520 |
-
|
521 |
-
|
522 |
-
|
523 |
-
'
|
524 |
-
|
525 |
-
|
526 |
-
|
527 |
-
|
528 |
-
|
529 |
-
|
530 |
-
|
531 |
-
|
532 |
-
|
533 |
-
|
534 |
-
|
535 |
-
|
536 |
-
|
537 |
-
|
538 |
-
|
539 |
-
|
540 |
-
|
541 |
-
|
542 |
-
|
543 |
-
|
544 |
-
|
545 |
-
|
546 |
-
|
547 |
-
|
548 |
-
|
549 |
-
|
550 |
-
|
551 |
-
|
552 |
-
|
553 |
-
</
|
554 |
-
</div>
|
555 |
-
|
556 |
-
|
557 |
-
|
558 |
-
|
559 |
-
|
560 |
-
|
561 |
-
|
562 |
-
|
563 |
-
|
564 |
-
|
565 |
-
|
566 |
-
|
567 |
-
|
568 |
-
|
569 |
-
|
570 |
-
|
571 |
-
|
572 |
-
|
573 |
-
|
574 |
-
|
575 |
-
|
576 |
-
|
577 |
-
|
578 |
-
|
579 |
-
<
|
580 |
-
<
|
581 |
-
<
|
582 |
-
<
|
583 |
-
<option value='
|
584 |
-
<option value='
|
585 |
-
<option value='
|
586 |
-
<option value='
|
587 |
-
<?php echo "</
|
588 |
-
|
589 |
-
echo "</
|
590 |
-
$
|
591 |
-
|
592 |
-
|
593 |
-
|
594 |
-
|
595 |
-
|
596 |
-
|
597 |
-
|
598 |
-
|
599 |
-
|
600 |
-
|
601 |
-
|
602 |
-
|
603 |
-
|
604 |
-
|
605 |
-
|
606 |
-
|
607 |
-
|
608 |
-
|
609 |
-
|
610 |
-
|
611 |
-
|
612 |
-
|
613 |
-
</
|
614 |
-
|
615 |
-
|
616 |
-
|
617 |
-
|
618 |
-
|
619 |
-
|
620 |
-
|
621 |
-
|
622 |
-
|
623 |
-
|
624 |
-
|
625 |
-
|
626 |
-
|
627 |
-
|
628 |
-
|
629 |
-
|
630 |
-
|
631 |
-
|
632 |
-
|
633 |
-
|
634 |
-
|
635 |
-
|
636 |
-
|
637 |
-
|
638 |
-
|
639 |
-
|
640 |
-
|
641 |
-
|
642 |
-
|
643 |
-
|
644 |
-
|
645 |
-
|
646 |
-
|
647 |
-
|
648 |
-
|
649 |
-
|
650 |
-
|
651 |
-
|
652 |
-
|
653 |
-
|
654 |
-
|
655 |
-
|
656 |
-
|
657 |
-
|
658 |
-
|
659 |
-
|
660 |
-
|
661 |
-
|
662 |
-
|
663 |
-
|
664 |
-
|
665 |
-
|
666 |
-
|
667 |
-
|
668 |
-
|
669 |
-
|
670 |
-
|
671 |
-
|
672 |
-
|
673 |
-
|
674 |
-
|
675 |
-
|
676 |
-
|
677 |
-
|
678 |
-
|
679 |
-
|
680 |
-
|
681 |
-
|
682 |
-
<?php _e("
|
683 |
-
<fieldset>
|
684 |
-
<input type='text' name='
|
685 |
-
</fieldset>
|
686 |
-
</div>
|
687 |
-
<div class='ufaq-option ufaq-label-option'>
|
688 |
-
<?php _e("
|
689 |
-
<fieldset>
|
690 |
-
<input type='text' name='
|
691 |
-
</fieldset>
|
692 |
-
</div>
|
693 |
-
<div class='ufaq-option ufaq-label-option'>
|
694 |
-
<?php _e("
|
695 |
-
<fieldset>
|
696 |
-
<input type='text' name='
|
697 |
-
</fieldset>
|
698 |
-
</div>
|
699 |
-
<div class='ufaq-option ufaq-label-option'>
|
700 |
-
<?php _e("
|
701 |
-
<fieldset>
|
702 |
-
<input type='text' name='
|
703 |
-
</fieldset>
|
704 |
-
</div>
|
705 |
-
|
706 |
-
|
707 |
-
|
708 |
-
|
709 |
-
|
710 |
-
|
711 |
-
|
712 |
-
|
713 |
-
|
714 |
-
|
715 |
-
|
716 |
-
|
717 |
-
|
718 |
-
|
719 |
-
|
720 |
-
|
721 |
-
|
722 |
-
|
723 |
-
|
724 |
-
|
725 |
-
|
726 |
-
|
727 |
-
|
728 |
-
|
729 |
-
|
730 |
-
|
731 |
-
|
732 |
-
|
733 |
-
|
734 |
-
|
735 |
-
|
736 |
-
|
737 |
-
|
738 |
-
|
739 |
-
|
740 |
-
|
741 |
-
|
742 |
-
|
743 |
-
|
744 |
-
</div>
|
745 |
-
<div
|
746 |
-
|
747 |
-
|
748 |
-
<
|
749 |
-
|
750 |
-
|
751 |
-
|
752 |
-
|
753 |
-
|
754 |
-
|
755 |
-
|
756 |
-
|
757 |
-
<div class='ufaq-option
|
758 |
-
|
759 |
-
|
760 |
-
|
761 |
-
|
762 |
-
|
763 |
-
<div class='ufaq-option
|
764 |
-
|
765 |
-
|
766 |
-
|
767 |
-
|
768 |
-
|
769 |
-
|
770 |
-
|
771 |
-
|
772 |
-
|
773 |
-
|
774 |
-
|
775 |
-
|
776 |
-
|
777 |
-
|
778 |
-
|
779 |
-
|
780 |
-
|
781 |
-
|
782 |
-
|
783 |
-
<div class='ufaq-option-
|
784 |
-
<div class='ufaq-option-
|
785 |
-
|
786 |
-
|
787 |
-
<div class='ufaq-option-
|
788 |
-
<div class='ufaq-option-
|
789 |
-
|
790 |
-
|
791 |
-
|
792 |
-
|
793 |
-
|
794 |
-
|
795 |
-
|
796 |
-
|
797 |
-
|
798 |
-
|
799 |
-
|
800 |
-
|
801 |
-
|
802 |
-
|
803 |
-
|
804 |
-
|
805 |
-
|
806 |
-
|
807 |
-
|
808 |
-
|
809 |
-
|
810 |
-
|
811 |
-
|
812 |
-
|
813 |
-
|
814 |
-
|
815 |
-
|
816 |
-
|
817 |
-
|
818 |
-
|
819 |
-
|
820 |
-
|
821 |
-
|
822 |
-
|
823 |
-
|
824 |
-
|
825 |
-
<div class='ufaq-option-
|
826 |
-
|
827 |
-
|
828 |
-
|
829 |
-
|
830 |
-
|
831 |
-
|
832 |
-
|
833 |
-
|
834 |
-
|
835 |
-
|
836 |
-
|
837 |
-
|
838 |
-
<div class='ufaq-option-
|
839 |
-
|
840 |
-
|
841 |
-
|
842 |
-
<div class='ufaq-option-
|
843 |
-
|
844 |
-
|
845 |
-
|
846 |
-
<div class='ufaq-option-
|
847 |
-
|
848 |
-
|
849 |
-
|
850 |
-
<div class='ufaq-option-
|
851 |
-
|
852 |
-
|
853 |
-
|
854 |
-
<div class='ufaq-option-
|
855 |
-
|
856 |
-
|
857 |
-
|
858 |
-
|
859 |
-
|
860 |
-
|
861 |
-
<div class='ufaq-
|
862 |
-
|
863 |
-
<div class='ufaq-option-
|
864 |
-
|
865 |
-
|
866 |
-
|
867 |
-
<div class='ufaq-option-
|
868 |
-
|
869 |
-
|
870 |
-
|
871 |
-
<div class='ufaq-option-
|
872 |
-
|
873 |
-
|
874 |
-
|
875 |
-
<div class='ufaq-option-
|
876 |
-
|
877 |
-
|
878 |
-
|
879 |
-
<div class='ufaq-option-
|
880 |
-
|
881 |
-
|
882 |
-
|
883 |
-
|
884 |
-
|
885 |
-
|
886 |
-
|
887 |
-
|
888 |
-
|
889 |
-
|
890 |
-
|
891 |
-
|
892 |
-
<div class='ufaq-option-
|
893 |
-
|
894 |
-
|
895 |
-
|
896 |
-
<div class='ufaq-option-
|
897 |
-
|
898 |
-
|
899 |
-
|
900 |
-
<div class='ufaq-option-
|
901 |
-
|
902 |
-
|
903 |
-
|
904 |
-
<div class='ufaq-option-
|
905 |
-
|
906 |
-
|
907 |
-
|
908 |
-
|
909 |
-
|
910 |
-
|
911 |
-
|
912 |
-
|
913 |
-
|
914 |
-
|
915 |
-
|
916 |
-
|
917 |
-
<div class='ufaq-option-
|
918 |
-
|
919 |
-
|
920 |
-
|
921 |
-
<div class='ufaq-option-
|
922 |
-
|
923 |
-
|
924 |
-
|
925 |
-
<div class='ufaq-option-
|
926 |
-
|
927 |
-
|
928 |
-
|
929 |
-
<div class='ufaq-option-
|
930 |
-
|
931 |
-
|
932 |
-
|
933 |
-
|
934 |
-
|
935 |
-
|
936 |
-
|
937 |
-
|
938 |
-
|
939 |
-
|
940 |
-
|
941 |
-
|
942 |
-
|
943 |
-
|
944 |
-
|
945 |
-
|
946 |
-
|
947 |
-
|
948 |
-
|
949 |
-
|
950 |
-
|
951 |
-
|
952 |
-
|
953 |
-
|
954 |
-
|
955 |
-
|
956 |
-
|
957 |
-
|
958 |
-
|
959 |
-
|
960 |
-
|
961 |
-
|
962 |
-
|
963 |
-
</div>
|
964 |
-
|
965 |
-
|
966 |
-
</div>
|
967 |
-
|
968 |
-
|
969 |
-
<
|
970 |
-
|
971 |
-
|
972 |
-
|
973 |
-
|
974 |
-
|
975 |
-
|
976 |
-
|
977 |
-
</div>
|
978 |
-
|
979 |
-
|
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>
|
readme.txt
CHANGED
@@ -210,6 +210,9 @@ Video 3 - FAQs Ordering
|
|
210 |
9. All answers displayed in the 'list' FAQ mode
|
211 |
|
212 |
== Changelog ==
|
|
|
|
|
|
|
213 |
= 1.5.8 =
|
214 |
- Added in a pre-built shortcode display on the edit FAQ page, to display a single FAQ
|
215 |
- Fixed an error where the upgrade box was displayed on multiplate tabs
|
@@ -423,3 +426,5 @@ Video 3 - FAQs Ordering
|
|
423 |
|
424 |
= 1.0.0 =
|
425 |
- Premium version release, check out our website for all of the details <http://www.etoilewebdesign.com/ultimate-faq/>
|
|
|
|
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
|
218 |
- Fixed an error where the upgrade box was displayed on multiplate tabs
|
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 |
+
|