Ultimate FAQ - Version 1.5.22

Version Description

  • Small admin CSS and typo correction in relation to previous update
Download this release

Release Info

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

Code changes from version 1.5.21 to 1.5.22

Files changed (4) hide show
  1. Main.php +344 -344
  2. css/Admin.css +7 -18
  3. html/OptionsPage.php +1044 -1045
  4. readme.txt +506 -503
Main.php CHANGED
@@ -1,344 +1,344 @@
1
- <?php
2
- /*
3
- Plugin Name: FAQ
4
- Plugin URI: http://www.EtoileWebDesign.com/wordpress-plugins/
5
- Description: A plugin that lets you create FAQs (frequently asked questions), organize them, publicize them, etc.
6
- 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.21
11
- */
12
-
13
- global $ewd_ufaq_message;
14
- global $UFAQ_Full_Version;
15
- global $EWD_UFAQ_Version;
16
-
17
- $EWD_UFAQ_Version = '1.5.11';
18
-
19
- define( 'EWD_UFAQ_CD_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );
20
- define( 'EWD_UFAQ_CD_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
21
-
22
- //define('WP_DEBUG', true);
23
-
24
- register_activation_hook(__FILE__,'Set_EWD_UFAQ_Options');
25
- register_activation_hook(__FILE__,'Run_UFAQ_Tutorial');
26
- add_filter('upgrader_post_install', 'Set_EWD_UFAQ_Options');
27
-
28
- /* Hooks neccessary admin tasks */
29
- if ( is_admin() ){
30
- add_action('widgets_init', 'Update_EWD_UFAQ_Content');
31
- add_action('admin_notices', 'EWD_UFAQ_Error_Notices');
32
- add_action('admin_enqueue_scripts', 'Add_EWD_UFAQ_Scripts', 10, 1);
33
- add_action('admin_head', 'EWD_UFAQ_Admin_Options');
34
- }
35
-
36
- function EWD_UFAQ_Enable_Sub_Menu() {
37
- global $submenu;
38
-
39
- $Admin_Approval = get_option("EWD_UFAQ_Admin_Approval");
40
-
41
- remove_menu_page('edit.php?post_type=ufaq');
42
-
43
- add_menu_page( 'Ultimate FAQs', 'FAQs', 'edit_posts', 'EWD-UFAQ-Options', 'EWD_UFAQ_Output_Pages', null, '49.1' );
44
- add_submenu_page('EWD-UFAQ-Options', 'FAQ Options', 'FAQ Settings', 'edit_posts', 'EWD-UFAQ-Options&DisplayPage=Options', 'EWD_UFAQ_Output_Pages');
45
- if ($Admin_Approval == "Yes") {
46
- $submenu['EWD-UFAQ-Options'][6] = $submenu['EWD-UFAQ-Options'][1];
47
- $submenu['EWD-UFAQ-Options'][1] = array( 'Approved FAQs', 'edit_posts', "edit.php?post_type=ufaq&post_status=publish", "Approved FAQs" );
48
- $submenu['EWD-UFAQ-Options'][2] = array( 'Awaiting Approval', 'edit_posts', "edit.php?post_type=ufaq&post_status=draft", "Awaiting Approval" );
49
- $submenu['EWD-UFAQ-Options'][3] = array( 'Add New', 'edit_posts', "post-new.php?post_type=ufaq", "Add New" );
50
- $submenu['EWD-UFAQ-Options'][4] = array( 'FAQ Categories', 'manage_categories', "edit-tags.php?taxonomy=ufaq-category&post_type=ufaq", "FAQ Categories" );
51
- $submenu['EWD-UFAQ-Options'][5] = array( 'FAQ Tags', 'manage_categories', "edit-tags.php?taxonomy=ufaq-tag&post_type=ufaq", "FAQ Tags" );
52
- }
53
- else {
54
- $submenu['EWD-UFAQ-Options'][5] = $submenu['EWD-UFAQ-Options'][1];
55
- $submenu['EWD-UFAQ-Options'][1] = array( 'FAQs', 'edit_posts', "edit.php?post_type=ufaq", "FAQs" );
56
- $submenu['EWD-UFAQ-Options'][2] = array( 'Add New', 'edit_posts', "post-new.php?post_type=ufaq", "Add New" );
57
- $submenu['EWD-UFAQ-Options'][3] = array( 'FAQ Categories', 'manage_categories', "edit-tags.php?taxonomy=ufaq-category&post_type=ufaq", "FAQ Categories" );
58
- $submenu['EWD-UFAQ-Options'][4] = array( 'FAQ Tags', 'manage_categories', "edit-tags.php?taxonomy=ufaq-tag&post_type=ufaq", "FAQ Tags" );
59
- }
60
- add_submenu_page('EWD-UFAQ-Options', 'FAQ Export', 'FAQ Export', 'edit_posts', 'EWD-UFAQ-Options&DisplayPage=Export', 'EWD_UFAQ_Output_Pages');
61
- add_submenu_page('EWD-UFAQ-Options', 'FAQ Import', 'FAQ Import', 'edit_posts', 'EWD-UFAQ-Options&DisplayPage=ImportPosts', 'EWD_UFAQ_Output_Pages');
62
-
63
- $submenu['EWD-UFAQ-Options'][0][0] = "Dashboard";
64
- ksort($submenu['EWD-UFAQ-Options']);
65
- }
66
- add_action('admin_menu' , 'EWD_UFAQ_Enable_Sub_Menu', 1);
67
-
68
- function EWD_UFAQ_Add_Header_Bar($Called = "No") {
69
- global $pagenow;
70
-
71
- if ($Called != "Yes" and (!isset($_GET['post_type']) or $_GET['post_type'] != "ufaq")) {return;}
72
-
73
- $Admin_Approval = get_option("EWD_UFAQ_Admin_Approval"); ?>
74
-
75
- <div class="EWD_UFAQ_Menu">
76
- <h2 class="nav-tab-wrapper">
77
- <a id="Dashboard_Menu" href='admin.php?page=EWD-UFAQ-Options' class="MenuTab nav-tab <?php if (!isset($_GET['post_type']) and ($_GET['DisplayPage'] == '' or $_GET['DisplayPage'] == 'Dashboard')) {echo 'nav-tab-active';}?>"><?php _e("Dashboard", "EWD_UFAQ"); ?></a>
78
- <?php if ($Admin_Approval == "Yes") { ?>
79
- <a id="Approved_FAQs_Menu" href='edit.php?post_type=ufaq&post_status=publish' class="MenuTab nav-tab <?php if (isset($_GET['post_type']) and $_GET['post_type'] == 'ufaq' and $pagenow == 'edit.php' and (!isset($_GET['post_status']) or $_GET['post_status'] == 'publish')) {echo 'nav-tab-active';}?>"><?php _e("Approved FAQs", "EWD_UFAQ"); ?></a>
80
- <a id="FAQs_Awaiting_Approval_Menu" href='edit.php?post_type=ufaq&post_status=draft' class="MenuTab nav-tab <?php if (isset($_GET['post_type']) and $_GET['post_type'] == 'ufaq' and $pagenow == 'edit.php' and $_GET['post_status'] == 'draft') {echo 'nav-tab-active';}?>"><?php _e("Awaiting Approval", "EWD_UFAQ"); ?></a>
81
- <?php } else { ?>
82
- <a id="FAQs_Menu" href='edit.php?post_type=ufaq' class="MenuTab nav-tab <?php if (isset($_GET['post_type']) and $_GET['post_type'] == 'ufaq' and $pagenow == 'edit.php') {echo 'nav-tab-active';}?>"><?php _e("FAQs", "EWD_UFAQ"); ?></a>
83
- <?php } ?>
84
- <a id="Add_New_Menu" href='post-new.php?post_type=ufaq' class="MenuTab nav-tab <?php if (isset($_GET['post_type']) and $_GET['post_type'] == 'ufaq' and $pagenow == 'post-new.php') {echo 'nav-tab-active';}?>"><?php _e("Add New", "EWD_UFAQ"); ?></a>
85
- <a id="FAQ_Categories_Menu" href='edit-tags.php?taxonomy=ufaq-category&post_type=ufaq' class="MenuTab nav-tab <?php if (isset($_GET['post_type']) and $_GET['post_type'] == 'ufaq' and $pagenow == 'edit-tags.php' and $_GET['taxonomy'] == "ufaq-category") {echo 'nav-tab-active';}?>"><?php _e("Categories", "EWD_UFAQ"); ?></a>
86
- <a id="FAQ_Categories_Menu" href='edit-tags.php?taxonomy=ufaq-tag&post_type=ufaq' class="MenuTab nav-tab <?php if (isset($_GET['post_type']) and $_GET['post_type'] == 'ufaq' and $pagenow == 'edit-tags.php' and $_GET['taxonomy'] == "ufaq-tag") {echo 'nav-tab-active';}?>"><?php _e("Tags", "EWD_UFAQ"); ?></a>
87
- <a id="Options_Menu" href='admin.php?page=EWD-UFAQ-Options&DisplayPage=Options' class="MenuTab nav-tab <?php if (!isset($_GET['post_type']) and $_GET['DisplayPage'] == 'Options') {echo 'nav-tab-active';}?>"><?php _e("Settings", "EWD_UFAQ"); ?></a>
88
- <a id="WooCommerce_Import_Menu" href='admin.php?page=EWD-UFAQ-Options&DisplayPage=Export' class="MenuTab nav-tab <?php if (!isset($_GET['post_type']) and $_GET['DisplayPage'] == 'Export') {echo 'nav-tab-active';}?>"><?php _e("Export", "EWD_UFAQ"); ?></a>
89
- <a id="WooCommerce_Import_Menu" href='admin.php?page=EWD-UFAQ-Options&DisplayPage=ImportPosts' class="MenuTab nav-tab <?php if (!isset($_GET['post_type']) and $_GET['DisplayPage'] == 'ImportPosts') {echo 'nav-tab-active';}?>"><?php _e("Import", "EWD_UFAQ"); ?></a>
90
- </h2>
91
- </div>
92
- <?php }
93
- add_action('admin_notices', 'EWD_UFAQ_Add_Header_Bar');
94
-
95
- /* Add localization support */
96
- function EWD_UFAQ_localization_setup() {
97
- load_plugin_textdomain('EWD_UFAQ', false, dirname(plugin_basename(__FILE__)) . '/lang/');
98
- }
99
- add_action('after_setup_theme', 'EWD_UFAQ_localization_setup');
100
-
101
- // Add settings link on plugin page
102
- function EWD_UFAQ_plugin_settings_link($links) {
103
- $settings_link = '<a href="admin.php?page=EWD-UFAQ-Options">Settings</a>';
104
- array_unshift($links, $settings_link);
105
- return $links;
106
- }
107
- $plugin = plugin_basename(__FILE__);
108
- add_filter("plugin_action_links_$plugin", 'EWD_UFAQ_plugin_settings_link' );
109
-
110
- function Add_EWD_UFAQ_Scripts($hook) {
111
- global $post;
112
-
113
- if ((isset($_GET['post_type']) && $_GET['post_type'] == 'ufaq') or
114
- (isset($_GET['page']) && $_GET['page'] == 'EWD-UFAQ-Options')) {
115
- $url_one = plugins_url("ultimate-faqs/js/sorttable.js");
116
- $url_two = plugins_url("ultimate-faqs/js/Admin.js");
117
- $url_three = plugins_url("ultimate-faqs/js/spectrum.js");
118
-
119
- wp_enqueue_script('jquery-ui-sortable');
120
- wp_enqueue_script('sortable', $url_one, array('jquery'));
121
- wp_enqueue_script('UFAQ Admin', $url_two, array('jquery'));
122
- wp_enqueue_script('spectrum', $url_three, array('jquery'));
123
- }
124
-
125
- if ($hook == 'edit.php' or $hook == 'post-new.php' or $hook == 'post.php') {
126
- if ($post->post_type == 'product') {
127
- wp_enqueue_script('ewd-ufaq-wc-admin', plugins_url("js/ewd-ufaq-wc-admin.js", __FILE__, array('jquery')));
128
- }
129
- }
130
- }
131
-
132
- function EWD_UFAQ_Admin_Options() {
133
- wp_enqueue_style( 'ewd-ufaq-admin', plugins_url("ultimate-faqs/css/Admin.css"));
134
- wp_enqueue_style( 'ewd-ufaq-spectrum', plugins_url("ultimate-faqs/css/spectrum.css"));
135
- }
136
-
137
- add_action( 'wp_enqueue_scripts', 'Add_EWD_UFAQ_FrontEnd_Scripts' );
138
- function Add_EWD_UFAQ_FrontEnd_Scripts() {
139
- wp_enqueue_script('ewd-ufaq-js', plugins_url( '/js/ewd-ufaq-js.js' , __FILE__ ), array( 'jquery' ));
140
-
141
- $Retrieving_Results = get_option("EWD_UFAQ_Retrieving_Results");
142
- if ($Retrieving_Results == "") {$Retrieving_Results = __("Retrieving Results", 'EWD_UFAQ') . "...";}
143
-
144
- $ewd_ufaq_php_data = array(
145
- 'retrieving_results' => $Retrieving_Results
146
- );
147
-
148
- wp_localize_script('ewd-ufaq-js', 'ewd_ufaq_php_data', $ewd_ufaq_php_data );
149
-
150
- wp_enqueue_script("jquery-ui-core");
151
- wp_enqueue_script("jquery-effects-core");
152
- wp_enqueue_script('jquery-ui-autocomplete');
153
-
154
- wp_enqueue_script("jquery-effects-blind");
155
- wp_enqueue_script("jquery-effects-bounce");
156
- wp_enqueue_script("jquery-effects-clip");
157
- wp_enqueue_script("jquery-effects-drop");
158
- wp_enqueue_script("jquery-effects-explode");
159
- wp_enqueue_script("jquery-effects-fade");
160
- wp_enqueue_script("jquery-effects-fold");
161
- wp_enqueue_script("jquery-effects-highlight");
162
- wp_enqueue_script("jquery-effects-pulsate");
163
- wp_enqueue_script("jquery-effects-scale");
164
- wp_enqueue_script("jquery-effects-shake");
165
- wp_enqueue_script("jquery-effects-slide");
166
- wp_enqueue_script("jquery-effects-transfer");
167
- }
168
-
169
-
170
- add_action( 'wp_enqueue_scripts', 'EWD_UFAQ_Add_Stylesheet' );
171
- function EWD_UFAQ_Add_Stylesheet() {
172
- wp_register_style( 'ewd-ufaq-style', plugins_url('css/ewd-ufaq-styles.css', __FILE__) );
173
- wp_enqueue_style( 'ewd-ufaq-style' );
174
-
175
- wp_register_style( 'ewd-ufaq-rrssb', plugins_url('css/rrssb-min.css', __FILE__) );
176
- wp_enqueue_style( 'ewd-ufaq-rrssb' );
177
- }
178
-
179
- add_action('activated_plugin','save_ufaq_error');
180
- function save_ufaq_error(){
181
- update_option('plugin_error', ob_get_contents());
182
- file_put_contents("Error.txt", ob_get_contents());
183
- }
184
-
185
- function Set_EWD_UFAQ_Options() {
186
- if (get_option("EWD_UFAQ_Toggle") == "") {update_option("EWD_UFAQ_Toggle", "Yes");}
187
- if (get_option("EWD_UFAQ_Category_Toggle") == "") {update_option("EWD_UFAQ_Category_Toggle", "No");}
188
- if (get_option("EWD_UFAQ_Expand_Collapse_All") == "") {update_option("EWD_UFAQ_Expand_Collapse_All", "No");}
189
- if (get_option("EWD_UFAQ_FAQ_Accordion") == "") {update_option("EWD_UFAQ_FAQ_Accordion", "No");}
190
- if (get_option("EWD_UFAQ_Hide_Categories") == "") {update_option("EWD_UFAQ_Hide_Categories", "No");}
191
- if (get_option("EWD_UFAQ_Hide_Tags") == "") {update_option("EWD_UFAQ_Hide_Tags", "No");}
192
- if (get_option("EWD_UFAQ_Scroll_To_Top") == "") {update_option("EWD_UFAQ_Scroll_To_Top", "Yes");}
193
- if (get_option("EWD_UFAQ_Display_All_Answers") == "") {update_option("EWD_UFAQ_Display_All_Answers", "No");}
194
- if (get_option("EWD_UFAQ_Display_Author") == "") {update_option("EWD_UFAQ_Display_Author", "Yes");}
195
- if (get_option("EWD_UFAQ_Display_Date") == "") {update_option("EWD_UFAQ_Display_Date", "Yes");}
196
- if (get_option("EWD_UFAQ_Display_Back_To_Top") == "") {update_option("EWD_UFAQ_Display_Back_To_Top", "No");}
197
- if (get_option("EWD_UFAQ_Include_Permalink") == "") {update_option("EWD_UFAQ_Include_Permalink", "Yes");}
198
- if (get_option("EWD_UFAQ_Permalink_Type") == "") {update_option("EWD_UFAQ_Permalink_Type", "SamePage");}
199
- if (get_option("EWD_UFAQ_Show_TinyMCE") == "") {update_option("EWD_UFAQ_Show_TinyMCE", "Yes");}
200
- if (get_option("EWD_UFAQ_Comments_On") == "") {update_option("EWD_UFAQ_Comments_On", "Yes");}
201
-
202
- if (get_option("EWD_UFAQ_Display_Style") == "") {update_option("EWD_UFAQ_Display_Style", "Default");}
203
- if (get_option("EWD_UFAQ_Color_Block_Shape") == "") {update_option("EWD_UFAQ_Color_Block_Shape", "Square");}
204
- if (get_option("EWD_UFAQ_FAQ_Ratings") == "") {update_option("EWD_UFAQ_FAQ_Ratings", "No");}
205
- if (get_option("EWD_UFAQ_WooCommerce_FAQs") == "") {update_option("EWD_UFAQ_WooCommerce_FAQs", "No");}
206
- if (get_option("EWD_UFAQ_Use_Product") == "") {update_option("EWD_UFAQ_Use_Product", "Yes");}
207
- if (get_option("EWD_UFAQ_Reveal_Effect") == "") {update_option("EWD_UFAQ_Reveal_Effect", "none");}
208
- if (get_option("EWD_UFAQ_Pretty_Permalinks") == "") {update_option("EWD_UFAQ_Pretty_Permalinks", "No");}
209
- if (get_option("EWD_UFAQ_Allow_Proposed_Answer") == "") {update_option("EWD_UFAQ_Allow_Proposed_Answer", "No");}
210
- if (get_option("EWD_UFAQ_Admin_Question_Notification") == "") {update_option("EWD_UFAQ_Admin_Question_Notification", "No");}
211
- if (get_option("EWD_UFAQ_Auto_Complete_Titles") == "") {update_option("EWD_UFAQ_Auto_Complete_Titles", "Yes");}
212
- if (get_option("EWD_UFAQ_Slug_Base") == "") {update_option("EWD_UFAQ_Slug_Base", "ufaqs");}
213
-
214
- if (get_option("EWD_UFAQ_Group_By_Category") == "") {update_option("EWD_UFAQ_Group_By_Category", "No");}
215
- if (get_option("EWD_UFAQ_Group_By_Order_By") == "") {update_option("EWD_UFAQ_Group_By_Order_By", "name");}
216
- if (get_option("EWD_UFAQ_Group_By_Order") == "") {update_option("EWD_UFAQ_Group_By_Order", "ASC");}
217
- if (get_option("EWD_UFAQ_Order_By") == "") {update_option("EWD_UFAQ_Order_By", "date");}
218
- if (get_option("EWD_UFAQ_Order") == "") {update_option("EWD_UFAQ_Order", "DESC");}
219
-
220
- if (get_option("EWD_UFAQ_Hide_Blank_Fields") == "") {update_option("EWD_UFAQ_Hide_Blank_Fields", "Yes");}
221
-
222
- if (get_option("EWD_UFAQ_Styling_Category_Heading_Type") == "") {update_option("EWD_UFAQ_Styling_Category_Heading_Type", "h4");}
223
- if (get_option("EWD_UFAQ_Styling_FAQ_Heading_Type") == "") {update_option("EWD_UFAQ_Styling_FAQ_Heading_Type", "h4");}
224
- if (get_option("EWD_UFAQ_Toggle_Symbol") == "") {update_option("EWD_UFAQ_Toggle_Symbol", "A");}
225
-
226
- if (get_option("EWD_UFAQ_Full_Version") == "") {update_option("EWD_UFAQ_Full_Version", "No");}
227
- if (get_option("EWD_UFAQ_Install_Flag") == "") {update_option("EWD_UFAQ_Update_Flag", "Yes");}
228
- if (get_option("EWD_UFAQ_Install_Flag") == "") {update_option("EWD_UFAQ_Install_Flag", "Yes");}
229
-
230
- if (get_option("EWD_UFAQ_Install_Version") == "") {update_option("EWD_UFAQ_Install_Version", 1.6);}
231
- }
232
-
233
- $UFAQ_Full_Version = get_option("EWD_UFAQ_Full_Version");
234
- if (isset($_GET['post_type']) and $_GET['post_type'] == 'ufaq' and isset($_POST['EWD_UFAQ_Upgrade_To_Full']) and $UFAQ_Full_Version == "Yes") {add_action("admin_notices", "EWD_UFAQ_Upgrade_Notice");}
235
-
236
- $rules = get_option('rewrite_rules');
237
- $PrettyLinks = get_option("EWD_UFAQ_Pretty_Permalinks");
238
- if ($PrettyLinks == "Yes") {
239
- add_filter( 'query_vars', 'EWD_UFAQ_add_query_vars_filter' );
240
- add_filter('init', 'EWD_UFAQ_Rewrite_Rules');
241
- update_option("EWD_UFAQ_Update_RR_Rules", "No");
242
- }
243
-
244
- if (isset($_POST['EWD_UFAQ_Upgrade_To_Full'])) {
245
- add_action('admin_init', 'EWD_UFAQ_Upgrade_To_Full');
246
- }
247
-
248
- $Show_TinyMCE = get_option("EWD_UFAQ_Show_TinyMCE");
249
- if ($Show_TinyMCE == "Yes") {
250
- add_filter( 'mce_buttons', 'EWD_UFAQ_Register_TinyMCE_Buttons' );
251
- add_filter( 'mce_external_plugins', 'EWD_UFAQ_Register_TinyMCE_Javascript' );
252
- add_action('admin_head', 'EWD_UFAQ_Output_TinyMCE_Vars');
253
- }
254
-
255
- function EWD_UFAQ_Register_TinyMCE_Buttons( $buttons ) {
256
- array_push( $buttons, 'separator', 'UFAQ_Shortcodes' );
257
- return $buttons;
258
- }
259
-
260
- function EWD_UFAQ_Register_TinyMCE_Javascript( $plugin_array ) {
261
- $plugin_array['UFAQ_Shortcodes'] = plugins_url( '/js/tinymce-plugin.js',__FILE__ );
262
-
263
- return $plugin_array;
264
- }
265
-
266
- function EWD_UFAQ_Output_TinyMCE_Vars() {
267
- global $UFAQ_Full_Version;
268
- $UFAQ_Categories = get_terms('ufaq-category');
269
-
270
- echo "<script type='text/javascript'>";
271
- echo "var ufaq_premium = '" . $UFAQ_Full_Version . "';\n";
272
- echo "var ufaq_categories = " . json_encode($UFAQ_Categories) . ";\n";
273
- echo "</script>";
274
- }
275
-
276
- function Run_UFAQ_Tutorial() {
277
- update_option("UFAQ_Run_Tutorial", "Yes");
278
- }
279
-
280
- if (get_option("UFAQ_Run_Tutorial") == "Yes" and isset($_GET['page']) and $_GET['page'] == 'EWD-UFAQ-Options') {
281
- add_action( 'admin_enqueue_scripts', 'UFAQ_Set_Pointers', 10, 1);
282
- }
283
-
284
- function UFAQ_Set_Pointers($page) {
285
- $Pointers = UFAQ_Return_Pointers();
286
-
287
- //Arguments: pointers php file, version (dots will be replaced), prefix
288
- $manager = new UFAQPointersManager( $Pointers, '1.0', 'ufaq_admin_pointers' );
289
- $manager->parse();
290
- $pointers = $manager->filter( $page );
291
- if ( empty( $pointers ) ) { // nothing to do if no pointers pass the filter
292
- return;
293
- }
294
- wp_enqueue_style( 'wp-pointer' );
295
- $js_url = plugins_url( 'js/ewd-ufaq-pointers.js', __FILE__ );
296
- wp_enqueue_script( 'ufaq_admin_pointers', $js_url, array('wp-pointer'), NULL, TRUE );
297
- //data to pass to javascript
298
- $data = array(
299
- 'next_label' => __( 'Next' ),
300
- 'close_label' => __('Close'),
301
- 'pointers' => $pointers
302
- );
303
- wp_localize_script( 'ufaq_admin_pointers', 'MyAdminPointers', $data );
304
- //update_option("UFAQ_Run_Tutorial", "No");
305
- }
306
-
307
- include "Functions/Error_Notices.php";
308
- include "Functions/EWD_UFAQ_Add_Social_Media_Buttons.php";
309
- include "Functions/EWD_UFAQ_Add_Views_Column.php";
310
- include "Functions/EWD_UFAQ_Export.php";
311
- include "Functions/EWD_UFAQ_Help_Pointers.php";
312
- include "Functions/EWD_UFAQ_Import.php";
313
- include "Functions/EWD_UFAQ_Meta_Boxes.php";
314
- include "Functions/EWD_UFAQ_Styling.php";
315
- include "Functions/EWD_UFAQ_Output_Pages.php";
316
- include "Functions/EWD_UFAQ_Pointers_Manager_Interface.php";
317
- include "Functions/EWD_UFAQ_Pointers_Manager_Class.php";
318
- include "Functions/EWD_UFAQ_Rewrite_Rules.php";
319
- include "Functions/EWD_UFAQ_Submit_Question.php";
320
- include "Functions/EWD_UFAQ_Upgrade_Box.php";
321
- include "Functions/EWD_UFAQ_Version_Reversion.php";
322
- include "Functions/EWD_UFAQ_Version_Update.php";
323
- include "Functions/EWD_UFAQ_Widgets.php";
324
- include "Functions/EWD_UFAQ_WooCommerce_Tab.php";
325
- include "Functions/FrontEndAjaxUrl.php";
326
- include "Functions/Full_Upgrade.php";
327
- include "Functions/Process_Ajax.php";
328
- include "Functions/Register_EWD_UFAQ_Posts_Taxonomies.php";
329
- include "Functions/Update_Admin_Databases.php";
330
- include "Functions/Update_EWD_UFAQ_Content.php";
331
-
332
- include "Shortcodes/DisplayFAQs.php";
333
- include "Shortcodes/Display_FAQ_Search.php";
334
- include "Shortcodes/Display_Popular_FAQs.php";
335
- include "Shortcodes/Display_Recent_FAQs.php";
336
- include "Shortcodes/Display_Top_Rated_FAQs.php";
337
- include "Shortcodes/SelectFAQ.php";
338
- include "Shortcodes/SubmitFAQ.php";
339
-
340
- if ($EWD_UFAQ_Version != get_option('EWD_UFAQ_Version')) {
341
- EWD_UFAQ_Version_Update();
342
- }
343
-
344
- ?>
1
+ <?php
2
+ /*
3
+ Plugin Name: FAQ
4
+ Plugin URI: http://www.EtoileWebDesign.com/wordpress-plugins/
5
+ Description: A plugin that lets you create FAQs (frequently asked questions), organize them, publicize them, etc.
6
+ 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.22
11
+ */
12
+
13
+ global $ewd_ufaq_message;
14
+ global $UFAQ_Full_Version;
15
+ global $EWD_UFAQ_Version;
16
+
17
+ $EWD_UFAQ_Version = '1.5.11';
18
+
19
+ define( 'EWD_UFAQ_CD_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );
20
+ define( 'EWD_UFAQ_CD_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
21
+
22
+ //define('WP_DEBUG', true);
23
+
24
+ register_activation_hook(__FILE__,'Set_EWD_UFAQ_Options');
25
+ register_activation_hook(__FILE__,'Run_UFAQ_Tutorial');
26
+ add_filter('upgrader_post_install', 'Set_EWD_UFAQ_Options');
27
+
28
+ /* Hooks neccessary admin tasks */
29
+ if ( is_admin() ){
30
+ add_action('widgets_init', 'Update_EWD_UFAQ_Content');
31
+ add_action('admin_notices', 'EWD_UFAQ_Error_Notices');
32
+ add_action('admin_enqueue_scripts', 'Add_EWD_UFAQ_Scripts', 10, 1);
33
+ add_action('admin_head', 'EWD_UFAQ_Admin_Options');
34
+ }
35
+
36
+ function EWD_UFAQ_Enable_Sub_Menu() {
37
+ global $submenu;
38
+
39
+ $Admin_Approval = get_option("EWD_UFAQ_Admin_Approval");
40
+
41
+ remove_menu_page('edit.php?post_type=ufaq');
42
+
43
+ add_menu_page( 'Ultimate FAQs', 'FAQs', 'edit_posts', 'EWD-UFAQ-Options', 'EWD_UFAQ_Output_Pages', null, '49.1' );
44
+ add_submenu_page('EWD-UFAQ-Options', 'FAQ Options', 'FAQ Settings', 'edit_posts', 'EWD-UFAQ-Options&DisplayPage=Options', 'EWD_UFAQ_Output_Pages');
45
+ if ($Admin_Approval == "Yes") {
46
+ $submenu['EWD-UFAQ-Options'][6] = $submenu['EWD-UFAQ-Options'][1];
47
+ $submenu['EWD-UFAQ-Options'][1] = array( 'Approved FAQs', 'edit_posts', "edit.php?post_type=ufaq&post_status=publish", "Approved FAQs" );
48
+ $submenu['EWD-UFAQ-Options'][2] = array( 'Awaiting Approval', 'edit_posts', "edit.php?post_type=ufaq&post_status=draft", "Awaiting Approval" );
49
+ $submenu['EWD-UFAQ-Options'][3] = array( 'Add New', 'edit_posts', "post-new.php?post_type=ufaq", "Add New" );
50
+ $submenu['EWD-UFAQ-Options'][4] = array( 'FAQ Categories', 'manage_categories', "edit-tags.php?taxonomy=ufaq-category&post_type=ufaq", "FAQ Categories" );
51
+ $submenu['EWD-UFAQ-Options'][5] = array( 'FAQ Tags', 'manage_categories', "edit-tags.php?taxonomy=ufaq-tag&post_type=ufaq", "FAQ Tags" );
52
+ }
53
+ else {
54
+ $submenu['EWD-UFAQ-Options'][5] = $submenu['EWD-UFAQ-Options'][1];
55
+ $submenu['EWD-UFAQ-Options'][1] = array( 'FAQs', 'edit_posts', "edit.php?post_type=ufaq", "FAQs" );
56
+ $submenu['EWD-UFAQ-Options'][2] = array( 'Add New', 'edit_posts', "post-new.php?post_type=ufaq", "Add New" );
57
+ $submenu['EWD-UFAQ-Options'][3] = array( 'FAQ Categories', 'manage_categories', "edit-tags.php?taxonomy=ufaq-category&post_type=ufaq", "FAQ Categories" );
58
+ $submenu['EWD-UFAQ-Options'][4] = array( 'FAQ Tags', 'manage_categories', "edit-tags.php?taxonomy=ufaq-tag&post_type=ufaq", "FAQ Tags" );
59
+ }
60
+ add_submenu_page('EWD-UFAQ-Options', 'FAQ Export', 'FAQ Export', 'edit_posts', 'EWD-UFAQ-Options&DisplayPage=Export', 'EWD_UFAQ_Output_Pages');
61
+ add_submenu_page('EWD-UFAQ-Options', 'FAQ Import', 'FAQ Import', 'edit_posts', 'EWD-UFAQ-Options&DisplayPage=ImportPosts', 'EWD_UFAQ_Output_Pages');
62
+
63
+ $submenu['EWD-UFAQ-Options'][0][0] = "Dashboard";
64
+ ksort($submenu['EWD-UFAQ-Options']);
65
+ }
66
+ add_action('admin_menu' , 'EWD_UFAQ_Enable_Sub_Menu', 1);
67
+
68
+ function EWD_UFAQ_Add_Header_Bar($Called = "No") {
69
+ global $pagenow;
70
+
71
+ if ($Called != "Yes" and (!isset($_GET['post_type']) or $_GET['post_type'] != "ufaq")) {return;}
72
+
73
+ $Admin_Approval = get_option("EWD_UFAQ_Admin_Approval"); ?>
74
+
75
+ <div class="EWD_UFAQ_Menu">
76
+ <h2 class="nav-tab-wrapper">
77
+ <a id="Dashboard_Menu" href='admin.php?page=EWD-UFAQ-Options' class="MenuTab nav-tab <?php if (!isset($_GET['post_type']) and ($_GET['DisplayPage'] == '' or $_GET['DisplayPage'] == 'Dashboard')) {echo 'nav-tab-active';}?>"><?php _e("Dashboard", "EWD_UFAQ"); ?></a>
78
+ <?php if ($Admin_Approval == "Yes") { ?>
79
+ <a id="Approved_FAQs_Menu" href='edit.php?post_type=ufaq&post_status=publish' class="MenuTab nav-tab <?php if (isset($_GET['post_type']) and $_GET['post_type'] == 'ufaq' and $pagenow == 'edit.php' and (!isset($_GET['post_status']) or $_GET['post_status'] == 'publish')) {echo 'nav-tab-active';}?>"><?php _e("Approved FAQs", "EWD_UFAQ"); ?></a>
80
+ <a id="FAQs_Awaiting_Approval_Menu" href='edit.php?post_type=ufaq&post_status=draft' class="MenuTab nav-tab <?php if (isset($_GET['post_type']) and $_GET['post_type'] == 'ufaq' and $pagenow == 'edit.php' and $_GET['post_status'] == 'draft') {echo 'nav-tab-active';}?>"><?php _e("Awaiting Approval", "EWD_UFAQ"); ?></a>
81
+ <?php } else { ?>
82
+ <a id="FAQs_Menu" href='edit.php?post_type=ufaq' class="MenuTab nav-tab <?php if (isset($_GET['post_type']) and $_GET['post_type'] == 'ufaq' and $pagenow == 'edit.php') {echo 'nav-tab-active';}?>"><?php _e("FAQs", "EWD_UFAQ"); ?></a>
83
+ <?php } ?>
84
+ <a id="Add_New_Menu" href='post-new.php?post_type=ufaq' class="MenuTab nav-tab <?php if (isset($_GET['post_type']) and $_GET['post_type'] == 'ufaq' and $pagenow == 'post-new.php') {echo 'nav-tab-active';}?>"><?php _e("Add New", "EWD_UFAQ"); ?></a>
85
+ <a id="FAQ_Categories_Menu" href='edit-tags.php?taxonomy=ufaq-category&post_type=ufaq' class="MenuTab nav-tab <?php if (isset($_GET['post_type']) and $_GET['post_type'] == 'ufaq' and $pagenow == 'edit-tags.php' and $_GET['taxonomy'] == "ufaq-category") {echo 'nav-tab-active';}?>"><?php _e("Categories", "EWD_UFAQ"); ?></a>
86
+ <a id="FAQ_Categories_Menu" href='edit-tags.php?taxonomy=ufaq-tag&post_type=ufaq' class="MenuTab nav-tab <?php if (isset($_GET['post_type']) and $_GET['post_type'] == 'ufaq' and $pagenow == 'edit-tags.php' and $_GET['taxonomy'] == "ufaq-tag") {echo 'nav-tab-active';}?>"><?php _e("Tags", "EWD_UFAQ"); ?></a>
87
+ <a id="Options_Menu" href='admin.php?page=EWD-UFAQ-Options&DisplayPage=Options' class="MenuTab nav-tab <?php if (!isset($_GET['post_type']) and $_GET['DisplayPage'] == 'Options') {echo 'nav-tab-active';}?>"><?php _e("Settings", "EWD_UFAQ"); ?></a>
88
+ <a id="WooCommerce_Import_Menu" href='admin.php?page=EWD-UFAQ-Options&DisplayPage=Export' class="MenuTab nav-tab <?php if (!isset($_GET['post_type']) and $_GET['DisplayPage'] == 'Export') {echo 'nav-tab-active';}?>"><?php _e("Export", "EWD_UFAQ"); ?></a>
89
+ <a id="WooCommerce_Import_Menu" href='admin.php?page=EWD-UFAQ-Options&DisplayPage=ImportPosts' class="MenuTab nav-tab <?php if (!isset($_GET['post_type']) and $_GET['DisplayPage'] == 'ImportPosts') {echo 'nav-tab-active';}?>"><?php _e("Import", "EWD_UFAQ"); ?></a>
90
+ </h2>
91
+ </div>
92
+ <?php }
93
+ add_action('admin_notices', 'EWD_UFAQ_Add_Header_Bar');
94
+
95
+ /* Add localization support */
96
+ function EWD_UFAQ_localization_setup() {
97
+ load_plugin_textdomain('EWD_UFAQ', false, dirname(plugin_basename(__FILE__)) . '/lang/');
98
+ }
99
+ add_action('after_setup_theme', 'EWD_UFAQ_localization_setup');
100
+
101
+ // Add settings link on plugin page
102
+ function EWD_UFAQ_plugin_settings_link($links) {
103
+ $settings_link = '<a href="admin.php?page=EWD-UFAQ-Options">Settings</a>';
104
+ array_unshift($links, $settings_link);
105
+ return $links;
106
+ }
107
+ $plugin = plugin_basename(__FILE__);
108
+ add_filter("plugin_action_links_$plugin", 'EWD_UFAQ_plugin_settings_link' );
109
+
110
+ function Add_EWD_UFAQ_Scripts($hook) {
111
+ global $post;
112
+
113
+ if ((isset($_GET['post_type']) && $_GET['post_type'] == 'ufaq') or
114
+ (isset($_GET['page']) && $_GET['page'] == 'EWD-UFAQ-Options')) {
115
+ $url_one = plugins_url("ultimate-faqs/js/sorttable.js");
116
+ $url_two = plugins_url("ultimate-faqs/js/Admin.js");
117
+ $url_three = plugins_url("ultimate-faqs/js/spectrum.js");
118
+
119
+ wp_enqueue_script('jquery-ui-sortable');
120
+ wp_enqueue_script('sortable', $url_one, array('jquery'));
121
+ wp_enqueue_script('UFAQ Admin', $url_two, array('jquery'));
122
+ wp_enqueue_script('spectrum', $url_three, array('jquery'));
123
+ }
124
+
125
+ if ($hook == 'edit.php' or $hook == 'post-new.php' or $hook == 'post.php') {
126
+ if ($post->post_type == 'product') {
127
+ wp_enqueue_script('ewd-ufaq-wc-admin', plugins_url("js/ewd-ufaq-wc-admin.js", __FILE__, array('jquery')));
128
+ }
129
+ }
130
+ }
131
+
132
+ function EWD_UFAQ_Admin_Options() {
133
+ wp_enqueue_style( 'ewd-ufaq-admin', plugins_url("ultimate-faqs/css/Admin.css"));
134
+ wp_enqueue_style( 'ewd-ufaq-spectrum', plugins_url("ultimate-faqs/css/spectrum.css"));
135
+ }
136
+
137
+ add_action( 'wp_enqueue_scripts', 'Add_EWD_UFAQ_FrontEnd_Scripts' );
138
+ function Add_EWD_UFAQ_FrontEnd_Scripts() {
139
+ wp_enqueue_script('ewd-ufaq-js', plugins_url( '/js/ewd-ufaq-js.js' , __FILE__ ), array( 'jquery' ));
140
+
141
+ $Retrieving_Results = get_option("EWD_UFAQ_Retrieving_Results");
142
+ if ($Retrieving_Results == "") {$Retrieving_Results = __("Retrieving Results", 'EWD_UFAQ') . "...";}
143
+
144
+ $ewd_ufaq_php_data = array(
145
+ 'retrieving_results' => $Retrieving_Results
146
+ );
147
+
148
+ wp_localize_script('ewd-ufaq-js', 'ewd_ufaq_php_data', $ewd_ufaq_php_data );
149
+
150
+ wp_enqueue_script("jquery-ui-core");
151
+ wp_enqueue_script("jquery-effects-core");
152
+ wp_enqueue_script('jquery-ui-autocomplete');
153
+
154
+ wp_enqueue_script("jquery-effects-blind");
155
+ wp_enqueue_script("jquery-effects-bounce");
156
+ wp_enqueue_script("jquery-effects-clip");
157
+ wp_enqueue_script("jquery-effects-drop");
158
+ wp_enqueue_script("jquery-effects-explode");
159
+ wp_enqueue_script("jquery-effects-fade");
160
+ wp_enqueue_script("jquery-effects-fold");
161
+ wp_enqueue_script("jquery-effects-highlight");
162
+ wp_enqueue_script("jquery-effects-pulsate");
163
+ wp_enqueue_script("jquery-effects-scale");
164
+ wp_enqueue_script("jquery-effects-shake");
165
+ wp_enqueue_script("jquery-effects-slide");
166
+ wp_enqueue_script("jquery-effects-transfer");
167
+ }
168
+
169
+
170
+ add_action( 'wp_enqueue_scripts', 'EWD_UFAQ_Add_Stylesheet' );
171
+ function EWD_UFAQ_Add_Stylesheet() {
172
+ wp_register_style( 'ewd-ufaq-style', plugins_url('css/ewd-ufaq-styles.css', __FILE__) );
173
+ wp_enqueue_style( 'ewd-ufaq-style' );
174
+
175
+ wp_register_style( 'ewd-ufaq-rrssb', plugins_url('css/rrssb-min.css', __FILE__) );
176
+ wp_enqueue_style( 'ewd-ufaq-rrssb' );
177
+ }
178
+
179
+ add_action('activated_plugin','save_ufaq_error');
180
+ function save_ufaq_error(){
181
+ update_option('plugin_error', ob_get_contents());
182
+ file_put_contents("Error.txt", ob_get_contents());
183
+ }
184
+
185
+ function Set_EWD_UFAQ_Options() {
186
+ if (get_option("EWD_UFAQ_Toggle") == "") {update_option("EWD_UFAQ_Toggle", "Yes");}
187
+ if (get_option("EWD_UFAQ_Category_Toggle") == "") {update_option("EWD_UFAQ_Category_Toggle", "No");}
188
+ if (get_option("EWD_UFAQ_Expand_Collapse_All") == "") {update_option("EWD_UFAQ_Expand_Collapse_All", "No");}
189
+ if (get_option("EWD_UFAQ_FAQ_Accordion") == "") {update_option("EWD_UFAQ_FAQ_Accordion", "No");}
190
+ if (get_option("EWD_UFAQ_Hide_Categories") == "") {update_option("EWD_UFAQ_Hide_Categories", "No");}
191
+ if (get_option("EWD_UFAQ_Hide_Tags") == "") {update_option("EWD_UFAQ_Hide_Tags", "No");}
192
+ if (get_option("EWD_UFAQ_Scroll_To_Top") == "") {update_option("EWD_UFAQ_Scroll_To_Top", "Yes");}
193
+ if (get_option("EWD_UFAQ_Display_All_Answers") == "") {update_option("EWD_UFAQ_Display_All_Answers", "No");}
194
+ if (get_option("EWD_UFAQ_Display_Author") == "") {update_option("EWD_UFAQ_Display_Author", "Yes");}
195
+ if (get_option("EWD_UFAQ_Display_Date") == "") {update_option("EWD_UFAQ_Display_Date", "Yes");}
196
+ if (get_option("EWD_UFAQ_Display_Back_To_Top") == "") {update_option("EWD_UFAQ_Display_Back_To_Top", "No");}
197
+ if (get_option("EWD_UFAQ_Include_Permalink") == "") {update_option("EWD_UFAQ_Include_Permalink", "Yes");}
198
+ if (get_option("EWD_UFAQ_Permalink_Type") == "") {update_option("EWD_UFAQ_Permalink_Type", "SamePage");}
199
+ if (get_option("EWD_UFAQ_Show_TinyMCE") == "") {update_option("EWD_UFAQ_Show_TinyMCE", "Yes");}
200
+ if (get_option("EWD_UFAQ_Comments_On") == "") {update_option("EWD_UFAQ_Comments_On", "Yes");}
201
+
202
+ if (get_option("EWD_UFAQ_Display_Style") == "") {update_option("EWD_UFAQ_Display_Style", "Default");}
203
+ if (get_option("EWD_UFAQ_Color_Block_Shape") == "") {update_option("EWD_UFAQ_Color_Block_Shape", "Square");}
204
+ if (get_option("EWD_UFAQ_FAQ_Ratings") == "") {update_option("EWD_UFAQ_FAQ_Ratings", "No");}
205
+ if (get_option("EWD_UFAQ_WooCommerce_FAQs") == "") {update_option("EWD_UFAQ_WooCommerce_FAQs", "No");}
206
+ if (get_option("EWD_UFAQ_Use_Product") == "") {update_option("EWD_UFAQ_Use_Product", "Yes");}
207
+ if (get_option("EWD_UFAQ_Reveal_Effect") == "") {update_option("EWD_UFAQ_Reveal_Effect", "none");}
208
+ if (get_option("EWD_UFAQ_Pretty_Permalinks") == "") {update_option("EWD_UFAQ_Pretty_Permalinks", "No");}
209
+ if (get_option("EWD_UFAQ_Allow_Proposed_Answer") == "") {update_option("EWD_UFAQ_Allow_Proposed_Answer", "No");}
210
+ if (get_option("EWD_UFAQ_Admin_Question_Notification") == "") {update_option("EWD_UFAQ_Admin_Question_Notification", "No");}
211
+ if (get_option("EWD_UFAQ_Auto_Complete_Titles") == "") {update_option("EWD_UFAQ_Auto_Complete_Titles", "Yes");}
212
+ if (get_option("EWD_UFAQ_Slug_Base") == "") {update_option("EWD_UFAQ_Slug_Base", "ufaqs");}
213
+
214
+ if (get_option("EWD_UFAQ_Group_By_Category") == "") {update_option("EWD_UFAQ_Group_By_Category", "No");}
215
+ if (get_option("EWD_UFAQ_Group_By_Order_By") == "") {update_option("EWD_UFAQ_Group_By_Order_By", "name");}
216
+ if (get_option("EWD_UFAQ_Group_By_Order") == "") {update_option("EWD_UFAQ_Group_By_Order", "ASC");}
217
+ if (get_option("EWD_UFAQ_Order_By") == "") {update_option("EWD_UFAQ_Order_By", "date");}
218
+ if (get_option("EWD_UFAQ_Order") == "") {update_option("EWD_UFAQ_Order", "DESC");}
219
+
220
+ if (get_option("EWD_UFAQ_Hide_Blank_Fields") == "") {update_option("EWD_UFAQ_Hide_Blank_Fields", "Yes");}
221
+
222
+ if (get_option("EWD_UFAQ_Styling_Category_Heading_Type") == "") {update_option("EWD_UFAQ_Styling_Category_Heading_Type", "h4");}
223
+ if (get_option("EWD_UFAQ_Styling_FAQ_Heading_Type") == "") {update_option("EWD_UFAQ_Styling_FAQ_Heading_Type", "h4");}
224
+ if (get_option("EWD_UFAQ_Toggle_Symbol") == "") {update_option("EWD_UFAQ_Toggle_Symbol", "A");}
225
+
226
+ if (get_option("EWD_UFAQ_Full_Version") == "") {update_option("EWD_UFAQ_Full_Version", "No");}
227
+ if (get_option("EWD_UFAQ_Install_Flag") == "") {update_option("EWD_UFAQ_Update_Flag", "Yes");}
228
+ if (get_option("EWD_UFAQ_Install_Flag") == "") {update_option("EWD_UFAQ_Install_Flag", "Yes");}
229
+
230
+ if (get_option("EWD_UFAQ_Install_Version") == "") {update_option("EWD_UFAQ_Install_Version", 1.6);}
231
+ }
232
+
233
+ $UFAQ_Full_Version = get_option("EWD_UFAQ_Full_Version");
234
+ if (isset($_GET['post_type']) and $_GET['post_type'] == 'ufaq' and isset($_POST['EWD_UFAQ_Upgrade_To_Full']) and $UFAQ_Full_Version == "Yes") {add_action("admin_notices", "EWD_UFAQ_Upgrade_Notice");}
235
+
236
+ $rules = get_option('rewrite_rules');
237
+ $PrettyLinks = get_option("EWD_UFAQ_Pretty_Permalinks");
238
+ if ($PrettyLinks == "Yes") {
239
+ add_filter( 'query_vars', 'EWD_UFAQ_add_query_vars_filter' );
240
+ add_filter('init', 'EWD_UFAQ_Rewrite_Rules');
241
+ update_option("EWD_UFAQ_Update_RR_Rules", "No");
242
+ }
243
+
244
+ if (isset($_POST['EWD_UFAQ_Upgrade_To_Full'])) {
245
+ add_action('admin_init', 'EWD_UFAQ_Upgrade_To_Full');
246
+ }
247
+
248
+ $Show_TinyMCE = get_option("EWD_UFAQ_Show_TinyMCE");
249
+ if ($Show_TinyMCE == "Yes") {
250
+ add_filter( 'mce_buttons', 'EWD_UFAQ_Register_TinyMCE_Buttons' );
251
+ add_filter( 'mce_external_plugins', 'EWD_UFAQ_Register_TinyMCE_Javascript' );
252
+ add_action('admin_head', 'EWD_UFAQ_Output_TinyMCE_Vars');
253
+ }
254
+
255
+ function EWD_UFAQ_Register_TinyMCE_Buttons( $buttons ) {
256
+ array_push( $buttons, 'separator', 'UFAQ_Shortcodes' );
257
+ return $buttons;
258
+ }
259
+
260
+ function EWD_UFAQ_Register_TinyMCE_Javascript( $plugin_array ) {
261
+ $plugin_array['UFAQ_Shortcodes'] = plugins_url( '/js/tinymce-plugin.js',__FILE__ );
262
+
263
+ return $plugin_array;
264
+ }
265
+
266
+ function EWD_UFAQ_Output_TinyMCE_Vars() {
267
+ global $UFAQ_Full_Version;
268
+ $UFAQ_Categories = get_terms('ufaq-category');
269
+
270
+ echo "<script type='text/javascript'>";
271
+ echo "var ufaq_premium = '" . $UFAQ_Full_Version . "';\n";
272
+ echo "var ufaq_categories = " . json_encode($UFAQ_Categories) . ";\n";
273
+ echo "</script>";
274
+ }
275
+
276
+ function Run_UFAQ_Tutorial() {
277
+ update_option("UFAQ_Run_Tutorial", "Yes");
278
+ }
279
+
280
+ if (get_option("UFAQ_Run_Tutorial") == "Yes" and isset($_GET['page']) and $_GET['page'] == 'EWD-UFAQ-Options') {
281
+ add_action( 'admin_enqueue_scripts', 'UFAQ_Set_Pointers', 10, 1);
282
+ }
283
+
284
+ function UFAQ_Set_Pointers($page) {
285
+ $Pointers = UFAQ_Return_Pointers();
286
+
287
+ //Arguments: pointers php file, version (dots will be replaced), prefix
288
+ $manager = new UFAQPointersManager( $Pointers, '1.0', 'ufaq_admin_pointers' );
289
+ $manager->parse();
290
+ $pointers = $manager->filter( $page );
291
+ if ( empty( $pointers ) ) { // nothing to do if no pointers pass the filter
292
+ return;
293
+ }
294
+ wp_enqueue_style( 'wp-pointer' );
295
+ $js_url = plugins_url( 'js/ewd-ufaq-pointers.js', __FILE__ );
296
+ wp_enqueue_script( 'ufaq_admin_pointers', $js_url, array('wp-pointer'), NULL, TRUE );
297
+ //data to pass to javascript
298
+ $data = array(
299
+ 'next_label' => __( 'Next' ),
300
+ 'close_label' => __('Close'),
301
+ 'pointers' => $pointers
302
+ );
303
+ wp_localize_script( 'ufaq_admin_pointers', 'MyAdminPointers', $data );
304
+ //update_option("UFAQ_Run_Tutorial", "No");
305
+ }
306
+
307
+ include "Functions/Error_Notices.php";
308
+ include "Functions/EWD_UFAQ_Add_Social_Media_Buttons.php";
309
+ include "Functions/EWD_UFAQ_Add_Views_Column.php";
310
+ include "Functions/EWD_UFAQ_Export.php";
311
+ include "Functions/EWD_UFAQ_Help_Pointers.php";
312
+ include "Functions/EWD_UFAQ_Import.php";
313
+ include "Functions/EWD_UFAQ_Meta_Boxes.php";
314
+ include "Functions/EWD_UFAQ_Styling.php";
315
+ include "Functions/EWD_UFAQ_Output_Pages.php";
316
+ include "Functions/EWD_UFAQ_Pointers_Manager_Interface.php";
317
+ include "Functions/EWD_UFAQ_Pointers_Manager_Class.php";
318
+ include "Functions/EWD_UFAQ_Rewrite_Rules.php";
319
+ include "Functions/EWD_UFAQ_Submit_Question.php";
320
+ include "Functions/EWD_UFAQ_Upgrade_Box.php";
321
+ include "Functions/EWD_UFAQ_Version_Reversion.php";
322
+ include "Functions/EWD_UFAQ_Version_Update.php";
323
+ include "Functions/EWD_UFAQ_Widgets.php";
324
+ include "Functions/EWD_UFAQ_WooCommerce_Tab.php";
325
+ include "Functions/FrontEndAjaxUrl.php";
326
+ include "Functions/Full_Upgrade.php";
327
+ include "Functions/Process_Ajax.php";
328
+ include "Functions/Register_EWD_UFAQ_Posts_Taxonomies.php";
329
+ include "Functions/Update_Admin_Databases.php";
330
+ include "Functions/Update_EWD_UFAQ_Content.php";
331
+
332
+ include "Shortcodes/DisplayFAQs.php";
333
+ include "Shortcodes/Display_FAQ_Search.php";
334
+ include "Shortcodes/Display_Popular_FAQs.php";
335
+ include "Shortcodes/Display_Recent_FAQs.php";
336
+ include "Shortcodes/Display_Top_Rated_FAQs.php";
337
+ include "Shortcodes/SelectFAQ.php";
338
+ include "Shortcodes/SubmitFAQ.php";
339
+
340
+ if ($EWD_UFAQ_Version != get_option('EWD_UFAQ_Version')) {
341
+ EWD_UFAQ_Version_Update();
342
+ }
343
+
344
+ ?>
css/Admin.css CHANGED
@@ -790,7 +790,7 @@ SHORTCODE REMINDER IN BASIC AREA OF OPTIONS TAB
790
  position: relative;
791
  float: left;
792
  width: 100%;
793
- height: 85px;
794
  background: #fafafa;
795
  margin: -12px 0 24px;
796
  }
@@ -798,8 +798,8 @@ SHORTCODE REMINDER IN BASIC AREA OF OPTIONS TAB
798
  position: relative;
799
  float: left;
800
  width: 15%;
801
- height: 41px;
802
- padding: 32px 2.5% 12px;
803
  background: #f4f4f4;
804
  text-align: center;
805
  font-weight: bold;
@@ -810,27 +810,16 @@ SHORTCODE REMINDER IN BASIC AREA OF OPTIONS TAB
810
  width: 75%;
811
  height: 18px;
812
  padding: 12px 2.5%;
813
- border-bottom: 1px solid #e8e8e8;
814
- }
815
- .ewd-ufaq-shortcode-reminder-submit {
816
- position: relative;
817
- float: left;
818
- width: 75%;
819
- height: 18px;
820
- padding: 12px 2.5%;
821
  }
822
- @media screen and (max-width: 1350px) {
823
  .ewd-ufaq-shortcode-reminder {
824
- height: 121px;
825
  }
826
  .ewd-ufaq-shortcode-reminder-message {
827
- height: 59px;
828
- padding: 50px 2.5% 12px;
829
  }
830
  .ewd-ufaq-shortcode-reminder-display {
831
  height: 36px;
832
  }
833
- .ewd-ufaq-shortcode-reminder-submit {
834
- height: 36px;
835
- }
836
  }
790
  position: relative;
791
  float: left;
792
  width: 100%;
793
+ height: 42px;
794
  background: #fafafa;
795
  margin: -12px 0 24px;
796
  }
798
  position: relative;
799
  float: left;
800
  width: 15%;
801
+ height: 18px;
802
+ padding: 12px 2.5%;
803
  background: #f4f4f4;
804
  text-align: center;
805
  font-weight: bold;
810
  width: 75%;
811
  height: 18px;
812
  padding: 12px 2.5%;
 
 
 
 
 
 
 
 
813
  }
814
+ @media screen and (max-width: 1140px) {
815
  .ewd-ufaq-shortcode-reminder {
816
+ height: 60px;
817
  }
818
  .ewd-ufaq-shortcode-reminder-message {
819
+ height: 27px;
820
+ padding: 21px 2.5% 12px;
821
  }
822
  .ewd-ufaq-shortcode-reminder-display {
823
  height: 36px;
824
  }
 
 
 
825
  }
html/OptionsPage.php CHANGED
@@ -1,1045 +1,1044 @@
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
- $Expand_Collapse_All = get_option("EWD_UFAQ_Expand_Collapse_All");
6
- $FAQ_Accordion = get_option("EWD_UFAQ_FAQ_Accordion");
7
- $Hide_Categories = get_option("EWD_UFAQ_Hide_Categories");
8
- $Hide_Tags = get_option("EWD_UFAQ_Hide_Tags");
9
- $Scroll_To_Top = get_option("EWD_UFAQ_Scroll_To_Top");
10
- $Display_All_Answers = get_option("EWD_UFAQ_Display_All_Answers");
11
- $Display_Author = get_option("EWD_UFAQ_Display_Author");
12
- $Display_Date = get_option("EWD_UFAQ_Display_Date");
13
- $Display_Back_To_Top = get_option("EWD_UFAQ_Display_Back_To_Top");
14
- $Include_Permalink = get_option("EWD_UFAQ_Include_Permalink");
15
- $Permalink_Type = get_option("EWD_UFAQ_Permalink_Type");
16
- $Show_TinyMCE = get_option("EWD_UFAQ_Show_TinyMCE");
17
- $Comments_On = get_option("EWD_UFAQ_Comments_On");
18
-
19
- $Display_Style = get_option("EWD_UFAQ_Display_Style");
20
- $Color_Block_Shape = get_option("EWD_UFAQ_Color_Block_Shape");
21
- $FAQ_Ratings = get_option("EWD_UFAQ_FAQ_Ratings");
22
- $WooCommerce_FAQs = get_option("EWD_UFAQ_WooCommerce_FAQs");
23
- $Use_Product = get_option("EWD_UFAQ_Use_Product");
24
- $Reveal_Effect = get_option("EWD_UFAQ_Reveal_Effect");
25
- $Pretty_Permalinks = get_option("EWD_UFAQ_Pretty_Permalinks");
26
- $Allow_Proposed_Answer = get_option("EWD_UFAQ_Allow_Proposed_Answer");
27
- $Admin_Question_Notification = get_option("EWD_UFAQ_Admin_Question_Notification");
28
- $FAQ_Auto_Complete_Titles = get_option("EWD_UFAQ_Auto_Complete_Titles");
29
- $Slug_Base = get_option("EWD_UFAQ_Slug_Base");
30
- $Socialmedia_String = get_option("EWD_UFAQ_Social_Media");
31
- $Socialmedia = explode(",", $Socialmedia_String);
32
-
33
- $Group_By_Category = get_option("EWD_UFAQ_Group_By_Category");
34
- $Group_By_Order_By = get_option("EWD_UFAQ_Group_By_Order_By");
35
- $Group_By_Order = get_option("EWD_UFAQ_Group_By_Order");
36
- $Order_By_Setting = get_option("EWD_UFAQ_Order_By");
37
- $Order_Setting = get_option("EWD_UFAQ_Order");
38
-
39
- $FAQ_Fields_Array = get_option("EWD_UFAQ_FAQ_Fields");
40
- $Hide_Blank_Fields = get_option("EWD_UFAQ_Hide_Blank_Fields");
41
-
42
- $Posted_Label = get_option("EWD_UFAQ_Posted_Label");
43
- $By_Label = get_option("EWD_UFAQ_By_Label");
44
- $On_Label = get_option("EWD_UFAQ_On_Label");
45
- $Category_Label = get_option("EWD_UFAQ_Category_Label");
46
- $Tag_Label = get_option("EWD_UFAQ_Tag_Label");
47
- $Enter_Question_Label = get_option("EWD_UFAQ_Enter_Question_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
- $WooCommerce_Tab_Label = get_option("EWD_UFAQ_WooCommerce_Tab_Label");
52
-
53
- $Thank_You_Submit_Label = get_option("EWD_UFAQ_Thank_You_Submit_Label");
54
- $Submit_Question_Label = get_option("EWD_UFAQ_Submit_Question_Label");
55
- $Please_Fill_Form_Below_Label = get_option("EWD_UFAQ_Please_Fill_Form_Below_Label");
56
- $Send_Question_Label = get_option("EWD_UFAQ_Send_Question_Label");
57
- $Question_Title_Label = get_option("EWD_UFAQ_Question_Title_Label");
58
- $What_Question_Being_Answered_Label = get_option("EWD_UFAQ_What_Question_Being_Answered_Label");
59
- $Proposed_Answer_Label = get_option("EWD_UFAQ_Proposed_Answer_Label");
60
- $Review_Author_Label = get_option("EWD_UFAQ_Review_Author_Label");
61
- $What_Name_With_Review_Label = get_option("EWD_UFAQ_What_Name_With_Review_Label");
62
- $Retrieving_Results = get_option("EWD_UFAQ_Retrieving_Results");
63
- $No_Results_Found_Text = get_option("EWD_UFAQ_No_Results_Found_Text");
64
-
65
- $UFAQ_Styling_Default_Bg_Color = get_option("EWD_UFAQ_Styling_Default_Bg_Color");
66
- $UFAQ_Styling_Default_Font_Color = get_option("EWD_UFAQ_Styling_Default_Font_Color");
67
- $UFAQ_Styling_Default_Border = get_option("EWD_UFAQ_Styling_Default_Border");
68
- $UFAQ_Styling_Default_Border_Radius = get_option("EWD_UFAQ_Styling_Default_Border_Radius");
69
- $UFAQ_Styling_Block_Bg_Color = get_option("EWD_UFAQ_Styling_Block_Bg_Color");
70
- $UFAQ_Styling_Block_Font_Color = get_option("EWD_UFAQ_Styling_Block_Font_Color");
71
- $UFAQ_Styling_List_Font = get_option("EWD_UFAQ_Styling_List_Font");
72
- $UFAQ_Styling_List_Font_Size = get_option("EWD_UFAQ_Styling_List_Font_Size");
73
- $UFAQ_Styling_List_Font_Color = get_option("EWD_UFAQ_Styling_List_Font_Color");
74
- $UFAQ_Styling_List_Margin = get_option("EWD_UFAQ_Styling_List_Margin");
75
- $UFAQ_Styling_List_Padding = get_option("EWD_UFAQ_Styling_List_Padding");
76
-
77
- $UFAQ_Styling_Question_Font = get_option("EWD_UFAQ_Styling_Question_Font");
78
- $UFAQ_Styling_Question_Font_Size = get_option("EWD_UFAQ_Styling_Question_Font_Size");
79
- $UFAQ_Styling_Question_Font_Color = get_option("EWD_UFAQ_Styling_Question_Font_Color");
80
- $UFAQ_Styling_Question_Margin = get_option("EWD_UFAQ_Styling_Question_Margin");
81
- $UFAQ_Styling_Question_Padding = get_option("EWD_UFAQ_Styling_Question_Padding");
82
- $UFAQ_Styling_Question_Icon_Top_Margin = get_option("EWD_UFAQ_Styling_Question_Icon_Top_Margin");
83
- $UFAQ_Styling_Answer_Font = get_option("EWD_UFAQ_Styling_Answer_Font");
84
- $UFAQ_Styling_Answer_Font_Size = get_option("EWD_UFAQ_Styling_Answer_Font_Size");
85
- $UFAQ_Styling_Answer_Font_Color = get_option("EWD_UFAQ_Styling_Answer_Font_Color");
86
- $UFAQ_Styling_Answer_Margin = get_option("EWD_UFAQ_Styling_Answer_Margin");
87
- $UFAQ_Styling_Answer_Padding = get_option("EWD_UFAQ_Styling_Answer_Padding");
88
- $UFAQ_Styling_Postdate_Font = get_option("EWD_UFAQ_Styling_Postdate_Font");
89
- $UFAQ_Styling_Postdate_Font_Size = get_option("EWD_UFAQ_Styling_Postdate_Font_Size");
90
- $UFAQ_Styling_Postdate_Font_Color = get_option("EWD_UFAQ_Styling_Postdate_Font_Color");
91
- $UFAQ_Styling_Postdate_Margin = get_option("EWD_UFAQ_Styling_Postdate_Margin");
92
- $UFAQ_Styling_Postdate_Padding = get_option("EWD_UFAQ_Styling_Postdate_Padding");
93
- $UFAQ_Styling_Category_Font = get_option("EWD_UFAQ_Styling_Category_Font");
94
- $UFAQ_Styling_Category_Font_Size = get_option("EWD_UFAQ_Styling_Category_Font_Size");
95
- $UFAQ_Styling_Category_Font_Color = get_option("EWD_UFAQ_Styling_Category_Font_Color");
96
- $UFAQ_Styling_Category_Margin = get_option("EWD_UFAQ_Styling_Category_Margin");
97
- $UFAQ_Styling_Category_Padding = get_option("EWD_UFAQ_Styling_Category_Padding");
98
-
99
- $UFAQ_Styling_Category_Heading_Type = get_option("EWD_UFAQ_Styling_Category_Heading_Type");
100
- $UFAQ_Styling_FAQ_Heading_Type = get_option("EWD_UFAQ_Styling_FAQ_Heading_Type");
101
- $Toggle_Symbol = get_option("EWD_UFAQ_Toggle_Symbol");
102
-
103
- if (!isset($Display_Tab)) {$Display_Tab = "";}
104
- ?>
105
- <div class="wrap ufaq-options-page-tabbed">
106
- <div class="ufaq-options-submenu-div">
107
- <ul class="ufaq-options-submenu ufaq-options-page-tabbed-nav">
108
- <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>
109
- <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>
110
- <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>
111
- <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>
112
- <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>
113
- <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>
114
- </ul>
115
- </div>
116
-
117
-
118
- <div class="ufaq-options-page-tabbed-content">
119
-
120
- <form method="post" action="admin.php?page=EWD-UFAQ-Options&DisplayPage=Options&Action=EWD_UFAQ_UpdateOptions">
121
- <div id='Basic' class='ufaq-option-set'>
122
- <h2 id='label-basic-options' class='ufaq-options-page-tab-title'>Basic Options</h2>
123
- <br />
124
-
125
- <div class="ewd-ufaq-shortcode-reminder">
126
- <div class="ewd-ufaq-shortcode-reminder-message">REMINDER</div>
127
- <div class="ewd-ufaq-shortcode-reminder-display">To display reviews, place the <strong>[ultimate-faqs]</strong> shortcode on a page</div>
128
- <div class="ewd-ufaq-shortcode-reminder-submit">To allow visitors to submit an FAQ, place the <strong>[submit-question]</strong> shortcode on a page</div>
129
- </div>
130
-
131
- <br />
132
- <h3 id="general-options" class="ufaq-options-page-tab-title"><?php _e('General', 'EWD_UFAQ'); ?></h3>
133
- <table class="form-table">
134
- <tr>
135
- <th scope="row">Custom CSS</th>
136
- <td>
137
- <fieldset><legend class="screen-reader-text"><span>Custom CSS</span></legend>
138
- <label title='Custom CSS'></label><textarea class='ewd-ufaq-textarea' name='custom_css'> <?php echo $Custom_CSS; ?></textarea><br />
139
- <p>You can add custom CSS styles for your FAQs in the box above.</p>
140
- </fieldset>
141
- </td>
142
- </tr>
143
- <tr>
144
- <th scope="row">Scroll To Top</th>
145
- <td>
146
- <fieldset><legend class="screen-reader-text"><span>Scroll To Top</span></legend>
147
- <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 />
148
- <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 />
149
- <p>Should the browser scroll to the top of the FAQ when it's opened?</p>
150
- </fieldset>
151
- </td>
152
- </tr>
153
- <tr>
154
- <th scope="row">Show Editor Helper</th>
155
- <td>
156
- <fieldset><legend class="screen-reader-text"><span>Show Editor Helper</span></legend>
157
- <label title='Yes'><input type='radio' name='show_tinymce' value='Yes' <?php if($Show_TinyMCE == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
158
- <label title='No'><input type='radio' name='show_tinymce' value='No' <?php if($Show_TinyMCE == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
159
- <p>Should the shortcode builder be shown above the WordPress page/post editor, in the toolbar buttons?</p>
160
- </fieldset>
161
- </td>
162
- </tr>
163
- <tr>
164
- <th scope="row">Turn On Comment Support</th>
165
- <td>
166
- <fieldset><legend class="screen-reader-text"><span>Turn On Comment Support</span></legend>
167
- <label title='Yes'><input type='radio' name='comments_on' value='Yes' <?php if($Comments_On == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
168
- <label title='No'><input type='radio' name='comments_on' value='No' <?php if($Comments_On == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
169
- <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>
170
- </fieldset>
171
- </td>
172
- </tr>
173
- <tr>
174
- <th scope="row">Include Permalink Icon</th>
175
- <td>
176
- <fieldset><legend class="screen-reader-text"><span>Include Permalink Icon</span></legend>
177
- <label title='Yes'><input type='radio' name='include_permalink' value='Yes' <?php if($Include_Permalink == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
178
- <label title='No'><input type='radio' name='include_permalink' value='No' <?php if($Include_Permalink == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
179
- <p>Should an icon to link directly to each question be displayed?</p>
180
- </fieldset>
181
- </td>
182
- </tr>
183
- <tr>
184
- <th scope="row">Permalink Type</th>
185
- <td>
186
- <fieldset><legend class="screen-reader-text"><span>Include Permalink Icon</span></legend>
187
- <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 />
188
- <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 />
189
- <p>Should the permalink icon link to the main FAQ page, or to the individual FAQ post?</p>
190
- </fieldset>
191
- </td>
192
- </tr>
193
- </table>
194
-
195
- <br />
196
- <h3 id="functionality-options" class="ufaq-options-page-tab-title"><?php _e('Functionality', 'EWD_UFAQ'); ?></h3>
197
-
198
- <table class="form-table">
199
- <tr>
200
- <th scope="row">FAQ Toggle</th>
201
- <td>
202
- <fieldset><legend class="screen-reader-text"><span>FAQ Toggle</span></legend>
203
- <label title='Yes'><input type='radio' name='faq_toggle' value='Yes' <?php if($FAQ_Toggle == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
204
- <label title='No'><input type='radio' name='faq_toggle' value='No' <?php if($FAQ_Toggle == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
205
- <p>Should the FAQs hide/open when they are clicked? </p>
206
- </fieldset>
207
- </td>
208
- </tr>
209
- <tr>
210
- <th scope="row">FAQ Category Toggle</th>
211
- <td>
212
- <fieldset><legend class="screen-reader-text"><span>FAQ Category Toggle</span></legend>
213
- <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 />
214
- <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 />
215
- <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>
216
- </fieldset>
217
- </td>
218
- </tr>
219
- <tr>
220
- <th scope="row">FAQ Expand/Collapse All</th>
221
- <td>
222
- <fieldset><legend class="screen-reader-text"><span>FAQ Toggle</span></legend>
223
- <label title='Yes'><input type='radio' name='expand_collapse_all' value='Yes' <?php if($Expand_Collapse_All == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
224
- <label title='No'><input type='radio' name='expand_collapse_all' value='No' <?php if($Expand_Collapse_All == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
225
- <p>Should the FAQs hide/open when they are clicked? </p>
226
- </fieldset>
227
- </td>
228
- </tr>
229
- <tr>
230
- <th scope="row">FAQ Accordion</th>
231
- <td>
232
- <fieldset><legend class="screen-reader-text"><span>FAQ Accordion</span></legend>
233
- <label title='Yes'><input type='radio' name='faq_accordion' value='Yes' <?php if($FAQ_Accordion == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
234
- <label title='No'><input type='radio' name='faq_accordion' value='No' <?php if($FAQ_Accordion == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
235
- <p>Should the FAQs accordion? (Only one FAQ is open at a time, requires FAQ Toggle)</p>
236
- </fieldset>
237
- </td>
238
- </tr>
239
- </table>
240
-
241
- <br />
242
- <h3 id="display-options" class="ufaq-options-page-tab-title"><?php _e('Display', 'EWD_UFAQ'); ?></h3>
243
-
244
- <table class="form-table">
245
- <tr>
246
- <th scope="row">Hide Categories</th>
247
- <td>
248
- <fieldset><legend class="screen-reader-text"><span>Hide Categories</span></legend>
249
- <label title='Yes'><input type='radio' name='hide_categories' value='Yes' <?php if($Hide_Categories == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
250
- <label title='No'><input type='radio' name='hide_categories' value='No' <?php if($Hide_Categories == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
251
- <p>Should the categories for each FAQ be hidden?</p>
252
- </fieldset>
253
- </td>
254
- </tr>
255
-
256
- <tr>
257
- <th scope="row">Hide Tags</th>
258
- <td>
259
- <fieldset><legend class="screen-reader-text"><span>Hide Tags</span></legend>
260
- <label title='Yes'><input type='radio' name='hide_tags' value='Yes' <?php if($Hide_Tags == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
261
- <label title='No'><input type='radio' name='hide_tags' value='No' <?php if($Hide_Tags == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
262
- <p>Should the tags for each FAQ be hidden?</p>
263
- </fieldset>
264
- </td>
265
- </tr>
266
- <tr>
267
- <th scope="row">Display All Answers</th>
268
- <td>
269
- <fieldset><legend class="screen-reader-text"><span>Display All Answers</span></legend>
270
- <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 />
271
- <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 />
272
- <p>Should all answers be displayed when the page loads? (Careful if FAQ Accordian is on)</p>
273
- </fieldset>
274
- </td>
275
- </tr>
276
- <tr>
277
- <th scope="row">Display Post Author</th>
278
- <td>
279
- <fieldset><legend class="screen-reader-text"><span>Display Post Author</span></legend>
280
- <label title='Yes'><input type='radio' name='display_author' value='Yes' <?php if($Display_Author == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
281
- <label title='No'><input type='radio' name='display_author' value='No' <?php if($Display_Author == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
282
- <p>Should the display name of the post's author be show beneath the FAQ title?</p>
283
- </fieldset>
284
- </td>
285
- </tr>
286
- <tr>
287
- <th scope="row">Display Post Date</th>
288
- <td>
289
- <fieldset><legend class="screen-reader-text"><span>Display Post Date</span></legend>
290
- <label title='Yes'><input type='radio' name='display_date' value='Yes' <?php if($Display_Date == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
291
- <label title='No'><input type='radio' name='display_date' value='No' <?php if($Display_Date == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
292
- <p>Should the date the post was created be show beneath the FAQ title?</p>
293
- </fieldset>
294
- </td>
295
- </tr>
296
- <tr>
297
- <th scope="row">Display 'Back to Top'</th>
298
- <td>
299
- <fieldset><legend class="screen-reader-text"><span>Display 'Back to Top'</span></legend>
300
- <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 />
301
- <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 />
302
- <p>Should a link to return to the top of the page be added to each FAQ post?</p>
303
- </fieldset>
304
- </td>
305
- </tr>
306
- </table>
307
- </div>
308
-
309
- <div id='Premium' class='ufaq-option-set ufaq-hidden'>
310
- <h2 id='label-premium-options' class='ufaq-options-page-tab-title'>Premium Options</h2>
311
- <br />
312
- <h3 id="premium-display-options" class="ufaq-options-page-tab-title"><?php _e('Display', 'EWD_UFAQ'); ?></h3>
313
- <table class="form-table">
314
- <tr>
315
- <th scope="row">FAQ Display Style</th>
316
- <td>
317
- <fieldset><legend class="screen-reader-text"><span>FAQ Display Style</span></legend>
318
- <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 />
319
- <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 />
320
- <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 />
321
- <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 />
322
- <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 />
323
- <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 />
324
- <p>Which theme should be used to display the FAQ's?</p>
325
- </fieldset>
326
- </td>
327
- </tr>
328
- <tr>
329
- <th scope="row">Color Block Shape</th>
330
- <td>
331
- <fieldset><legend class="screen-reader-text"><span>Color Block Shape</span></legend>
332
- <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 />
333
- <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 />
334
- <p>If "Color Block" is selected for "FAQ Display Style", should the block be square or circle?</p>
335
- </fieldset>
336
- </td>
337
- </tr>
338
- <tr>
339
- <th scope="row">Reveal Effect</th>
340
- <td>
341
- <fieldset><legend class="screen-reader-text"><span>Reveal Effect</span></legend>
342
- <label title='Reveal Effect'></label>
343
-
344
- <select name="reveal_effect" <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> >
345
- <option value="none" <?php if($Reveal_Effect == "none") {echo "selected=selected";} ?> >None</option>
346
- <option value="blind" <?php if($Reveal_Effect == "blind") {echo "selected=selected";} ?> >Blind</option>
347
- <option value="bounce" <?php if($Reveal_Effect == "bounce") {echo "selected=selected";} ?> >Bounce</option>
348
- <option value="clip" <?php if($Reveal_Effect == "clip") {echo "selected=selected";} ?> >Clip</option>
349
- <option value="drop" <?php if($Reveal_Effect == "drop") {echo "selected=selected";} ?> >Drop</option>
350
- <option value="explode" <?php if($Reveal_Effect == "explode") {echo "selected=selected";} ?> >Explode</option>
351
- <option value="fade" <?php if($Reveal_Effect == "fade") {echo "selected=selected";} ?> >Fade</option>
352
- <option value="fold" <?php if($Reveal_Effect == "fold") {echo "selected=selected";} ?> >Fold</option>
353
- <option value="highlight" <?php if($Reveal_Effect == "highlight") {echo "selected=selected";} ?> >Highlight</option>
354
- <option value="puff" <?php if($Reveal_Effect == "puff") {echo "selected=selected";} ?> >Puff</option>
355
- <option value="pulsate" <?php if($Reveal_Effect == "pulsate") {echo "selected=selected";} ?> >Pulsate</option>
356
- <option value="shake" <?php if($Reveal_Effect == "shake") {echo "selected=selected";} ?> >Shake</option>
357
- <option value="size" <?php if($Reveal_Effect == "size") {echo "selected=selected";} ?> >Size</option>
358
- <option value="slide" <?php if($Reveal_Effect == "slide") {echo "selected=selected";} ?> >Slide</option>
359
- </select>
360
-
361
- <p>How should FAQ's be displayed when their titles are clicked?</p>
362
- </fieldset>
363
- </td>
364
- </tr>
365
- </table>
366
-
367
- <br />
368
- <h3 id="premium-general-options" class="ufaq-options-page-tab-title"><?php _e('General', 'EWD_UFAQ'); ?></h3>
369
-
370
- <table class="form-table">
371
- <tr>
372
- <th scope="row">FAQ Ratings</th>
373
- <td>
374
- <fieldset><legend class="screen-reader-text"><span>FAQ Ratings</span></legend>
375
- <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 />
376
- <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 />
377
- <p>Should visitors be able to up or down vote FAQs to let others know if they found them helpful?</p>
378
- </fieldset>
379
- </td>
380
- </tr>
381
- <tr>
382
- <th scope="row">Pretty Permalinks</th>
383
- <td>
384
- <fieldset><legend class="screen-reader-text"><span>Pretty Permalinks</span></legend>
385
- <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 />
386
- <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 />
387
- <p>Should an SEO friendly permalink structure be used for the link to this FAQ?</p>
388
- </fieldset>
389
- </td>
390
- </tr>
391
- <tr>
392
- <th scope="row">FAQ Auto Complete Titles</th>
393
- <td>
394
- <fieldset><legend class="screen-reader-text"><span>FAQ Auto Complete Titles</span></legend>
395
- <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 />
396
- <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 />
397
- <p>Should the FAQ Titles auto complete? </p>
398
- </fieldset>
399
- </td>
400
- </tr>
401
- <tr>
402
- <th scope="row">FAQ Slug Base</th>
403
- <td>
404
- <fieldset><legend class="screen-reader-text"><span>FAQ Slug Base</span></legend>
405
- <input type='text' name='slug_base' value='<?php echo $Slug_Base; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> size='60'/>
406
- <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>
407
- </fieldset>
408
- </td>
409
- </tr>
410
- <tr>
411
- <th scope="row">Social Media Option</th>
412
- <td>
413
- <fieldset><legend class="screen-reader-text"><span>Social Media Option</span></legend>
414
- <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 />
415
- <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 />
416
- <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 />
417
- <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 />
418
- <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 />
419
- <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 />
420
- <div style='display:none;'><label title='Blank'><input type='checkbox' name='Socialmedia[]' value='Blank' checked='checked'/> <span>Blank</span></label></div>
421
- </fieldset>
422
- </td>
423
- </tr>
424
- </table>
425
-
426
- <br />
427
- <h3 id="premium-woocommerce-options" class="ufaq-options-page-tab-title"><?php _e('WooCommerce', 'EWD_UFAQ'); ?></h3>
428
-
429
- <table class="form-table">
430
- <tr>
431
- <th scope="row">WooCommerce FAQs</th>
432
- <td>
433
- <fieldset><legend class="screen-reader-text"><span>WooCommerce FAQs</span></legend>
434
- <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 />
435
- <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 />
436
- <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>
437
- </fieldset>
438
- </td>
439
- </tr>
440
- <tr>
441
- <th scope="row">Use WooCommerce Product Object</th>
442
- <td>
443
- <fieldset><legend class="screen-reader-text"><span>Use WooCommerce Product Object</span></legend>
444
- <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 />
445
- <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 />
446
- <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>
447
- </fieldset>
448
- </td>
449
- </tr>
450
- </table>
451
-
452
- <br />
453
- <h3 id="premium-submit-faq-options" class="ufaq-options-page-tab-title"><?php _e('Submit FAQ', 'EWD_UFAQ'); ?></h3>
454
-
455
- <table class="form-table">
456
- <tr>
457
- <th scope="row">Allow Proposed Answer</th>
458
- <td>
459
- <fieldset><legend class="screen-reader-text"><span>Allow Proposed Answer</span></legend>
460
- <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 />
461
- <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 />
462
- <p>When using the user-submitted question shortcode, should users be able to propose an answer to the question they're submitting?</p>
463
- </fieldset>
464
- </td>
465
- </tr>
466
- <tr>
467
- <th scope="row">Admin Question Notification</th>
468
- <td>
469
- <fieldset><legend class="screen-reader-text"><span>Admin Question Notification</span></legend>
470
- <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 />
471
- <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 />
472
- <p>Should an email be sent to the site administrator when a question is submitted?</p>
473
- </fieldset>
474
- </td>
475
- </tr>
476
- </table>
477
- </div>
478
-
479
- <div id='Order' class='ufaq-option-set ufaq-hidden'>
480
- <h2 id='label-order-options' class='ufaq-options-page-tab-title'>Ordering Options</h2>
481
- <table class="form-table">
482
- <tr>
483
- <th scope="row">Group FAQs by Category</th>
484
- <td>
485
- <fieldset><legend class="screen-reader-text"><span>Group FAQs by Category</span></legend>
486
- <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 />
487
- <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 />
488
- <p>Should FAQs be grouped by category, or should all categories be mixed together?</p>
489
- </fieldset>
490
- </td>
491
- </tr>
492
- <tr>
493
- <th scope="row">Sort Categories</th>
494
- <td>
495
- <fieldset><legend class="screen-reader-text"><span>Sort Categories</span></legend>
496
- <label title='Group By Order By'></label>
497
-
498
- <select name="group_by_order_by" <?php if ($UFAQ_Full_Version != "Yes" and get_option("EWD_UFAQ_Install_Version") < 1.6) {echo "disabled";} ?> >
499
- <option value="name" <?php if($Group_By_Order_By == "name") {echo "selected=selected";} ?> >Name</option>
500
- <option value="count" <?php if($Group_By_Order_By == "count") {echo "selected=selected";} ?> >FAQ Count</option>
501
- <option value="slug" <?php if($Group_By_Order_By == "slug") {echo "selected=selected";} ?> >Slug</option>
502
- </select>
503
-
504
- <p>How should FAQ categories be ordered? (Only used if "Group FAQs by Category" above is set to "Yes"). Please note, this is a premium feature.</p>
505
- </fieldset>
506
- </td>
507
- </tr>
508
- <tr>
509
- <th scope="row">Sort Categories Ordering</th>
510
- <td>
511
- <fieldset><legend class="screen-reader-text"><span>Sort Categories Ordering</span></legend>
512
- <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 />
513
- <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 />
514
- <p>How should FAQ categories be ordered? (Only used if "Group FAQs by Category" above is set to "Yes")</p>
515
- </fieldset>
516
- </td>
517
- </tr>
518
- <tr>
519
- <th scope="row">FAQ Ordering</th>
520
- <td>
521
- <fieldset><legend class="screen-reader-text"><span>FAQ Ordering</span></legend>
522
- <label title='FAQ Ordering'></label>
523
-
524
- <select name="order_by_setting" <?php if ($UFAQ_Full_Version != "Yes" and get_option("EWD_UFAQ_Install_Version") < 1.6) {echo "disabled";} ?> >
525
- <option value="date" <?php if($Order_By_Setting == "date") {echo "selected=selected";} ?> >Created Date</option>
526
- <option value="title" <?php if($Order_By_Setting == "title") {echo "selected=selected";} ?> >Title</option>
527
- <option value="modified" <?php if($Order_By_Setting == "modified") {echo "selected=selected";} ?> >Modified Date</option>
528
- <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>
529
- </select>
530
-
531
- <p>How should individual FAQs be ordered? <?php if (get_option("EWD_UFAQ_Install_Version") >= 1.6) {?> Please note, this is a premium feature. <?php } ?></p>
532
- </fieldset>
533
- </td>
534
- </tr>
535
- <tr>
536
- <th scope="row">FAQ Order Setting</th>
537
- <td>
538
- <fieldset><legend class="screen-reader-text"><span>Sort Categories Ordering</span></legend>
539
- <label title='Yes'><input type='radio' name='order_setting' value='ASC' <?php if($Order_Setting == "ASC") {echo "checked='checked'";} ?> /> <span>Ascending</span></label><br />
540
- <label title='No'><input type='radio' name='order_setting' value='DESC' <?php if($Order_Setting == "DESC") {echo "checked='checked'";} ?> /> <span>Descending</span></label><br />
541
- <p>Should FAQ be ascending or descending order, based on the ordering criteria above?</p>
542
- </fieldset>
543
- </td>
544
- </tr>
545
- </table>
546
-
547
- <div class='ufaq-order-table'>
548
- <h3><?php echo __("Order Table", 'EWD_UFAQ'); ?></h3>
549
- <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>
550
- <?php
551
- if ($UFAQ_Full_Version != "Yes") {echo "<p>Upgrade to premium to access this feature.</p>";}
552
- else {
553
- ?>
554
- <!--<div id="col-right">
555
- <div class="col-wrap">
556
- <div id="add-page" class="postbox metabox-holder" >
557
- <div class="inside">
558
- <div id="posttype-page" class="posttypediv">-->
559
- <div id="tabs-panel-posttype-page-most-recent" class="tabs-panel tabs-panel-active">
560
-
561
- <table class="wp-list-table widefat tags sorttable ewd-ufaq-list">
562
- <thead>
563
- <tr>
564
- <th><?php _e("Question", 'EWD_UFAQ') ?></th>
565
- <th><?php _e("Views", 'EWD_UFAQ') ?></th>
566
- <th><?php _e("Categories", 'EWD_UFAQ') ?></th>
567
- <th><?php _e("Tags", 'EWD_UFAQ') ?></th>
568
- </tr>
569
- </thead>
570
- <tbody>
571
- <?php
572
- $params = array(
573
- 'post_type' => 'ufaq',
574
- 'posts_per_page' => -1,
575
- 'meta_key' => 'ufaq_order',
576
- 'orderby' => 'meta_value_num',
577
- 'order' => 'ASC'
578
- );
579
- $FAQs = get_posts($params);
580
- if (empty($FAQs)) { echo "<div class='ewd-ufaq-row list-item'><p>No FAQs have been created<p/></div>"; }
581
- else {
582
- foreach ($FAQs as $FAQ) {
583
- $FAQ_Views = get_post_meta($FAQ->ID, 'ufaq_view_count', true);
584
- $FAQ_Categories = get_the_term_list($FAQ->ID, 'ufaq-category', '', ', ', '');
585
- $FAQ_Tags = get_the_term_list($FAQ->ID, 'ufaq-tag', '', ', ', '');
586
- echo "<tr id='ewd-ufaq-item-" . $FAQ->ID . "' class='ewd-ufaq-item'>";
587
- echo "<td class='ufaq-title'>" . $FAQ->post_title . "</td>";
588
- echo "<td class='ufaq-title'>" . $FAQ_Views . "</td>";
589
- echo "<td class='ufaq-title'>" . $FAQ_Categories . "</td>";
590
- echo "<td class='ufaq-title'>" . $FAQ_Tags . "</td>";
591
- echo "</tr>";
592
- }
593
- }?>
594
- </tbody>
595
- <tfoot>
596
- <tr>
597
- <th><?php _e("Question", 'EWD_UFAQ') ?></th>
598
- <th><?php _e("Views", 'EWD_UFAQ') ?></th>
599
- <th><?php _e("Categories", 'EWD_UFAQ') ?></th>
600
- <th><?php _e("Tags", 'EWD_UFAQ') ?></th>
601
- </tr>
602
- </tfoot>
603
- </table>
604
- </div>
605
- <?php } ?>
606
-
607
- </div>
608
- </div>
609
-
610
- <div id='Fields' class='ufaq-option-set ufaq-hidden'>
611
- <h2 id='label-order-options' class='ufaq-options-page-tab-title'>Fields Options (Premium)</h2>
612
- <table class="form-table">
613
- <tr>
614
- <th scope="row">FAQ Custom Fields</th>
615
- <td>
616
- <fieldset><legend class="screen-reader-text"><span>FAQ Custom Fields</span></legend>
617
- <table id='ewd-ufaq-custom-fields-table'>
618
- <tr>
619
- <th></th>
620
- <th>Field Name</th>
621
- <th>Field Type</th>
622
- <th>Field Values</th>
623
- </tr>
624
- <?php
625
- $Counter = 0;
626
- $Max_ID = 0;
627
- if (!is_array($FAQ_Fields_Array)) {$FAQ_Fields_Array = array();}
628
- foreach ($FAQ_Fields_Array as $FAQ_Field_Item) {
629
- echo "<tr id='ewd-ufaq-custom-field-row-" . $Counter . "'>";
630
- 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>";
631
- echo "<td><input type='text' name='Custom_Field_" . $Counter . "_Name' value='" . $FAQ_Field_Item['FieldName'] . "'/></td>";
632
- echo "<td><select name='Custom_Field_" . $Counter . "_Type'>"; ?>
633
- <option value='text' <?php if ($FAQ_Field_Item['FieldType'] == "text") {echo "selected='selected'";} ?>>Text</option>
634
- <option value='textarea' <?php if ($FAQ_Field_Item['FieldType'] == "textarea") {echo "selected='selected'";} ?>>Text Area</option>
635
- <option value='select' <?php if ($FAQ_Field_Item['FieldType'] == "select") {echo "selected='selected'";} ?>>Select Box</option>
636
- <option value='radio' <?php if ($FAQ_Field_Item['FieldType'] == "radio") {echo "selected='selected'";} ?>>Radio Buttons</option>
637
- <option value='checkbox' <?php if ($FAQ_Field_Item['FieldType'] == "checkbox") {echo "selected='selected'";} ?>>Checkbox</option>
638
- <option value='file' <?php if ($FAQ_Field_Item['FieldType'] == "file") {echo "selected='selected'";} ?>>File</option>
639
- <option value='link' <?php if ($FAQ_Field_Item['FieldType'] == "link") {echo "selected='selected'";} ?>>Link</option>
640
- <option value='date' <?php if ($FAQ_Field_Item['FieldType'] == "date") {echo "selected='selected'";} ?>>Date</option>
641
- <option value='datetime' <?php if ($FAQ_Field_Item['FieldType'] == "datetime") {echo "selected='selected'";} ?>>Date/Time</option>
642
- <?php echo "</select></td>";
643
- echo "<td><input type='text' name='Custom_Field_" . $Counter . "_Values' value='" . $FAQ_Field_Item['FieldValues'] . "'/></td>";
644
- echo "</tr>";
645
- $Counter++;
646
- $Max_ID = max($Max_ID, $Email_Message_Item['ID']);
647
- }
648
- $Max_ID++;
649
- echo "<tr><td colspan='4'><a class='ewd-ufaq-add-custom-field' data-nextid='" . $Counter . "' data-maxid='" . $Max_ID . "'>Add</a></td></tr>";
650
- ?>
651
- </table>
652
- <p>Should any extra fields be added to the FAQs?<br />
653
- 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>
654
- </fieldset>
655
- </td>
656
- </tr>
657
- <tr>
658
- <th scope="row">Hide Blank Fields</th>
659
- <td>
660
- <fieldset><legend class="screen-reader-text"><span>Hide Blank Fields</span></legend>
661
- <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 />
662
- <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 />
663
- <p>Should field labels been hidden if a field hasn't been filled out for a particular FAQ?</p>
664
- </fieldset>
665
- </td>
666
- </tr>
667
- </table>
668
- </div>
669
-
670
-
671
- <div id='Labelling' class='ufaq-option-set ufaq-hidden'>
672
- <h2 id='label-order-options' class='ufaq-options-page-tab-title'>Labelling Options</h2>
673
- <div class="ufaq-label-description"> Replace the default text on the FAQ page </div>
674
-
675
- <div id='labelling-view-options' class="ufaq-options-div ufaq-options-flex">
676
- <div class='ufaq-subsection'>
677
- <div class='ufaq-subsection-content' id='ufaq-subsection-inline'>
678
- <div class='ufaq-option ufaq-label-option'>
679
- <?php _e("Posted", 'EWD_UFAQ')?>
680
- <fieldset>
681
- <input type='text' name='posted_label' value='<?php echo $Posted_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
682
- </fieldset>
683
- </div>
684
- <div class='ufaq-option ufaq-label-option'>
685
- <?php _e("By", 'EWD_UFAQ')?>
686
- <fieldset>
687
- <input type='text' name='by_label' value='<?php echo $By_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
688
- </fieldset>
689
- </div>
690
- <div class='ufaq-option ufaq-label-option'>
691
- <?php _e("On", 'EWD_UFAQ')?>
692
- <fieldset>
693
- <input type='text' name='on_label' value='<?php echo $On_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
694
- </fieldset>
695
- </div>
696
- <div class='ufaq-option ufaq-label-option'>
697
- <?php _e("Categories", 'EWD_UFAQ')?>
698
- <fieldset>
699
- <input type='text' name='category_label' value='<?php echo $Category_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> />
700
- </fieldset>
701
- </div>
702
- <div class='ufaq-option ufaq-label-option'>
703
- <?php _e("Tags", 'EWD_UFAQ')?>
704
- <fieldset>
705
- <input type='text' name='tag_label' value='<?php echo $Tag_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
706
- </fieldset>
707
- </div>
708
- <div class='ufaq-option ufaq-label-option'>
709
- <?php _e("Enter your question", 'EWD_UFAQ')?>
710
- <fieldset>
711
- <input type='text' name='enter_question_label' value='<?php echo $Enter_Question_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
712
- </fieldset>
713
- </div>
714
- <div class='ufaq-option ufaq-label-option'>
715
- <?php _e("Search", 'EWD_UFAQ')?>
716
- <fieldset>
717
- <input type='text' name='search_label' value='<?php echo $Search_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
718
- </fieldset>
719
- </div>
720
- <div class='ufaq-option ufaq-label-option'>
721
- <?php _e("Permalink", 'EWD_UFAQ')?>
722
- <fieldset>
723
- <input type='text' name='permalink_label' value='<?php echo $Permalink_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
724
- </fieldset>
725
- </div>
726
- <div class='ufaq-option ufaq-label-option'>
727
- <?php _e("Back To Top", 'EWD_UFAQ')?>
728
- <fieldset>
729
- <input type='text' name='back_to_top_label' value='<?php echo $Back_To_Top_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
730
- </fieldset>
731
- </div>
732
- <div class='ufaq-option ufaq-label-option'>
733
- <?php _e("WooCommerce Tab Label", 'EWD_UFAQ')?>
734
- <fieldset>
735
- <input type='text' name='woocommerce_tab_label' value='<?php echo $WooCommerce_Tab_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
736
- </fieldset>
737
- </div>
738
- </div>
739
- </div>
740
- <div class='ufaq-subsection'>
741
- <div class='ufaq-subsection-content' id='ufaq-subsection-inline'>
742
- <div class='ufaq-option ufaq-label-option'>
743
- <?php _e("Thank you for submitting an FAQ", 'EWD_UFAQ')?>
744
- <fieldset>
745
- <input type='text' name='thank_you_submit_label' value='<?php echo $Thank_You_Submit_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
746
- </fieldset>
747
- </div>
748
- <div class='ufaq-option ufaq-label-option'>
749
- <?php _e("Submit a Question", 'EWD_UFAQ')?>
750
- <fieldset>
751
- <input type='text' name='submit_question_label' value='<?php echo $Submit_Question_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
752
- </fieldset>
753
- </div>
754
- <div class='ufaq-option ufaq-label-option'>
755
- <?php _e("Please fill out the form below to submit a question.", 'EWD_UFAQ')?>
756
- <fieldset>
757
- <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";} ?>/>
758
- </fieldset>
759
- </div>
760
- <div class='ufaq-option ufaq-label-option'>
761
- <?php _e("Send Question", 'EWD_UFAQ')?>
762
- <fieldset>
763
- <input type='text' name='send_question_label' value='<?php echo $Send_Question_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
764
- </fieldset>
765
- </div>
766
- <div class='ufaq-option ufaq-label-option'>
767
- <?php _e("Question Title", 'EWD_UFAQ')?>
768
- <fieldset>
769
- <input type='text' name='question_title_label' value='<?php echo $Question_Title_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
770
- </fieldset>
771
- </div>
772
- <div class='ufaq-option ufaq-label-option'>
773
- <?php _e("What question is being answered?", 'EWD_UFAQ')?>
774
- <fieldset>
775
- <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";} ?>/>
776
- </fieldset>
777
- </div>
778
- <div class='ufaq-option ufaq-label-option'>
779
- <?php _e("Proposed Answer", 'EWD_UFAQ')?>
780
- <fieldset>
781
- <input type='text' name='proposed_answer_label' value='<?php echo $Proposed_Answer_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
782
- </fieldset>
783
- </div>
784
- <div class='ufaq-option ufaq-label-option'>
785
- <?php _e("Question Author", 'EWD_UFAQ')?>
786
- <fieldset>
787
- <input type='text' name='review_author_label' value='<?php echo $Review_Author_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
788
- </fieldset>
789
- </div>
790
- <div class='ufaq-option ufaq-label-option'>
791
- <?php _e("What name should be displayed with your question?", 'EWD_UFAQ')?>
792
- <fieldset>
793
- <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";} ?>/>
794
- </fieldset>
795
- </div>
796
- <div class='ufaq-option ufaq-label-option'>
797
- <?php _e("Retrieving Results", 'EWD_UFAQ')?>
798
- <fieldset>
799
- <input type='text' name='retrieving_results' value='<?php echo $Retrieving_Results; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
800
- </fieldset>
801
- </div>
802
- <div class='ufaq-option ufaq-label-option'>
803
- <?php _e("No results FAQ's contained the term '%s'", 'EWD_UFAQ')?>
804
- <fieldset>
805
- <input type='text' name='no_results_found_text' value='<?php echo $No_Results_Found_Text; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
806
- </fieldset>
807
- </div>
808
- </div>
809
- </div>
810
- </div>
811
- </div>
812
- <div id='Styling' class='ufaq-option-set ufaq-hidden'>
813
- <h2 id='label-order-options' class='ufaq-options-page-tab-title'>Styling Options (Premium)</h2>
814
-
815
- <div id='ufaq-styling-options' class="ufaq-options-div ufaq-options-flex">
816
- <div class='ufaq-subsection'>
817
- <div class='ufaq-subsection-header'>Toggle Symbol</div>
818
- <div class='ufaq-subsection-content'>
819
- <div class='ufaq-option ufaq-styling-option'>
820
- <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 />
821
- <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 />
822
- <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 />
823
- <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 />
824
- <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 />
825
- <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 />
826
- <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 />
827
- <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 />
828
- <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 />
829
- <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 />
830
- <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 />
831
- <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 />
832
- <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 />
833
- <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 />
834
- <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 />
835
- </div>
836
- </div>
837
- </div>
838
- <div class='ufaq-subsection'>
839
- <div class='ufaq-subsection-header'>Color Block Theme</div>
840
- <div class='ufaq-subsection-content'>
841
- <div class='ufaq-option ufaq-styling-option'>
842
- <div class='ufaq-option-label'>Icon Background Color</div>
843
- <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>
844
- </div>
845
- <div class='ufaq-option ufaq-styling-option'>
846
- <div class='ufaq-option-label'>Icon Font Color</div>
847
- <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>
848
- </div>
849
- <div class='ufaq-option ufaq-styling-option'>
850
- <div class='ufaq-option-label'>Icon Border Color</div>
851
- <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>
852
- </div>
853
- <div class='ufaq-option ufaq-styling-option'>
854
- <div class='ufaq-option-label'>Icon Border Radius</div>
855
- <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>
856
- </div>
857
- </div>
858
- </div>
859
- <div class='ufaq-subsection'>
860
- <div class='ufaq-subsection-header'>Block Theme</div>
861
- <div class='ufaq-subsection-content'>
862
- <div class='ufaq-option ufaq-styling-option'>
863
- <div class='ufaq-option-label'>Hover Background Color</div>
864
- <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>
865
- </div>
866
- <div class='ufaq-option ufaq-styling-option'>
867
- <div class='ufaq-option-label'>Hover Font Color</div>
868
- <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>
869
- </div>
870
- </div>
871
- </div>
872
- <div class='ufaq-subsection'>
873
- <div class='ufaq-subsection-header'>List Theme Anchors</div>
874
- <div class='ufaq-subsection-content'>
875
- <div class='ufaq-option ufaq-styling-option'>
876
- <div class='ufaq-option-label'>Font Family</div>
877
- <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>
878
- </div>
879
- <div class='ufaq-option ufaq-styling-option'>
880
- <div class='ufaq-option-label'>Font Size</div>
881
- <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>
882
- </div>
883
- <div class='ufaq-option ufaq-styling-option'>
884
- <div class='ufaq-option-label'>Font Color</div>
885
- <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>
886
- </div>
887
- <div class='ufaq-option ufaq-styling-option'>
888
- <div class='ufaq-option-label'>Margin</div>
889
- <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>
890
- </div>
891
- <div class='ufaq-option ufaq-styling-option'>
892
- <div class='ufaq-option-label'>Padding</div>
893
- <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>
894
- </div>
895
- </div>
896
- </div>
897
- <div class='ufaq-subsection'>
898
- <div class='ufaq-subsection-header'>FAQ Question</div>
899
- <div class='ufaq-subsection-content'>
900
- <div class='ufaq-option ufaq-styling-option'>
901
- <div class='ufaq-option-label'>Font Family</div>
902
- <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>
903
- </div>
904
- <div class='ufaq-option ufaq-styling-option'>
905
- <div class='ufaq-option-label'>Font Size</div>
906
- <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>
907
- </div>
908
- <div class='ufaq-option ufaq-styling-option'>
909
- <div class='ufaq-option-label'>Font Color</div>
910
- <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>
911
- </div>
912
- <div class='ufaq-option ufaq-styling-option'>
913
- <div class='ufaq-option-label'>Margin</div>
914
- <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>
915
- </div>
916
- <div class='ufaq-option ufaq-styling-option'>
917
- <div class='ufaq-option-label'>Padding</div>
918
- <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>
919
- </div>
920
- <div class='ufaq-option ufaq-styling-option'>
921
- <div class='ufaq-option-label'>Toggle Symbol Top Margin</div>
922
- <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>
923
- </div>
924
- </div>
925
- </div>
926
- <div class='ufaq-subsection'>
927
- <div class='ufaq-subsection-header'>FAQ Answer</div>
928
- <div class='ufaq-subsection-content'>
929
- <div class='ufaq-option ufaq-styling-option'>
930
- <div class='ufaq-option-label'>Font Family</div>
931
- <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>
932
- </div>
933
- <div class='ufaq-option ufaq-styling-option'>
934
- <div class='ufaq-option-label'>Font Size</div>
935
- <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>
936
- </div>
937
- <div class='ufaq-option ufaq-styling-option'>
938
- <div class='ufaq-option-label'>Font Color</div>
939
- <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>
940
- </div>
941
- <div class='ufaq-option ufaq-styling-option'>
942
- <div class='ufaq-option-label'>Margin</div>
943
- <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>
944
- </div>
945
- <div class='ufaq-option ufaq-styling-option'>
946
- <div class='ufaq-option-label'>Padding</div>
947
- <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>
948
- </div>
949
- </div>
950
- </div>
951
- <div class='ufaq-subsection'>
952
- <div class='ufaq-subsection-header'>FAQ Post Date</div>
953
- <div class='ufaq-subsection-content'>
954
- <div class='ufaq-option ufaq-styling-option'>
955
- <div class='ufaq-option-label'>Font Family</div>
956
- <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>
957
- </div>
958
- <div class='ufaq-option ufaq-styling-option'>
959
- <div class='ufaq-option-label'>Font Size</div>
960
- <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>
961
- </div>
962
- <div class='ufaq-option ufaq-styling-option'>
963
- <div class='ufaq-option-label'>Font Color</div>
964
- <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>
965
- </div>
966
- <div class='ufaq-option ufaq-styling-option'>
967
- <div class='ufaq-option-label'>Margin</div>
968
- <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>
969
- </div>
970
- <div class='ufaq-option ufaq-styling-option'>
971
- <div class='ufaq-option-label'>Padding</div>
972
- <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>
973
- </div>
974
- </div>
975
- </div>
976
- <div class='ufaq-subsection'>
977
- <div class='ufaq-subsection-header'>FAQ Category, Tags</div>
978
- <div class='ufaq-subsection-content'>
979
- <div class='ufaq-option ufaq-styling-option'>
980
- <div class='ufaq-option-label'>Font Family</div>
981
- <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>
982
- </div>
983
- <div class='ufaq-option ufaq-styling-option'>
984
- <div class='ufaq-option-label'>Font Size</div>
985
- <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>
986
- </div>
987
- <div class='ufaq-option ufaq-styling-option'>
988
- <div class='ufaq-option-label'>Font Color</div>
989
- <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>
990
- </div>
991
- <div class='ufaq-option ufaq-styling-option'>
992
- <div class='ufaq-option-label'>Margin</div>
993
- <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>
994
- </div>
995
- <div class='ufaq-option ufaq-styling-option'>
996
- <div class='ufaq-option-label'>Padding</div>
997
- <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>
998
- </div>
999
- </div>
1000
- </div>
1001
- <div class='ufaq-subsection'>
1002
- <div class='ufaq-subsection-header'>FAQ Heading Types</div>
1003
- <div class='ufaq-subsection-content'>
1004
- <div class='ufaq-option ufaq-styling-option'>
1005
- <div class='ufaq-option-label'>Category Heading Type</div>
1006
- <div class='ufaq-option-input'>
1007
- <select name='ufaq_styling_category_heading_type' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> >
1008
- <option value='h1' <?php if ($UFAQ_Styling_Category_Heading_Type == 'h1') {echo "selected='selected'";} ?>>H1</option>
1009
- <option value='h2' <?php if ($UFAQ_Styling_Category_Heading_Type == 'h2') {echo "selected='selected'";} ?>>H2</option>
1010
- <option value='h3' <?php if ($UFAQ_Styling_Category_Heading_Type == 'h3') {echo "selected='selected'";} ?>>H3</option>
1011
- <option value='h4' <?php if ($UFAQ_Styling_Category_Heading_Type == 'h4') {echo "selected='selected'";} ?>>H4</option>
1012
- <option value='h5' <?php if ($UFAQ_Styling_Category_Heading_Type == 'h5') {echo "selected='selected'";} ?>>H5</option>
1013
- <option value='h6' <?php if ($UFAQ_Styling_Category_Heading_Type == 'h6') {echo "selected='selected'";} ?>>H6</option>
1014
- </select>
1015
- </div>
1016
- </div>
1017
- <div class='ufaq-option ufaq-styling-option'>
1018
- <div class='ufaq-option-label'>FAQ Heading Type</div>
1019
- <div class='ufaq-option-input'>
1020
- <select name='ufaq_styling_faq_heading_type' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> >
1021
- <option value='h1' <?php if ($UFAQ_Styling_FAQ_Heading_Type == 'h1') {echo "selected='selected'";} ?>>H1</option>
1022
- <option value='h2' <?php if ($UFAQ_Styling_FAQ_Heading_Type == 'h2') {echo "selected='selected'";} ?>>H2</option>
1023
- <option value='h3' <?php if ($UFAQ_Styling_FAQ_Heading_Type == 'h3') {echo "selected='selected'";} ?>>H3</option>
1024
- <option value='h4' <?php if ($UFAQ_Styling_FAQ_Heading_Type == 'h4') {echo "selected='selected'";} ?>>H4</option>
1025
- <option value='h5' <?php if ($UFAQ_Styling_FAQ_Heading_Type == 'h5') {echo "selected='selected'";} ?>>H5</option>
1026
- <option value='h6' <?php if ($UFAQ_Styling_FAQ_Heading_Type == 'h6') {echo "selected='selected'";} ?>>H6</option>
1027
- </select>
1028
- </div>
1029
- </div>
1030
- </div>
1031
- </div>
1032
-
1033
- </div>
1034
- </div>
1035
-
1036
- <p class="submit"><input type="submit" name="Options_Submit" id="submit" class="button button-primary" value="Save Changes" /></p></form>
1037
-
1038
- <?php /* </div><!-- /.tabs-panel -->
1039
- </div><!-- /.posttypediv -->
1040
- </div>
1041
- </div>
1042
- </div>
1043
- </div><!-- col-right --> */ ?>
1044
- </div>
1045
- </div>
1
+ <?php
2
+ $Custom_CSS = get_option("EWD_UFAQ_Custom_CSS");
3
+ $FAQ_Toggle = get_option("EWD_UFAQ_Toggle");
4
+ $FAQ_Category_Toggle = get_option("EWD_UFAQ_Category_Toggle");
5
+ $Expand_Collapse_All = get_option("EWD_UFAQ_Expand_Collapse_All");
6
+ $FAQ_Accordion = get_option("EWD_UFAQ_FAQ_Accordion");
7
+ $Hide_Categories = get_option("EWD_UFAQ_Hide_Categories");
8
+ $Hide_Tags = get_option("EWD_UFAQ_Hide_Tags");
9
+ $Scroll_To_Top = get_option("EWD_UFAQ_Scroll_To_Top");
10
+ $Display_All_Answers = get_option("EWD_UFAQ_Display_All_Answers");
11
+ $Display_Author = get_option("EWD_UFAQ_Display_Author");
12
+ $Display_Date = get_option("EWD_UFAQ_Display_Date");
13
+ $Display_Back_To_Top = get_option("EWD_UFAQ_Display_Back_To_Top");
14
+ $Include_Permalink = get_option("EWD_UFAQ_Include_Permalink");
15
+ $Permalink_Type = get_option("EWD_UFAQ_Permalink_Type");
16
+ $Show_TinyMCE = get_option("EWD_UFAQ_Show_TinyMCE");
17
+ $Comments_On = get_option("EWD_UFAQ_Comments_On");
18
+
19
+ $Display_Style = get_option("EWD_UFAQ_Display_Style");
20
+ $Color_Block_Shape = get_option("EWD_UFAQ_Color_Block_Shape");
21
+ $FAQ_Ratings = get_option("EWD_UFAQ_FAQ_Ratings");
22
+ $WooCommerce_FAQs = get_option("EWD_UFAQ_WooCommerce_FAQs");
23
+ $Use_Product = get_option("EWD_UFAQ_Use_Product");
24
+ $Reveal_Effect = get_option("EWD_UFAQ_Reveal_Effect");
25
+ $Pretty_Permalinks = get_option("EWD_UFAQ_Pretty_Permalinks");
26
+ $Allow_Proposed_Answer = get_option("EWD_UFAQ_Allow_Proposed_Answer");
27
+ $Admin_Question_Notification = get_option("EWD_UFAQ_Admin_Question_Notification");
28
+ $FAQ_Auto_Complete_Titles = get_option("EWD_UFAQ_Auto_Complete_Titles");
29
+ $Slug_Base = get_option("EWD_UFAQ_Slug_Base");
30
+ $Socialmedia_String = get_option("EWD_UFAQ_Social_Media");
31
+ $Socialmedia = explode(",", $Socialmedia_String);
32
+
33
+ $Group_By_Category = get_option("EWD_UFAQ_Group_By_Category");
34
+ $Group_By_Order_By = get_option("EWD_UFAQ_Group_By_Order_By");
35
+ $Group_By_Order = get_option("EWD_UFAQ_Group_By_Order");
36
+ $Order_By_Setting = get_option("EWD_UFAQ_Order_By");
37
+ $Order_Setting = get_option("EWD_UFAQ_Order");
38
+
39
+ $FAQ_Fields_Array = get_option("EWD_UFAQ_FAQ_Fields");
40
+ $Hide_Blank_Fields = get_option("EWD_UFAQ_Hide_Blank_Fields");
41
+
42
+ $Posted_Label = get_option("EWD_UFAQ_Posted_Label");
43
+ $By_Label = get_option("EWD_UFAQ_By_Label");
44
+ $On_Label = get_option("EWD_UFAQ_On_Label");
45
+ $Category_Label = get_option("EWD_UFAQ_Category_Label");
46
+ $Tag_Label = get_option("EWD_UFAQ_Tag_Label");
47
+ $Enter_Question_Label = get_option("EWD_UFAQ_Enter_Question_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
+ $WooCommerce_Tab_Label = get_option("EWD_UFAQ_WooCommerce_Tab_Label");
52
+
53
+ $Thank_You_Submit_Label = get_option("EWD_UFAQ_Thank_You_Submit_Label");
54
+ $Submit_Question_Label = get_option("EWD_UFAQ_Submit_Question_Label");
55
+ $Please_Fill_Form_Below_Label = get_option("EWD_UFAQ_Please_Fill_Form_Below_Label");
56
+ $Send_Question_Label = get_option("EWD_UFAQ_Send_Question_Label");
57
+ $Question_Title_Label = get_option("EWD_UFAQ_Question_Title_Label");
58
+ $What_Question_Being_Answered_Label = get_option("EWD_UFAQ_What_Question_Being_Answered_Label");
59
+ $Proposed_Answer_Label = get_option("EWD_UFAQ_Proposed_Answer_Label");
60
+ $Review_Author_Label = get_option("EWD_UFAQ_Review_Author_Label");
61
+ $What_Name_With_Review_Label = get_option("EWD_UFAQ_What_Name_With_Review_Label");
62
+ $Retrieving_Results = get_option("EWD_UFAQ_Retrieving_Results");
63
+ $No_Results_Found_Text = get_option("EWD_UFAQ_No_Results_Found_Text");
64
+
65
+ $UFAQ_Styling_Default_Bg_Color = get_option("EWD_UFAQ_Styling_Default_Bg_Color");
66
+ $UFAQ_Styling_Default_Font_Color = get_option("EWD_UFAQ_Styling_Default_Font_Color");
67
+ $UFAQ_Styling_Default_Border = get_option("EWD_UFAQ_Styling_Default_Border");
68
+ $UFAQ_Styling_Default_Border_Radius = get_option("EWD_UFAQ_Styling_Default_Border_Radius");
69
+ $UFAQ_Styling_Block_Bg_Color = get_option("EWD_UFAQ_Styling_Block_Bg_Color");
70
+ $UFAQ_Styling_Block_Font_Color = get_option("EWD_UFAQ_Styling_Block_Font_Color");
71
+ $UFAQ_Styling_List_Font = get_option("EWD_UFAQ_Styling_List_Font");
72
+ $UFAQ_Styling_List_Font_Size = get_option("EWD_UFAQ_Styling_List_Font_Size");
73
+ $UFAQ_Styling_List_Font_Color = get_option("EWD_UFAQ_Styling_List_Font_Color");
74
+ $UFAQ_Styling_List_Margin = get_option("EWD_UFAQ_Styling_List_Margin");
75
+ $UFAQ_Styling_List_Padding = get_option("EWD_UFAQ_Styling_List_Padding");
76
+
77
+ $UFAQ_Styling_Question_Font = get_option("EWD_UFAQ_Styling_Question_Font");
78
+ $UFAQ_Styling_Question_Font_Size = get_option("EWD_UFAQ_Styling_Question_Font_Size");
79
+ $UFAQ_Styling_Question_Font_Color = get_option("EWD_UFAQ_Styling_Question_Font_Color");
80
+ $UFAQ_Styling_Question_Margin = get_option("EWD_UFAQ_Styling_Question_Margin");
81
+ $UFAQ_Styling_Question_Padding = get_option("EWD_UFAQ_Styling_Question_Padding");
82
+ $UFAQ_Styling_Question_Icon_Top_Margin = get_option("EWD_UFAQ_Styling_Question_Icon_Top_Margin");
83
+ $UFAQ_Styling_Answer_Font = get_option("EWD_UFAQ_Styling_Answer_Font");
84
+ $UFAQ_Styling_Answer_Font_Size = get_option("EWD_UFAQ_Styling_Answer_Font_Size");
85
+ $UFAQ_Styling_Answer_Font_Color = get_option("EWD_UFAQ_Styling_Answer_Font_Color");
86
+ $UFAQ_Styling_Answer_Margin = get_option("EWD_UFAQ_Styling_Answer_Margin");
87
+ $UFAQ_Styling_Answer_Padding = get_option("EWD_UFAQ_Styling_Answer_Padding");
88
+ $UFAQ_Styling_Postdate_Font = get_option("EWD_UFAQ_Styling_Postdate_Font");
89
+ $UFAQ_Styling_Postdate_Font_Size = get_option("EWD_UFAQ_Styling_Postdate_Font_Size");
90
+ $UFAQ_Styling_Postdate_Font_Color = get_option("EWD_UFAQ_Styling_Postdate_Font_Color");
91
+ $UFAQ_Styling_Postdate_Margin = get_option("EWD_UFAQ_Styling_Postdate_Margin");
92
+ $UFAQ_Styling_Postdate_Padding = get_option("EWD_UFAQ_Styling_Postdate_Padding");
93
+ $UFAQ_Styling_Category_Font = get_option("EWD_UFAQ_Styling_Category_Font");
94
+ $UFAQ_Styling_Category_Font_Size = get_option("EWD_UFAQ_Styling_Category_Font_Size");
95
+ $UFAQ_Styling_Category_Font_Color = get_option("EWD_UFAQ_Styling_Category_Font_Color");
96
+ $UFAQ_Styling_Category_Margin = get_option("EWD_UFAQ_Styling_Category_Margin");
97
+ $UFAQ_Styling_Category_Padding = get_option("EWD_UFAQ_Styling_Category_Padding");
98
+
99
+ $UFAQ_Styling_Category_Heading_Type = get_option("EWD_UFAQ_Styling_Category_Heading_Type");
100
+ $UFAQ_Styling_FAQ_Heading_Type = get_option("EWD_UFAQ_Styling_FAQ_Heading_Type");
101
+ $Toggle_Symbol = get_option("EWD_UFAQ_Toggle_Symbol");
102
+
103
+ if (!isset($Display_Tab)) {$Display_Tab = "";}
104
+ ?>
105
+ <div class="wrap ufaq-options-page-tabbed">
106
+ <div class="ufaq-options-submenu-div">
107
+ <ul class="ufaq-options-submenu ufaq-options-page-tabbed-nav">
108
+ <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>
109
+ <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>
110
+ <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>
111
+ <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>
112
+ <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>
113
+ <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>
114
+ </ul>
115
+ </div>
116
+
117
+
118
+ <div class="ufaq-options-page-tabbed-content">
119
+
120
+ <form method="post" action="admin.php?page=EWD-UFAQ-Options&DisplayPage=Options&Action=EWD_UFAQ_UpdateOptions">
121
+ <div id='Basic' class='ufaq-option-set'>
122
+ <h2 id='label-basic-options' class='ufaq-options-page-tab-title'>Basic Options</h2>
123
+ <br />
124
+
125
+ <div class="ewd-ufaq-shortcode-reminder">
126
+ <div class="ewd-ufaq-shortcode-reminder-message">REMINDER</div>
127
+ <div class="ewd-ufaq-shortcode-reminder-display">To display FAQs, place the <strong>[ultimate-faqs]</strong> shortcode on a page</div>
128
+ </div>
129
+
130
+ <br />
131
+ <h3 id="general-options" class="ufaq-options-page-tab-title"><?php _e('General', 'EWD_UFAQ'); ?></h3>
132
+ <table class="form-table">
133
+ <tr>
134
+ <th scope="row">Custom CSS</th>
135
+ <td>
136
+ <fieldset><legend class="screen-reader-text"><span>Custom CSS</span></legend>
137
+ <label title='Custom CSS'></label><textarea class='ewd-ufaq-textarea' name='custom_css'> <?php echo $Custom_CSS; ?></textarea><br />
138
+ <p>You can add custom CSS styles for your FAQs in the box above.</p>
139
+ </fieldset>
140
+ </td>
141
+ </tr>
142
+ <tr>
143
+ <th scope="row">Scroll To Top</th>
144
+ <td>
145
+ <fieldset><legend class="screen-reader-text"><span>Scroll To Top</span></legend>
146
+ <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 />
147
+ <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 />
148
+ <p>Should the browser scroll to the top of the FAQ when it's opened?</p>
149
+ </fieldset>
150
+ </td>
151
+ </tr>
152
+ <tr>
153
+ <th scope="row">Show Editor Helper</th>
154
+ <td>
155
+ <fieldset><legend class="screen-reader-text"><span>Show Editor Helper</span></legend>
156
+ <label title='Yes'><input type='radio' name='show_tinymce' value='Yes' <?php if($Show_TinyMCE == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
157
+ <label title='No'><input type='radio' name='show_tinymce' value='No' <?php if($Show_TinyMCE == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
158
+ <p>Should the shortcode builder be shown above the WordPress page/post editor, in the toolbar buttons?</p>
159
+ </fieldset>
160
+ </td>
161
+ </tr>
162
+ <tr>
163
+ <th scope="row">Turn On Comment Support</th>
164
+ <td>
165
+ <fieldset><legend class="screen-reader-text"><span>Turn On Comment Support</span></legend>
166
+ <label title='Yes'><input type='radio' name='comments_on' value='Yes' <?php if($Comments_On == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
167
+ <label title='No'><input type='radio' name='comments_on' value='No' <?php if($Comments_On == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
168
+ <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>
169
+ </fieldset>
170
+ </td>
171
+ </tr>
172
+ <tr>
173
+ <th scope="row">Include Permalink Icon</th>
174
+ <td>
175
+ <fieldset><legend class="screen-reader-text"><span>Include Permalink Icon</span></legend>
176
+ <label title='Yes'><input type='radio' name='include_permalink' value='Yes' <?php if($Include_Permalink == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
177
+ <label title='No'><input type='radio' name='include_permalink' value='No' <?php if($Include_Permalink == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
178
+ <p>Should an icon to link directly to each question be displayed?</p>
179
+ </fieldset>
180
+ </td>
181
+ </tr>
182
+ <tr>
183
+ <th scope="row">Permalink Type</th>
184
+ <td>
185
+ <fieldset><legend class="screen-reader-text"><span>Include Permalink Icon</span></legend>
186
+ <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 />
187
+ <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 />
188
+ <p>Should the permalink icon link to the main FAQ page, or to the individual FAQ post?</p>
189
+ </fieldset>
190
+ </td>
191
+ </tr>
192
+ </table>
193
+
194
+ <br />
195
+ <h3 id="functionality-options" class="ufaq-options-page-tab-title"><?php _e('Functionality', 'EWD_UFAQ'); ?></h3>
196
+
197
+ <table class="form-table">
198
+ <tr>
199
+ <th scope="row">FAQ Toggle</th>
200
+ <td>
201
+ <fieldset><legend class="screen-reader-text"><span>FAQ Toggle</span></legend>
202
+ <label title='Yes'><input type='radio' name='faq_toggle' value='Yes' <?php if($FAQ_Toggle == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
203
+ <label title='No'><input type='radio' name='faq_toggle' value='No' <?php if($FAQ_Toggle == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
204
+ <p>Should the FAQs hide/open when they are clicked? </p>
205
+ </fieldset>
206
+ </td>
207
+ </tr>
208
+ <tr>
209
+ <th scope="row">FAQ Category Toggle</th>
210
+ <td>
211
+ <fieldset><legend class="screen-reader-text"><span>FAQ Category Toggle</span></legend>
212
+ <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 />
213
+ <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 />
214
+ <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>
215
+ </fieldset>
216
+ </td>
217
+ </tr>
218
+ <tr>
219
+ <th scope="row">FAQ Expand/Collapse All</th>
220
+ <td>
221
+ <fieldset><legend class="screen-reader-text"><span>FAQ Toggle</span></legend>
222
+ <label title='Yes'><input type='radio' name='expand_collapse_all' value='Yes' <?php if($Expand_Collapse_All == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
223
+ <label title='No'><input type='radio' name='expand_collapse_all' value='No' <?php if($Expand_Collapse_All == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
224
+ <p>Should the FAQs hide/open when they are clicked? </p>
225
+ </fieldset>
226
+ </td>
227
+ </tr>
228
+ <tr>
229
+ <th scope="row">FAQ Accordion</th>
230
+ <td>
231
+ <fieldset><legend class="screen-reader-text"><span>FAQ Accordion</span></legend>
232
+ <label title='Yes'><input type='radio' name='faq_accordion' value='Yes' <?php if($FAQ_Accordion == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
233
+ <label title='No'><input type='radio' name='faq_accordion' value='No' <?php if($FAQ_Accordion == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
234
+ <p>Should the FAQs accordion? (Only one FAQ is open at a time, requires FAQ Toggle)</p>
235
+ </fieldset>
236
+ </td>
237
+ </tr>
238
+ </table>
239
+
240
+ <br />
241
+ <h3 id="display-options" class="ufaq-options-page-tab-title"><?php _e('Display', 'EWD_UFAQ'); ?></h3>
242
+
243
+ <table class="form-table">
244
+ <tr>
245
+ <th scope="row">Hide Categories</th>
246
+ <td>
247
+ <fieldset><legend class="screen-reader-text"><span>Hide Categories</span></legend>
248
+ <label title='Yes'><input type='radio' name='hide_categories' value='Yes' <?php if($Hide_Categories == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
249
+ <label title='No'><input type='radio' name='hide_categories' value='No' <?php if($Hide_Categories == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
250
+ <p>Should the categories for each FAQ be hidden?</p>
251
+ </fieldset>
252
+ </td>
253
+ </tr>
254
+
255
+ <tr>
256
+ <th scope="row">Hide Tags</th>
257
+ <td>
258
+ <fieldset><legend class="screen-reader-text"><span>Hide Tags</span></legend>
259
+ <label title='Yes'><input type='radio' name='hide_tags' value='Yes' <?php if($Hide_Tags == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
260
+ <label title='No'><input type='radio' name='hide_tags' value='No' <?php if($Hide_Tags == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
261
+ <p>Should the tags for each FAQ be hidden?</p>
262
+ </fieldset>
263
+ </td>
264
+ </tr>
265
+ <tr>
266
+ <th scope="row">Display All Answers</th>
267
+ <td>
268
+ <fieldset><legend class="screen-reader-text"><span>Display All Answers</span></legend>
269
+ <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 />
270
+ <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 />
271
+ <p>Should all answers be displayed when the page loads? (Careful if FAQ Accordian is on)</p>
272
+ </fieldset>
273
+ </td>
274
+ </tr>
275
+ <tr>
276
+ <th scope="row">Display Post Author</th>
277
+ <td>
278
+ <fieldset><legend class="screen-reader-text"><span>Display Post Author</span></legend>
279
+ <label title='Yes'><input type='radio' name='display_author' value='Yes' <?php if($Display_Author == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
280
+ <label title='No'><input type='radio' name='display_author' value='No' <?php if($Display_Author == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
281
+ <p>Should the display name of the post's author be show beneath the FAQ title?</p>
282
+ </fieldset>
283
+ </td>
284
+ </tr>
285
+ <tr>
286
+ <th scope="row">Display Post Date</th>
287
+ <td>
288
+ <fieldset><legend class="screen-reader-text"><span>Display Post Date</span></legend>
289
+ <label title='Yes'><input type='radio' name='display_date' value='Yes' <?php if($Display_Date == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
290
+ <label title='No'><input type='radio' name='display_date' value='No' <?php if($Display_Date == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
291
+ <p>Should the date the post was created be show beneath the FAQ title?</p>
292
+ </fieldset>
293
+ </td>
294
+ </tr>
295
+ <tr>
296
+ <th scope="row">Display 'Back to Top'</th>
297
+ <td>
298
+ <fieldset><legend class="screen-reader-text"><span>Display 'Back to Top'</span></legend>
299
+ <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 />
300
+ <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 />
301
+ <p>Should a link to return to the top of the page be added to each FAQ post?</p>
302
+ </fieldset>
303
+ </td>
304
+ </tr>
305
+ </table>
306
+ </div>
307
+
308
+ <div id='Premium' class='ufaq-option-set ufaq-hidden'>
309
+ <h2 id='label-premium-options' class='ufaq-options-page-tab-title'>Premium Options</h2>
310
+ <br />
311
+ <h3 id="premium-display-options" class="ufaq-options-page-tab-title"><?php _e('Display', 'EWD_UFAQ'); ?></h3>
312
+ <table class="form-table">
313
+ <tr>
314
+ <th scope="row">FAQ Display Style</th>
315
+ <td>
316
+ <fieldset><legend class="screen-reader-text"><span>FAQ Display Style</span></legend>
317
+ <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 />
318
+ <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 />
319
+ <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 />
320
+ <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 />
321
+ <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 />
322
+ <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 />
323
+ <p>Which theme should be used to display the FAQ's?</p>
324
+ </fieldset>
325
+ </td>
326
+ </tr>
327
+ <tr>
328
+ <th scope="row">Color Block Shape</th>
329
+ <td>
330
+ <fieldset><legend class="screen-reader-text"><span>Color Block Shape</span></legend>
331
+ <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 />
332
+ <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 />
333
+ <p>If "Color Block" is selected for "FAQ Display Style", should the block be square or circle?</p>
334
+ </fieldset>
335
+ </td>
336
+ </tr>
337
+ <tr>
338
+ <th scope="row">Reveal Effect</th>
339
+ <td>
340
+ <fieldset><legend class="screen-reader-text"><span>Reveal Effect</span></legend>
341
+ <label title='Reveal Effect'></label>
342
+
343
+ <select name="reveal_effect" <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> >
344
+ <option value="none" <?php if($Reveal_Effect == "none") {echo "selected=selected";} ?> >None</option>
345
+ <option value="blind" <?php if($Reveal_Effect == "blind") {echo "selected=selected";} ?> >Blind</option>
346
+ <option value="bounce" <?php if($Reveal_Effect == "bounce") {echo "selected=selected";} ?> >Bounce</option>
347
+ <option value="clip" <?php if($Reveal_Effect == "clip") {echo "selected=selected";} ?> >Clip</option>
348
+ <option value="drop" <?php if($Reveal_Effect == "drop") {echo "selected=selected";} ?> >Drop</option>
349
+ <option value="explode" <?php if($Reveal_Effect == "explode") {echo "selected=selected";} ?> >Explode</option>
350
+ <option value="fade" <?php if($Reveal_Effect == "fade") {echo "selected=selected";} ?> >Fade</option>
351
+ <option value="fold" <?php if($Reveal_Effect == "fold") {echo "selected=selected";} ?> >Fold</option>
352
+ <option value="highlight" <?php if($Reveal_Effect == "highlight") {echo "selected=selected";} ?> >Highlight</option>
353
+ <option value="puff" <?php if($Reveal_Effect == "puff") {echo "selected=selected";} ?> >Puff</option>
354
+ <option value="pulsate" <?php if($Reveal_Effect == "pulsate") {echo "selected=selected";} ?> >Pulsate</option>
355
+ <option value="shake" <?php if($Reveal_Effect == "shake") {echo "selected=selected";} ?> >Shake</option>
356
+ <option value="size" <?php if($Reveal_Effect == "size") {echo "selected=selected";} ?> >Size</option>
357
+ <option value="slide" <?php if($Reveal_Effect == "slide") {echo "selected=selected";} ?> >Slide</option>
358
+ </select>
359
+
360
+ <p>How should FAQ's be displayed when their titles are clicked?</p>
361
+ </fieldset>
362
+ </td>
363
+ </tr>
364
+ </table>
365
+
366
+ <br />
367
+ <h3 id="premium-general-options" class="ufaq-options-page-tab-title"><?php _e('General', 'EWD_UFAQ'); ?></h3>
368
+
369
+ <table class="form-table">
370
+ <tr>
371
+ <th scope="row">FAQ Ratings</th>
372
+ <td>
373
+ <fieldset><legend class="screen-reader-text"><span>FAQ Ratings</span></legend>
374
+ <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 />
375
+ <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 />
376
+ <p>Should visitors be able to up or down vote FAQs to let others know if they found them helpful?</p>
377
+ </fieldset>
378
+ </td>
379
+ </tr>
380
+ <tr>
381
+ <th scope="row">Pretty Permalinks</th>
382
+ <td>
383
+ <fieldset><legend class="screen-reader-text"><span>Pretty Permalinks</span></legend>
384
+ <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 />
385
+ <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 />
386
+ <p>Should an SEO friendly permalink structure be used for the link to this FAQ?</p>
387
+ </fieldset>
388
+ </td>
389
+ </tr>
390
+ <tr>
391
+ <th scope="row">FAQ Auto Complete Titles</th>
392
+ <td>
393
+ <fieldset><legend class="screen-reader-text"><span>FAQ Auto Complete Titles</span></legend>
394
+ <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 />
395
+ <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 />
396
+ <p>Should the FAQ Titles auto complete? </p>
397
+ </fieldset>
398
+ </td>
399
+ </tr>
400
+ <tr>
401
+ <th scope="row">FAQ Slug Base</th>
402
+ <td>
403
+ <fieldset><legend class="screen-reader-text"><span>FAQ Slug Base</span></legend>
404
+ <input type='text' name='slug_base' value='<?php echo $Slug_Base; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> size='60'/>
405
+ <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>
406
+ </fieldset>
407
+ </td>
408
+ </tr>
409
+ <tr>
410
+ <th scope="row">Social Media Option</th>
411
+ <td>
412
+ <fieldset><legend class="screen-reader-text"><span>Social Media Option</span></legend>
413
+ <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 />
414
+ <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 />
415
+ <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 />
416
+ <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 />
417
+ <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 />
418
+ <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 />
419
+ <div style='display:none;'><label title='Blank'><input type='checkbox' name='Socialmedia[]' value='Blank' checked='checked'/> <span>Blank</span></label></div>
420
+ </fieldset>
421
+ </td>
422
+ </tr>
423
+ </table>
424
+
425
+ <br />
426
+ <h3 id="premium-woocommerce-options" class="ufaq-options-page-tab-title"><?php _e('WooCommerce', 'EWD_UFAQ'); ?></h3>
427
+
428
+ <table class="form-table">
429
+ <tr>
430
+ <th scope="row">WooCommerce FAQs</th>
431
+ <td>
432
+ <fieldset><legend class="screen-reader-text"><span>WooCommerce FAQs</span></legend>
433
+ <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 />
434
+ <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 />
435
+ <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>
436
+ </fieldset>
437
+ </td>
438
+ </tr>
439
+ <tr>
440
+ <th scope="row">Use WooCommerce Product Object</th>
441
+ <td>
442
+ <fieldset><legend class="screen-reader-text"><span>Use WooCommerce Product Object</span></legend>
443
+ <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 />
444
+ <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 />
445
+ <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>
446
+ </fieldset>
447
+ </td>
448
+ </tr>
449
+ </table>
450
+
451
+ <br />
452
+ <h3 id="premium-submit-faq-options" class="ufaq-options-page-tab-title"><?php _e('Submit FAQ', 'EWD_UFAQ'); ?></h3>
453
+
454
+ <table class="form-table">
455
+ <tr>
456
+ <th scope="row">Allow Proposed Answer</th>
457
+ <td>
458
+ <fieldset><legend class="screen-reader-text"><span>Allow Proposed Answer</span></legend>
459
+ <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 />
460
+ <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 />
461
+ <p>When using the user-submitted question shortcode, should users be able to propose an answer to the question they're submitting?</p>
462
+ </fieldset>
463
+ </td>
464
+ </tr>
465
+ <tr>
466
+ <th scope="row">Admin Question Notification</th>
467
+ <td>
468
+ <fieldset><legend class="screen-reader-text"><span>Admin Question Notification</span></legend>
469
+ <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 />
470
+ <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 />
471
+ <p>Should an email be sent to the site administrator when a question is submitted?</p>
472
+ </fieldset>
473
+ </td>
474
+ </tr>
475
+ </table>
476
+ </div>
477
+
478
+ <div id='Order' class='ufaq-option-set ufaq-hidden'>
479
+ <h2 id='label-order-options' class='ufaq-options-page-tab-title'>Ordering Options</h2>
480
+ <table class="form-table">
481
+ <tr>
482
+ <th scope="row">Group FAQs by Category</th>
483
+ <td>
484
+ <fieldset><legend class="screen-reader-text"><span>Group FAQs by Category</span></legend>
485
+ <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 />
486
+ <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 />
487
+ <p>Should FAQs be grouped by category, or should all categories be mixed together?</p>
488
+ </fieldset>
489
+ </td>
490
+ </tr>
491
+ <tr>
492
+ <th scope="row">Sort Categories</th>
493
+ <td>
494
+ <fieldset><legend class="screen-reader-text"><span>Sort Categories</span></legend>
495
+ <label title='Group By Order By'></label>
496
+
497
+ <select name="group_by_order_by" <?php if ($UFAQ_Full_Version != "Yes" and get_option("EWD_UFAQ_Install_Version") < 1.6) {echo "disabled";} ?> >
498
+ <option value="name" <?php if($Group_By_Order_By == "name") {echo "selected=selected";} ?> >Name</option>
499
+ <option value="count" <?php if($Group_By_Order_By == "count") {echo "selected=selected";} ?> >FAQ Count</option>
500
+ <option value="slug" <?php if($Group_By_Order_By == "slug") {echo "selected=selected";} ?> >Slug</option>
501
+ </select>
502
+
503
+ <p>How should FAQ categories be ordered? (Only used if "Group FAQs by Category" above is set to "Yes"). Please note, this is a premium feature.</p>
504
+ </fieldset>
505
+ </td>
506
+ </tr>
507
+ <tr>
508
+ <th scope="row">Sort Categories Ordering</th>
509
+ <td>
510
+ <fieldset><legend class="screen-reader-text"><span>Sort Categories Ordering</span></legend>
511
+ <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 />
512
+ <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 />
513
+ <p>How should FAQ categories be ordered? (Only used if "Group FAQs by Category" above is set to "Yes")</p>
514
+ </fieldset>
515
+ </td>
516
+ </tr>
517
+ <tr>
518
+ <th scope="row">FAQ Ordering</th>
519
+ <td>
520
+ <fieldset><legend class="screen-reader-text"><span>FAQ Ordering</span></legend>
521
+ <label title='FAQ Ordering'></label>
522
+
523
+ <select name="order_by_setting" <?php if ($UFAQ_Full_Version != "Yes" and get_option("EWD_UFAQ_Install_Version") < 1.6) {echo "disabled";} ?> >
524
+ <option value="date" <?php if($Order_By_Setting == "date") {echo "selected=selected";} ?> >Created Date</option>
525
+ <option value="title" <?php if($Order_By_Setting == "title") {echo "selected=selected";} ?> >Title</option>
526
+ <option value="modified" <?php if($Order_By_Setting == "modified") {echo "selected=selected";} ?> >Modified Date</option>
527
+ <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>
528
+ </select>
529
+
530
+ <p>How should individual FAQs be ordered? <?php if (get_option("EWD_UFAQ_Install_Version") >= 1.6) {?> Please note, this is a premium feature. <?php } ?></p>
531
+ </fieldset>
532
+ </td>
533
+ </tr>
534
+ <tr>
535
+ <th scope="row">FAQ Order Setting</th>
536
+ <td>
537
+ <fieldset><legend class="screen-reader-text"><span>Sort Categories Ordering</span></legend>
538
+ <label title='Yes'><input type='radio' name='order_setting' value='ASC' <?php if($Order_Setting == "ASC") {echo "checked='checked'";} ?> /> <span>Ascending</span></label><br />
539
+ <label title='No'><input type='radio' name='order_setting' value='DESC' <?php if($Order_Setting == "DESC") {echo "checked='checked'";} ?> /> <span>Descending</span></label><br />
540
+ <p>Should FAQ be ascending or descending order, based on the ordering criteria above?</p>
541
+ </fieldset>
542
+ </td>
543
+ </tr>
544
+ </table>
545
+
546
+ <div class='ufaq-order-table'>
547
+ <h3><?php echo __("Order Table", 'EWD_UFAQ'); ?></h3>
548
+ <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>
549
+ <?php
550
+ if ($UFAQ_Full_Version != "Yes") {echo "<p>Upgrade to premium to access this feature.</p>";}
551
+ else {
552
+ ?>
553
+ <!--<div id="col-right">
554
+ <div class="col-wrap">
555
+ <div id="add-page" class="postbox metabox-holder" >
556
+ <div class="inside">
557
+ <div id="posttype-page" class="posttypediv">-->
558
+ <div id="tabs-panel-posttype-page-most-recent" class="tabs-panel tabs-panel-active">
559
+
560
+ <table class="wp-list-table widefat tags sorttable ewd-ufaq-list">
561
+ <thead>
562
+ <tr>
563
+ <th><?php _e("Question", 'EWD_UFAQ') ?></th>
564
+ <th><?php _e("Views", 'EWD_UFAQ') ?></th>
565
+ <th><?php _e("Categories", 'EWD_UFAQ') ?></th>
566
+ <th><?php _e("Tags", 'EWD_UFAQ') ?></th>
567
+ </tr>
568
+ </thead>
569
+ <tbody>
570
+ <?php
571
+ $params = array(
572
+ 'post_type' => 'ufaq',
573
+ 'posts_per_page' => -1,
574
+ 'meta_key' => 'ufaq_order',
575
+ 'orderby' => 'meta_value_num',
576
+ 'order' => 'ASC'
577
+ );
578
+ $FAQs = get_posts($params);
579
+ if (empty($FAQs)) { echo "<div class='ewd-ufaq-row list-item'><p>No FAQs have been created<p/></div>"; }
580
+ else {
581
+ foreach ($FAQs as $FAQ) {
582
+ $FAQ_Views = get_post_meta($FAQ->ID, 'ufaq_view_count', true);
583
+ $FAQ_Categories = get_the_term_list($FAQ->ID, 'ufaq-category', '', ', ', '');
584
+ $FAQ_Tags = get_the_term_list($FAQ->ID, 'ufaq-tag', '', ', ', '');
585
+ echo "<tr id='ewd-ufaq-item-" . $FAQ->ID . "' class='ewd-ufaq-item'>";
586
+ echo "<td class='ufaq-title'>" . $FAQ->post_title . "</td>";
587
+ echo "<td class='ufaq-title'>" . $FAQ_Views . "</td>";
588
+ echo "<td class='ufaq-title'>" . $FAQ_Categories . "</td>";
589
+ echo "<td class='ufaq-title'>" . $FAQ_Tags . "</td>";
590
+ echo "</tr>";
591
+ }
592
+ }?>
593
+ </tbody>
594
+ <tfoot>
595
+ <tr>
596
+ <th><?php _e("Question", 'EWD_UFAQ') ?></th>
597
+ <th><?php _e("Views", 'EWD_UFAQ') ?></th>
598
+ <th><?php _e("Categories", 'EWD_UFAQ') ?></th>
599
+ <th><?php _e("Tags", 'EWD_UFAQ') ?></th>
600
+ </tr>
601
+ </tfoot>
602
+ </table>
603
+ </div>
604
+ <?php } ?>
605
+
606
+ </div>
607
+ </div>
608
+
609
+ <div id='Fields' class='ufaq-option-set ufaq-hidden'>
610
+ <h2 id='label-order-options' class='ufaq-options-page-tab-title'>Fields Options (Premium)</h2>
611
+ <table class="form-table">
612
+ <tr>
613
+ <th scope="row">FAQ Custom Fields</th>
614
+ <td>
615
+ <fieldset><legend class="screen-reader-text"><span>FAQ Custom Fields</span></legend>
616
+ <table id='ewd-ufaq-custom-fields-table'>
617
+ <tr>
618
+ <th></th>
619
+ <th>Field Name</th>
620
+ <th>Field Type</th>
621
+ <th>Field Values</th>
622
+ </tr>
623
+ <?php
624
+ $Counter = 0;
625
+ $Max_ID = 0;
626
+ if (!is_array($FAQ_Fields_Array)) {$FAQ_Fields_Array = array();}
627
+ foreach ($FAQ_Fields_Array as $FAQ_Field_Item) {
628
+ echo "<tr id='ewd-ufaq-custom-field-row-" . $Counter . "'>";
629
+ 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>";
630
+ echo "<td><input type='text' name='Custom_Field_" . $Counter . "_Name' value='" . $FAQ_Field_Item['FieldName'] . "'/></td>";
631
+ echo "<td><select name='Custom_Field_" . $Counter . "_Type'>"; ?>
632
+ <option value='text' <?php if ($FAQ_Field_Item['FieldType'] == "text") {echo "selected='selected'";} ?>>Text</option>
633
+ <option value='textarea' <?php if ($FAQ_Field_Item['FieldType'] == "textarea") {echo "selected='selected'";} ?>>Text Area</option>
634
+ <option value='select' <?php if ($FAQ_Field_Item['FieldType'] == "select") {echo "selected='selected'";} ?>>Select Box</option>
635
+ <option value='radio' <?php if ($FAQ_Field_Item['FieldType'] == "radio") {echo "selected='selected'";} ?>>Radio Buttons</option>
636
+ <option value='checkbox' <?php if ($FAQ_Field_Item['FieldType'] == "checkbox") {echo "selected='selected'";} ?>>Checkbox</option>
637
+ <option value='file' <?php if ($FAQ_Field_Item['FieldType'] == "file") {echo "selected='selected'";} ?>>File</option>
638
+ <option value='link' <?php if ($FAQ_Field_Item['FieldType'] == "link") {echo "selected='selected'";} ?>>Link</option>
639
+ <option value='date' <?php if ($FAQ_Field_Item['FieldType'] == "date") {echo "selected='selected'";} ?>>Date</option>
640
+ <option value='datetime' <?php if ($FAQ_Field_Item['FieldType'] == "datetime") {echo "selected='selected'";} ?>>Date/Time</option>
641
+ <?php echo "</select></td>";
642
+ echo "<td><input type='text' name='Custom_Field_" . $Counter . "_Values' value='" . $FAQ_Field_Item['FieldValues'] . "'/></td>";
643
+ echo "</tr>";
644
+ $Counter++;
645
+ $Max_ID = max($Max_ID, $Email_Message_Item['ID']);
646
+ }
647
+ $Max_ID++;
648
+ echo "<tr><td colspan='4'><a class='ewd-ufaq-add-custom-field' data-nextid='" . $Counter . "' data-maxid='" . $Max_ID . "'>Add</a></td></tr>";
649
+ ?>
650
+ </table>
651
+ <p>Should any extra fields be added to the FAQs?<br />
652
+ 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>
653
+ </fieldset>
654
+ </td>
655
+ </tr>
656
+ <tr>
657
+ <th scope="row">Hide Blank Fields</th>
658
+ <td>
659
+ <fieldset><legend class="screen-reader-text"><span>Hide Blank Fields</span></legend>
660
+ <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 />
661
+ <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 />
662
+ <p>Should field labels been hidden if a field hasn't been filled out for a particular FAQ?</p>
663
+ </fieldset>
664
+ </td>
665
+ </tr>
666
+ </table>
667
+ </div>
668
+
669
+
670
+ <div id='Labelling' class='ufaq-option-set ufaq-hidden'>
671
+ <h2 id='label-order-options' class='ufaq-options-page-tab-title'>Labelling Options</h2>
672
+ <div class="ufaq-label-description"> Replace the default text on the FAQ page </div>
673
+
674
+ <div id='labelling-view-options' class="ufaq-options-div ufaq-options-flex">
675
+ <div class='ufaq-subsection'>
676
+ <div class='ufaq-subsection-content' id='ufaq-subsection-inline'>
677
+ <div class='ufaq-option ufaq-label-option'>
678
+ <?php _e("Posted", 'EWD_UFAQ')?>
679
+ <fieldset>
680
+ <input type='text' name='posted_label' value='<?php echo $Posted_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
681
+ </fieldset>
682
+ </div>
683
+ <div class='ufaq-option ufaq-label-option'>
684
+ <?php _e("By", 'EWD_UFAQ')?>
685
+ <fieldset>
686
+ <input type='text' name='by_label' value='<?php echo $By_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
687
+ </fieldset>
688
+ </div>
689
+ <div class='ufaq-option ufaq-label-option'>
690
+ <?php _e("On", 'EWD_UFAQ')?>
691
+ <fieldset>
692
+ <input type='text' name='on_label' value='<?php echo $On_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
693
+ </fieldset>
694
+ </div>
695
+ <div class='ufaq-option ufaq-label-option'>
696
+ <?php _e("Categories", 'EWD_UFAQ')?>
697
+ <fieldset>
698
+ <input type='text' name='category_label' value='<?php echo $Category_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> />
699
+ </fieldset>
700
+ </div>
701
+ <div class='ufaq-option ufaq-label-option'>
702
+ <?php _e("Tags", 'EWD_UFAQ')?>
703
+ <fieldset>
704
+ <input type='text' name='tag_label' value='<?php echo $Tag_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
705
+ </fieldset>
706
+ </div>
707
+ <div class='ufaq-option ufaq-label-option'>
708
+ <?php _e("Enter your question", 'EWD_UFAQ')?>
709
+ <fieldset>
710
+ <input type='text' name='enter_question_label' value='<?php echo $Enter_Question_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
711
+ </fieldset>
712
+ </div>
713
+ <div class='ufaq-option ufaq-label-option'>
714
+ <?php _e("Search", 'EWD_UFAQ')?>
715
+ <fieldset>
716
+ <input type='text' name='search_label' value='<?php echo $Search_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
717
+ </fieldset>
718
+ </div>
719
+ <div class='ufaq-option ufaq-label-option'>
720
+ <?php _e("Permalink", 'EWD_UFAQ')?>
721
+ <fieldset>
722
+ <input type='text' name='permalink_label' value='<?php echo $Permalink_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
723
+ </fieldset>
724
+ </div>
725
+ <div class='ufaq-option ufaq-label-option'>
726
+ <?php _e("Back To Top", 'EWD_UFAQ')?>
727
+ <fieldset>
728
+ <input type='text' name='back_to_top_label' value='<?php echo $Back_To_Top_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
729
+ </fieldset>
730
+ </div>
731
+ <div class='ufaq-option ufaq-label-option'>
732
+ <?php _e("WooCommerce Tab Label", 'EWD_UFAQ')?>
733
+ <fieldset>
734
+ <input type='text' name='woocommerce_tab_label' value='<?php echo $WooCommerce_Tab_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
735
+ </fieldset>
736
+ </div>
737
+ </div>
738
+ </div>
739
+ <div class='ufaq-subsection'>
740
+ <div class='ufaq-subsection-content' id='ufaq-subsection-inline'>
741
+ <div class='ufaq-option ufaq-label-option'>
742
+ <?php _e("Thank you for submitting an FAQ", 'EWD_UFAQ')?>
743
+ <fieldset>
744
+ <input type='text' name='thank_you_submit_label' value='<?php echo $Thank_You_Submit_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
745
+ </fieldset>
746
+ </div>
747
+ <div class='ufaq-option ufaq-label-option'>
748
+ <?php _e("Submit a Question", 'EWD_UFAQ')?>
749
+ <fieldset>
750
+ <input type='text' name='submit_question_label' value='<?php echo $Submit_Question_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
751
+ </fieldset>
752
+ </div>
753
+ <div class='ufaq-option ufaq-label-option'>
754
+ <?php _e("Please fill out the form below to submit a question.", 'EWD_UFAQ')?>
755
+ <fieldset>
756
+ <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";} ?>/>
757
+ </fieldset>
758
+ </div>
759
+ <div class='ufaq-option ufaq-label-option'>
760
+ <?php _e("Send Question", 'EWD_UFAQ')?>
761
+ <fieldset>
762
+ <input type='text' name='send_question_label' value='<?php echo $Send_Question_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
763
+ </fieldset>
764
+ </div>
765
+ <div class='ufaq-option ufaq-label-option'>
766
+ <?php _e("Question Title", 'EWD_UFAQ')?>
767
+ <fieldset>
768
+ <input type='text' name='question_title_label' value='<?php echo $Question_Title_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
769
+ </fieldset>
770
+ </div>
771
+ <div class='ufaq-option ufaq-label-option'>
772
+ <?php _e("What question is being answered?", 'EWD_UFAQ')?>
773
+ <fieldset>
774
+ <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";} ?>/>
775
+ </fieldset>
776
+ </div>
777
+ <div class='ufaq-option ufaq-label-option'>
778
+ <?php _e("Proposed Answer", 'EWD_UFAQ')?>
779
+ <fieldset>
780
+ <input type='text' name='proposed_answer_label' value='<?php echo $Proposed_Answer_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
781
+ </fieldset>
782
+ </div>
783
+ <div class='ufaq-option ufaq-label-option'>
784
+ <?php _e("Question Author", 'EWD_UFAQ')?>
785
+ <fieldset>
786
+ <input type='text' name='review_author_label' value='<?php echo $Review_Author_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
787
+ </fieldset>
788
+ </div>
789
+ <div class='ufaq-option ufaq-label-option'>
790
+ <?php _e("What name should be displayed with your question?", 'EWD_UFAQ')?>
791
+ <fieldset>
792
+ <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";} ?>/>
793
+ </fieldset>
794
+ </div>
795
+ <div class='ufaq-option ufaq-label-option'>
796
+ <?php _e("Retrieving Results", 'EWD_UFAQ')?>
797
+ <fieldset>
798
+ <input type='text' name='retrieving_results' value='<?php echo $Retrieving_Results; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
799
+ </fieldset>
800
+ </div>
801
+ <div class='ufaq-option ufaq-label-option'>
802
+ <?php _e("No results FAQ's contained the term '%s'", 'EWD_UFAQ')?>
803
+ <fieldset>
804
+ <input type='text' name='no_results_found_text' value='<?php echo $No_Results_Found_Text; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
805
+ </fieldset>
806
+ </div>
807
+ </div>
808
+ </div>
809
+ </div>
810
+ </div>
811
+ <div id='Styling' class='ufaq-option-set ufaq-hidden'>
812
+ <h2 id='label-order-options' class='ufaq-options-page-tab-title'>Styling Options (Premium)</h2>
813
+
814
+ <div id='ufaq-styling-options' class="ufaq-options-div ufaq-options-flex">
815
+ <div class='ufaq-subsection'>
816
+ <div class='ufaq-subsection-header'>Toggle Symbol</div>
817
+ <div class='ufaq-subsection-content'>
818
+ <div class='ufaq-option ufaq-styling-option'>
819
+ <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 />
820
+ <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 />
821
+ <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 />
822
+ <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 />
823
+ <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 />
824
+ <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 />
825
+ <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 />
826
+ <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 />
827
+ <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 />
828
+ <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 />
829
+ <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 />
830
+ <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 />
831
+ <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 />
832
+ <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 />
833
+ <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 />
834
+ </div>
835
+ </div>
836
+ </div>
837
+ <div class='ufaq-subsection'>
838
+ <div class='ufaq-subsection-header'>Color Block Theme</div>
839
+ <div class='ufaq-subsection-content'>
840
+ <div class='ufaq-option ufaq-styling-option'>
841
+ <div class='ufaq-option-label'>Icon Background Color</div>
842
+ <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>
843
+ </div>
844
+ <div class='ufaq-option ufaq-styling-option'>
845
+ <div class='ufaq-option-label'>Icon Font Color</div>
846
+ <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>
847
+ </div>
848
+ <div class='ufaq-option ufaq-styling-option'>
849
+ <div class='ufaq-option-label'>Icon Border Color</div>
850
+ <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>
851
+ </div>
852
+ <div class='ufaq-option ufaq-styling-option'>
853
+ <div class='ufaq-option-label'>Icon Border Radius</div>
854
+ <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>
855
+ </div>
856
+ </div>
857
+ </div>
858
+ <div class='ufaq-subsection'>
859
+ <div class='ufaq-subsection-header'>Block Theme</div>
860
+ <div class='ufaq-subsection-content'>
861
+ <div class='ufaq-option ufaq-styling-option'>
862
+ <div class='ufaq-option-label'>Hover Background Color</div>
863
+ <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>
864
+ </div>
865
+ <div class='ufaq-option ufaq-styling-option'>
866
+ <div class='ufaq-option-label'>Hover Font Color</div>
867
+ <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>
868
+ </div>
869
+ </div>
870
+ </div>
871
+ <div class='ufaq-subsection'>
872
+ <div class='ufaq-subsection-header'>List Theme Anchors</div>
873
+ <div class='ufaq-subsection-content'>
874
+ <div class='ufaq-option ufaq-styling-option'>
875
+ <div class='ufaq-option-label'>Font Family</div>
876
+ <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>
877
+ </div>
878
+ <div class='ufaq-option ufaq-styling-option'>
879
+ <div class='ufaq-option-label'>Font Size</div>
880
+ <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>
881
+ </div>
882
+ <div class='ufaq-option ufaq-styling-option'>
883
+ <div class='ufaq-option-label'>Font Color</div>
884
+ <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>
885
+ </div>
886
+ <div class='ufaq-option ufaq-styling-option'>
887
+ <div class='ufaq-option-label'>Margin</div>
888
+ <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>
889
+ </div>
890
+ <div class='ufaq-option ufaq-styling-option'>
891
+ <div class='ufaq-option-label'>Padding</div>
892
+ <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>
893
+ </div>
894
+ </div>
895
+ </div>
896
+ <div class='ufaq-subsection'>
897
+ <div class='ufaq-subsection-header'>FAQ Question</div>
898
+ <div class='ufaq-subsection-content'>
899
+ <div class='ufaq-option ufaq-styling-option'>
900
+ <div class='ufaq-option-label'>Font Family</div>
901
+ <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>
902
+ </div>
903
+ <div class='ufaq-option ufaq-styling-option'>
904
+ <div class='ufaq-option-label'>Font Size</div>
905
+ <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>
906
+ </div>
907
+ <div class='ufaq-option ufaq-styling-option'>
908
+ <div class='ufaq-option-label'>Font Color</div>
909
+ <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>
910
+ </div>
911
+ <div class='ufaq-option ufaq-styling-option'>
912
+ <div class='ufaq-option-label'>Margin</div>
913
+ <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>
914
+ </div>
915
+ <div class='ufaq-option ufaq-styling-option'>
916
+ <div class='ufaq-option-label'>Padding</div>
917
+ <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>
918
+ </div>
919
+ <div class='ufaq-option ufaq-styling-option'>
920
+ <div class='ufaq-option-label'>Toggle Symbol Top Margin</div>
921
+ <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>
922
+ </div>
923
+ </div>
924
+ </div>
925
+ <div class='ufaq-subsection'>
926
+ <div class='ufaq-subsection-header'>FAQ Answer</div>
927
+ <div class='ufaq-subsection-content'>
928
+ <div class='ufaq-option ufaq-styling-option'>
929
+ <div class='ufaq-option-label'>Font Family</div>
930
+ <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>
931
+ </div>
932
+ <div class='ufaq-option ufaq-styling-option'>
933
+ <div class='ufaq-option-label'>Font Size</div>
934
+ <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>
935
+ </div>
936
+ <div class='ufaq-option ufaq-styling-option'>
937
+ <div class='ufaq-option-label'>Font Color</div>
938
+ <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>
939
+ </div>
940
+ <div class='ufaq-option ufaq-styling-option'>
941
+ <div class='ufaq-option-label'>Margin</div>
942
+ <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>
943
+ </div>
944
+ <div class='ufaq-option ufaq-styling-option'>
945
+ <div class='ufaq-option-label'>Padding</div>
946
+ <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>
947
+ </div>
948
+ </div>
949
+ </div>
950
+ <div class='ufaq-subsection'>
951
+ <div class='ufaq-subsection-header'>FAQ Post Date</div>
952
+ <div class='ufaq-subsection-content'>
953
+ <div class='ufaq-option ufaq-styling-option'>
954
+ <div class='ufaq-option-label'>Font Family</div>
955
+ <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>
956
+ </div>
957
+ <div class='ufaq-option ufaq-styling-option'>
958
+ <div class='ufaq-option-label'>Font Size</div>
959
+ <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>
960
+ </div>
961
+ <div class='ufaq-option ufaq-styling-option'>
962
+ <div class='ufaq-option-label'>Font Color</div>
963
+ <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>
964
+ </div>
965
+ <div class='ufaq-option ufaq-styling-option'>
966
+ <div class='ufaq-option-label'>Margin</div>
967
+ <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>
968
+ </div>
969
+ <div class='ufaq-option ufaq-styling-option'>
970
+ <div class='ufaq-option-label'>Padding</div>
971
+ <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>
972
+ </div>
973
+ </div>
974
+ </div>
975
+ <div class='ufaq-subsection'>
976
+ <div class='ufaq-subsection-header'>FAQ Category, Tags</div>
977
+ <div class='ufaq-subsection-content'>
978
+ <div class='ufaq-option ufaq-styling-option'>
979
+ <div class='ufaq-option-label'>Font Family</div>
980
+ <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>
981
+ </div>
982
+ <div class='ufaq-option ufaq-styling-option'>
983
+ <div class='ufaq-option-label'>Font Size</div>
984
+ <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>
985
+ </div>
986
+ <div class='ufaq-option ufaq-styling-option'>
987
+ <div class='ufaq-option-label'>Font Color</div>
988
+ <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>
989
+ </div>
990
+ <div class='ufaq-option ufaq-styling-option'>
991
+ <div class='ufaq-option-label'>Margin</div>
992
+ <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>
993
+ </div>
994
+ <div class='ufaq-option ufaq-styling-option'>
995
+ <div class='ufaq-option-label'>Padding</div>
996
+ <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>
997
+ </div>
998
+ </div>
999
+ </div>
1000
+ <div class='ufaq-subsection'>
1001
+ <div class='ufaq-subsection-header'>FAQ Heading Types</div>
1002
+ <div class='ufaq-subsection-content'>
1003
+ <div class='ufaq-option ufaq-styling-option'>
1004
+ <div class='ufaq-option-label'>Category Heading Type</div>
1005
+ <div class='ufaq-option-input'>
1006
+ <select name='ufaq_styling_category_heading_type' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> >
1007
+ <option value='h1' <?php if ($UFAQ_Styling_Category_Heading_Type == 'h1') {echo "selected='selected'";} ?>>H1</option>
1008
+ <option value='h2' <?php if ($UFAQ_Styling_Category_Heading_Type == 'h2') {echo "selected='selected'";} ?>>H2</option>
1009
+ <option value='h3' <?php if ($UFAQ_Styling_Category_Heading_Type == 'h3') {echo "selected='selected'";} ?>>H3</option>
1010
+ <option value='h4' <?php if ($UFAQ_Styling_Category_Heading_Type == 'h4') {echo "selected='selected'";} ?>>H4</option>
1011
+ <option value='h5' <?php if ($UFAQ_Styling_Category_Heading_Type == 'h5') {echo "selected='selected'";} ?>>H5</option>
1012
+ <option value='h6' <?php if ($UFAQ_Styling_Category_Heading_Type == 'h6') {echo "selected='selected'";} ?>>H6</option>
1013
+ </select>
1014
+ </div>
1015
+ </div>
1016
+ <div class='ufaq-option ufaq-styling-option'>
1017
+ <div class='ufaq-option-label'>FAQ Heading Type</div>
1018
+ <div class='ufaq-option-input'>
1019
+ <select name='ufaq_styling_faq_heading_type' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> >
1020
+ <option value='h1' <?php if ($UFAQ_Styling_FAQ_Heading_Type == 'h1') {echo "selected='selected'";} ?>>H1</option>
1021
+ <option value='h2' <?php if ($UFAQ_Styling_FAQ_Heading_Type == 'h2') {echo "selected='selected'";} ?>>H2</option>
1022
+ <option value='h3' <?php if ($UFAQ_Styling_FAQ_Heading_Type == 'h3') {echo "selected='selected'";} ?>>H3</option>
1023
+ <option value='h4' <?php if ($UFAQ_Styling_FAQ_Heading_Type == 'h4') {echo "selected='selected'";} ?>>H4</option>
1024
+ <option value='h5' <?php if ($UFAQ_Styling_FAQ_Heading_Type == 'h5') {echo "selected='selected'";} ?>>H5</option>
1025
+ <option value='h6' <?php if ($UFAQ_Styling_FAQ_Heading_Type == 'h6') {echo "selected='selected'";} ?>>H6</option>
1026
+ </select>
1027
+ </div>
1028
+ </div>
1029
+ </div>
1030
+ </div>
1031
+
1032
+ </div>
1033
+ </div>
1034
+
1035
+ <p class="submit"><input type="submit" name="Options_Submit" id="submit" class="button button-primary" value="Save Changes" /></p></form>
1036
+
1037
+ <?php /* </div><!-- /.tabs-panel -->
1038
+ </div><!-- /.posttypediv -->
1039
+ </div>
1040
+ </div>
1041
+ </div>
1042
+ </div><!-- col-right --> */ ?>
1043
+ </div>
1044
+ </div>
 
readme.txt CHANGED
@@ -1,503 +1,506 @@
1
- === FAQ ===
2
- Contributors: Rustaurius, EtoileWebDesign
3
- Tags: FAQ, FAQs, easy FAQ, simple FAQ, FAQ categories, FAQ answer, faq page, FAQ Plugin, WooCommerce FAQ, frequently asked questions, questions, FAQ questions, wordpress faq, FAQ list, FAQ custom post type, faq list, faq accordion, jquery faq, jquery-ui, faq shortcode, faq widget, AJAX FAQ, responsive faq, submit questions, microdata
4
- Requires at least: 3.9.0
5
- Tested up to: 4.7
6
- License: GPLv3
7
- License URI:http://www.gnu.org/licenses/gpl-3.0.html
8
-
9
- FAQ plugin that lets you easily create, order and publicize FAQs, insert 3 styles of FAQs on a page or WooCommerce product, and use AJAX FAQ search using FAQ shortcodes
10
-
11
- == Description ==
12
-
13
-
14
- <a href='http://www.etoilewebdesign.com/ultimate-faq-demo/'>FAQ Demo</a>
15
-
16
- FAQ plugin that lets you create FAQ, organize FAQ and publicize your FAQ in no time through your Wordpress admin panel. Select from multiple FAQ styles and FAQ layouts. You can use either the toggle FAQ and/or accordion FAQ style, to display one expanded FAQ answer on click, or choose to display all FAQs on page load, with the optional list FAQ style that offers a more traditional FAQ layout.
17
-
18
- <strong>With WooCommerce Integration!</strong> See the "Add FAQ to WooCommerce" section below for full details and features.
19
-
20
- ** We are also pleased to announce the introduction of a free new premium 7-day trial feature, which users can choose to test out before buying the premium version! **
21
-
22
- `
23
- [ultimate-faqs]
24
- `
25
-
26
- Simply insert the shortcode above into any page to display your FAQs.
27
-
28
- = Key FAQ Features =
29
- * Unlimited FAQ, unlimited FAQ tag and unlimited FAQ category support
30
- * Create FAQ categories
31
- * Create FAQ posts and assign categories to them
32
- * An AJAX FAQ search form
33
- * Export all FAQs to a PDF to create a user manual
34
- * Insert custom CSS to style your FAQ posts
35
-
36
- FAQ features include FAQ statistics that show how many times FAQs have been viewed, FAQ styling options, FAQ categories and FAQ tags, FAQ display and FAQ ordering options, among many other FAQ options. Includes an FAQ shortcode helper, that lets you create FAQ shortcodes with FAQ attributes without having to manually enter FAQs.
37
-
38
- Ultimate FAQ also works great for any content that works similarly to FAQ and that needs to be hidden until it is clicked, like job postings, recipes, etc.!
39
-
40
- [youtube https://www.youtube.com/watch?v=xeGVZnVrZ6I]
41
-
42
- Want to decide exactly what order your FAQs are displayed in? Use our simple FAQ drag-and-drop reordering feature! Create SEO-friendly FAQ links to individual FAQ posts to simply direct customers to exactly the right FAQ answer, right away. Easily add links to your FAQ to popular social media, such as Facebook, Twitter and Pinterest so that your customers can help you spread the word about your FAQ!
43
-
44
- With the smart [submit-question] FAQ shortcode (premium), you can let your customers add to your custom FAQ list by submitting an FAQ question and even proposing an FAQ answer for it!
45
-
46
- = Add FAQ to WooCommerce! =
47
-
48
- Using WooCommerce to sell your products? Easily add an FAQ tab to each product page, so your customers can see answers to common FAQ questions about the products they're browsing. It's the most comprehensive FAQ solution for WooCommerce!
49
-
50
- For more information about WooCommerce integration, please see the following video:
51
-
52
- [youtube https://www.youtube.com/watch?v=cH3p0fW4c5o]
53
-
54
- = Additional Features =
55
- * Select FAQ animation options for displaying FAQ posts
56
- * Toggle FAQ accordion (close open FAQ when a new one is opened) behaviour on/off
57
- * Allow people to comment on individual FAQ
58
- * Microdata question schema, to help with SEO
59
- * Responsive FAQ design
60
- * Group FAQs by category for easy FAQ navigation
61
-
62
- This FAQ plugin is great for combining with our <a href='https://wordpress.org/plugins/front-end-only-users/'>user management plugin </a> to create a member's only FAQ area.
63
-
64
- Ultimate FAQ uses the WordPress custom post type functionality to create an FAQ post type, allowing for smart and easy FAQ integration.
65
-
66
- = Premium FAQ features include =
67
- * Choose from 15 toggle icon sets
68
- * WooCommerce FAQ tab with specific FAQs for each product on product page (<a href='https://www.youtube.com/watch?v=cH3p0fW4c5o'>YouTube Video</a>)
69
- * Different FAQ display styles for your frequently asked questions
70
- * Share FAQs on social media
71
- * User-submitted FAQs and also (optionally) answers
72
- * Admin notification on FAQ submission
73
- * AJAX easy FAQ search with autocomplete for FAQ titles
74
- * Add additional custom fields to your FAQ answer, such as a text area, file, link, date and more
75
- * Import/Export of FAQs from spreadsheet
76
- * Export FAQs to PDF
77
- * SEO-Friendly FAQ, FAQ category and FAQ tag permalinks
78
- * Advanced FAQ styling options
79
- * Drag and drop precise re-ordering of FAQs
80
- * Change the FAQ permalink slug base
81
-
82
- = FAQ Shortcodes =
83
- * [ultimate-faqs]: display all FAQs, or only specific FAQ categories using include_category and exclude_category attributes (both take a comma-separated list of category slugs)
84
- * [popular-faqs]: displays a number of the most viewed FAQs (5 unless specified).
85
- * [recent-faqs]: displays a number of the most recently added FAQs (5 unless specified).
86
- * [select-faq]: display specific FAQ posts, using the attributes faq_name, faq_slug and faq_id which take comma-separated lists of FAQ post names, FAQ slugs and FAQ ids respectively.
87
- * [ultimate-faq-search]: display an FAQ search form that allows users to find FAQs with a specific string in the FAQ title or body of the FAQ post (premium).
88
- * [submit-question]: display a form that allows users to submit FAQs of their own and, if enabled, enter an FAQ answer to their submitted FAQ question as well (premium).
89
-
90
- For further information and purchasing options, please visit our <strong><a href="http://www.etoilewebdesign.com/plugins/ultimate-faq/">WordPress FAQ plugin</a></strong> homepage.
91
-
92
- For help and support, please see:
93
-
94
- * Our FAQ page, here: https://wordpress.org/plugins/ultimate-faqs/faq/
95
- * Our installation guide, here: https://wordpress.org/plugins/ultimate-faqs/installation/
96
- * Our documentation, here: http://www.etoilewebdesign.com/plugins/ultimate-faq/documentation-ultimate-faq/
97
- * Our tutorial videos, here: https://www.youtube.com/playlist?list=PLEndQUuhlvSrNdfu5FKa1uGHsaKZxgdWt
98
- * The Ultimate FAQ support forum, here: https://wordpress.org/support/plugin/ultimate-faqs
99
-
100
- -----------------------------------------------------------------------------------
101
-
102
- == Installation ==
103
-
104
- 1. Upload the 'ultimate-faqs' folder to the '/wp-content/plugins/' directory
105
- 2. Activate the plugin through the 'Plugins' menu in WordPress
106
-
107
- or
108
-
109
- 1. Go to the 'Plugins' menu in WordPress and click 'Add New'
110
- 2. Search for 'Ultimate FAQ' and select 'Install Now'
111
- 3. Activate the plugin when prompted
112
-
113
- = Getting Started =
114
-
115
- 1. To create an FAQ:
116
- * Click on 'FAQs' in the WordPress admin sidebar menu
117
- * Click on 'Add New'
118
- * Enter the FAQ question in the title area and the FAQ answer in the main post content area
119
- * Set the author name using the 'Author Display Name' field under the main post content area
120
- * Select and/or create FAQ categories and FAQ tags in the right-side menu
121
- * Click the 'Publish' button
122
-
123
- 2. To display FAQs on your site:
124
- * Place the [ultimate-faqs] shortcode in the content area of any page you've created and it will display your FAQs
125
- * You can display specific FAQs by making use of the [select-faq] shortcode
126
- * Display a select number of your most popular FAQs using the [popular-faqs] shortcode
127
- * Display a select number of your most recent FAQs using the [recent-faqs] shortcode
128
-
129
- 3. To include a submit question form:
130
- * Placing the [submit-question] shortcode on a page will generate a form that allows your visitors to submit FAQ questions and, if enabled, even suggest FAQ answers for their questions (premium)
131
-
132
- 4. To include an FAQ search form:
133
- * Use the [ultimate-faq-search] shortcode to display an FAQ search form on a page. You can even set it so that all FAQs display on the search page and so that typing in the search box filters the results. (premium)
134
-
135
- 5. Customize your FAQ experience by making use of the many available settings and options, including toggle and accordion modes, FAQ comments, FAQ category grouping (premium) and many styling options (premium).
136
-
137
- For a list of specific features, see the FAQ description page here: https://wordpress.org/plugins/ultimate-faqs/.
138
-
139
- For help and support, please see:
140
-
141
- * Our FAQ page, here: https://wordpress.org/plugins/ultimate-faqs/faq/
142
- * Our documentation, here: http://www.etoilewebdesign.com/plugins/ultimate-faq/documentation-ultimate-faq/
143
- * Our tutorial videos, here: https://www.youtube.com/playlist?list=PLEndQUuhlvSrNdfu5FKa1uGHsaKZxgdWt
144
- * The Ultimate FAQ support forum, here: https://wordpress.org/support/plugin/ultimate-faqs
145
-
146
-
147
- --------------------------------------------------------------
148
-
149
-
150
- == Frequently Asked Questions ==
151
-
152
- = How do I get my FAQs to show up on my page? =
153
-
154
- Try adding the shortcode [ultimate-faqs] to whatever page you'd like to display the FAQ on.
155
-
156
- = What are the current FAQ shortcodes? =
157
-
158
- * [ultimate-faqs]: display all FAQs, or only specific FAQ categories using include_category and exclude_category attributes (both take a comma-separated list of category slugs)
159
- * [popular-faqs]: displays a number of the most viewed FAQs (5 unless specified).
160
- * [recent-faqs]: displays a number of the most recently added FAQs (5 unless specified).
161
- * [select-faq]: display specific FAQ posts, using the attributes faq_name, faq_slug and faq_id which take comma-separated lists of FAQ post names, FAQ slugs and FAQ ids respectively.
162
- * [ultimate-faq-search]: display an FAQ search form that allows users to find FAQs with a specific string in the FAQ title or body of the FAQ post (premium).
163
- * [submit-question]: display a form that allows users to submit FAQs of their own and, if enabled, enter an FAQ answer to their submitted FAQ question as well (premium).
164
-
165
- = What attributes does the [ultimate-faqs] shortcode accept? =
166
-
167
- The FAQ shortcode accepts two attributes, "include_category" and "exclude_category". Both take a comma-separated list of FAQ category slugs. For example, to include only FAQs about the Category "Cars" (which has a slug "cars"), you would use:
168
-
169
- [ultimate-faqs include_category='cars']
170
-
171
- You can now also use the 'include_category_ids' and 'exclude_category_ids' attributes, to let users include categories by ID instead of only by slug
172
-
173
- = Can I hide my FAQ categories? =
174
-
175
- Yes, you can choose to display or hide FAQ categories on the FAQ settings page.
176
-
177
- = Is it possible to re-order my FAQs? =
178
-
179
- Currently you can choose between ascending or descending ordering for your FAQ by either Title, Date Created, or Date Modified.
180
-
181
- With the premium version, you can use the FAQ drag and drop ordering table to set exactly the order you want for your FAQs.
182
-
183
- = How can I make my FAQs sharable over social media? =
184
-
185
- On the FAQ settings page you can choose to link to twitter, facebook and more!
186
-
187
- = How do I make my FAQs searchable? =
188
-
189
- You can use the premium shortcode, [ultimate-faq-search], which displays an AJAX FAQ search form. You can use the "Auto-Complete Titles" option to have a list of all matching FAQ questions pop up when a user has typed 3 or more characters.
190
-
191
- = Can I display all FAQs on pageload using the [ultimate-faq-search] shortcode? =
192
-
193
- You can add the attribute "show_on_load" to the shortcode, and set it to "Yes" to display all FAQs when the page first loads.
194
-
195
- = How do I add FAQs to a WooCommerce product page with the premium version? =
196
-
197
- You can add FAQs for either a specific product or for a WooCommerce category.
198
-
199
- For a specific product, create an FAQ category with the same name as the product, and then select that category for all of the FAQs you want included on your product page.
200
-
201
- For a category of WooCommerce products, create an FAQ category with the same name as the WooCommerce category, and then select that category for all of the FAQs you want included on your product page.
202
-
203
- = How do I limit the number of posts generated by a shortcode =
204
-
205
- For the [ultimate-faqs], [popular-faqs] and [recent-faqs] shortcodes, you can use the post_count attribute to limit the number of posts shown. For example:
206
-
207
- `[ultimate-faqs post_count='9']
208
- `
209
-
210
- = How do I customize my FAQs, for example, to change the font? =
211
-
212
- You can customize the plugin by adding code to the Custom CSS box on the FAQ settings page, go to the "Custom CSS" box. For example to change the font you might want to add something like:
213
-
214
- .ufaq-faq-title h4, .ufaq-faq-category-title h4 {font-family:"Palatino Linotype", "Book Antiqua", Palatino, serif;}
215
-
216
- You can also use the "Styling" area of the "Options" tab if you're using the premium version, which has a bulit-in color picker for FAQ color fields and more!
217
-
218
- For more questions and support you can post in the support forum:
219
- <https://wordpress.org/support/plugin/ultimate-faqs>
220
-
221
- = Videos =
222
-
223
- Video 1 - Shortcodes and Attributes
224
- [youtube https://www.youtube.com/watch?v=zf-tYLqHpRs]
225
-
226
- Video 2 - Categories and Tags
227
- [youtube https://www.youtube.com/watch?v=ZV4PM0M1l7M]
228
-
229
- Video 3 - FAQs Ordering
230
- [youtube https://www.youtube.com/watch?v=3gVBuCo7bHU]
231
-
232
-
233
- == Screenshots ==
234
-
235
- 1. Car FAQ demo page - Default display style
236
- 2. Example of the "Color Block" FAQ display style
237
- 3. Example of the "Block" FAQ display style
238
- 4. The AJAX FAQ search shortcode in use
239
- 5. Simple user submitted FAQs form
240
- 6. All answers displayed in the 'list' FAQ mode
241
- 7. WooCommerce product page with "FAQs" tab
242
- 8. Example of FAQ page with custom FAQ font icons
243
- 9. Ultimate FAQs plugin dashboard
244
- 10. Admin area showing all FAQs with their number of views as well as their categories
245
- 11. Admin simple drag-and-drop FAQ ordering area
246
- 12. Responsive, simple FAQ toggle and FAQ styling options with precise color controls
247
- 13. View of FAQ custom fields in the admin
248
-
249
- == Changelog ==
250
- = 1.5.21 =
251
- - Split the basic and premium options into a few sub-sections, to make it easier to find the right option
252
-
253
- = 1.5.20 =
254
- - Added a new, simpler way to select which FAQs to display on a product page, directly from the edit product screen
255
-
256
- = 1.5.19 =
257
- - Minor admin area update
258
-
259
- = 1.5.18 =
260
- - Removed a number of notices
261
-
262
- = 1.5.17 =
263
- - Removed a number of notices
264
-
265
- = 1.5.16 =
266
- - Replaced the version of PHPExcel used, so that the spreadsheet uploads will be compatible with PHP7
267
- - Minor Dashboard fix
268
-
269
- = 1.5.15 =
270
- - Fixed a small Dashboard error that a number of users were experiencing
271
-
272
- = 1.5.14 =
273
- - Minor Dashboard update
274
-
275
- = 1.5.13 =
276
- - Fixed an error where using the trial in this plugin reset the trials for a number of our other plugins
277
-
278
- = 1.5.12 =
279
- - Introducing a free new premium 7-day trial feature, which users can choose to test out before buying the premium version
280
-
281
- = 1.5.11 =
282
- - Added an "Expand/Collapse All" optional set of controls
283
- - Added in a "Retrieving Results" label for the search shortcode
284
- - Added a "Link" custom field type
285
- - Added in helper text when you're editing a category, to show the shortcode required to display only the selected category of FAQs
286
- - Fixed a problem with sharing an FAQ on Facebook
287
-
288
- = 1.5.10 =
289
- - Fixed an error where permalinks weren't displaying
290
-
291
- = 1.5.8 =
292
- - Added in a pre-built shortcode display on the edit FAQ page, to display a single FAQ
293
- - Fixed an error where the upgrade box was displayed on multiplate tabs
294
-
295
- = 1.5.7 =
296
- - Fixed an issue where the ratings buttons weren't working using the AJAX search feature
297
-
298
- = 1.5.6 =
299
- - Fixed minor dashboard and attribute errors
300
-
301
- = 1.5.5 =
302
- - Added in a new admin notification option for when questions are received
303
- - Added in two new shortcode attributes, 'include_category_ids' and 'exclude_category_ids', to let users include categories by ID instead of only by slug
304
- - Fixed two typos in the labelling area of the backend
305
-
306
- = 1.5.4 =
307
- - Fixed an issue where the most viewed FAQ stat was being sorted as a string
308
-
309
- = 1.5.3 =
310
- - Fixed a labelling issue for the submit FAQ shortcode
311
-
312
- = 1.5.2 =
313
- - Fixed a labelling issue for the submit FAQ shortcode
314
-
315
- = 1.5.1 =
316
- - Added in a message if no FAQs are found in search, and a label for that message in the back-end
317
-
318
- = 1.5.0 =
319
- - Added in a new premium option to change the toggle icon to one of 15 different sets of icons
320
- - Added in microdata support, to help with SEO
321
- - FAQs can now be included for an entire WooCommerce category instead of being added for products one at a time
322
- - Fixed a URL issue when a category or tag was selected, and a visitor tried to select another one
323
-
324
- = 1.4.5 =
325
- - Fixed a number of insufficient permission errors
326
-
327
- = 1.4.4 =
328
- - Added back in the link to edit an FAQ when you're on the single FAQ page
329
-
330
- = 1.4.3 =
331
- - Added in a new set of tutorials for new users
332
- - Centralized the plugin dashboard and menu
333
-
334
- = 1.4.2 =
335
- - Added a premium styling option for the toggle indicator to adjust the height
336
-
337
- = 1.4.1 =
338
- - Minor update to take out a debugging message
339
-
340
- = 1.4.0 =
341
- - Added two new FAQ display styles, minimalist and border block
342
- - Added in support for comments directly in the FAQs if enabled
343
- - Added two new premium features, FAQ ratings and FAQ custom fields
344
- - Added a premium styling option to let users select which heading the FAQ and comment titles have (h1, h2, etc.)
345
-
346
- = 1.3.6 =
347
- - Minor CSS update
348
-
349
- = 1.3.5 =
350
- - Fixed a font-family error
351
-
352
- = 1.3.4 =
353
- - Fixed an error where if WooCommerce FAQs were set to "Yes", and not category had been created, all FAQs would show
354
-
355
- = 1.3.3 =
356
- - Fixed an error where scroll to top would take a visitor to the first instance of an FAQ if it was on the page twice
357
-
358
- = 1.3.2 =
359
- - Fixed an error where view count wasn't being counted when FAQs were clicked to expand
360
-
361
- = 1.3.1 =
362
- - Fixed a JS error that was preventing the new shortcode helper from working with other plugins that modify the visual editor
363
-
364
- = 1.3.0 =
365
- - Added a feature that has been requested by a number of users, an FAQ shortcode helper, which lets you build shortcodes without having to remember and manually input the attributes. This feature can be turned off via the settings page, if you'd like to keep your tinyMCE button bar free of extra buttons
366
- - Fixed an error where category titles were no longer displaying
367
-
368
- = 1.2.11 =
369
- - Global post variable is now reset after the FAQs query loop
370
-
371
- = 1.2.10 =
372
- - Should make the plugin compatible with a couple of page builder plugins
373
-
374
- = 1.2.9 =
375
- - If there are no tags or categories for a particular FAQ, they should now be hidden
376
-
377
- = 1.2.8 =
378
- - Added an attribute, show_on_load, which will show all FAQs when the page first loads and then refresh the results when a visitor adds a search term
379
-
380
- = 1.2.7 =
381
- - Fixed an error where same page permalinks weren't opening the posts
382
-
383
- = 1.2.6 =
384
- - Added an option to just use the page ID for WooCommerce instead of the product's ID
385
-
386
- = 1.2.5 =
387
- - Fixed a broken link
388
- - Added extra information about the premium version
389
-
390
- = 1.2.4 =
391
- - Fixed an error where FAQs on the same page as the search shortcode couldn't be clicked at times
392
-
393
- = 1.2.3 =
394
- - Added in WPML support for the main shortcodes
395
- - Fixed an error with a missing ID tag
396
-
397
- = 1.2.2 =
398
- - Added the ability to have multiple widgets or shortcodes on a page
399
- - Fixed a small error with the popular FAQs shortcode
400
-
401
- = 1.2.1 =
402
- - Fixed a missing file error
403
-
404
- = 1.2.0 =
405
- - Added in a new premium feature: WooCommerce FAQs tab, which lets you add a different list of FAQs on the product page for each WooCommerce product
406
- - Added the ability to filter FAQs by category
407
-
408
- = 1.1.19 =
409
- - Added another set of labeling options
410
-
411
- = 1.1.18 =
412
- - Minor CSS update
413
-
414
- = 1.1.17 =
415
- - Added anumber of extra labeling options
416
-
417
- = 1.1.16 =
418
- - Minor CSS update
419
-
420
- = 1.1.15 =
421
- - CSV files can now be used for FAQ imports
422
-
423
- = 1.1.14 =
424
- - Fixed a parent-child issue, where if a parent category was added in the include_category attribute, it was possible to end up with unexpected categories when an FAQ was in multiple categories
425
-
426
- = 1.1.13 =
427
- - Fixed a number of PHP notices
428
-
429
- = 1.1.12 =
430
- - Minor CSS update
431
-
432
- = 1.1.11 =
433
- - Fixed a missing div error that could come up with certain options selected
434
-
435
- = 1.1.10 =
436
- - Minor CSS update
437
-
438
- = 1.1.9 =
439
- - Added a "Category Toggle" options for users who group their FAQs by category
440
- - Cleaned up some of the code dealing with options
441
-
442
- = 1.1.8 =
443
- - Fixed a scrolling error with non-FAQ links
444
-
445
- = 1.1.7 =
446
- - Should fix small problems with the "select-faq" shortcode and the "FAQ ID List" widget
447
-
448
- = 1.1.6 =
449
- - Removed blank categories from FAQ search results
450
- - Added in a "Permalink Type" option, which lets you decide between linking to the post in the main page and the individual post page
451
-
452
- = 1.1.5 =
453
- - Fixed a problem with FAQ permalinks not opening in the list
454
-
455
- = 1.1.4 =
456
- - Fixed a conflict with WooCommerce, where a UFAQ script was keeping product information tabs open
457
-
458
- = 1.1.3 =
459
- - Fixed a problem where links inside of a toggable FAQ weren't clickable
460
-
461
- = 1.1.2 =
462
- - Added a color picker to the color fields on the styling options area
463
-
464
- = 1.1.1 =
465
- - Added 'display_all_answers' as a shortcode attribute, so some pages can have all answers displayed and others can have the started list style
466
- - Fixed an option mistake
467
-
468
- = 1.1.0 =
469
- - Added new premium display styles
470
- - Added an autocomplete titles option for the AJAX search shortcode
471
- - Added more styling options to customize new display styles
472
- - Added an option to add a 'Back to Top' link to each FAQ post
473
- - Fixed a reveal error with non-accordion display and no effect selected
474
-
475
- = 1.0.9 =
476
- - Added some CSS classes in preparation for an upcoming large CSS/styling update
477
-
478
- = 1.0.8 =
479
- - Added a unique identifier to each FAQ so that if it is repeated on the same page, the correct post should open
480
-
481
- = 1.0.7 =
482
- - Minor CSS update
483
-
484
- = 1.0.6 =
485
- - Fixed an issue where new users weren't able to update ordering even after upgrading to premium
486
-
487
- = 1.0.5 =
488
- - Minor CSS update
489
-
490
- = 1.0.4 =
491
- - Fixed a status error message
492
-
493
- = 1.0.3 =
494
- - Added in widgets to display a number of popular or recently created faqs
495
-
496
- = 1.0.2 =
497
- - CSS update for the ordering table in the admin area
498
-
499
- = 1.0.1 =
500
- - Fix for the FAQ ordering bug
501
-
502
- = 1.0.0 =
503
- - Premium version release, check out our website for all of the details <http://www.etoilewebdesign.com/ultimate-faq/>
 
 
 
1
+ === FAQ ===
2
+ Contributors: Rustaurius, EtoileWebDesign
3
+ Tags: FAQ, FAQs, easy FAQ, simple FAQ, FAQ categories, FAQ answer, faq page, FAQ Plugin, WooCommerce FAQ, frequently asked questions, questions, FAQ questions, wordpress faq, FAQ list, FAQ custom post type, faq list, faq accordion, jquery faq, jquery-ui, faq shortcode, faq widget, AJAX FAQ, responsive faq, submit questions, microdata
4
+ Requires at least: 3.9.0
5
+ Tested up to: 4.7
6
+ License: GPLv3
7
+ License URI:http://www.gnu.org/licenses/gpl-3.0.html
8
+
9
+ FAQ plugin that lets you easily create, order and publicize FAQs, insert 3 styles of FAQs on a page or WooCommerce product, and use AJAX FAQ search using FAQ shortcodes
10
+
11
+ == Description ==
12
+
13
+
14
+ <a href='http://www.etoilewebdesign.com/ultimate-faq-demo/'>FAQ Demo</a>
15
+
16
+ FAQ plugin that lets you create FAQ, organize FAQ and publicize your FAQ in no time through your Wordpress admin panel. Select from multiple FAQ styles and FAQ layouts. You can use either the toggle FAQ and/or accordion FAQ style, to display one expanded FAQ answer on click, or choose to display all FAQs on page load, with the optional list FAQ style that offers a more traditional FAQ layout.
17
+
18
+ <strong>With WooCommerce Integration!</strong> See the "Add FAQ to WooCommerce" section below for full details and features.
19
+
20
+ ** We are also pleased to announce the introduction of a free new premium 7-day trial feature, which users can choose to test out before buying the premium version! **
21
+
22
+ `
23
+ [ultimate-faqs]
24
+ `
25
+
26
+ Simply insert the shortcode above into any page to display your FAQs.
27
+
28
+ = Key FAQ Features =
29
+ * Unlimited FAQ, unlimited FAQ tag and unlimited FAQ category support
30
+ * Create FAQ categories
31
+ * Create FAQ posts and assign categories to them
32
+ * An AJAX FAQ search form
33
+ * Export all FAQs to a PDF to create a user manual
34
+ * Insert custom CSS to style your FAQ posts
35
+
36
+ FAQ features include FAQ statistics that show how many times FAQs have been viewed, FAQ styling options, FAQ categories and FAQ tags, FAQ display and FAQ ordering options, among many other FAQ options. Includes an FAQ shortcode helper, that lets you create FAQ shortcodes with FAQ attributes without having to manually enter FAQs.
37
+
38
+ Ultimate FAQ also works great for any content that works similarly to FAQ and that needs to be hidden until it is clicked, like job postings, recipes, etc.!
39
+
40
+ [youtube https://www.youtube.com/watch?v=xeGVZnVrZ6I]
41
+
42
+ Want to decide exactly what order your FAQs are displayed in? Use our simple FAQ drag-and-drop reordering feature! Create SEO-friendly FAQ links to individual FAQ posts to simply direct customers to exactly the right FAQ answer, right away. Easily add links to your FAQ to popular social media, such as Facebook, Twitter and Pinterest so that your customers can help you spread the word about your FAQ!
43
+
44
+ With the smart [submit-question] FAQ shortcode (premium), you can let your customers add to your custom FAQ list by submitting an FAQ question and even proposing an FAQ answer for it!
45
+
46
+ = Add FAQ to WooCommerce! =
47
+
48
+ Using WooCommerce to sell your products? Easily add an FAQ tab to each product page, so your customers can see answers to common FAQ questions about the products they're browsing. It's the most comprehensive FAQ solution for WooCommerce!
49
+
50
+ For more information about WooCommerce integration, please see the following video:
51
+
52
+ [youtube https://www.youtube.com/watch?v=cH3p0fW4c5o]
53
+
54
+ = Additional Features =
55
+ * Select FAQ animation options for displaying FAQ posts
56
+ * Toggle FAQ accordion (close open FAQ when a new one is opened) behaviour on/off
57
+ * Allow people to comment on individual FAQ
58
+ * Microdata question schema, to help with SEO
59
+ * Responsive FAQ design
60
+ * Group FAQs by category for easy FAQ navigation
61
+
62
+ This FAQ plugin is great for combining with our <a href='https://wordpress.org/plugins/front-end-only-users/'>user management plugin </a> to create a member's only FAQ area.
63
+
64
+ Ultimate FAQ uses the WordPress custom post type functionality to create an FAQ post type, allowing for smart and easy FAQ integration.
65
+
66
+ = Premium FAQ features include =
67
+ * Choose from 15 toggle icon sets
68
+ * WooCommerce FAQ tab with specific FAQs for each product on product page (<a href='https://www.youtube.com/watch?v=cH3p0fW4c5o'>YouTube Video</a>)
69
+ * Different FAQ display styles for your frequently asked questions
70
+ * Share FAQs on social media
71
+ * User-submitted FAQs and also (optionally) answers
72
+ * Admin notification on FAQ submission
73
+ * AJAX easy FAQ search with autocomplete for FAQ titles
74
+ * Add additional custom fields to your FAQ answer, such as a text area, file, link, date and more
75
+ * Import/Export of FAQs from spreadsheet
76
+ * Export FAQs to PDF
77
+ * SEO-Friendly FAQ, FAQ category and FAQ tag permalinks
78
+ * Advanced FAQ styling options
79
+ * Drag and drop precise re-ordering of FAQs
80
+ * Change the FAQ permalink slug base
81
+
82
+ = FAQ Shortcodes =
83
+ * [ultimate-faqs]: display all FAQs, or only specific FAQ categories using include_category and exclude_category attributes (both take a comma-separated list of category slugs)
84
+ * [popular-faqs]: displays a number of the most viewed FAQs (5 unless specified).
85
+ * [recent-faqs]: displays a number of the most recently added FAQs (5 unless specified).
86
+ * [select-faq]: display specific FAQ posts, using the attributes faq_name, faq_slug and faq_id which take comma-separated lists of FAQ post names, FAQ slugs and FAQ ids respectively.
87
+ * [ultimate-faq-search]: display an FAQ search form that allows users to find FAQs with a specific string in the FAQ title or body of the FAQ post (premium).
88
+ * [submit-question]: display a form that allows users to submit FAQs of their own and, if enabled, enter an FAQ answer to their submitted FAQ question as well (premium).
89
+
90
+ For further information and purchasing options, please visit our <strong><a href="http://www.etoilewebdesign.com/plugins/ultimate-faq/">WordPress FAQ plugin</a></strong> homepage.
91
+
92
+ For help and support, please see:
93
+
94
+ * Our FAQ page, here: https://wordpress.org/plugins/ultimate-faqs/faq/
95
+ * Our installation guide, here: https://wordpress.org/plugins/ultimate-faqs/installation/
96
+ * Our documentation, here: http://www.etoilewebdesign.com/plugins/ultimate-faq/documentation-ultimate-faq/
97
+ * Our tutorial videos, here: https://www.youtube.com/playlist?list=PLEndQUuhlvSrNdfu5FKa1uGHsaKZxgdWt
98
+ * The Ultimate FAQ support forum, here: https://wordpress.org/support/plugin/ultimate-faqs
99
+
100
+ -----------------------------------------------------------------------------------
101
+
102
+ == Installation ==
103
+
104
+ 1. Upload the 'ultimate-faqs' folder to the '/wp-content/plugins/' directory
105
+ 2. Activate the plugin through the 'Plugins' menu in WordPress
106
+
107
+ or
108
+
109
+ 1. Go to the 'Plugins' menu in WordPress and click 'Add New'
110
+ 2. Search for 'Ultimate FAQ' and select 'Install Now'
111
+ 3. Activate the plugin when prompted
112
+
113
+ = Getting Started =
114
+
115
+ 1. To create an FAQ:
116
+ * Click on 'FAQs' in the WordPress admin sidebar menu
117
+ * Click on 'Add New'
118
+ * Enter the FAQ question in the title area and the FAQ answer in the main post content area
119
+ * Set the author name using the 'Author Display Name' field under the main post content area
120
+ * Select and/or create FAQ categories and FAQ tags in the right-side menu
121
+ * Click the 'Publish' button
122
+
123
+ 2. To display FAQs on your site:
124
+ * Place the [ultimate-faqs] shortcode in the content area of any page you've created and it will display your FAQs
125
+ * You can display specific FAQs by making use of the [select-faq] shortcode
126
+ * Display a select number of your most popular FAQs using the [popular-faqs] shortcode
127
+ * Display a select number of your most recent FAQs using the [recent-faqs] shortcode
128
+
129
+ 3. To include a submit question form:
130
+ * Placing the [submit-question] shortcode on a page will generate a form that allows your visitors to submit FAQ questions and, if enabled, even suggest FAQ answers for their questions (premium)
131
+
132
+ 4. To include an FAQ search form:
133
+ * Use the [ultimate-faq-search] shortcode to display an FAQ search form on a page. You can even set it so that all FAQs display on the search page and so that typing in the search box filters the results. (premium)
134
+
135
+ 5. Customize your FAQ experience by making use of the many available settings and options, including toggle and accordion modes, FAQ comments, FAQ category grouping (premium) and many styling options (premium).
136
+
137
+ For a list of specific features, see the FAQ description page here: https://wordpress.org/plugins/ultimate-faqs/.
138
+
139
+ For help and support, please see:
140
+
141
+ * Our FAQ page, here: https://wordpress.org/plugins/ultimate-faqs/faq/
142
+ * Our documentation, here: http://www.etoilewebdesign.com/plugins/ultimate-faq/documentation-ultimate-faq/
143
+ * Our tutorial videos, here: https://www.youtube.com/playlist?list=PLEndQUuhlvSrNdfu5FKa1uGHsaKZxgdWt
144
+ * The Ultimate FAQ support forum, here: https://wordpress.org/support/plugin/ultimate-faqs
145
+
146
+
147
+ --------------------------------------------------------------
148
+
149
+
150
+ == Frequently Asked Questions ==
151
+
152
+ = How do I get my FAQs to show up on my page? =
153
+
154
+ Try adding the shortcode [ultimate-faqs] to whatever page you'd like to display the FAQ on.
155
+
156
+ = What are the current FAQ shortcodes? =
157
+
158
+ * [ultimate-faqs]: display all FAQs, or only specific FAQ categories using include_category and exclude_category attributes (both take a comma-separated list of category slugs)
159
+ * [popular-faqs]: displays a number of the most viewed FAQs (5 unless specified).
160
+ * [recent-faqs]: displays a number of the most recently added FAQs (5 unless specified).
161
+ * [select-faq]: display specific FAQ posts, using the attributes faq_name, faq_slug and faq_id which take comma-separated lists of FAQ post names, FAQ slugs and FAQ ids respectively.
162
+ * [ultimate-faq-search]: display an FAQ search form that allows users to find FAQs with a specific string in the FAQ title or body of the FAQ post (premium).
163
+ * [submit-question]: display a form that allows users to submit FAQs of their own and, if enabled, enter an FAQ answer to their submitted FAQ question as well (premium).
164
+
165
+ = What attributes does the [ultimate-faqs] shortcode accept? =
166
+
167
+ The FAQ shortcode accepts two attributes, "include_category" and "exclude_category". Both take a comma-separated list of FAQ category slugs. For example, to include only FAQs about the Category "Cars" (which has a slug "cars"), you would use:
168
+
169
+ [ultimate-faqs include_category='cars']
170
+
171
+ You can now also use the 'include_category_ids' and 'exclude_category_ids' attributes, to let users include categories by ID instead of only by slug
172
+
173
+ = Can I hide my FAQ categories? =
174
+
175
+ Yes, you can choose to display or hide FAQ categories on the FAQ settings page.
176
+
177
+ = Is it possible to re-order my FAQs? =
178
+
179
+ Currently you can choose between ascending or descending ordering for your FAQ by either Title, Date Created, or Date Modified.
180
+
181
+ With the premium version, you can use the FAQ drag and drop ordering table to set exactly the order you want for your FAQs.
182
+
183
+ = How can I make my FAQs sharable over social media? =
184
+
185
+ On the FAQ settings page you can choose to link to twitter, facebook and more!
186
+
187
+ = How do I make my FAQs searchable? =
188
+
189
+ You can use the premium shortcode, [ultimate-faq-search], which displays an AJAX FAQ search form. You can use the "Auto-Complete Titles" option to have a list of all matching FAQ questions pop up when a user has typed 3 or more characters.
190
+
191
+ = Can I display all FAQs on pageload using the [ultimate-faq-search] shortcode? =
192
+
193
+ You can add the attribute "show_on_load" to the shortcode, and set it to "Yes" to display all FAQs when the page first loads.
194
+
195
+ = How do I add FAQs to a WooCommerce product page with the premium version? =
196
+
197
+ You can add FAQs for either a specific product or for a WooCommerce category.
198
+
199
+ For a specific product, create an FAQ category with the same name as the product, and then select that category for all of the FAQs you want included on your product page.
200
+
201
+ For a category of WooCommerce products, create an FAQ category with the same name as the WooCommerce category, and then select that category for all of the FAQs you want included on your product page.
202
+
203
+ = How do I limit the number of posts generated by a shortcode =
204
+
205
+ For the [ultimate-faqs], [popular-faqs] and [recent-faqs] shortcodes, you can use the post_count attribute to limit the number of posts shown. For example:
206
+
207
+ `[ultimate-faqs post_count='9']
208
+ `
209
+
210
+ = How do I customize my FAQs, for example, to change the font? =
211
+
212
+ You can customize the plugin by adding code to the Custom CSS box on the FAQ settings page, go to the "Custom CSS" box. For example to change the font you might want to add something like:
213
+
214
+ .ufaq-faq-title h4, .ufaq-faq-category-title h4 {font-family:"Palatino Linotype", "Book Antiqua", Palatino, serif;}
215
+
216
+ You can also use the "Styling" area of the "Options" tab if you're using the premium version, which has a bulit-in color picker for FAQ color fields and more!
217
+
218
+ For more questions and support you can post in the support forum:
219
+ <https://wordpress.org/support/plugin/ultimate-faqs>
220
+
221
+ = Videos =
222
+
223
+ Video 1 - Shortcodes and Attributes
224
+ [youtube https://www.youtube.com/watch?v=zf-tYLqHpRs]
225
+
226
+ Video 2 - Categories and Tags
227
+ [youtube https://www.youtube.com/watch?v=ZV4PM0M1l7M]
228
+
229
+ Video 3 - FAQs Ordering
230
+ [youtube https://www.youtube.com/watch?v=3gVBuCo7bHU]
231
+
232
+
233
+ == Screenshots ==
234
+
235
+ 1. Car FAQ demo page - Default display style
236
+ 2. Example of the "Color Block" FAQ display style
237
+ 3. Example of the "Block" FAQ display style
238
+ 4. The AJAX FAQ search shortcode in use
239
+ 5. Simple user submitted FAQs form
240
+ 6. All answers displayed in the 'list' FAQ mode
241
+ 7. WooCommerce product page with "FAQs" tab
242
+ 8. Example of FAQ page with custom FAQ font icons
243
+ 9. Ultimate FAQs plugin dashboard
244
+ 10. Admin area showing all FAQs with their number of views as well as their categories
245
+ 11. Admin simple drag-and-drop FAQ ordering area
246
+ 12. Responsive, simple FAQ toggle and FAQ styling options with precise color controls
247
+ 13. View of FAQ custom fields in the admin
248
+
249
+ == Changelog ==
250
+ = 1.5.22 =
251
+ - Small admin CSS and typo correction in relation to previous update
252
+
253
+ = 1.5.21 =
254
+ - Split the basic and premium options into a few sub-sections, to make it easier to find the right option
255
+
256
+ = 1.5.20 =
257
+ - Added a new, simpler way to select which FAQs to display on a product page, directly from the edit product screen
258
+
259
+ = 1.5.19 =
260
+ - Minor admin area update
261
+
262
+ = 1.5.18 =
263
+ - Removed a number of notices
264
+
265
+ = 1.5.17 =
266
+ - Removed a number of notices
267
+
268
+ = 1.5.16 =
269
+ - Replaced the version of PHPExcel used, so that the spreadsheet uploads will be compatible with PHP7
270
+ - Minor Dashboard fix
271
+
272
+ = 1.5.15 =
273
+ - Fixed a small Dashboard error that a number of users were experiencing
274
+
275
+ = 1.5.14 =
276
+ - Minor Dashboard update
277
+
278
+ = 1.5.13 =
279
+ - Fixed an error where using the trial in this plugin reset the trials for a number of our other plugins
280
+
281
+ = 1.5.12 =
282
+ - Introducing a free new premium 7-day trial feature, which users can choose to test out before buying the premium version
283
+
284
+ = 1.5.11 =
285
+ - Added an "Expand/Collapse All" optional set of controls
286
+ - Added in a "Retrieving Results" label for the search shortcode
287
+ - Added a "Link" custom field type
288
+ - Added in helper text when you're editing a category, to show the shortcode required to display only the selected category of FAQs
289
+ - Fixed a problem with sharing an FAQ on Facebook
290
+
291
+ = 1.5.10 =
292
+ - Fixed an error where permalinks weren't displaying
293
+
294
+ = 1.5.8 =
295
+ - Added in a pre-built shortcode display on the edit FAQ page, to display a single FAQ
296
+ - Fixed an error where the upgrade box was displayed on multiplate tabs
297
+
298
+ = 1.5.7 =
299
+ - Fixed an issue where the ratings buttons weren't working using the AJAX search feature
300
+
301
+ = 1.5.6 =
302
+ - Fixed minor dashboard and attribute errors
303
+
304
+ = 1.5.5 =
305
+ - Added in a new admin notification option for when questions are received
306
+ - Added in two new shortcode attributes, 'include_category_ids' and 'exclude_category_ids', to let users include categories by ID instead of only by slug
307
+ - Fixed two typos in the labelling area of the backend
308
+
309
+ = 1.5.4 =
310
+ - Fixed an issue where the most viewed FAQ stat was being sorted as a string
311
+
312
+ = 1.5.3 =
313
+ - Fixed a labelling issue for the submit FAQ shortcode
314
+
315
+ = 1.5.2 =
316
+ - Fixed a labelling issue for the submit FAQ shortcode
317
+
318
+ = 1.5.1 =
319
+ - Added in a message if no FAQs are found in search, and a label for that message in the back-end
320
+
321
+ = 1.5.0 =
322
+ - Added in a new premium option to change the toggle icon to one of 15 different sets of icons
323
+ - Added in microdata support, to help with SEO
324
+ - FAQs can now be included for an entire WooCommerce category instead of being added for products one at a time
325
+ - Fixed a URL issue when a category or tag was selected, and a visitor tried to select another one
326
+
327
+ = 1.4.5 =
328
+ - Fixed a number of insufficient permission errors
329
+
330
+ = 1.4.4 =
331
+ - Added back in the link to edit an FAQ when you're on the single FAQ page
332
+
333
+ = 1.4.3 =
334
+ - Added in a new set of tutorials for new users
335
+ - Centralized the plugin dashboard and menu
336
+
337
+ = 1.4.2 =
338
+ - Added a premium styling option for the toggle indicator to adjust the height
339
+
340
+ = 1.4.1 =
341
+ - Minor update to take out a debugging message
342
+
343
+ = 1.4.0 =
344
+ - Added two new FAQ display styles, minimalist and border block
345
+ - Added in support for comments directly in the FAQs if enabled
346
+ - Added two new premium features, FAQ ratings and FAQ custom fields
347
+ - Added a premium styling option to let users select which heading the FAQ and comment titles have (h1, h2, etc.)
348
+
349
+ = 1.3.6 =
350
+ - Minor CSS update
351
+
352
+ = 1.3.5 =
353
+ - Fixed a font-family error
354
+
355
+ = 1.3.4 =
356
+ - Fixed an error where if WooCommerce FAQs were set to "Yes", and not category had been created, all FAQs would show
357
+
358
+ = 1.3.3 =
359
+ - Fixed an error where scroll to top would take a visitor to the first instance of an FAQ if it was on the page twice
360
+
361
+ = 1.3.2 =
362
+ - Fixed an error where view count wasn't being counted when FAQs were clicked to expand
363
+
364
+ = 1.3.1 =
365
+ - Fixed a JS error that was preventing the new shortcode helper from working with other plugins that modify the visual editor
366
+
367
+ = 1.3.0 =
368
+ - Added a feature that has been requested by a number of users, an FAQ shortcode helper, which lets you build shortcodes without having to remember and manually input the attributes. This feature can be turned off via the settings page, if you'd like to keep your tinyMCE button bar free of extra buttons
369
+ - Fixed an error where category titles were no longer displaying
370
+
371
+ = 1.2.11 =
372
+ - Global post variable is now reset after the FAQs query loop
373
+
374
+ = 1.2.10 =
375
+ - Should make the plugin compatible with a couple of page builder plugins
376
+
377
+ = 1.2.9 =
378
+ - If there are no tags or categories for a particular FAQ, they should now be hidden
379
+
380
+ = 1.2.8 =
381
+ - Added an attribute, show_on_load, which will show all FAQs when the page first loads and then refresh the results when a visitor adds a search term
382
+
383
+ = 1.2.7 =
384
+ - Fixed an error where same page permalinks weren't opening the posts
385
+
386
+ = 1.2.6 =
387
+ - Added an option to just use the page ID for WooCommerce instead of the product's ID
388
+
389
+ = 1.2.5 =
390
+ - Fixed a broken link
391
+ - Added extra information about the premium version
392
+
393
+ = 1.2.4 =
394
+ - Fixed an error where FAQs on the same page as the search shortcode couldn't be clicked at times
395
+
396
+ = 1.2.3 =
397
+ - Added in WPML support for the main shortcodes
398
+ - Fixed an error with a missing ID tag
399
+
400
+ = 1.2.2 =
401
+ - Added the ability to have multiple widgets or shortcodes on a page
402
+ - Fixed a small error with the popular FAQs shortcode
403
+
404
+ = 1.2.1 =
405
+ - Fixed a missing file error
406
+
407
+ = 1.2.0 =
408
+ - Added in a new premium feature: WooCommerce FAQs tab, which lets you add a different list of FAQs on the product page for each WooCommerce product
409
+ - Added the ability to filter FAQs by category
410
+
411
+ = 1.1.19 =
412
+ - Added another set of labeling options
413
+
414
+ = 1.1.18 =
415
+ - Minor CSS update
416
+
417
+ = 1.1.17 =
418
+ - Added anumber of extra labeling options
419
+
420
+ = 1.1.16 =
421
+ - Minor CSS update
422
+
423
+ = 1.1.15 =
424
+ - CSV files can now be used for FAQ imports
425
+
426
+ = 1.1.14 =
427
+ - Fixed a parent-child issue, where if a parent category was added in the include_category attribute, it was possible to end up with unexpected categories when an FAQ was in multiple categories
428
+
429
+ = 1.1.13 =
430
+ - Fixed a number of PHP notices
431
+
432
+ = 1.1.12 =
433
+ - Minor CSS update
434
+
435
+ = 1.1.11 =
436
+ - Fixed a missing div error that could come up with certain options selected
437
+
438
+ = 1.1.10 =
439
+ - Minor CSS update
440
+
441
+ = 1.1.9 =
442
+ - Added a "Category Toggle" options for users who group their FAQs by category
443
+ - Cleaned up some of the code dealing with options
444
+
445
+ = 1.1.8 =
446
+ - Fixed a scrolling error with non-FAQ links
447
+
448
+ = 1.1.7 =
449
+ - Should fix small problems with the "select-faq" shortcode and the "FAQ ID List" widget
450
+
451
+ = 1.1.6 =
452
+ - Removed blank categories from FAQ search results
453
+ - Added in a "Permalink Type" option, which lets you decide between linking to the post in the main page and the individual post page
454
+
455
+ = 1.1.5 =
456
+ - Fixed a problem with FAQ permalinks not opening in the list
457
+
458
+ = 1.1.4 =
459
+ - Fixed a conflict with WooCommerce, where a UFAQ script was keeping product information tabs open
460
+
461
+ = 1.1.3 =
462
+ - Fixed a problem where links inside of a toggable FAQ weren't clickable
463
+
464
+ = 1.1.2 =
465
+ - Added a color picker to the color fields on the styling options area
466
+
467
+ = 1.1.1 =
468
+ - Added 'display_all_answers' as a shortcode attribute, so some pages can have all answers displayed and others can have the started list style
469
+ - Fixed an option mistake
470
+
471
+ = 1.1.0 =
472
+ - Added new premium display styles
473
+ - Added an autocomplete titles option for the AJAX search shortcode
474
+ - Added more styling options to customize new display styles
475
+ - Added an option to add a 'Back to Top' link to each FAQ post
476
+ - Fixed a reveal error with non-accordion display and no effect selected
477
+
478
+ = 1.0.9 =
479
+ - Added some CSS classes in preparation for an upcoming large CSS/styling update
480
+
481
+ = 1.0.8 =
482
+ - Added a unique identifier to each FAQ so that if it is repeated on the same page, the correct post should open
483
+
484
+ = 1.0.7 =
485
+ - Minor CSS update
486
+
487
+ = 1.0.6 =
488
+ - Fixed an issue where new users weren't able to update ordering even after upgrading to premium
489
+
490
+ = 1.0.5 =
491
+ - Minor CSS update
492
+
493
+ = 1.0.4 =
494
+ - Fixed a status error message
495
+
496
+ = 1.0.3 =
497
+ - Added in widgets to display a number of popular or recently created faqs
498
+
499
+ = 1.0.2 =
500
+ - CSS update for the ordering table in the admin area
501
+
502
+ = 1.0.1 =
503
+ - Fix for the FAQ ordering bug
504
+
505
+ = 1.0.0 =
506
+ - Premium version release, check out our website for all of the details <http://www.etoilewebdesign.com/ultimate-faq/>