Version Description
- Added a "Random FAQ" widget
- Added in options to change the toggle icon size and color
- Fixed a couple of small issues with the AJAX search
Download this release
Release Info
Developer | Rustaurius |
Plugin | Ultimate FAQ |
Version | 1.5.23 |
Comparing to | |
See all releases |
Code changes from version 1.5.22 to 1.5.23
- Functions/EWD_UFAQ_Styling.php +41 -35
- Functions/EWD_UFAQ_Widgets.php +50 -0
- Functions/Process_Ajax.php +1 -1
- Functions/Update_Admin_Databases.php +10 -8
- Main.php +344 -344
- Shortcodes/DisplayFAQs.php +8 -6
- Shortcodes/Display_FAQ_Search.php +1 -0
- css/Admin.css +4 -0
- html/OptionsPage.php +1054 -1044
- js/ewd-ufaq-js.js +2 -1
- readme.txt +511 -506
Functions/EWD_UFAQ_Styling.php
CHANGED
@@ -1,55 +1,61 @@
|
|
1 |
-
<?php
|
2 |
function EWD_UFAQ_Add_Modified_Styles() {
|
3 |
$StylesString = "<style>";
|
4 |
-
$StylesString .=".
|
5 |
-
if (get_option("EWD_UFAQ_Styling_Default_Bg_Color") != "") {$StylesString .= "background-color:" . get_option("EWD_UFAQ_Styling_Default_Bg_Color") . " !important;";}
|
6 |
-
if (get_option("EWD_UFAQ_Styling_Default_Font_Color") != "") {$StylesString .="color:" . get_option("EWD_UFAQ_Styling_Default_Font_Color") . " !important;";}
|
7 |
-
|
8 |
-
if (get_option("
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
$StylesString .="}\n";
|
10 |
$StylesString .=".ufaq-faq-display-style-Block.ewd-ufaq-post-active, .ufaq-faq-display-style-Block.ewd-ufaq-post-active a,.ufaq-faq-display-style-Block:hover, .ufaq-faq-display-style-Block:hover a, .ufaq-faq-display-style-Block:hover h4 { ";
|
11 |
-
if (get_option("EWD_UFAQ_Styling_Block_Bg_Color") != "") {$StylesString .= "background-color:" . get_option("EWD_UFAQ_Styling_Block_Bg_Color") . " !important;";}
|
12 |
-
if (get_option("EWD_UFAQ_Styling_Block_Font_Color") != "") {$StylesString .="color:" . get_option("EWD_UFAQ_Styling_Block_Font_Color") . " !important;";}
|
13 |
$StylesString .="}\n";
|
14 |
$StylesString .=".ufaq-faq-header-title a{ ";
|
15 |
-
if (get_option("EWD_UFAQ_Styling_List_Font") != "") {$StylesString .= "font-family:" . get_option("EWD_UFAQ_Styling_List_Font") . " !important;";}
|
16 |
-
if (get_option("EWD_UFAQ_Styling_List_Font_Size") != "") {$StylesString .="font-size:" . get_option("EWD_UFAQ_Styling_List_Font_Size") . " !important;";}
|
17 |
-
if (get_option("EWD_UFAQ_Styling_List_Font_Color") != "") {$StylesString .= "color:" . get_option("EWD_UFAQ_Styling_List_Font_Color") . " !important;";}
|
18 |
-
if (get_option("EWD_UFAQ_Styling_List_Margin") != "") {$StylesString .= "margin:" . get_option("EWD_UFAQ_Styling_List_Margin") . " !important;";}
|
19 |
-
if (get_option("EWD_UFAQ_Styling_List_Padding") != "") {$StylesString .= "padding:" . get_option("EWD_UFAQ_Styling_List_Padding") . " !important;";}
|
20 |
$StylesString .="}\n";
|
21 |
$StylesString .="div.ufaq-faq-title h4 { ";
|
22 |
-
if (get_option("EWD_UFAQ_Styling_Question_Font") != "") {$StylesString .= "font-family:" . get_option("EWD_UFAQ_Styling_Question_Font") . " !important;";}
|
23 |
-
if (get_option("EWD_UFAQ_Styling_Question_Font_Size") != "") {$StylesString .="font-size:" . get_option("EWD_UFAQ_Styling_Question_Font_Size") . " !important;";}
|
24 |
-
if (get_option("EWD_UFAQ_Styling_Question_Font_Color") != "") {$StylesString .= "color:" . get_option("EWD_UFAQ_Styling_Question_Font_Color") . " !important;";}
|
25 |
-
if (get_option("EWD_UFAQ_Styling_Question_Margin") != "") {$StylesString .= "margin:" . get_option("EWD_UFAQ_Styling_Question_Margin") . " !important;";}
|
26 |
-
if (get_option("EWD_UFAQ_Styling_Question_Padding") != "") {$StylesString .= "padding:" . get_option("EWD_UFAQ_Styling_Question_Padding") . " !important;";}
|
27 |
$StylesString .="}\n";
|
28 |
$StylesString .=".ewd-ufaq-post-margin-symbol { ";
|
29 |
-
if (get_option("EWD_UFAQ_Styling_Question_Icon_Top_Margin") != "") {$StylesString .= "margin-top:" . get_option("EWD_UFAQ_Styling_Question_Icon_Top_Margin") . " !important;";}
|
30 |
$StylesString .="}\n";
|
31 |
$StylesString .="div.ufaq-faq-post p { ";
|
32 |
-
if (get_option("EWD_UFAQ_Styling_Answer_Font") != "") {$StylesString .= "font-family:" . get_option("EWD_UFAQ_Styling_Answer_Font") . " !important;";}
|
33 |
-
if (get_option("EWD_UFAQ_Styling_Answer_Font_Size") != "") {$StylesString .="font-size:" . get_option("EWD_UFAQ_Styling_Answer_Font_Size") . " !important;";}
|
34 |
-
if (get_option("EWD_UFAQ_Styling_Answer_Font_Color") != "") {$StylesString .= "color:" . get_option("EWD_UFAQ_Styling_Answer_Font_Color") . " !important;";}
|
35 |
-
if (get_option("EWD_UFAQ_Styling_Answer_Margin") != "") {$StylesString .= "margin:" . get_option("EWD_UFAQ_Styling_Answer_Margin") . " !important;";}
|
36 |
-
if (get_option("EWD_UFAQ_Styling_Answer_Padding") != "") {$StylesString .= "padding:" . get_option("EWD_UFAQ_Styling_Answer_Padding") . " !important;";}
|
37 |
$StylesString .="}\n";
|
38 |
$StylesString .="div.ewd-ufaq-author-date { ";
|
39 |
-
if (get_option("EWD_UFAQ_Styling_Postdate_Font") != "") {$StylesString .= "font-family:" . get_option("EWD_UFAQ_Styling_Postdate_Font") . " !important;";}
|
40 |
-
if (get_option("EWD_UFAQ_Styling_Postdate_Font_Size") != "") {$StylesString .="font-size:" . get_option("EWD_UFAQ_Styling_Postdate_Font_Size") . " !important;";}
|
41 |
-
if (get_option("EWD_UFAQ_Styling_Postdate_Font_Color") != "") {$StylesString .= "color:" . get_option("EWD_UFAQ_Styling_Postdate_Font_Color") . " !important;";}
|
42 |
-
if (get_option("EWD_UFAQ_Styling_Postdate_Margin") != "") {$StylesString .= "margin:" . get_option("EWD_UFAQ_Styling_Postdate_Margin") . " !important;";}
|
43 |
-
if (get_option("EWD_UFAQ_Styling_Postdate_Padding") != "") {$StylesString .= "padding:" . get_option("EWD_UFAQ_Styling_Postdate_Padding") . " !important;";}
|
44 |
$StylesString .="}\n";
|
45 |
$StylesString .="div.ufaq-faq-categories, div.ufaq-faq-tags { ";
|
46 |
-
if (get_option("EWD_UFAQ_Styling_Category_Font") != "") {$StylesString .= "font-family:" . get_option("EWD_UFAQ_Styling_Category_Font") . " !important;";}
|
47 |
-
if (get_option("EWD_UFAQ_Styling_Category_Font_Size") != "") {$StylesString .="font-size:" . get_option("EWD_UFAQ_Styling_Category_Font_Size") . " !important;";}
|
48 |
-
if (get_option("EWD_UFAQ_Styling_Category_Font_Color") != "") {$StylesString .= "color:" . get_option("EWD_UFAQ_Styling_Category_Font_Color") . " !important;";}
|
49 |
-
if (get_option("EWD_UFAQ_Styling_Category_Margin") != "") {$StylesString .= "margin:" . get_option("EWD_UFAQ_Styling_Category_Margin") . " !important;";}
|
50 |
-
if (get_option("EWD_UFAQ_Styling_Category_Padding") != "") {$StylesString .= "padding:" . get_option("EWD_UFAQ_Styling_Category_Padding") . " !important;";}
|
51 |
$StylesString .="}\n";
|
52 |
$StylesString .= "</style>";
|
53 |
|
54 |
return $StylesString;
|
55 |
-
}
|
1 |
+
<?php
|
2 |
function EWD_UFAQ_Add_Modified_Styles() {
|
3 |
$StylesString = "<style>";
|
4 |
+
$StylesString .=".ewd-ufaq-post-margin-symbol { ";
|
5 |
+
if (get_option("EWD_UFAQ_Styling_Default_Bg_Color") != "") {$StylesString .= "background-color:" . get_option("EWD_UFAQ_Styling_Default_Bg_Color") . " !important;";}
|
6 |
+
if (get_option("EWD_UFAQ_Styling_Default_Font_Color") != "") {$StylesString .="color:" . get_option("EWD_UFAQ_Styling_Default_Font_Color") . " !important;";}
|
7 |
+
$StylesString .= "border-style: solid;";
|
8 |
+
if (get_option("EWD_UFAQ_Styling_Default_Border_Size") != "") {$StylesString .= "border-width:" . get_option("EWD_UFAQ_Styling_Default_Border_Size") . " !important;";}
|
9 |
+
if (get_option("EWD_UFAQ_Styling_Default_Border_Color") != "") {$StylesString .= "border-color:" . get_option("EWD_UFAQ_Styling_Default_Border_Color") . " !important;";}
|
10 |
+
if (get_option("EWD_UFAQ_Styling_Default_Border_Radius") != "") {$StylesString .= "border-radius:" . get_option("EWD_UFAQ_Styling_Default_Border_Radius") . " !important;";}
|
11 |
+
if (get_option("EWD_UFAQ_Styling_Toggle_Symbol_Size") != "") {$StylesString .= "font-size:" . get_option("EWD_UFAQ_Styling_Toggle_Symbol_Size") . " !important;";}
|
12 |
+
$StylesString .="}\n";
|
13 |
+
$StylesString .=".ewd-ufaq-post-margin-symbol span { ";
|
14 |
+
if (get_option("EWD_UFAQ_Styling_Toggle_Symbol_Size") != "") {$StylesString .= "font-size:" . get_option("EWD_UFAQ_Styling_Toggle_Symbol_Size") . " !important;";}
|
15 |
$StylesString .="}\n";
|
16 |
$StylesString .=".ufaq-faq-display-style-Block.ewd-ufaq-post-active, .ufaq-faq-display-style-Block.ewd-ufaq-post-active a,.ufaq-faq-display-style-Block:hover, .ufaq-faq-display-style-Block:hover a, .ufaq-faq-display-style-Block:hover h4 { ";
|
17 |
+
if (get_option("EWD_UFAQ_Styling_Block_Bg_Color") != "") {$StylesString .= "background-color:" . get_option("EWD_UFAQ_Styling_Block_Bg_Color") . " !important;";}
|
18 |
+
if (get_option("EWD_UFAQ_Styling_Block_Font_Color") != "") {$StylesString .="color:" . get_option("EWD_UFAQ_Styling_Block_Font_Color") . " !important;";}
|
19 |
$StylesString .="}\n";
|
20 |
$StylesString .=".ufaq-faq-header-title a{ ";
|
21 |
+
if (get_option("EWD_UFAQ_Styling_List_Font") != "") {$StylesString .= "font-family:" . get_option("EWD_UFAQ_Styling_List_Font") . " !important;";}
|
22 |
+
if (get_option("EWD_UFAQ_Styling_List_Font_Size") != "") {$StylesString .="font-size:" . get_option("EWD_UFAQ_Styling_List_Font_Size") . " !important;";}
|
23 |
+
if (get_option("EWD_UFAQ_Styling_List_Font_Color") != "") {$StylesString .= "color:" . get_option("EWD_UFAQ_Styling_List_Font_Color") . " !important;";}
|
24 |
+
if (get_option("EWD_UFAQ_Styling_List_Margin") != "") {$StylesString .= "margin:" . get_option("EWD_UFAQ_Styling_List_Margin") . " !important;";}
|
25 |
+
if (get_option("EWD_UFAQ_Styling_List_Padding") != "") {$StylesString .= "padding:" . get_option("EWD_UFAQ_Styling_List_Padding") . " !important;";}
|
26 |
$StylesString .="}\n";
|
27 |
$StylesString .="div.ufaq-faq-title h4 { ";
|
28 |
+
if (get_option("EWD_UFAQ_Styling_Question_Font") != "") {$StylesString .= "font-family:" . get_option("EWD_UFAQ_Styling_Question_Font") . " !important;";}
|
29 |
+
if (get_option("EWD_UFAQ_Styling_Question_Font_Size") != "") {$StylesString .="font-size:" . get_option("EWD_UFAQ_Styling_Question_Font_Size") . " !important;";}
|
30 |
+
if (get_option("EWD_UFAQ_Styling_Question_Font_Color") != "") {$StylesString .= "color:" . get_option("EWD_UFAQ_Styling_Question_Font_Color") . " !important;";}
|
31 |
+
if (get_option("EWD_UFAQ_Styling_Question_Margin") != "") {$StylesString .= "margin:" . get_option("EWD_UFAQ_Styling_Question_Margin") . " !important;";}
|
32 |
+
if (get_option("EWD_UFAQ_Styling_Question_Padding") != "") {$StylesString .= "padding:" . get_option("EWD_UFAQ_Styling_Question_Padding") . " !important;";}
|
33 |
$StylesString .="}\n";
|
34 |
$StylesString .=".ewd-ufaq-post-margin-symbol { ";
|
35 |
+
if (get_option("EWD_UFAQ_Styling_Question_Icon_Top_Margin") != "") {$StylesString .= "margin-top:" . get_option("EWD_UFAQ_Styling_Question_Icon_Top_Margin") . " !important;";}
|
36 |
$StylesString .="}\n";
|
37 |
$StylesString .="div.ufaq-faq-post p { ";
|
38 |
+
if (get_option("EWD_UFAQ_Styling_Answer_Font") != "") {$StylesString .= "font-family:" . get_option("EWD_UFAQ_Styling_Answer_Font") . " !important;";}
|
39 |
+
if (get_option("EWD_UFAQ_Styling_Answer_Font_Size") != "") {$StylesString .="font-size:" . get_option("EWD_UFAQ_Styling_Answer_Font_Size") . " !important;";}
|
40 |
+
if (get_option("EWD_UFAQ_Styling_Answer_Font_Color") != "") {$StylesString .= "color:" . get_option("EWD_UFAQ_Styling_Answer_Font_Color") . " !important;";}
|
41 |
+
if (get_option("EWD_UFAQ_Styling_Answer_Margin") != "") {$StylesString .= "margin:" . get_option("EWD_UFAQ_Styling_Answer_Margin") . " !important;";}
|
42 |
+
if (get_option("EWD_UFAQ_Styling_Answer_Padding") != "") {$StylesString .= "padding:" . get_option("EWD_UFAQ_Styling_Answer_Padding") . " !important;";}
|
43 |
$StylesString .="}\n";
|
44 |
$StylesString .="div.ewd-ufaq-author-date { ";
|
45 |
+
if (get_option("EWD_UFAQ_Styling_Postdate_Font") != "") {$StylesString .= "font-family:" . get_option("EWD_UFAQ_Styling_Postdate_Font") . " !important;";}
|
46 |
+
if (get_option("EWD_UFAQ_Styling_Postdate_Font_Size") != "") {$StylesString .="font-size:" . get_option("EWD_UFAQ_Styling_Postdate_Font_Size") . " !important;";}
|
47 |
+
if (get_option("EWD_UFAQ_Styling_Postdate_Font_Color") != "") {$StylesString .= "color:" . get_option("EWD_UFAQ_Styling_Postdate_Font_Color") . " !important;";}
|
48 |
+
if (get_option("EWD_UFAQ_Styling_Postdate_Margin") != "") {$StylesString .= "margin:" . get_option("EWD_UFAQ_Styling_Postdate_Margin") . " !important;";}
|
49 |
+
if (get_option("EWD_UFAQ_Styling_Postdate_Padding") != "") {$StylesString .= "padding:" . get_option("EWD_UFAQ_Styling_Postdate_Padding") . " !important;";}
|
50 |
$StylesString .="}\n";
|
51 |
$StylesString .="div.ufaq-faq-categories, div.ufaq-faq-tags { ";
|
52 |
+
if (get_option("EWD_UFAQ_Styling_Category_Font") != "") {$StylesString .= "font-family:" . get_option("EWD_UFAQ_Styling_Category_Font") . " !important;";}
|
53 |
+
if (get_option("EWD_UFAQ_Styling_Category_Font_Size") != "") {$StylesString .="font-size:" . get_option("EWD_UFAQ_Styling_Category_Font_Size") . " !important;";}
|
54 |
+
if (get_option("EWD_UFAQ_Styling_Category_Font_Color") != "") {$StylesString .= "color:" . get_option("EWD_UFAQ_Styling_Category_Font_Color") . " !important;";}
|
55 |
+
if (get_option("EWD_UFAQ_Styling_Category_Margin") != "") {$StylesString .= "margin:" . get_option("EWD_UFAQ_Styling_Category_Margin") . " !important;";}
|
56 |
+
if (get_option("EWD_UFAQ_Styling_Category_Padding") != "") {$StylesString .= "padding:" . get_option("EWD_UFAQ_Styling_Category_Padding") . " !important;";}
|
57 |
$StylesString .="}\n";
|
58 |
$StylesString .= "</style>";
|
59 |
|
60 |
return $StylesString;
|
61 |
+
}
|
Functions/EWD_UFAQ_Widgets.php
CHANGED
@@ -164,6 +164,56 @@ class EWD_UFAQ_Display_Popular_FAQS extends WP_Widget {
|
|
164 |
}
|
165 |
add_action('widgets_init', create_function('', 'return register_widget("EWD_UFAQ_Display_Popular_FAQS");'));
|
166 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
167 |
class EWD_UFAQ_Display_FAQ_Categories extends WP_Widget {
|
168 |
|
169 |
/**
|
164 |
}
|
165 |
add_action('widgets_init', create_function('', 'return register_widget("EWD_UFAQ_Display_Popular_FAQS");'));
|
166 |
|
167 |
+
class EWD_UFAQ_Display_Random_FAQ extends WP_Widget {
|
168 |
+
|
169 |
+
/**
|
170 |
+
* Sets up the widgets name etc
|
171 |
+
*/
|
172 |
+
public function __construct() {
|
173 |
+
parent::__construct(
|
174 |
+
'ewd_ufaq_display_random_faq', // Base ID
|
175 |
+
__('Random FAQ', 'EWD_UFAQ'), // Name
|
176 |
+
array( 'description' => __( 'Display a random FAQ', 'EWD_UFAQ' ), ) // Args
|
177 |
+
);
|
178 |
+
}
|
179 |
+
|
180 |
+
/**
|
181 |
+
* Outputs the content of the widget
|
182 |
+
*
|
183 |
+
* @param array $args
|
184 |
+
* @param array $instance
|
185 |
+
*/
|
186 |
+
public function widget( $args, $instance ) {
|
187 |
+
$FAQs = get_posts(array('orderby' => 'rand', 'posts_per_page' => '1', 'post_type' => 'ufaq'));
|
188 |
+
|
189 |
+
echo $args['before_widget'];
|
190 |
+
foreach ($FAQs as $FAQ) {echo do_shortcode("[select-faq faq_id='". $FAQ->ID . "' no_comments='Yes']");}
|
191 |
+
echo $args['after_widget'];
|
192 |
+
}
|
193 |
+
|
194 |
+
/**
|
195 |
+
* Outputs the options form on admin
|
196 |
+
*
|
197 |
+
* @param array $instance The widget options
|
198 |
+
*/
|
199 |
+
public function form( $instance ) {
|
200 |
+
|
201 |
+
}
|
202 |
+
|
203 |
+
/**
|
204 |
+
* Processing widget options on save
|
205 |
+
*
|
206 |
+
* @param array $new_instance The new options
|
207 |
+
* @param array $old_instance The previous options
|
208 |
+
*/
|
209 |
+
public function update( $new_instance, $old_instance ) {
|
210 |
+
$instance = array();
|
211 |
+
|
212 |
+
return $instance;
|
213 |
+
}
|
214 |
+
}
|
215 |
+
add_action('widgets_init', create_function('', 'return register_widget("EWD_UFAQ_Display_Random_FAQ");'));
|
216 |
+
|
217 |
class EWD_UFAQ_Display_FAQ_Categories extends WP_Widget {
|
218 |
|
219 |
/**
|
Functions/Process_Ajax.php
CHANGED
@@ -7,7 +7,7 @@ function UFAQ_Search() {
|
|
7 |
$Path = ABSPATH . 'wp-load.php';
|
8 |
include_once($Path);
|
9 |
|
10 |
-
$response = do_shortcode("[ultimate-faqs search_string='" . strtolower($_POST['Q']) . "' include_category='" . $_POST['include_category'] . "' exclude_category='" . $_POST['exclude_category'] . "' orderby='" . $_POST['orderby'] . "' order='" . $_POST['order'] . "' post_count='" . $_POST['post_count'] . "' ajax='Yes']");
|
11 |
|
12 |
$ReturnArray['request_count'] = $_POST['request_count'];
|
13 |
$ReturnArray['message'] = $response;
|
7 |
$Path = ABSPATH . 'wp-load.php';
|
8 |
include_once($Path);
|
9 |
|
10 |
+
$response = do_shortcode("[ultimate-faqs search_string='" . strtolower($_POST['Q']) . "' include_category='" . $_POST['include_category'] . "' exclude_category='" . $_POST['exclude_category'] . "' orderby='" . $_POST['orderby'] . "' order='" . $_POST['order'] . "' post_count='" . $_POST['post_count'] . "' current_url='" . $_POST['current_url'] . "' ajax='Yes']");
|
11 |
|
12 |
$ReturnArray['request_count'] = $_POST['request_count'];
|
13 |
$ReturnArray['message'] = $response;
|
Functions/Update_Admin_Databases.php
CHANGED
@@ -16,9 +16,9 @@ function EWD_UFAQ_UpdateOptions() {
|
|
16 |
$Custom_CSS = $_POST['custom_css'];
|
17 |
$Social_Media_Array = $_POST['Socialmedia'];
|
18 |
if (is_array($Social_Media_Array)) {$Social_Media = implode(",", $Social_Media_Array);}
|
19 |
-
|
20 |
$Custom_CSS = stripslashes_deep($Custom_CSS);
|
21 |
-
|
22 |
if (isset($_POST['custom_css'])) {update_option('EWD_UFAQ_Custom_CSS', $Custom_CSS);}
|
23 |
if (isset($_POST['faq_toggle'])) {update_option('EWD_UFAQ_Toggle', $_POST['faq_toggle']);}
|
24 |
if (isset($_POST['faq_category_toggle'])) {update_option('EWD_UFAQ_Category_Toggle', $_POST['faq_category_toggle']);}
|
@@ -60,13 +60,13 @@ function EWD_UFAQ_UpdateOptions() {
|
|
60 |
while ($Counter < 30) {
|
61 |
if (isset($_POST['Custom_Field_' . $Counter . '_Name'])) {
|
62 |
$Prefix = 'Custom_Field_' . $Counter;
|
63 |
-
|
64 |
$Custom_Field_Item['FieldID'] = sanitize_text_field($_POST[$Prefix . '_ID']);
|
65 |
$Custom_Field_Item['FieldName'] = sanitize_text_field($_POST[$Prefix . '_Name']);
|
66 |
$Custom_Field_Item['FieldType'] = sanitize_text_field($_POST[$Prefix . '_Type']);
|
67 |
$Custom_Field_Item['FieldValues'] = sanitize_text_field($_POST[$Prefix . '_Values']);
|
68 |
|
69 |
-
$Custom_Fields[] = $Custom_Field_Item;
|
70 |
unset($Custom_Field_Item);
|
71 |
}
|
72 |
$Counter++;
|
@@ -100,8 +100,10 @@ function EWD_UFAQ_UpdateOptions() {
|
|
100 |
|
101 |
if (isset($_POST['ufaq_styling_default_bg_color'])) {update_option('EWD_UFAQ_Styling_Default_Bg_Color', $_POST['ufaq_styling_default_bg_color']);}
|
102 |
if (isset($_POST['ufaq_styling_default_font_color'])) {update_option('EWD_UFAQ_Styling_Default_Font_Color', $_POST['ufaq_styling_default_font_color']);}
|
103 |
-
if (isset($_POST['
|
|
|
104 |
if (isset($_POST['ufaq_styling_default_border_radius'])) {update_option('EWD_UFAQ_Styling_Default_Border_Radius', $_POST['ufaq_styling_default_border_radius']);}
|
|
|
105 |
if (isset($_POST['ufaq_styling_block_bg_color'])) {update_option('EWD_UFAQ_Styling_Block_Bg_Color', $_POST['ufaq_styling_block_bg_color']);}
|
106 |
if (isset($_POST['ufaq_styling_block_font_color'])) {update_option('EWD_UFAQ_Styling_Block_Font_Color', $_POST['ufaq_styling_block_font_color']);}
|
107 |
if (isset($_POST['ufaq_styling_list_font'])) {update_option('EWD_UFAQ_Styling_List_Font', $_POST['ufaq_styling_list_font']);}
|
@@ -109,7 +111,7 @@ function EWD_UFAQ_UpdateOptions() {
|
|
109 |
if (isset($_POST['ufaq_styling_list_font_color'])) {update_option('EWD_UFAQ_Styling_List_Font_Color', $_POST['ufaq_styling_list_font_color']);}
|
110 |
if (isset($_POST['ufaq_styling_list_margin'])) {update_option('EWD_UFAQ_Styling_List_Margin', $_POST['ufaq_styling_list_margin']);}
|
111 |
if (isset($_POST['ufaq_styling_list_padding'])) {update_option('EWD_UFAQ_Styling_List_Padding', $_POST['ufaq_styling_list_padding']);}
|
112 |
-
|
113 |
if (isset($_POST['ufaq_styling_question_font'])) {update_option('EWD_UFAQ_Styling_Question_Font', $_POST['ufaq_styling_question_font']);}
|
114 |
if (isset($_POST['ufaq_styling_question_font_size'])) {update_option('EWD_UFAQ_Styling_Question_Font_Size', $_POST['ufaq_styling_question_font_size']);}
|
115 |
if (isset($_POST['ufaq_styling_question_font_color'])) {update_option('EWD_UFAQ_Styling_Question_Font_Color', $_POST['ufaq_styling_question_font_color']);}
|
@@ -131,7 +133,7 @@ function EWD_UFAQ_UpdateOptions() {
|
|
131 |
if (isset($_POST['ufaq_styling_category_font_color'])) {update_option('EWD_UFAQ_Styling_Category_Font_Color', $_POST['ufaq_styling_category_font_color']);}
|
132 |
if (isset($_POST['ufaq_styling_category_margin'])) {update_option('EWD_UFAQ_Styling_Category_Margin', $_POST['ufaq_styling_category_margin']);}
|
133 |
if (isset($_POST['ufaq_styling_category_padding'])) {update_option('EWD_UFAQ_Styling_Category_Padding', $_POST['ufaq_styling_category_padding']);}
|
134 |
-
|
135 |
if (isset($_POST['ufaq_styling_category_heading_type'])) {update_option('EWD_UFAQ_Styling_Category_Heading_Type', $_POST['ufaq_styling_category_heading_type']);}
|
136 |
if (isset($_POST['ufaq_styling_faq_heading_type'])) {update_option('EWD_UFAQ_Styling_FAQ_Heading_Type', $_POST['ufaq_styling_faq_heading_type']);}
|
137 |
if (isset($_POST['toggle_symbol'])) {update_option('EWD_UFAQ_Toggle_Symbol', $_POST['toggle_symbol']);}
|
@@ -143,4 +145,4 @@ function EWD_UFAQ_UpdateOptions() {
|
|
143 |
}
|
144 |
}
|
145 |
|
146 |
-
?>
|
16 |
$Custom_CSS = $_POST['custom_css'];
|
17 |
$Social_Media_Array = $_POST['Socialmedia'];
|
18 |
if (is_array($Social_Media_Array)) {$Social_Media = implode(",", $Social_Media_Array);}
|
19 |
+
|
20 |
$Custom_CSS = stripslashes_deep($Custom_CSS);
|
21 |
+
|
22 |
if (isset($_POST['custom_css'])) {update_option('EWD_UFAQ_Custom_CSS', $Custom_CSS);}
|
23 |
if (isset($_POST['faq_toggle'])) {update_option('EWD_UFAQ_Toggle', $_POST['faq_toggle']);}
|
24 |
if (isset($_POST['faq_category_toggle'])) {update_option('EWD_UFAQ_Category_Toggle', $_POST['faq_category_toggle']);}
|
60 |
while ($Counter < 30) {
|
61 |
if (isset($_POST['Custom_Field_' . $Counter . '_Name'])) {
|
62 |
$Prefix = 'Custom_Field_' . $Counter;
|
63 |
+
|
64 |
$Custom_Field_Item['FieldID'] = sanitize_text_field($_POST[$Prefix . '_ID']);
|
65 |
$Custom_Field_Item['FieldName'] = sanitize_text_field($_POST[$Prefix . '_Name']);
|
66 |
$Custom_Field_Item['FieldType'] = sanitize_text_field($_POST[$Prefix . '_Type']);
|
67 |
$Custom_Field_Item['FieldValues'] = sanitize_text_field($_POST[$Prefix . '_Values']);
|
68 |
|
69 |
+
$Custom_Fields[] = $Custom_Field_Item;
|
70 |
unset($Custom_Field_Item);
|
71 |
}
|
72 |
$Counter++;
|
100 |
|
101 |
if (isset($_POST['ufaq_styling_default_bg_color'])) {update_option('EWD_UFAQ_Styling_Default_Bg_Color', $_POST['ufaq_styling_default_bg_color']);}
|
102 |
if (isset($_POST['ufaq_styling_default_font_color'])) {update_option('EWD_UFAQ_Styling_Default_Font_Color', $_POST['ufaq_styling_default_font_color']);}
|
103 |
+
if (isset($_POST['ufaq_styling_default_border_size'])) {update_option('EWD_UFAQ_Styling_Default_Border_Size', $_POST['ufaq_styling_default_border_size']);}
|
104 |
+
if (isset($_POST['ufaq_styling_default_border_color'])) {update_option('EWD_UFAQ_Styling_Default_Border_Color', $_POST['ufaq_styling_default_border_color']);}
|
105 |
if (isset($_POST['ufaq_styling_default_border_radius'])) {update_option('EWD_UFAQ_Styling_Default_Border_Radius', $_POST['ufaq_styling_default_border_radius']);}
|
106 |
+
if (isset($_POST['ufaq_styling_toggle_symbol_size'])) {update_option('EWD_UFAQ_Styling_Toggle_Symbol_Size', $_POST['ufaq_styling_toggle_symbol_size']);}
|
107 |
if (isset($_POST['ufaq_styling_block_bg_color'])) {update_option('EWD_UFAQ_Styling_Block_Bg_Color', $_POST['ufaq_styling_block_bg_color']);}
|
108 |
if (isset($_POST['ufaq_styling_block_font_color'])) {update_option('EWD_UFAQ_Styling_Block_Font_Color', $_POST['ufaq_styling_block_font_color']);}
|
109 |
if (isset($_POST['ufaq_styling_list_font'])) {update_option('EWD_UFAQ_Styling_List_Font', $_POST['ufaq_styling_list_font']);}
|
111 |
if (isset($_POST['ufaq_styling_list_font_color'])) {update_option('EWD_UFAQ_Styling_List_Font_Color', $_POST['ufaq_styling_list_font_color']);}
|
112 |
if (isset($_POST['ufaq_styling_list_margin'])) {update_option('EWD_UFAQ_Styling_List_Margin', $_POST['ufaq_styling_list_margin']);}
|
113 |
if (isset($_POST['ufaq_styling_list_padding'])) {update_option('EWD_UFAQ_Styling_List_Padding', $_POST['ufaq_styling_list_padding']);}
|
114 |
+
|
115 |
if (isset($_POST['ufaq_styling_question_font'])) {update_option('EWD_UFAQ_Styling_Question_Font', $_POST['ufaq_styling_question_font']);}
|
116 |
if (isset($_POST['ufaq_styling_question_font_size'])) {update_option('EWD_UFAQ_Styling_Question_Font_Size', $_POST['ufaq_styling_question_font_size']);}
|
117 |
if (isset($_POST['ufaq_styling_question_font_color'])) {update_option('EWD_UFAQ_Styling_Question_Font_Color', $_POST['ufaq_styling_question_font_color']);}
|
133 |
if (isset($_POST['ufaq_styling_category_font_color'])) {update_option('EWD_UFAQ_Styling_Category_Font_Color', $_POST['ufaq_styling_category_font_color']);}
|
134 |
if (isset($_POST['ufaq_styling_category_margin'])) {update_option('EWD_UFAQ_Styling_Category_Margin', $_POST['ufaq_styling_category_margin']);}
|
135 |
if (isset($_POST['ufaq_styling_category_padding'])) {update_option('EWD_UFAQ_Styling_Category_Padding', $_POST['ufaq_styling_category_padding']);}
|
136 |
+
|
137 |
if (isset($_POST['ufaq_styling_category_heading_type'])) {update_option('EWD_UFAQ_Styling_Category_Heading_Type', $_POST['ufaq_styling_category_heading_type']);}
|
138 |
if (isset($_POST['ufaq_styling_faq_heading_type'])) {update_option('EWD_UFAQ_Styling_FAQ_Heading_Type', $_POST['ufaq_styling_faq_heading_type']);}
|
139 |
if (isset($_POST['toggle_symbol'])) {update_option('EWD_UFAQ_Toggle_Symbol', $_POST['toggle_symbol']);}
|
145 |
}
|
146 |
}
|
147 |
|
148 |
+
?>
|
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.
|
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.23
|
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 |
+
?>
|
Shortcodes/DisplayFAQs.php
CHANGED
@@ -2,12 +2,6 @@
|
|
2 |
/* The function that creates the HTML on the front-end, based on the parameters
|
3 |
* supplied in the product-catalog shortcode */
|
4 |
function Display_FAQs($atts) {
|
5 |
-
$current_url = $_SERVER['REQUEST_URI'];
|
6 |
-
if (strpos($current_url,'faq-tag') !== false) {$current_url = substr($current_url,0,strpos($current_url,'faq-tag'));}
|
7 |
-
if (strpos($current_url,'faq-category') !== false) {$current_url = substr($current_url,0,strpos($current_url,'faq-category'));}
|
8 |
-
if (strpos($current_url,'?include_tag') !== false) {$current_url = substr($current_url,0,strpos($current_url,'?include_tag'));}
|
9 |
-
if (strpos($current_url,'?include_category') !== false) {$current_url = substr($current_url,0,strpos($current_url,'?include_category'));}
|
10 |
-
|
11 |
$Custom_CSS = get_option("EWD_UFAQ_Custom_CSS");
|
12 |
$FAQ_Toggle = get_option("EWD_UFAQ_Toggle");
|
13 |
$Category_Toggle = get_option("EWD_UFAQ_Category_Toggle");
|
@@ -85,6 +79,7 @@ function Display_FAQs($atts) {
|
|
85 |
'orderby' => "",
|
86 |
'order' => "",
|
87 |
'ajax' => "No",
|
|
|
88 |
'only_titles' => "No",
|
89 |
'display_all_answers' => "",
|
90 |
'post_count'=>-1),
|
@@ -92,6 +87,12 @@ function Display_FAQs($atts) {
|
|
92 |
)
|
93 |
);
|
94 |
|
|
|
|
|
|
|
|
|
|
|
|
|
95 |
if (strpos($No_Results_Found_Text, "%s")) {$No_Results_Found_Text = str_replace("%s", $search_string, $No_Results_Found_Text);}
|
96 |
|
97 |
$search_string = strtolower($search_string);
|
@@ -225,6 +226,7 @@ function Display_FAQs($atts) {
|
|
225 |
if (isset($category_array)) {$tax_query_array[] = $category_array;}
|
226 |
|
227 |
$params = array('posts_per_page' => $post_count,
|
|
|
228 |
'post_type' => 'ufaq',
|
229 |
'orderby' => $orderby,
|
230 |
'order' => $order,
|
2 |
/* The function that creates the HTML on the front-end, based on the parameters
|
3 |
* supplied in the product-catalog shortcode */
|
4 |
function Display_FAQs($atts) {
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
$Custom_CSS = get_option("EWD_UFAQ_Custom_CSS");
|
6 |
$FAQ_Toggle = get_option("EWD_UFAQ_Toggle");
|
7 |
$Category_Toggle = get_option("EWD_UFAQ_Category_Toggle");
|
79 |
'orderby' => "",
|
80 |
'order' => "",
|
81 |
'ajax' => "No",
|
82 |
+
'current_url' => "",
|
83 |
'only_titles' => "No",
|
84 |
'display_all_answers' => "",
|
85 |
'post_count'=>-1),
|
87 |
)
|
88 |
);
|
89 |
|
90 |
+
if ($current_url == "") {$current_url = $_SERVER['REQUEST_URI'];}
|
91 |
+
if (strpos($current_url,'faq-tag') !== false) {$current_url = substr($current_url,0,strpos($current_url,'faq-tag'));}
|
92 |
+
if (strpos($current_url,'faq-category') !== false) {$current_url = substr($current_url,0,strpos($current_url,'faq-category'));}
|
93 |
+
if (strpos($current_url,'?include_tag') !== false) {$current_url = substr($current_url,0,strpos($current_url,'?include_tag'));}
|
94 |
+
if (strpos($current_url,'?include_category') !== false) {$current_url = substr($current_url,0,strpos($current_url,'?include_category'));}
|
95 |
+
|
96 |
if (strpos($No_Results_Found_Text, "%s")) {$No_Results_Found_Text = str_replace("%s", $search_string, $No_Results_Found_Text);}
|
97 |
|
98 |
$search_string = strtolower($search_string);
|
226 |
if (isset($category_array)) {$tax_query_array[] = $category_array;}
|
227 |
|
228 |
$params = array('posts_per_page' => $post_count,
|
229 |
+
'post_status' => 'publish',
|
230 |
'post_type' => 'ufaq',
|
231 |
'orderby' => $orderby,
|
232 |
'order' => $order,
|
Shortcodes/Display_FAQ_Search.php
CHANGED
@@ -45,6 +45,7 @@ function UFAQ_AJAX_Search($atts) {
|
|
45 |
$ReturnString .= "<input type='hidden' name'orderby' value='" . $orderby . "' id='ufaq-orderby' />";
|
46 |
$ReturnString .= "<input type='hidden' name'order' value='" . $order . "' id='ufaq-order' />";
|
47 |
$ReturnString .= "<input type='hidden' name'post_count' value='" . $post_count . "' id='ufaq-post-count' />";
|
|
|
48 |
$ReturnString .= "<input type='text' id='ufaq-ajax-text-input' class='ufaq-text-input' name='Question ' placeholder='" . $Enter_Question_Label . "...'>";
|
49 |
$ReturnString .= "</div>";
|
50 |
if ($Auto_Complete_Titles != "Yes" and $show_on_load == "No") {$ReturnString .= "<label for='Submit'></label><input type='button' id='ufaq-ajax-search-btn' class='ewd-otp-submit pure-button pure-button-primary' name='Search' value='" . $Search_Label . "'>";}
|
45 |
$ReturnString .= "<input type='hidden' name'orderby' value='" . $orderby . "' id='ufaq-orderby' />";
|
46 |
$ReturnString .= "<input type='hidden' name'order' value='" . $order . "' id='ufaq-order' />";
|
47 |
$ReturnString .= "<input type='hidden' name'post_count' value='" . $post_count . "' id='ufaq-post-count' />";
|
48 |
+
$ReturnString .= "<input type='hidden' name'current_url' value='" . $_SERVER['REQUEST_URI'] . "' id='ufaq-current-url' />";
|
49 |
$ReturnString .= "<input type='text' id='ufaq-ajax-text-input' class='ufaq-text-input' name='Question ' placeholder='" . $Enter_Question_Label . "...'>";
|
50 |
$ReturnString .= "</div>";
|
51 |
if ($Auto_Complete_Titles != "Yes" and $show_on_load == "No") {$ReturnString .= "<label for='Submit'></label><input type='button' id='ufaq-ajax-search-btn' class='ewd-otp-submit pure-button pure-button-primary' name='Search' value='" . $Search_Label . "'>";}
|
css/Admin.css
CHANGED
@@ -510,6 +510,10 @@ EXTRA
|
|
510 |
text-decoration: underline;
|
511 |
}
|
512 |
|
|
|
|
|
|
|
|
|
513 |
/*
|
514 |
==============================================
|
515 |
Toggle Font
|
510 |
text-decoration: underline;
|
511 |
}
|
512 |
|
513 |
+
.ewd-dashboard-box-value.ewd-font-22 {
|
514 |
+
font-size: 22px;
|
515 |
+
}
|
516 |
+
|
517 |
/*
|
518 |
==============================================
|
519 |
Toggle Font
|
html/OptionsPage.php
CHANGED
@@ -1,1044 +1,1054 @@
|
|
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 |
-
$
|
68 |
-
$
|
69 |
-
$
|
70 |
-
$
|
71 |
-
$
|
72 |
-
$
|
73 |
-
$
|
74 |
-
$
|
75 |
-
$
|
76 |
-
|
77 |
-
$
|
78 |
-
|
79 |
-
$
|
80 |
-
$
|
81 |
-
$
|
82 |
-
$
|
83 |
-
$
|
84 |
-
$
|
85 |
-
$
|
86 |
-
$
|
87 |
-
$
|
88 |
-
$
|
89 |
-
$
|
90 |
-
$
|
91 |
-
$
|
92 |
-
$
|
93 |
-
$
|
94 |
-
$
|
95 |
-
$
|
96 |
-
$
|
97 |
-
$
|
98 |
-
|
99 |
-
$
|
100 |
-
|
101 |
-
$
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
<li><a id="
|
111 |
-
<li><a id="
|
112 |
-
<li><a id="
|
113 |
-
<li><a id="
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
<
|
121 |
-
|
122 |
-
<
|
123 |
-
<
|
124 |
-
|
125 |
-
<
|
126 |
-
|
127 |
-
|
128 |
-
</div>
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
<
|
133 |
-
<
|
134 |
-
<
|
135 |
-
<
|
136 |
-
|
137 |
-
|
138 |
-
<
|
139 |
-
|
140 |
-
|
141 |
-
</
|
142 |
-
|
143 |
-
|
144 |
-
<
|
145 |
-
|
146 |
-
|
147 |
-
<
|
148 |
-
<
|
149 |
-
</
|
150 |
-
|
151 |
-
</
|
152 |
-
|
153 |
-
|
154 |
-
<
|
155 |
-
|
156 |
-
|
157 |
-
<
|
158 |
-
<
|
159 |
-
</
|
160 |
-
|
161 |
-
</
|
162 |
-
|
163 |
-
|
164 |
-
<
|
165 |
-
|
166 |
-
|
167 |
-
<
|
168 |
-
<
|
169 |
-
</
|
170 |
-
|
171 |
-
</
|
172 |
-
|
173 |
-
|
174 |
-
<
|
175 |
-
|
176 |
-
|
177 |
-
<
|
178 |
-
<
|
179 |
-
</
|
180 |
-
|
181 |
-
</
|
182 |
-
|
183 |
-
|
184 |
-
<
|
185 |
-
|
186 |
-
|
187 |
-
<
|
188 |
-
<
|
189 |
-
</
|
190 |
-
|
191 |
-
</
|
192 |
-
</
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
<
|
198 |
-
|
199 |
-
<
|
200 |
-
<
|
201 |
-
|
202 |
-
|
203 |
-
<
|
204 |
-
<
|
205 |
-
</
|
206 |
-
</
|
207 |
-
</
|
208 |
-
|
209 |
-
|
210 |
-
<
|
211 |
-
|
212 |
-
|
213 |
-
<
|
214 |
-
<
|
215 |
-
</
|
216 |
-
</
|
217 |
-
</
|
218 |
-
|
219 |
-
|
220 |
-
<
|
221 |
-
|
222 |
-
|
223 |
-
<
|
224 |
-
<
|
225 |
-
</
|
226 |
-
</
|
227 |
-
</
|
228 |
-
|
229 |
-
|
230 |
-
<
|
231 |
-
|
232 |
-
|
233 |
-
<
|
234 |
-
<
|
235 |
-
</
|
236 |
-
</
|
237 |
-
</
|
238 |
-
</
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
<
|
244 |
-
|
245 |
-
<
|
246 |
-
<
|
247 |
-
|
248 |
-
|
249 |
-
<
|
250 |
-
<
|
251 |
-
</
|
252 |
-
|
253 |
-
</
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
<
|
258 |
-
|
259 |
-
|
260 |
-
<
|
261 |
-
<
|
262 |
-
</
|
263 |
-
|
264 |
-
</
|
265 |
-
|
266 |
-
|
267 |
-
<
|
268 |
-
|
269 |
-
|
270 |
-
<
|
271 |
-
<
|
272 |
-
</
|
273 |
-
</
|
274 |
-
</
|
275 |
-
|
276 |
-
|
277 |
-
<
|
278 |
-
|
279 |
-
|
280 |
-
<
|
281 |
-
<
|
282 |
-
</
|
283 |
-
|
284 |
-
</
|
285 |
-
|
286 |
-
|
287 |
-
<
|
288 |
-
|
289 |
-
|
290 |
-
<
|
291 |
-
<
|
292 |
-
</
|
293 |
-
|
294 |
-
</
|
295 |
-
|
296 |
-
|
297 |
-
<
|
298 |
-
|
299 |
-
|
300 |
-
<
|
301 |
-
<
|
302 |
-
</
|
303 |
-
|
304 |
-
</
|
305 |
-
</
|
306 |
-
</
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
<
|
311 |
-
<
|
312 |
-
<
|
313 |
-
<
|
314 |
-
<
|
315 |
-
<
|
316 |
-
<
|
317 |
-
<
|
318 |
-
<
|
319 |
-
<label title='
|
320 |
-
<label title='
|
321 |
-
<label title='
|
322 |
-
<label title='
|
323 |
-
<
|
324 |
-
</
|
325 |
-
|
326 |
-
</
|
327 |
-
|
328 |
-
|
329 |
-
<
|
330 |
-
|
331 |
-
|
332 |
-
<
|
333 |
-
<
|
334 |
-
</
|
335 |
-
|
336 |
-
</
|
337 |
-
|
338 |
-
|
339 |
-
<
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
<
|
344 |
-
|
345 |
-
|
346 |
-
<option value="
|
347 |
-
|
348 |
-
<option value="
|
349 |
-
<option value="
|
350 |
-
<option value="
|
351 |
-
<option value="
|
352 |
-
<option value="
|
353 |
-
<option value="
|
354 |
-
<option value="
|
355 |
-
<option value="
|
356 |
-
<option value="
|
357 |
-
<option value="
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
</
|
364 |
-
</
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
<
|
370 |
-
|
371 |
-
<
|
372 |
-
<
|
373 |
-
|
374 |
-
|
375 |
-
<
|
376 |
-
<
|
377 |
-
</
|
378 |
-
|
379 |
-
</
|
380 |
-
|
381 |
-
|
382 |
-
<
|
383 |
-
|
384 |
-
|
385 |
-
<
|
386 |
-
<
|
387 |
-
</
|
388 |
-
|
389 |
-
</
|
390 |
-
|
391 |
-
|
392 |
-
<
|
393 |
-
|
394 |
-
|
395 |
-
<
|
396 |
-
<
|
397 |
-
</
|
398 |
-
</
|
399 |
-
</
|
400 |
-
|
401 |
-
|
402 |
-
<
|
403 |
-
|
404 |
-
|
405 |
-
<
|
406 |
-
|
407 |
-
|
408 |
-
</
|
409 |
-
|
410 |
-
|
411 |
-
<
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
<label title='
|
416 |
-
<label title='
|
417 |
-
<label title='
|
418 |
-
<label title='
|
419 |
-
<
|
420 |
-
|
421 |
-
</
|
422 |
-
</
|
423 |
-
</
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
<
|
429 |
-
|
430 |
-
<
|
431 |
-
<
|
432 |
-
|
433 |
-
|
434 |
-
<
|
435 |
-
<
|
436 |
-
</
|
437 |
-
|
438 |
-
</
|
439 |
-
|
440 |
-
|
441 |
-
<
|
442 |
-
|
443 |
-
|
444 |
-
<
|
445 |
-
<
|
446 |
-
</
|
447 |
-
|
448 |
-
</
|
449 |
-
</
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
<
|
455 |
-
|
456 |
-
<
|
457 |
-
<
|
458 |
-
|
459 |
-
|
460 |
-
<
|
461 |
-
<
|
462 |
-
</
|
463 |
-
|
464 |
-
</
|
465 |
-
|
466 |
-
|
467 |
-
<
|
468 |
-
|
469 |
-
|
470 |
-
<
|
471 |
-
<
|
472 |
-
</
|
473 |
-
|
474 |
-
</
|
475 |
-
</
|
476 |
-
</
|
477 |
-
|
478 |
-
|
479 |
-
|
480 |
-
<
|
481 |
-
<
|
482 |
-
<
|
483 |
-
<
|
484 |
-
|
485 |
-
|
486 |
-
<
|
487 |
-
<
|
488 |
-
</
|
489 |
-
|
490 |
-
</
|
491 |
-
|
492 |
-
|
493 |
-
<
|
494 |
-
|
495 |
-
|
496 |
-
|
497 |
-
<
|
498 |
-
|
499 |
-
|
500 |
-
<option value="
|
501 |
-
|
502 |
-
|
503 |
-
|
504 |
-
|
505 |
-
|
506 |
-
</
|
507 |
-
|
508 |
-
|
509 |
-
<
|
510 |
-
|
511 |
-
|
512 |
-
<
|
513 |
-
<
|
514 |
-
</
|
515 |
-
</
|
516 |
-
</
|
517 |
-
|
518 |
-
|
519 |
-
<
|
520 |
-
|
521 |
-
|
522 |
-
|
523 |
-
<
|
524 |
-
|
525 |
-
|
526 |
-
<option value="
|
527 |
-
|
528 |
-
|
529 |
-
|
530 |
-
|
531 |
-
|
532 |
-
|
533 |
-
</
|
534 |
-
|
535 |
-
|
536 |
-
<
|
537 |
-
|
538 |
-
|
539 |
-
<
|
540 |
-
<
|
541 |
-
</
|
542 |
-
|
543 |
-
</
|
544 |
-
</
|
545 |
-
|
546 |
-
|
547 |
-
|
548 |
-
<
|
549 |
-
|
550 |
-
|
551 |
-
|
552 |
-
|
553 |
-
|
554 |
-
|
555 |
-
|
556 |
-
<div class="
|
557 |
-
<div id="
|
558 |
-
<div
|
559 |
-
|
560 |
-
<
|
561 |
-
|
562 |
-
|
563 |
-
|
564 |
-
|
565 |
-
<th><?php _e("
|
566 |
-
<th><?php _e("
|
567 |
-
|
568 |
-
|
569 |
-
|
570 |
-
|
571 |
-
|
572 |
-
|
573 |
-
|
574 |
-
'
|
575 |
-
'
|
576 |
-
'
|
577 |
-
|
578 |
-
|
579 |
-
|
580 |
-
|
581 |
-
|
582 |
-
|
583 |
-
|
584 |
-
$
|
585 |
-
|
586 |
-
|
587 |
-
|
588 |
-
echo "<td class='ufaq-title'>" . $
|
589 |
-
echo "<td class='ufaq-title'>" . $
|
590 |
-
|
591 |
-
|
592 |
-
|
593 |
-
|
594 |
-
|
595 |
-
|
596 |
-
|
597 |
-
|
598 |
-
<th><?php _e("
|
599 |
-
<th><?php _e("
|
600 |
-
|
601 |
-
|
602 |
-
|
603 |
-
</
|
604 |
-
|
605 |
-
|
606 |
-
|
607 |
-
|
608 |
-
|
609 |
-
|
610 |
-
|
611 |
-
<
|
612 |
-
|
613 |
-
|
614 |
-
|
615 |
-
|
616 |
-
|
617 |
-
|
618 |
-
|
619 |
-
|
620 |
-
<th
|
621 |
-
<th>Field
|
622 |
-
|
623 |
-
|
624 |
-
|
625 |
-
|
626 |
-
|
627 |
-
|
628 |
-
|
629 |
-
|
630 |
-
echo "<
|
631 |
-
echo "<td><
|
632 |
-
<
|
633 |
-
<
|
634 |
-
<option value='
|
635 |
-
<option value='
|
636 |
-
<option value='
|
637 |
-
<option value='
|
638 |
-
<option value='
|
639 |
-
<option value='
|
640 |
-
<option value='
|
641 |
-
<?php echo "</
|
642 |
-
|
643 |
-
echo "</
|
644 |
-
$Counter
|
645 |
-
|
646 |
-
|
647 |
-
|
648 |
-
|
649 |
-
|
650 |
-
|
651 |
-
|
652 |
-
|
653 |
-
|
654 |
-
|
655 |
-
|
656 |
-
|
657 |
-
|
658 |
-
|
659 |
-
|
660 |
-
|
661 |
-
<
|
662 |
-
<
|
663 |
-
</
|
664 |
-
|
665 |
-
|
666 |
-
</
|
667 |
-
</
|
668 |
-
|
669 |
-
|
670 |
-
|
671 |
-
|
672 |
-
|
673 |
-
|
674 |
-
<div
|
675 |
-
|
676 |
-
|
677 |
-
|
678 |
-
|
679 |
-
|
680 |
-
|
681 |
-
|
682 |
-
|
683 |
-
|
684 |
-
|
685 |
-
|
686 |
-
|
687 |
-
|
688 |
-
|
689 |
-
|
690 |
-
|
691 |
-
|
692 |
-
|
693 |
-
|
694 |
-
|
695 |
-
|
696 |
-
|
697 |
-
|
698 |
-
|
699 |
-
|
700 |
-
|
701 |
-
|
702 |
-
|
703 |
-
|
704 |
-
|
705 |
-
|
706 |
-
|
707 |
-
|
708 |
-
|
709 |
-
|
710 |
-
|
711 |
-
|
712 |
-
|
713 |
-
|
714 |
-
|
715 |
-
|
716 |
-
|
717 |
-
|
718 |
-
|
719 |
-
|
720 |
-
|
721 |
-
|
722 |
-
|
723 |
-
|
724 |
-
|
725 |
-
|
726 |
-
|
727 |
-
|
728 |
-
|
729 |
-
|
730 |
-
|
731 |
-
|
732 |
-
|
733 |
-
|
734 |
-
|
735 |
-
|
736 |
-
|
737 |
-
|
738 |
-
</div>
|
739 |
-
|
740 |
-
|
741 |
-
|
742 |
-
|
743 |
-
|
744 |
-
|
745 |
-
|
746 |
-
|
747 |
-
|
748 |
-
|
749 |
-
|
750 |
-
|
751 |
-
|
752 |
-
|
753 |
-
|
754 |
-
|
755 |
-
|
756 |
-
|
757 |
-
|
758 |
-
|
759 |
-
|
760 |
-
|
761 |
-
|
762 |
-
|
763 |
-
|
764 |
-
|
765 |
-
|
766 |
-
|
767 |
-
|
768 |
-
|
769 |
-
|
770 |
-
|
771 |
-
|
772 |
-
|
773 |
-
|
774 |
-
|
775 |
-
|
776 |
-
|
777 |
-
|
778 |
-
|
779 |
-
|
780 |
-
|
781 |
-
|
782 |
-
|
783 |
-
|
784 |
-
|
785 |
-
|
786 |
-
|
787 |
-
|
788 |
-
|
789 |
-
|
790 |
-
|
791 |
-
|
792 |
-
|
793 |
-
|
794 |
-
|
795 |
-
|
796 |
-
|
797 |
-
|
798 |
-
|
799 |
-
|
800 |
-
|
801 |
-
|
802 |
-
|
803 |
-
|
804 |
-
|
805 |
-
|
806 |
-
|
807 |
-
|
808 |
-
|
809 |
-
|
810 |
-
</div>
|
811 |
-
|
812 |
-
|
813 |
-
|
814 |
-
<
|
815 |
-
|
816 |
-
|
817 |
-
|
818 |
-
|
819 |
-
|
820 |
-
|
821 |
-
<div class='ufaq-option-one-line'><input type='radio' name='toggle_symbol' value='
|
822 |
-
<div class='ufaq-option-one-line'><input type='radio' name='toggle_symbol' value='
|
823 |
-
<div class='ufaq-option-one-line'><input type='radio' name='toggle_symbol' value='
|
824 |
-
<div class='ufaq-option-one-line'><input type='radio' name='toggle_symbol' value='
|
825 |
-
<div class='ufaq-option-one-line'><input type='radio' name='toggle_symbol' value='
|
826 |
-
<div class='ufaq-option-one-line'><input type='radio' name='toggle_symbol' value='
|
827 |
-
<div class='ufaq-option-one-line'><input type='radio' name='toggle_symbol' value='
|
828 |
-
<div class='ufaq-option-one-line'><input type='radio' name='toggle_symbol' value='
|
829 |
-
<div class='ufaq-option-one-line'><input type='radio' name='toggle_symbol' value='
|
830 |
-
<div class='ufaq-option-one-line'><input type='radio' name='toggle_symbol' value='
|
831 |
-
<div class='ufaq-option-one-line'><input type='radio' name='toggle_symbol' value='
|
832 |
-
<div class='ufaq-option-one-line'><input type='radio' name='toggle_symbol' value='
|
833 |
-
<div class='ufaq-option-one-line'><input type='radio' name='toggle_symbol' value='
|
834 |
-
|
835 |
-
|
836 |
-
|
837 |
-
|
838 |
-
|
839 |
-
|
840 |
-
|
841 |
-
|
842 |
-
|
843 |
-
|
844 |
-
|
845 |
-
|
846 |
-
|
847 |
-
|
848 |
-
|
849 |
-
|
850 |
-
|
851 |
-
|
852 |
-
|
853 |
-
|
854 |
-
|
855 |
-
|
856 |
-
|
857 |
-
|
858 |
-
|
859 |
-
|
860 |
-
|
861 |
-
|
862 |
-
|
863 |
-
<div class='ufaq-option-
|
864 |
-
|
865 |
-
|
866 |
-
|
867 |
-
|
868 |
-
|
869 |
-
</div>
|
870 |
-
|
871 |
-
|
872 |
-
|
873 |
-
|
874 |
-
|
875 |
-
|
876 |
-
<div class='ufaq-option-
|
877 |
-
|
878 |
-
|
879 |
-
|
880 |
-
|
881 |
-
|
882 |
-
|
883 |
-
|
884 |
-
|
885 |
-
|
886 |
-
|
887 |
-
|
888 |
-
|
889 |
-
|
890 |
-
|
891 |
-
|
892 |
-
|
893 |
-
|
894 |
-
|
895 |
-
|
896 |
-
|
897 |
-
|
898 |
-
|
899 |
-
|
900 |
-
|
901 |
-
<div class='ufaq-option-
|
902 |
-
|
903 |
-
|
904 |
-
|
905 |
-
|
906 |
-
|
907 |
-
|
908 |
-
|
909 |
-
|
910 |
-
|
911 |
-
|
912 |
-
|
913 |
-
|
914 |
-
|
915 |
-
|
916 |
-
|
917 |
-
|
918 |
-
|
919 |
-
|
920 |
-
|
921 |
-
|
922 |
-
|
923 |
-
|
924 |
-
|
925 |
-
|
926 |
-
|
927 |
-
|
928 |
-
|
929 |
-
|
930 |
-
<div class='ufaq-option-
|
931 |
-
|
932 |
-
|
933 |
-
|
934 |
-
|
935 |
-
|
936 |
-
|
937 |
-
|
938 |
-
|
939 |
-
|
940 |
-
|
941 |
-
|
942 |
-
|
943 |
-
|
944 |
-
|
945 |
-
|
946 |
-
|
947 |
-
|
948 |
-
|
949 |
-
|
950 |
-
|
951 |
-
|
952 |
-
|
953 |
-
|
954 |
-
|
955 |
-
<div class='ufaq-option-
|
956 |
-
|
957 |
-
|
958 |
-
|
959 |
-
|
960 |
-
|
961 |
-
|
962 |
-
|
963 |
-
|
964 |
-
|
965 |
-
|
966 |
-
|
967 |
-
|
968 |
-
|
969 |
-
|
970 |
-
|
971 |
-
|
972 |
-
|
973 |
-
|
974 |
-
|
975 |
-
|
976 |
-
|
977 |
-
|
978 |
-
|
979 |
-
|
980 |
-
<div class='ufaq-option-
|
981 |
-
|
982 |
-
|
983 |
-
|
984 |
-
|
985 |
-
|
986 |
-
|
987 |
-
|
988 |
-
|
989 |
-
|
990 |
-
|
991 |
-
|
992 |
-
|
993 |
-
|
994 |
-
|
995 |
-
|
996 |
-
|
997 |
-
|
998 |
-
|
999 |
-
|
1000 |
-
|
1001 |
-
|
1002 |
-
|
1003 |
-
|
1004 |
-
|
1005 |
-
<div class='ufaq-option-
|
1006 |
-
|
1007 |
-
|
1008 |
-
|
1009 |
-
|
1010 |
-
|
1011 |
-
|
1012 |
-
|
1013 |
-
|
1014 |
-
</div>
|
1015 |
-
|
1016 |
-
|
1017 |
-
|
1018 |
-
|
1019 |
-
|
1020 |
-
<option value='
|
1021 |
-
<option value='
|
1022 |
-
<option value='
|
1023 |
-
|
1024 |
-
|
1025 |
-
|
1026 |
-
|
1027 |
-
</div>
|
1028 |
-
|
1029 |
-
|
1030 |
-
|
1031 |
-
|
1032 |
-
</
|
1033 |
-
</
|
1034 |
-
|
1035 |
-
<
|
1036 |
-
|
1037 |
-
|
1038 |
-
|
1039 |
-
|
1040 |
-
</div>
|
1041 |
-
|
1042 |
-
|
1043 |
-
</div>
|
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_Size = get_option("EWD_UFAQ_Styling_Default_Border_Size");
|
68 |
+
$UFAQ_Styling_Default_Border_Color = get_option("EWD_UFAQ_Styling_Default_Border_Color");
|
69 |
+
$UFAQ_Styling_Default_Border_Radius = get_option("EWD_UFAQ_Styling_Default_Border_Radius");
|
70 |
+
$UFAQ_Styling_Toggle_Symbol_Size = get_option("EWD_UFAQ_Styling_Toggle_Symbol_Size");
|
71 |
+
$UFAQ_Styling_Block_Bg_Color = get_option("EWD_UFAQ_Styling_Block_Bg_Color");
|
72 |
+
$UFAQ_Styling_Block_Font_Color = get_option("EWD_UFAQ_Styling_Block_Font_Color");
|
73 |
+
$UFAQ_Styling_List_Font = get_option("EWD_UFAQ_Styling_List_Font");
|
74 |
+
$UFAQ_Styling_List_Font_Size = get_option("EWD_UFAQ_Styling_List_Font_Size");
|
75 |
+
$UFAQ_Styling_List_Font_Color = get_option("EWD_UFAQ_Styling_List_Font_Color");
|
76 |
+
$UFAQ_Styling_List_Margin = get_option("EWD_UFAQ_Styling_List_Margin");
|
77 |
+
$UFAQ_Styling_List_Padding = get_option("EWD_UFAQ_Styling_List_Padding");
|
78 |
+
|
79 |
+
$UFAQ_Styling_Question_Font = get_option("EWD_UFAQ_Styling_Question_Font");
|
80 |
+
$UFAQ_Styling_Question_Font_Size = get_option("EWD_UFAQ_Styling_Question_Font_Size");
|
81 |
+
$UFAQ_Styling_Question_Font_Color = get_option("EWD_UFAQ_Styling_Question_Font_Color");
|
82 |
+
$UFAQ_Styling_Question_Margin = get_option("EWD_UFAQ_Styling_Question_Margin");
|
83 |
+
$UFAQ_Styling_Question_Padding = get_option("EWD_UFAQ_Styling_Question_Padding");
|
84 |
+
$UFAQ_Styling_Question_Icon_Top_Margin = get_option("EWD_UFAQ_Styling_Question_Icon_Top_Margin");
|
85 |
+
$UFAQ_Styling_Answer_Font = get_option("EWD_UFAQ_Styling_Answer_Font");
|
86 |
+
$UFAQ_Styling_Answer_Font_Size = get_option("EWD_UFAQ_Styling_Answer_Font_Size");
|
87 |
+
$UFAQ_Styling_Answer_Font_Color = get_option("EWD_UFAQ_Styling_Answer_Font_Color");
|
88 |
+
$UFAQ_Styling_Answer_Margin = get_option("EWD_UFAQ_Styling_Answer_Margin");
|
89 |
+
$UFAQ_Styling_Answer_Padding = get_option("EWD_UFAQ_Styling_Answer_Padding");
|
90 |
+
$UFAQ_Styling_Postdate_Font = get_option("EWD_UFAQ_Styling_Postdate_Font");
|
91 |
+
$UFAQ_Styling_Postdate_Font_Size = get_option("EWD_UFAQ_Styling_Postdate_Font_Size");
|
92 |
+
$UFAQ_Styling_Postdate_Font_Color = get_option("EWD_UFAQ_Styling_Postdate_Font_Color");
|
93 |
+
$UFAQ_Styling_Postdate_Margin = get_option("EWD_UFAQ_Styling_Postdate_Margin");
|
94 |
+
$UFAQ_Styling_Postdate_Padding = get_option("EWD_UFAQ_Styling_Postdate_Padding");
|
95 |
+
$UFAQ_Styling_Category_Font = get_option("EWD_UFAQ_Styling_Category_Font");
|
96 |
+
$UFAQ_Styling_Category_Font_Size = get_option("EWD_UFAQ_Styling_Category_Font_Size");
|
97 |
+
$UFAQ_Styling_Category_Font_Color = get_option("EWD_UFAQ_Styling_Category_Font_Color");
|
98 |
+
$UFAQ_Styling_Category_Margin = get_option("EWD_UFAQ_Styling_Category_Margin");
|
99 |
+
$UFAQ_Styling_Category_Padding = get_option("EWD_UFAQ_Styling_Category_Padding");
|
100 |
+
|
101 |
+
$UFAQ_Styling_Category_Heading_Type = get_option("EWD_UFAQ_Styling_Category_Heading_Type");
|
102 |
+
$UFAQ_Styling_FAQ_Heading_Type = get_option("EWD_UFAQ_Styling_FAQ_Heading_Type");
|
103 |
+
$Toggle_Symbol = get_option("EWD_UFAQ_Toggle_Symbol");
|
104 |
+
|
105 |
+
if (!isset($Display_Tab)) {$Display_Tab = "";}
|
106 |
+
?>
|
107 |
+
<div class="wrap ufaq-options-page-tabbed">
|
108 |
+
<div class="ufaq-options-submenu-div">
|
109 |
+
<ul class="ufaq-options-submenu ufaq-options-page-tabbed-nav">
|
110 |
+
<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>
|
111 |
+
<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>
|
112 |
+
<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>
|
113 |
+
<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>
|
114 |
+
<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>
|
115 |
+
<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>
|
116 |
+
</ul>
|
117 |
+
</div>
|
118 |
+
|
119 |
+
|
120 |
+
<div class="ufaq-options-page-tabbed-content">
|
121 |
+
|
122 |
+
<form method="post" action="admin.php?page=EWD-UFAQ-Options&DisplayPage=Options&Action=EWD_UFAQ_UpdateOptions">
|
123 |
+
<div id='Basic' class='ufaq-option-set'>
|
124 |
+
<h2 id='label-basic-options' class='ufaq-options-page-tab-title'>Basic Options</h2>
|
125 |
+
<br />
|
126 |
+
|
127 |
+
<div class="ewd-ufaq-shortcode-reminder">
|
128 |
+
<div class="ewd-ufaq-shortcode-reminder-message">REMINDER</div>
|
129 |
+
<div class="ewd-ufaq-shortcode-reminder-display">To display FAQs, place the <strong>[ultimate-faqs]</strong> shortcode on a page</div>
|
130 |
+
</div>
|
131 |
+
|
132 |
+
<br />
|
133 |
+
<h3 id="general-options" class="ufaq-options-page-tab-title"><?php _e('General', 'EWD_UFAQ'); ?></h3>
|
134 |
+
<table class="form-table">
|
135 |
+
<tr>
|
136 |
+
<th scope="row">Custom CSS</th>
|
137 |
+
<td>
|
138 |
+
<fieldset><legend class="screen-reader-text"><span>Custom CSS</span></legend>
|
139 |
+
<label title='Custom CSS'></label><textarea class='ewd-ufaq-textarea' name='custom_css'> <?php echo $Custom_CSS; ?></textarea><br />
|
140 |
+
<p>You can add custom CSS styles for your FAQs in the box above.</p>
|
141 |
+
</fieldset>
|
142 |
+
</td>
|
143 |
+
</tr>
|
144 |
+
<tr>
|
145 |
+
<th scope="row">Scroll To Top</th>
|
146 |
+
<td>
|
147 |
+
<fieldset><legend class="screen-reader-text"><span>Scroll To Top</span></legend>
|
148 |
+
<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 />
|
149 |
+
<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 />
|
150 |
+
<p>Should the browser scroll to the top of the FAQ when it's opened?</p>
|
151 |
+
</fieldset>
|
152 |
+
</td>
|
153 |
+
</tr>
|
154 |
+
<tr>
|
155 |
+
<th scope="row">Show Editor Helper</th>
|
156 |
+
<td>
|
157 |
+
<fieldset><legend class="screen-reader-text"><span>Show Editor Helper</span></legend>
|
158 |
+
<label title='Yes'><input type='radio' name='show_tinymce' value='Yes' <?php if($Show_TinyMCE == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
|
159 |
+
<label title='No'><input type='radio' name='show_tinymce' value='No' <?php if($Show_TinyMCE == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
|
160 |
+
<p>Should the shortcode builder be shown above the WordPress page/post editor, in the toolbar buttons?</p>
|
161 |
+
</fieldset>
|
162 |
+
</td>
|
163 |
+
</tr>
|
164 |
+
<tr>
|
165 |
+
<th scope="row">Turn On Comment Support</th>
|
166 |
+
<td>
|
167 |
+
<fieldset><legend class="screen-reader-text"><span>Turn On Comment Support</span></legend>
|
168 |
+
<label title='Yes'><input type='radio' name='comments_on' value='Yes' <?php if($Comments_On == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
|
169 |
+
<label title='No'><input type='radio' name='comments_on' value='No' <?php if($Comments_On == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
|
170 |
+
<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>
|
171 |
+
</fieldset>
|
172 |
+
</td>
|
173 |
+
</tr>
|
174 |
+
<tr>
|
175 |
+
<th scope="row">Include Permalink Icon</th>
|
176 |
+
<td>
|
177 |
+
<fieldset><legend class="screen-reader-text"><span>Include Permalink Icon</span></legend>
|
178 |
+
<label title='Yes'><input type='radio' name='include_permalink' value='Yes' <?php if($Include_Permalink == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
|
179 |
+
<label title='No'><input type='radio' name='include_permalink' value='No' <?php if($Include_Permalink == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
|
180 |
+
<p>Should an icon to link directly to each question be displayed?</p>
|
181 |
+
</fieldset>
|
182 |
+
</td>
|
183 |
+
</tr>
|
184 |
+
<tr>
|
185 |
+
<th scope="row">Permalink Type</th>
|
186 |
+
<td>
|
187 |
+
<fieldset><legend class="screen-reader-text"><span>Include Permalink Icon</span></legend>
|
188 |
+
<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 />
|
189 |
+
<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 />
|
190 |
+
<p>Should the permalink icon link to the main FAQ page, or to the individual FAQ post?</p>
|
191 |
+
</fieldset>
|
192 |
+
</td>
|
193 |
+
</tr>
|
194 |
+
</table>
|
195 |
+
|
196 |
+
<br />
|
197 |
+
<h3 id="functionality-options" class="ufaq-options-page-tab-title"><?php _e('Functionality', 'EWD_UFAQ'); ?></h3>
|
198 |
+
|
199 |
+
<table class="form-table">
|
200 |
+
<tr>
|
201 |
+
<th scope="row">FAQ Toggle</th>
|
202 |
+
<td>
|
203 |
+
<fieldset><legend class="screen-reader-text"><span>FAQ Toggle</span></legend>
|
204 |
+
<label title='Yes'><input type='radio' name='faq_toggle' value='Yes' <?php if($FAQ_Toggle == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
|
205 |
+
<label title='No'><input type='radio' name='faq_toggle' value='No' <?php if($FAQ_Toggle == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
|
206 |
+
<p>Should the FAQs hide/open when they are clicked? </p>
|
207 |
+
</fieldset>
|
208 |
+
</td>
|
209 |
+
</tr>
|
210 |
+
<tr>
|
211 |
+
<th scope="row">FAQ Category Toggle</th>
|
212 |
+
<td>
|
213 |
+
<fieldset><legend class="screen-reader-text"><span>FAQ Category Toggle</span></legend>
|
214 |
+
<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 />
|
215 |
+
<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 />
|
216 |
+
<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>
|
217 |
+
</fieldset>
|
218 |
+
</td>
|
219 |
+
</tr>
|
220 |
+
<tr>
|
221 |
+
<th scope="row">FAQ Expand/Collapse All</th>
|
222 |
+
<td>
|
223 |
+
<fieldset><legend class="screen-reader-text"><span>FAQ Toggle</span></legend>
|
224 |
+
<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 />
|
225 |
+
<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 />
|
226 |
+
<p>Should the FAQs hide/open when they are clicked? </p>
|
227 |
+
</fieldset>
|
228 |
+
</td>
|
229 |
+
</tr>
|
230 |
+
<tr>
|
231 |
+
<th scope="row">FAQ Accordion</th>
|
232 |
+
<td>
|
233 |
+
<fieldset><legend class="screen-reader-text"><span>FAQ Accordion</span></legend>
|
234 |
+
<label title='Yes'><input type='radio' name='faq_accordion' value='Yes' <?php if($FAQ_Accordion == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
|
235 |
+
<label title='No'><input type='radio' name='faq_accordion' value='No' <?php if($FAQ_Accordion == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
|
236 |
+
<p>Should the FAQs accordion? (Only one FAQ is open at a time, requires FAQ Toggle)</p>
|
237 |
+
</fieldset>
|
238 |
+
</td>
|
239 |
+
</tr>
|
240 |
+
</table>
|
241 |
+
|
242 |
+
<br />
|
243 |
+
<h3 id="display-options" class="ufaq-options-page-tab-title"><?php _e('Display', 'EWD_UFAQ'); ?></h3>
|
244 |
+
|
245 |
+
<table class="form-table">
|
246 |
+
<tr>
|
247 |
+
<th scope="row">Hide Categories</th>
|
248 |
+
<td>
|
249 |
+
<fieldset><legend class="screen-reader-text"><span>Hide Categories</span></legend>
|
250 |
+
<label title='Yes'><input type='radio' name='hide_categories' value='Yes' <?php if($Hide_Categories == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
|
251 |
+
<label title='No'><input type='radio' name='hide_categories' value='No' <?php if($Hide_Categories == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
|
252 |
+
<p>Should the categories for each FAQ be hidden?</p>
|
253 |
+
</fieldset>
|
254 |
+
</td>
|
255 |
+
</tr>
|
256 |
+
|
257 |
+
<tr>
|
258 |
+
<th scope="row">Hide Tags</th>
|
259 |
+
<td>
|
260 |
+
<fieldset><legend class="screen-reader-text"><span>Hide Tags</span></legend>
|
261 |
+
<label title='Yes'><input type='radio' name='hide_tags' value='Yes' <?php if($Hide_Tags == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
|
262 |
+
<label title='No'><input type='radio' name='hide_tags' value='No' <?php if($Hide_Tags == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
|
263 |
+
<p>Should the tags for each FAQ be hidden?</p>
|
264 |
+
</fieldset>
|
265 |
+
</td>
|
266 |
+
</tr>
|
267 |
+
<tr>
|
268 |
+
<th scope="row">Display All Answers</th>
|
269 |
+
<td>
|
270 |
+
<fieldset><legend class="screen-reader-text"><span>Display All Answers</span></legend>
|
271 |
+
<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 />
|
272 |
+
<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 />
|
273 |
+
<p>Should all answers be displayed when the page loads? (Careful if FAQ Accordian is on)</p>
|
274 |
+
</fieldset>
|
275 |
+
</td>
|
276 |
+
</tr>
|
277 |
+
<tr>
|
278 |
+
<th scope="row">Display Post Author</th>
|
279 |
+
<td>
|
280 |
+
<fieldset><legend class="screen-reader-text"><span>Display Post Author</span></legend>
|
281 |
+
<label title='Yes'><input type='radio' name='display_author' value='Yes' <?php if($Display_Author == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
|
282 |
+
<label title='No'><input type='radio' name='display_author' value='No' <?php if($Display_Author == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
|
283 |
+
<p>Should the display name of the post's author be show beneath the FAQ title?</p>
|
284 |
+
</fieldset>
|
285 |
+
</td>
|
286 |
+
</tr>
|
287 |
+
<tr>
|
288 |
+
<th scope="row">Display Post Date</th>
|
289 |
+
<td>
|
290 |
+
<fieldset><legend class="screen-reader-text"><span>Display Post Date</span></legend>
|
291 |
+
<label title='Yes'><input type='radio' name='display_date' value='Yes' <?php if($Display_Date == "Yes") {echo "checked='checked'";} ?> /> <span>Yes</span></label><br />
|
292 |
+
<label title='No'><input type='radio' name='display_date' value='No' <?php if($Display_Date == "No") {echo "checked='checked'";} ?> /> <span>No</span></label><br />
|
293 |
+
<p>Should the date the post was created be show beneath the FAQ title?</p>
|
294 |
+
</fieldset>
|
295 |
+
</td>
|
296 |
+
</tr>
|
297 |
+
<tr>
|
298 |
+
<th scope="row">Display 'Back to Top'</th>
|
299 |
+
<td>
|
300 |
+
<fieldset><legend class="screen-reader-text"><span>Display 'Back to Top'</span></legend>
|
301 |
+
<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 />
|
302 |
+
<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 />
|
303 |
+
<p>Should a link to return to the top of the page be added to each FAQ post?</p>
|
304 |
+
</fieldset>
|
305 |
+
</td>
|
306 |
+
</tr>
|
307 |
+
</table>
|
308 |
+
</div>
|
309 |
+
|
310 |
+
<div id='Premium' class='ufaq-option-set ufaq-hidden'>
|
311 |
+
<h2 id='label-premium-options' class='ufaq-options-page-tab-title'>Premium Options</h2>
|
312 |
+
<br />
|
313 |
+
<h3 id="premium-display-options" class="ufaq-options-page-tab-title"><?php _e('Display', 'EWD_UFAQ'); ?></h3>
|
314 |
+
<table class="form-table">
|
315 |
+
<tr>
|
316 |
+
<th scope="row">FAQ Display Style</th>
|
317 |
+
<td>
|
318 |
+
<fieldset><legend class="screen-reader-text"><span>FAQ Display Style</span></legend>
|
319 |
+
<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 />
|
320 |
+
<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 />
|
321 |
+
<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 />
|
322 |
+
<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 />
|
323 |
+
<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 />
|
324 |
+
<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 />
|
325 |
+
<p>Which theme should be used to display the FAQ's?</p>
|
326 |
+
</fieldset>
|
327 |
+
</td>
|
328 |
+
</tr>
|
329 |
+
<tr>
|
330 |
+
<th scope="row">Color Block Shape</th>
|
331 |
+
<td>
|
332 |
+
<fieldset><legend class="screen-reader-text"><span>Color Block Shape</span></legend>
|
333 |
+
<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 />
|
334 |
+
<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 />
|
335 |
+
<p>If "Color Block" is selected for "FAQ Display Style", should the block be square or circle?</p>
|
336 |
+
</fieldset>
|
337 |
+
</td>
|
338 |
+
</tr>
|
339 |
+
<tr>
|
340 |
+
<th scope="row">Reveal Effect</th>
|
341 |
+
<td>
|
342 |
+
<fieldset><legend class="screen-reader-text"><span>Reveal Effect</span></legend>
|
343 |
+
<label title='Reveal Effect'></label>
|
344 |
+
|
345 |
+
<select name="reveal_effect" <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> >
|
346 |
+
<option value="none" <?php if($Reveal_Effect == "none") {echo "selected=selected";} ?> >None</option>
|
347 |
+
<option value="blind" <?php if($Reveal_Effect == "blind") {echo "selected=selected";} ?> >Blind</option>
|
348 |
+
<option value="bounce" <?php if($Reveal_Effect == "bounce") {echo "selected=selected";} ?> >Bounce</option>
|
349 |
+
<option value="clip" <?php if($Reveal_Effect == "clip") {echo "selected=selected";} ?> >Clip</option>
|
350 |
+
<option value="drop" <?php if($Reveal_Effect == "drop") {echo "selected=selected";} ?> >Drop</option>
|
351 |
+
<option value="explode" <?php if($Reveal_Effect == "explode") {echo "selected=selected";} ?> >Explode</option>
|
352 |
+
<option value="fade" <?php if($Reveal_Effect == "fade") {echo "selected=selected";} ?> >Fade</option>
|
353 |
+
<option value="fold" <?php if($Reveal_Effect == "fold") {echo "selected=selected";} ?> >Fold</option>
|
354 |
+
<option value="highlight" <?php if($Reveal_Effect == "highlight") {echo "selected=selected";} ?> >Highlight</option>
|
355 |
+
<option value="puff" <?php if($Reveal_Effect == "puff") {echo "selected=selected";} ?> >Puff</option>
|
356 |
+
<option value="pulsate" <?php if($Reveal_Effect == "pulsate") {echo "selected=selected";} ?> >Pulsate</option>
|
357 |
+
<option value="shake" <?php if($Reveal_Effect == "shake") {echo "selected=selected";} ?> >Shake</option>
|
358 |
+
<option value="size" <?php if($Reveal_Effect == "size") {echo "selected=selected";} ?> >Size</option>
|
359 |
+
<option value="slide" <?php if($Reveal_Effect == "slide") {echo "selected=selected";} ?> >Slide</option>
|
360 |
+
</select>
|
361 |
+
|
362 |
+
<p>How should FAQ's be displayed when their titles are clicked?</p>
|
363 |
+
</fieldset>
|
364 |
+
</td>
|
365 |
+
</tr>
|
366 |
+
</table>
|
367 |
+
|
368 |
+
<br />
|
369 |
+
<h3 id="premium-general-options" class="ufaq-options-page-tab-title"><?php _e('General', 'EWD_UFAQ'); ?></h3>
|
370 |
+
|
371 |
+
<table class="form-table">
|
372 |
+
<tr>
|
373 |
+
<th scope="row">FAQ Ratings</th>
|
374 |
+
<td>
|
375 |
+
<fieldset><legend class="screen-reader-text"><span>FAQ Ratings</span></legend>
|
376 |
+
<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 />
|
377 |
+
<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 />
|
378 |
+
<p>Should visitors be able to up or down vote FAQs to let others know if they found them helpful?</p>
|
379 |
+
</fieldset>
|
380 |
+
</td>
|
381 |
+
</tr>
|
382 |
+
<tr>
|
383 |
+
<th scope="row">Pretty Permalinks</th>
|
384 |
+
<td>
|
385 |
+
<fieldset><legend class="screen-reader-text"><span>Pretty Permalinks</span></legend>
|
386 |
+
<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 />
|
387 |
+
<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 />
|
388 |
+
<p>Should an SEO friendly permalink structure be used for the link to this FAQ?</p>
|
389 |
+
</fieldset>
|
390 |
+
</td>
|
391 |
+
</tr>
|
392 |
+
<tr>
|
393 |
+
<th scope="row">FAQ Auto Complete Titles</th>
|
394 |
+
<td>
|
395 |
+
<fieldset><legend class="screen-reader-text"><span>FAQ Auto Complete Titles</span></legend>
|
396 |
+
<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 />
|
397 |
+
<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 />
|
398 |
+
<p>Should the FAQ Titles auto complete? </p>
|
399 |
+
</fieldset>
|
400 |
+
</td>
|
401 |
+
</tr>
|
402 |
+
<tr>
|
403 |
+
<th scope="row">FAQ Slug Base</th>
|
404 |
+
<td>
|
405 |
+
<fieldset><legend class="screen-reader-text"><span>FAQ Slug Base</span></legend>
|
406 |
+
<input type='text' name='slug_base' value='<?php echo $Slug_Base; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> size='60'/>
|
407 |
+
<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>
|
408 |
+
</fieldset>
|
409 |
+
</td>
|
410 |
+
</tr>
|
411 |
+
<tr>
|
412 |
+
<th scope="row">Social Media Option</th>
|
413 |
+
<td>
|
414 |
+
<fieldset><legend class="screen-reader-text"><span>Social Media Option</span></legend>
|
415 |
+
<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 />
|
416 |
+
<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 />
|
417 |
+
<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 />
|
418 |
+
<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 />
|
419 |
+
<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 />
|
420 |
+
<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 />
|
421 |
+
<div style='display:none;'><label title='Blank'><input type='checkbox' name='Socialmedia[]' value='Blank' checked='checked'/> <span>Blank</span></label></div>
|
422 |
+
</fieldset>
|
423 |
+
</td>
|
424 |
+
</tr>
|
425 |
+
</table>
|
426 |
+
|
427 |
+
<br />
|
428 |
+
<h3 id="premium-woocommerce-options" class="ufaq-options-page-tab-title"><?php _e('WooCommerce', 'EWD_UFAQ'); ?></h3>
|
429 |
+
|
430 |
+
<table class="form-table">
|
431 |
+
<tr>
|
432 |
+
<th scope="row">WooCommerce FAQs</th>
|
433 |
+
<td>
|
434 |
+
<fieldset><legend class="screen-reader-text"><span>WooCommerce FAQs</span></legend>
|
435 |
+
<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 />
|
436 |
+
<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 />
|
437 |
+
<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>
|
438 |
+
</fieldset>
|
439 |
+
</td>
|
440 |
+
</tr>
|
441 |
+
<tr>
|
442 |
+
<th scope="row">Use WooCommerce Product Object</th>
|
443 |
+
<td>
|
444 |
+
<fieldset><legend class="screen-reader-text"><span>Use WooCommerce Product Object</span></legend>
|
445 |
+
<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 />
|
446 |
+
<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 />
|
447 |
+
<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>
|
448 |
+
</fieldset>
|
449 |
+
</td>
|
450 |
+
</tr>
|
451 |
+
</table>
|
452 |
+
|
453 |
+
<br />
|
454 |
+
<h3 id="premium-submit-faq-options" class="ufaq-options-page-tab-title"><?php _e('Submit FAQ', 'EWD_UFAQ'); ?></h3>
|
455 |
+
|
456 |
+
<table class="form-table">
|
457 |
+
<tr>
|
458 |
+
<th scope="row">Allow Proposed Answer</th>
|
459 |
+
<td>
|
460 |
+
<fieldset><legend class="screen-reader-text"><span>Allow Proposed Answer</span></legend>
|
461 |
+
<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 />
|
462 |
+
<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 />
|
463 |
+
<p>When using the user-submitted question shortcode, should users be able to propose an answer to the question they're submitting?</p>
|
464 |
+
</fieldset>
|
465 |
+
</td>
|
466 |
+
</tr>
|
467 |
+
<tr>
|
468 |
+
<th scope="row">Admin Question Notification</th>
|
469 |
+
<td>
|
470 |
+
<fieldset><legend class="screen-reader-text"><span>Admin Question Notification</span></legend>
|
471 |
+
<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 />
|
472 |
+
<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 />
|
473 |
+
<p>Should an email be sent to the site administrator when a question is submitted?</p>
|
474 |
+
</fieldset>
|
475 |
+
</td>
|
476 |
+
</tr>
|
477 |
+
</table>
|
478 |
+
</div>
|
479 |
+
|
480 |
+
<div id='Order' class='ufaq-option-set ufaq-hidden'>
|
481 |
+
<h2 id='label-order-options' class='ufaq-options-page-tab-title'>Ordering Options</h2>
|
482 |
+
<table class="form-table">
|
483 |
+
<tr>
|
484 |
+
<th scope="row">Group FAQs by Category</th>
|
485 |
+
<td>
|
486 |
+
<fieldset><legend class="screen-reader-text"><span>Group FAQs by Category</span></legend>
|
487 |
+
<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 />
|
488 |
+
<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 />
|
489 |
+
<p>Should FAQs be grouped by category, or should all categories be mixed together?</p>
|
490 |
+
</fieldset>
|
491 |
+
</td>
|
492 |
+
</tr>
|
493 |
+
<tr>
|
494 |
+
<th scope="row">Sort Categories</th>
|
495 |
+
<td>
|
496 |
+
<fieldset><legend class="screen-reader-text"><span>Sort Categories</span></legend>
|
497 |
+
<label title='Group By Order By'></label>
|
498 |
+
|
499 |
+
<select name="group_by_order_by" <?php if ($UFAQ_Full_Version != "Yes" and get_option("EWD_UFAQ_Install_Version") < 1.6) {echo "disabled";} ?> >
|
500 |
+
<option value="name" <?php if($Group_By_Order_By == "name") {echo "selected=selected";} ?> >Name</option>
|
501 |
+
<option value="count" <?php if($Group_By_Order_By == "count") {echo "selected=selected";} ?> >FAQ Count</option>
|
502 |
+
<option value="slug" <?php if($Group_By_Order_By == "slug") {echo "selected=selected";} ?> >Slug</option>
|
503 |
+
</select>
|
504 |
+
|
505 |
+
<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>
|
506 |
+
</fieldset>
|
507 |
+
</td>
|
508 |
+
</tr>
|
509 |
+
<tr>
|
510 |
+
<th scope="row">Sort Categories Ordering</th>
|
511 |
+
<td>
|
512 |
+
<fieldset><legend class="screen-reader-text"><span>Sort Categories Ordering</span></legend>
|
513 |
+
<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 />
|
514 |
+
<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 />
|
515 |
+
<p>How should FAQ categories be ordered? (Only used if "Group FAQs by Category" above is set to "Yes")</p>
|
516 |
+
</fieldset>
|
517 |
+
</td>
|
518 |
+
</tr>
|
519 |
+
<tr>
|
520 |
+
<th scope="row">FAQ Ordering</th>
|
521 |
+
<td>
|
522 |
+
<fieldset><legend class="screen-reader-text"><span>FAQ Ordering</span></legend>
|
523 |
+
<label title='FAQ Ordering'></label>
|
524 |
+
|
525 |
+
<select name="order_by_setting" <?php if ($UFAQ_Full_Version != "Yes" and get_option("EWD_UFAQ_Install_Version") < 1.6) {echo "disabled";} ?> >
|
526 |
+
<option value="date" <?php if($Order_By_Setting == "date") {echo "selected=selected";} ?> >Created Date</option>
|
527 |
+
<option value="title" <?php if($Order_By_Setting == "title") {echo "selected=selected";} ?> >Title</option>
|
528 |
+
<option value="modified" <?php if($Order_By_Setting == "modified") {echo "selected=selected";} ?> >Modified Date</option>
|
529 |
+
<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>
|
530 |
+
</select>
|
531 |
+
|
532 |
+
<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>
|
533 |
+
</fieldset>
|
534 |
+
</td>
|
535 |
+
</tr>
|
536 |
+
<tr>
|
537 |
+
<th scope="row">FAQ Order Setting</th>
|
538 |
+
<td>
|
539 |
+
<fieldset><legend class="screen-reader-text"><span>Sort Categories Ordering</span></legend>
|
540 |
+
<label title='Yes'><input type='radio' name='order_setting' value='ASC' <?php if($Order_Setting == "ASC") {echo "checked='checked'";} ?> /> <span>Ascending</span></label><br />
|
541 |
+
<label title='No'><input type='radio' name='order_setting' value='DESC' <?php if($Order_Setting == "DESC") {echo "checked='checked'";} ?> /> <span>Descending</span></label><br />
|
542 |
+
<p>Should FAQ be ascending or descending order, based on the ordering criteria above?</p>
|
543 |
+
</fieldset>
|
544 |
+
</td>
|
545 |
+
</tr>
|
546 |
+
</table>
|
547 |
+
|
548 |
+
<div class='ufaq-order-table'>
|
549 |
+
<h3><?php echo __("Order Table", 'EWD_UFAQ'); ?></h3>
|
550 |
+
<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>
|
551 |
+
<?php
|
552 |
+
if ($UFAQ_Full_Version != "Yes") {echo "<p>Upgrade to premium to access this feature.</p>";}
|
553 |
+
else {
|
554 |
+
?>
|
555 |
+
<!--<div id="col-right">
|
556 |
+
<div class="col-wrap">
|
557 |
+
<div id="add-page" class="postbox metabox-holder" >
|
558 |
+
<div class="inside">
|
559 |
+
<div id="posttype-page" class="posttypediv">-->
|
560 |
+
<div id="tabs-panel-posttype-page-most-recent" class="tabs-panel tabs-panel-active">
|
561 |
+
|
562 |
+
<table class="wp-list-table widefat tags sorttable ewd-ufaq-list">
|
563 |
+
<thead>
|
564 |
+
<tr>
|
565 |
+
<th><?php _e("Question", 'EWD_UFAQ') ?></th>
|
566 |
+
<th><?php _e("Views", 'EWD_UFAQ') ?></th>
|
567 |
+
<th><?php _e("Categories", 'EWD_UFAQ') ?></th>
|
568 |
+
<th><?php _e("Tags", 'EWD_UFAQ') ?></th>
|
569 |
+
</tr>
|
570 |
+
</thead>
|
571 |
+
<tbody>
|
572 |
+
<?php
|
573 |
+
$params = array(
|
574 |
+
'post_type' => 'ufaq',
|
575 |
+
'posts_per_page' => -1,
|
576 |
+
'meta_key' => 'ufaq_order',
|
577 |
+
'orderby' => 'meta_value_num',
|
578 |
+
'order' => 'ASC'
|
579 |
+
);
|
580 |
+
$FAQs = get_posts($params);
|
581 |
+
if (empty($FAQs)) { echo "<div class='ewd-ufaq-row list-item'><p>No FAQs have been created<p/></div>"; }
|
582 |
+
else {
|
583 |
+
foreach ($FAQs as $FAQ) {
|
584 |
+
$FAQ_Views = get_post_meta($FAQ->ID, 'ufaq_view_count', true);
|
585 |
+
$FAQ_Categories = get_the_term_list($FAQ->ID, 'ufaq-category', '', ', ', '');
|
586 |
+
$FAQ_Tags = get_the_term_list($FAQ->ID, 'ufaq-tag', '', ', ', '');
|
587 |
+
echo "<tr id='ewd-ufaq-item-" . $FAQ->ID . "' class='ewd-ufaq-item'>";
|
588 |
+
echo "<td class='ufaq-title'>" . $FAQ->post_title . "</td>";
|
589 |
+
echo "<td class='ufaq-title'>" . $FAQ_Views . "</td>";
|
590 |
+
echo "<td class='ufaq-title'>" . $FAQ_Categories . "</td>";
|
591 |
+
echo "<td class='ufaq-title'>" . $FAQ_Tags . "</td>";
|
592 |
+
echo "</tr>";
|
593 |
+
}
|
594 |
+
}?>
|
595 |
+
</tbody>
|
596 |
+
<tfoot>
|
597 |
+
<tr>
|
598 |
+
<th><?php _e("Question", 'EWD_UFAQ') ?></th>
|
599 |
+
<th><?php _e("Views", 'EWD_UFAQ') ?></th>
|
600 |
+
<th><?php _e("Categories", 'EWD_UFAQ') ?></th>
|
601 |
+
<th><?php _e("Tags", 'EWD_UFAQ') ?></th>
|
602 |
+
</tr>
|
603 |
+
</tfoot>
|
604 |
+
</table>
|
605 |
+
</div>
|
606 |
+
<?php } ?>
|
607 |
+
|
608 |
+
</div>
|
609 |
+
</div>
|
610 |
+
|
611 |
+
<div id='Fields' class='ufaq-option-set ufaq-hidden'>
|
612 |
+
<h2 id='label-order-options' class='ufaq-options-page-tab-title'>Fields Options (Premium)</h2>
|
613 |
+
<table class="form-table">
|
614 |
+
<tr>
|
615 |
+
<th scope="row">FAQ Custom Fields</th>
|
616 |
+
<td>
|
617 |
+
<fieldset><legend class="screen-reader-text"><span>FAQ Custom Fields</span></legend>
|
618 |
+
<table id='ewd-ufaq-custom-fields-table'>
|
619 |
+
<tr>
|
620 |
+
<th></th>
|
621 |
+
<th>Field Name</th>
|
622 |
+
<th>Field Type</th>
|
623 |
+
<th>Field Values</th>
|
624 |
+
</tr>
|
625 |
+
<?php
|
626 |
+
$Counter = 0;
|
627 |
+
$Max_ID = 0;
|
628 |
+
if (!is_array($FAQ_Fields_Array)) {$FAQ_Fields_Array = array();}
|
629 |
+
foreach ($FAQ_Fields_Array as $FAQ_Field_Item) {
|
630 |
+
echo "<tr id='ewd-ufaq-custom-field-row-" . $Counter . "'>";
|
631 |
+
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>";
|
632 |
+
echo "<td><input type='text' name='Custom_Field_" . $Counter . "_Name' value='" . $FAQ_Field_Item['FieldName'] . "'/></td>";
|
633 |
+
echo "<td><select name='Custom_Field_" . $Counter . "_Type'>"; ?>
|
634 |
+
<option value='text' <?php if ($FAQ_Field_Item['FieldType'] == "text") {echo "selected='selected'";} ?>>Text</option>
|
635 |
+
<option value='textarea' <?php if ($FAQ_Field_Item['FieldType'] == "textarea") {echo "selected='selected'";} ?>>Text Area</option>
|
636 |
+
<option value='select' <?php if ($FAQ_Field_Item['FieldType'] == "select") {echo "selected='selected'";} ?>>Select Box</option>
|
637 |
+
<option value='radio' <?php if ($FAQ_Field_Item['FieldType'] == "radio") {echo "selected='selected'";} ?>>Radio Buttons</option>
|
638 |
+
<option value='checkbox' <?php if ($FAQ_Field_Item['FieldType'] == "checkbox") {echo "selected='selected'";} ?>>Checkbox</option>
|
639 |
+
<option value='file' <?php if ($FAQ_Field_Item['FieldType'] == "file") {echo "selected='selected'";} ?>>File</option>
|
640 |
+
<option value='link' <?php if ($FAQ_Field_Item['FieldType'] == "link") {echo "selected='selected'";} ?>>Link</option>
|
641 |
+
<option value='date' <?php if ($FAQ_Field_Item['FieldType'] == "date") {echo "selected='selected'";} ?>>Date</option>
|
642 |
+
<option value='datetime' <?php if ($FAQ_Field_Item['FieldType'] == "datetime") {echo "selected='selected'";} ?>>Date/Time</option>
|
643 |
+
<?php echo "</select></td>";
|
644 |
+
echo "<td><input type='text' name='Custom_Field_" . $Counter . "_Values' value='" . $FAQ_Field_Item['FieldValues'] . "'/></td>";
|
645 |
+
echo "</tr>";
|
646 |
+
$Counter++;
|
647 |
+
$Max_ID = max($Max_ID, $Email_Message_Item['ID']);
|
648 |
+
}
|
649 |
+
$Max_ID++;
|
650 |
+
echo "<tr><td colspan='4'><a class='ewd-ufaq-add-custom-field' data-nextid='" . $Counter . "' data-maxid='" . $Max_ID . "'>Add</a></td></tr>";
|
651 |
+
?>
|
652 |
+
</table>
|
653 |
+
<p>Should any extra fields be added to the FAQs?<br />
|
654 |
+
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>
|
655 |
+
</fieldset>
|
656 |
+
</td>
|
657 |
+
</tr>
|
658 |
+
<tr>
|
659 |
+
<th scope="row">Hide Blank Fields</th>
|
660 |
+
<td>
|
661 |
+
<fieldset><legend class="screen-reader-text"><span>Hide Blank Fields</span></legend>
|
662 |
+
<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 />
|
663 |
+
<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 />
|
664 |
+
<p>Should field labels been hidden if a field hasn't been filled out for a particular FAQ?</p>
|
665 |
+
</fieldset>
|
666 |
+
</td>
|
667 |
+
</tr>
|
668 |
+
</table>
|
669 |
+
</div>
|
670 |
+
|
671 |
+
|
672 |
+
<div id='Labelling' class='ufaq-option-set ufaq-hidden'>
|
673 |
+
<h2 id='label-order-options' class='ufaq-options-page-tab-title'>Labelling Options</h2>
|
674 |
+
<div class="ufaq-label-description"> Replace the default text on the FAQ page </div>
|
675 |
+
|
676 |
+
<div id='labelling-view-options' class="ufaq-options-div ufaq-options-flex">
|
677 |
+
<div class='ufaq-subsection'>
|
678 |
+
<div class='ufaq-subsection-content' id='ufaq-subsection-inline'>
|
679 |
+
<div class='ufaq-option ufaq-label-option'>
|
680 |
+
<?php _e("Posted", 'EWD_UFAQ')?>
|
681 |
+
<fieldset>
|
682 |
+
<input type='text' name='posted_label' value='<?php echo $Posted_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
|
683 |
+
</fieldset>
|
684 |
+
</div>
|
685 |
+
<div class='ufaq-option ufaq-label-option'>
|
686 |
+
<?php _e("By", 'EWD_UFAQ')?>
|
687 |
+
<fieldset>
|
688 |
+
<input type='text' name='by_label' value='<?php echo $By_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
|
689 |
+
</fieldset>
|
690 |
+
</div>
|
691 |
+
<div class='ufaq-option ufaq-label-option'>
|
692 |
+
<?php _e("On", 'EWD_UFAQ')?>
|
693 |
+
<fieldset>
|
694 |
+
<input type='text' name='on_label' value='<?php echo $On_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
|
695 |
+
</fieldset>
|
696 |
+
</div>
|
697 |
+
<div class='ufaq-option ufaq-label-option'>
|
698 |
+
<?php _e("Categories", 'EWD_UFAQ')?>
|
699 |
+
<fieldset>
|
700 |
+
<input type='text' name='category_label' value='<?php echo $Category_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> />
|
701 |
+
</fieldset>
|
702 |
+
</div>
|
703 |
+
<div class='ufaq-option ufaq-label-option'>
|
704 |
+
<?php _e("Tags", 'EWD_UFAQ')?>
|
705 |
+
<fieldset>
|
706 |
+
<input type='text' name='tag_label' value='<?php echo $Tag_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
|
707 |
+
</fieldset>
|
708 |
+
</div>
|
709 |
+
<div class='ufaq-option ufaq-label-option'>
|
710 |
+
<?php _e("Enter your question", 'EWD_UFAQ')?>
|
711 |
+
<fieldset>
|
712 |
+
<input type='text' name='enter_question_label' value='<?php echo $Enter_Question_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
|
713 |
+
</fieldset>
|
714 |
+
</div>
|
715 |
+
<div class='ufaq-option ufaq-label-option'>
|
716 |
+
<?php _e("Search", 'EWD_UFAQ')?>
|
717 |
+
<fieldset>
|
718 |
+
<input type='text' name='search_label' value='<?php echo $Search_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
|
719 |
+
</fieldset>
|
720 |
+
</div>
|
721 |
+
<div class='ufaq-option ufaq-label-option'>
|
722 |
+
<?php _e("Permalink", 'EWD_UFAQ')?>
|
723 |
+
<fieldset>
|
724 |
+
<input type='text' name='permalink_label' value='<?php echo $Permalink_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
|
725 |
+
</fieldset>
|
726 |
+
</div>
|
727 |
+
<div class='ufaq-option ufaq-label-option'>
|
728 |
+
<?php _e("Back To Top", 'EWD_UFAQ')?>
|
729 |
+
<fieldset>
|
730 |
+
<input type='text' name='back_to_top_label' value='<?php echo $Back_To_Top_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
|
731 |
+
</fieldset>
|
732 |
+
</div>
|
733 |
+
<div class='ufaq-option ufaq-label-option'>
|
734 |
+
<?php _e("WooCommerce Tab Label", 'EWD_UFAQ')?>
|
735 |
+
<fieldset>
|
736 |
+
<input type='text' name='woocommerce_tab_label' value='<?php echo $WooCommerce_Tab_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
|
737 |
+
</fieldset>
|
738 |
+
</div>
|
739 |
+
</div>
|
740 |
+
</div>
|
741 |
+
<div class='ufaq-subsection'>
|
742 |
+
<div class='ufaq-subsection-content' id='ufaq-subsection-inline'>
|
743 |
+
<div class='ufaq-option ufaq-label-option'>
|
744 |
+
<?php _e("Thank you for submitting an FAQ", 'EWD_UFAQ')?>
|
745 |
+
<fieldset>
|
746 |
+
<input type='text' name='thank_you_submit_label' value='<?php echo $Thank_You_Submit_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
|
747 |
+
</fieldset>
|
748 |
+
</div>
|
749 |
+
<div class='ufaq-option ufaq-label-option'>
|
750 |
+
<?php _e("Submit a Question", 'EWD_UFAQ')?>
|
751 |
+
<fieldset>
|
752 |
+
<input type='text' name='submit_question_label' value='<?php echo $Submit_Question_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
|
753 |
+
</fieldset>
|
754 |
+
</div>
|
755 |
+
<div class='ufaq-option ufaq-label-option'>
|
756 |
+
<?php _e("Please fill out the form below to submit a question.", 'EWD_UFAQ')?>
|
757 |
+
<fieldset>
|
758 |
+
<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";} ?>/>
|
759 |
+
</fieldset>
|
760 |
+
</div>
|
761 |
+
<div class='ufaq-option ufaq-label-option'>
|
762 |
+
<?php _e("Send Question", 'EWD_UFAQ')?>
|
763 |
+
<fieldset>
|
764 |
+
<input type='text' name='send_question_label' value='<?php echo $Send_Question_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
|
765 |
+
</fieldset>
|
766 |
+
</div>
|
767 |
+
<div class='ufaq-option ufaq-label-option'>
|
768 |
+
<?php _e("Question Title", 'EWD_UFAQ')?>
|
769 |
+
<fieldset>
|
770 |
+
<input type='text' name='question_title_label' value='<?php echo $Question_Title_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
|
771 |
+
</fieldset>
|
772 |
+
</div>
|
773 |
+
<div class='ufaq-option ufaq-label-option'>
|
774 |
+
<?php _e("What question is being answered?", 'EWD_UFAQ')?>
|
775 |
+
<fieldset>
|
776 |
+
<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";} ?>/>
|
777 |
+
</fieldset>
|
778 |
+
</div>
|
779 |
+
<div class='ufaq-option ufaq-label-option'>
|
780 |
+
<?php _e("Proposed Answer", 'EWD_UFAQ')?>
|
781 |
+
<fieldset>
|
782 |
+
<input type='text' name='proposed_answer_label' value='<?php echo $Proposed_Answer_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
|
783 |
+
</fieldset>
|
784 |
+
</div>
|
785 |
+
<div class='ufaq-option ufaq-label-option'>
|
786 |
+
<?php _e("Question Author", 'EWD_UFAQ')?>
|
787 |
+
<fieldset>
|
788 |
+
<input type='text' name='review_author_label' value='<?php echo $Review_Author_Label; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
|
789 |
+
</fieldset>
|
790 |
+
</div>
|
791 |
+
<div class='ufaq-option ufaq-label-option'>
|
792 |
+
<?php _e("What name should be displayed with your question?", 'EWD_UFAQ')?>
|
793 |
+
<fieldset>
|
794 |
+
<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";} ?>/>
|
795 |
+
</fieldset>
|
796 |
+
</div>
|
797 |
+
<div class='ufaq-option ufaq-label-option'>
|
798 |
+
<?php _e("Retrieving Results", 'EWD_UFAQ')?>
|
799 |
+
<fieldset>
|
800 |
+
<input type='text' name='retrieving_results' value='<?php echo $Retrieving_Results; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
|
801 |
+
</fieldset>
|
802 |
+
</div>
|
803 |
+
<div class='ufaq-option ufaq-label-option'>
|
804 |
+
<?php _e("No results FAQ's contained the term '%s'", 'EWD_UFAQ')?>
|
805 |
+
<fieldset>
|
806 |
+
<input type='text' name='no_results_found_text' value='<?php echo $No_Results_Found_Text; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/>
|
807 |
+
</fieldset>
|
808 |
+
</div>
|
809 |
+
</div>
|
810 |
+
</div>
|
811 |
+
</div>
|
812 |
+
</div>
|
813 |
+
<div id='Styling' class='ufaq-option-set ufaq-hidden'>
|
814 |
+
<h2 id='label-order-options' class='ufaq-options-page-tab-title'>Styling Options (Premium)</h2>
|
815 |
+
|
816 |
+
<div id='ufaq-styling-options' class="ufaq-options-div ufaq-options-flex">
|
817 |
+
<div class='ufaq-subsection'>
|
818 |
+
<div class='ufaq-subsection-header'>Toggle Symbol</div>
|
819 |
+
<div class='ufaq-subsection-content'>
|
820 |
+
<div class='ufaq-option ufaq-styling-option'>
|
821 |
+
<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 />
|
822 |
+
<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 />
|
823 |
+
<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 />
|
824 |
+
<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 />
|
825 |
+
<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 />
|
826 |
+
<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 />
|
827 |
+
<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 />
|
828 |
+
<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 />
|
829 |
+
<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 />
|
830 |
+
<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 />
|
831 |
+
<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 />
|
832 |
+
<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 />
|
833 |
+
<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 />
|
834 |
+
<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 />
|
835 |
+
<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 />
|
836 |
+
</div>
|
837 |
+
</div>
|
838 |
+
</div>
|
839 |
+
<div class='ufaq-subsection'>
|
840 |
+
<div class='ufaq-subsection-header'>Toggle Symbol Styling</div>
|
841 |
+
<div class='ufaq-subsection-content'>
|
842 |
+
<div class='ufaq-option ufaq-styling-option'>
|
843 |
+
<div class='ufaq-option-label'>Icon Size (e.g. 16px)</div>
|
844 |
+
<div class='ufaq-option-input'><input type='text' name='ufaq_styling_toggle_symbol_size' value='<?php echo $UFAQ_Styling_Toggle_Symbol_Size; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
|
845 |
+
</div>
|
846 |
+
<div class='ufaq-option ufaq-styling-option'>
|
847 |
+
<div class='ufaq-option-label'>Icon Background Color</div>
|
848 |
+
<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>
|
849 |
+
</div>
|
850 |
+
<div class='ufaq-option ufaq-styling-option'>
|
851 |
+
<div class='ufaq-option-label'>Icon Font Color</div>
|
852 |
+
<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>
|
853 |
+
</div>
|
854 |
+
<div class='ufaq-option ufaq-styling-option'>
|
855 |
+
<div class='ufaq-option-label'>Icon Border size (e.g. 1px)</div>
|
856 |
+
<div class='ufaq-option-input'><input type='text' name='ufaq_styling_default_border_size' value='<?php echo $UFAQ_Styling_Default_Border_Size; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
|
857 |
+
</div>
|
858 |
+
<div class='ufaq-option ufaq-styling-option'>
|
859 |
+
<div class='ufaq-option-label'>Icon Border Color</div>
|
860 |
+
<div class='ufaq-option-input'><input type='text' class='ewd-ufaq-spectrum' name='ufaq_styling_default_border_color' value='<?php echo $UFAQ_Styling_Default_Border_Color; ?>' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></div>
|
861 |
+
</div>
|
862 |
+
<div class='ufaq-option ufaq-styling-option'>
|
863 |
+
<div class='ufaq-option-label'>Icon Border Radius (e.g. 3px)</div>
|
864 |
+
<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>
|
865 |
+
</div>
|
866 |
+
</div>
|
867 |
+
</div>
|
868 |
+
<div class='ufaq-subsection'>
|
869 |
+
<div class='ufaq-subsection-header'>Block Theme</div>
|
870 |
+
<div class='ufaq-subsection-content'>
|
871 |
+
<div class='ufaq-option ufaq-styling-option'>
|
872 |
+
<div class='ufaq-option-label'>Hover Background Color</div>
|
873 |
+
<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>
|
874 |
+
</div>
|
875 |
+
<div class='ufaq-option ufaq-styling-option'>
|
876 |
+
<div class='ufaq-option-label'>Hover Font Color</div>
|
877 |
+
<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>
|
878 |
+
</div>
|
879 |
+
</div>
|
880 |
+
</div>
|
881 |
+
<div class='ufaq-subsection'>
|
882 |
+
<div class='ufaq-subsection-header'>List Theme Anchors</div>
|
883 |
+
<div class='ufaq-subsection-content'>
|
884 |
+
<div class='ufaq-option ufaq-styling-option'>
|
885 |
+
<div class='ufaq-option-label'>Font Family</div>
|
886 |
+
<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>
|
887 |
+
</div>
|
888 |
+
<div class='ufaq-option ufaq-styling-option'>
|
889 |
+
<div class='ufaq-option-label'>Font Size</div>
|
890 |
+
<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>
|
891 |
+
</div>
|
892 |
+
<div class='ufaq-option ufaq-styling-option'>
|
893 |
+
<div class='ufaq-option-label'>Font Color</div>
|
894 |
+
<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>
|
895 |
+
</div>
|
896 |
+
<div class='ufaq-option ufaq-styling-option'>
|
897 |
+
<div class='ufaq-option-label'>Margin</div>
|
898 |
+
<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>
|
899 |
+
</div>
|
900 |
+
<div class='ufaq-option ufaq-styling-option'>
|
901 |
+
<div class='ufaq-option-label'>Padding</div>
|
902 |
+
<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>
|
903 |
+
</div>
|
904 |
+
</div>
|
905 |
+
</div>
|
906 |
+
<div class='ufaq-subsection'>
|
907 |
+
<div class='ufaq-subsection-header'>FAQ Question</div>
|
908 |
+
<div class='ufaq-subsection-content'>
|
909 |
+
<div class='ufaq-option ufaq-styling-option'>
|
910 |
+
<div class='ufaq-option-label'>Font Family</div>
|
911 |
+
<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>
|
912 |
+
</div>
|
913 |
+
<div class='ufaq-option ufaq-styling-option'>
|
914 |
+
<div class='ufaq-option-label'>Font Size</div>
|
915 |
+
<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>
|
916 |
+
</div>
|
917 |
+
<div class='ufaq-option ufaq-styling-option'>
|
918 |
+
<div class='ufaq-option-label'>Font Color</div>
|
919 |
+
<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>
|
920 |
+
</div>
|
921 |
+
<div class='ufaq-option ufaq-styling-option'>
|
922 |
+
<div class='ufaq-option-label'>Margin</div>
|
923 |
+
<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>
|
924 |
+
</div>
|
925 |
+
<div class='ufaq-option ufaq-styling-option'>
|
926 |
+
<div class='ufaq-option-label'>Padding</div>
|
927 |
+
<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>
|
928 |
+
</div>
|
929 |
+
<div class='ufaq-option ufaq-styling-option'>
|
930 |
+
<div class='ufaq-option-label'>Toggle Symbol Top Margin</div>
|
931 |
+
<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>
|
932 |
+
</div>
|
933 |
+
</div>
|
934 |
+
</div>
|
935 |
+
<div class='ufaq-subsection'>
|
936 |
+
<div class='ufaq-subsection-header'>FAQ Answer</div>
|
937 |
+
<div class='ufaq-subsection-content'>
|
938 |
+
<div class='ufaq-option ufaq-styling-option'>
|
939 |
+
<div class='ufaq-option-label'>Font Family</div>
|
940 |
+
<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>
|
941 |
+
</div>
|
942 |
+
<div class='ufaq-option ufaq-styling-option'>
|
943 |
+
<div class='ufaq-option-label'>Font Size</div>
|
944 |
+
<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>
|
945 |
+
</div>
|
946 |
+
<div class='ufaq-option ufaq-styling-option'>
|
947 |
+
<div class='ufaq-option-label'>Font Color</div>
|
948 |
+
<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>
|
949 |
+
</div>
|
950 |
+
<div class='ufaq-option ufaq-styling-option'>
|
951 |
+
<div class='ufaq-option-label'>Margin</div>
|
952 |
+
<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>
|
953 |
+
</div>
|
954 |
+
<div class='ufaq-option ufaq-styling-option'>
|
955 |
+
<div class='ufaq-option-label'>Padding</div>
|
956 |
+
<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>
|
957 |
+
</div>
|
958 |
+
</div>
|
959 |
+
</div>
|
960 |
+
<div class='ufaq-subsection'>
|
961 |
+
<div class='ufaq-subsection-header'>FAQ Post Date</div>
|
962 |
+
<div class='ufaq-subsection-content'>
|
963 |
+
<div class='ufaq-option ufaq-styling-option'>
|
964 |
+
<div class='ufaq-option-label'>Font Family</div>
|
965 |
+
<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>
|
966 |
+
</div>
|
967 |
+
<div class='ufaq-option ufaq-styling-option'>
|
968 |
+
<div class='ufaq-option-label'>Font Size</div>
|
969 |
+
<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>
|
970 |
+
</div>
|
971 |
+
<div class='ufaq-option ufaq-styling-option'>
|
972 |
+
<div class='ufaq-option-label'>Font Color</div>
|
973 |
+
<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>
|
974 |
+
</div>
|
975 |
+
<div class='ufaq-option ufaq-styling-option'>
|
976 |
+
<div class='ufaq-option-label'>Margin</div>
|
977 |
+
<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>
|
978 |
+
</div>
|
979 |
+
<div class='ufaq-option ufaq-styling-option'>
|
980 |
+
<div class='ufaq-option-label'>Padding</div>
|
981 |
+
<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>
|
982 |
+
</div>
|
983 |
+
</div>
|
984 |
+
</div>
|
985 |
+
<div class='ufaq-subsection'>
|
986 |
+
<div class='ufaq-subsection-header'>FAQ Category, Tags</div>
|
987 |
+
<div class='ufaq-subsection-content'>
|
988 |
+
<div class='ufaq-option ufaq-styling-option'>
|
989 |
+
<div class='ufaq-option-label'>Font Family</div>
|
990 |
+
<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>
|
991 |
+
</div>
|
992 |
+
<div class='ufaq-option ufaq-styling-option'>
|
993 |
+
<div class='ufaq-option-label'>Font Size</div>
|
994 |
+
<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>
|
995 |
+
</div>
|
996 |
+
<div class='ufaq-option ufaq-styling-option'>
|
997 |
+
<div class='ufaq-option-label'>Font Color</div>
|
998 |
+
<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>
|
999 |
+
</div>
|
1000 |
+
<div class='ufaq-option ufaq-styling-option'>
|
1001 |
+
<div class='ufaq-option-label'>Margin</div>
|
1002 |
+
<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>
|
1003 |
+
</div>
|
1004 |
+
<div class='ufaq-option ufaq-styling-option'>
|
1005 |
+
<div class='ufaq-option-label'>Padding</div>
|
1006 |
+
<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>
|
1007 |
+
</div>
|
1008 |
+
</div>
|
1009 |
+
</div>
|
1010 |
+
<div class='ufaq-subsection'>
|
1011 |
+
<div class='ufaq-subsection-header'>FAQ Heading Types</div>
|
1012 |
+
<div class='ufaq-subsection-content'>
|
1013 |
+
<div class='ufaq-option ufaq-styling-option'>
|
1014 |
+
<div class='ufaq-option-label'>Category Heading Type</div>
|
1015 |
+
<div class='ufaq-option-input'>
|
1016 |
+
<select name='ufaq_styling_category_heading_type' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> >
|
1017 |
+
<option value='h1' <?php if ($UFAQ_Styling_Category_Heading_Type == 'h1') {echo "selected='selected'";} ?>>H1</option>
|
1018 |
+
<option value='h2' <?php if ($UFAQ_Styling_Category_Heading_Type == 'h2') {echo "selected='selected'";} ?>>H2</option>
|
1019 |
+
<option value='h3' <?php if ($UFAQ_Styling_Category_Heading_Type == 'h3') {echo "selected='selected'";} ?>>H3</option>
|
1020 |
+
<option value='h4' <?php if ($UFAQ_Styling_Category_Heading_Type == 'h4') {echo "selected='selected'";} ?>>H4</option>
|
1021 |
+
<option value='h5' <?php if ($UFAQ_Styling_Category_Heading_Type == 'h5') {echo "selected='selected'";} ?>>H5</option>
|
1022 |
+
<option value='h6' <?php if ($UFAQ_Styling_Category_Heading_Type == 'h6') {echo "selected='selected'";} ?>>H6</option>
|
1023 |
+
</select>
|
1024 |
+
</div>
|
1025 |
+
</div>
|
1026 |
+
<div class='ufaq-option ufaq-styling-option'>
|
1027 |
+
<div class='ufaq-option-label'>FAQ Heading Type</div>
|
1028 |
+
<div class='ufaq-option-input'>
|
1029 |
+
<select name='ufaq_styling_faq_heading_type' <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> >
|
1030 |
+
<option value='h1' <?php if ($UFAQ_Styling_FAQ_Heading_Type == 'h1') {echo "selected='selected'";} ?>>H1</option>
|
1031 |
+
<option value='h2' <?php if ($UFAQ_Styling_FAQ_Heading_Type == 'h2') {echo "selected='selected'";} ?>>H2</option>
|
1032 |
+
<option value='h3' <?php if ($UFAQ_Styling_FAQ_Heading_Type == 'h3') {echo "selected='selected'";} ?>>H3</option>
|
1033 |
+
<option value='h4' <?php if ($UFAQ_Styling_FAQ_Heading_Type == 'h4') {echo "selected='selected'";} ?>>H4</option>
|
1034 |
+
<option value='h5' <?php if ($UFAQ_Styling_FAQ_Heading_Type == 'h5') {echo "selected='selected'";} ?>>H5</option>
|
1035 |
+
<option value='h6' <?php if ($UFAQ_Styling_FAQ_Heading_Type == 'h6') {echo "selected='selected'";} ?>>H6</option>
|
1036 |
+
</select>
|
1037 |
+
</div>
|
1038 |
+
</div>
|
1039 |
+
</div>
|
1040 |
+
</div>
|
1041 |
+
|
1042 |
+
</div>
|
1043 |
+
</div>
|
1044 |
+
|
1045 |
+
<p class="submit"><input type="submit" name="Options_Submit" id="submit" class="button button-primary" value="Save Changes" /></p></form>
|
1046 |
+
|
1047 |
+
<?php /* </div><!-- /.tabs-panel -->
|
1048 |
+
</div><!-- /.posttypediv -->
|
1049 |
+
</div>
|
1050 |
+
</div>
|
1051 |
+
</div>
|
1052 |
+
</div><!-- col-right --> */ ?>
|
1053 |
+
</div>
|
1054 |
+
</div>
|
js/ewd-ufaq-js.js
CHANGED
@@ -161,11 +161,12 @@ function Ufaq_Ajax_Reload() {
|
|
161 |
var orderby = jQuery('#ufaq-orderby').val();
|
162 |
var order = jQuery('#ufaq-order').val();
|
163 |
var post_count = jQuery('#ufaq-post-count').val();
|
|
|
164 |
|
165 |
jQuery('#ufaq-ajax-results').html('<h3>' + ewd_ufaq_php_data.retrieving_results + '</h3>');
|
166 |
RequestCount = RequestCount + 1;
|
167 |
|
168 |
-
var data = 'Q=' + Question + '&include_category=' + include_cat + '&exclude_category=' + exclude_cat + '&orderby=' + orderby + '&order=' + order + '&post_count=' + post_count + '&request_count=' + RequestCount + '&action=ufaq_search';
|
169 |
jQuery.post(ajaxurl, data, function(response) {
|
170 |
response = response.substring(0, response.length - 1);
|
171 |
var parsed_response = jQuery.parseJSON(response);
|
161 |
var orderby = jQuery('#ufaq-orderby').val();
|
162 |
var order = jQuery('#ufaq-order').val();
|
163 |
var post_count = jQuery('#ufaq-post-count').val();
|
164 |
+
var current_url = jQuery('#ufaq-current-url').val();
|
165 |
|
166 |
jQuery('#ufaq-ajax-results').html('<h3>' + ewd_ufaq_php_data.retrieving_results + '</h3>');
|
167 |
RequestCount = RequestCount + 1;
|
168 |
|
169 |
+
var data = 'Q=' + Question + '&include_category=' + include_cat + '&exclude_category=' + exclude_cat + '&orderby=' + orderby + '&order=' + order + '&post_count=' + post_count + '&request_count=' + RequestCount + '¤t_url=' + current_url + '&action=ufaq_search';
|
170 |
jQuery.post(ajaxurl, data, function(response) {
|
171 |
response = response.substring(0, response.length - 1);
|
172 |
var parsed_response = jQuery.parseJSON(response);
|
readme.txt
CHANGED
@@ -1,506 +1,511 @@
|
|
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.
|
251 |
-
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
- Fixed
|
308 |
-
|
309 |
-
= 1.5.
|
310 |
-
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
-
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
|
462 |
-
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
- Added
|
474 |
-
-
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
- Added
|
480 |
-
|
481 |
-
|
482 |
-
|
483 |
-
|
484 |
-
|
485 |
-
|
486 |
-
|
487 |
-
|
488 |
-
|
489 |
-
|
490 |
-
|
491 |
-
|
492 |
-
|
493 |
-
|
494 |
-
|
495 |
-
|
496 |
-
|
497 |
-
|
498 |
-
|
499 |
-
|
500 |
-
|
501 |
-
|
502 |
-
|
503 |
-
|
504 |
-
|
505 |
-
|
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.23 =
|
251 |
+
- Added a "Random FAQ" widget
|
252 |
+
- Added in options to change the toggle icon size and color
|
253 |
+
- Fixed a couple of small issues with the AJAX search
|
254 |
+
|
255 |
+
= 1.5.22 =
|
256 |
+
- Small admin CSS and typo correction in relation to previous update
|
257 |
+
|
258 |
+
= 1.5.21 =
|
259 |
+
- Split the basic and premium options into a few sub-sections, to make it easier to find the right option
|
260 |
+
|
261 |
+
= 1.5.20 =
|
262 |
+
- Added a new, simpler way to select which FAQs to display on a product page, directly from the edit product screen
|
263 |
+
|
264 |
+
= 1.5.19 =
|
265 |
+
- Minor admin area update
|
266 |
+
|
267 |
+
= 1.5.18 =
|
268 |
+
- Removed a number of notices
|
269 |
+
|
270 |
+
= 1.5.17 =
|
271 |
+
- Removed a number of notices
|
272 |
+
|
273 |
+
= 1.5.16 =
|
274 |
+
- Replaced the version of PHPExcel used, so that the spreadsheet uploads will be compatible with PHP7
|
275 |
+
- Minor Dashboard fix
|
276 |
+
|
277 |
+
= 1.5.15 =
|
278 |
+
- Fixed a small Dashboard error that a number of users were experiencing
|
279 |
+
|
280 |
+
= 1.5.14 =
|
281 |
+
- Minor Dashboard update
|
282 |
+
|
283 |
+
= 1.5.13 =
|
284 |
+
- Fixed an error where using the trial in this plugin reset the trials for a number of our other plugins
|
285 |
+
|
286 |
+
= 1.5.12 =
|
287 |
+
- Introducing a free new premium 7-day trial feature, which users can choose to test out before buying the premium version
|
288 |
+
|
289 |
+
= 1.5.11 =
|
290 |
+
- Added an "Expand/Collapse All" optional set of controls
|
291 |
+
- Added in a "Retrieving Results" label for the search shortcode
|
292 |
+
- Added a "Link" custom field type
|
293 |
+
- Added in helper text when you're editing a category, to show the shortcode required to display only the selected category of FAQs
|
294 |
+
- Fixed a problem with sharing an FAQ on Facebook
|
295 |
+
|
296 |
+
= 1.5.10 =
|
297 |
+
- Fixed an error where permalinks weren't displaying
|
298 |
+
|
299 |
+
= 1.5.8 =
|
300 |
+
- Added in a pre-built shortcode display on the edit FAQ page, to display a single FAQ
|
301 |
+
- Fixed an error where the upgrade box was displayed on multiplate tabs
|
302 |
+
|
303 |
+
= 1.5.7 =
|
304 |
+
- Fixed an issue where the ratings buttons weren't working using the AJAX search feature
|
305 |
+
|
306 |
+
= 1.5.6 =
|
307 |
+
- Fixed minor dashboard and attribute errors
|
308 |
+
|
309 |
+
= 1.5.5 =
|
310 |
+
- Added in a new admin notification option for when questions are received
|
311 |
+
- 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
|
312 |
+
- Fixed two typos in the labelling area of the backend
|
313 |
+
|
314 |
+
= 1.5.4 =
|
315 |
+
- Fixed an issue where the most viewed FAQ stat was being sorted as a string
|
316 |
+
|
317 |
+
= 1.5.3 =
|
318 |
+
- Fixed a labelling issue for the submit FAQ shortcode
|
319 |
+
|
320 |
+
= 1.5.2 =
|
321 |
+
- Fixed a labelling issue for the submit FAQ shortcode
|
322 |
+
|
323 |
+
= 1.5.1 =
|
324 |
+
- Added in a message if no FAQs are found in search, and a label for that message in the back-end
|
325 |
+
|
326 |
+
= 1.5.0 =
|
327 |
+
- Added in a new premium option to change the toggle icon to one of 15 different sets of icons
|
328 |
+
- Added in microdata support, to help with SEO
|
329 |
+
- FAQs can now be included for an entire WooCommerce category instead of being added for products one at a time
|
330 |
+
- Fixed a URL issue when a category or tag was selected, and a visitor tried to select another one
|
331 |
+
|
332 |
+
= 1.4.5 =
|
333 |
+
- Fixed a number of insufficient permission errors
|
334 |
+
|
335 |
+
= 1.4.4 =
|
336 |
+
- Added back in the link to edit an FAQ when you're on the single FAQ page
|
337 |
+
|
338 |
+
= 1.4.3 =
|
339 |
+
- Added in a new set of tutorials for new users
|
340 |
+
- Centralized the plugin dashboard and menu
|
341 |
+
|
342 |
+
= 1.4.2 =
|
343 |
+
- Added a premium styling option for the toggle indicator to adjust the height
|
344 |
+
|
345 |
+
= 1.4.1 =
|
346 |
+
- Minor update to take out a debugging message
|
347 |
+
|
348 |
+
= 1.4.0 =
|
349 |
+
- Added two new FAQ display styles, minimalist and border block
|
350 |
+
- Added in support for comments directly in the FAQs if enabled
|
351 |
+
- Added two new premium features, FAQ ratings and FAQ custom fields
|
352 |
+
- Added a premium styling option to let users select which heading the FAQ and comment titles have (h1, h2, etc.)
|
353 |
+
|
354 |
+
= 1.3.6 =
|
355 |
+
- Minor CSS update
|
356 |
+
|
357 |
+
= 1.3.5 =
|
358 |
+
- Fixed a font-family error
|
359 |
+
|
360 |
+
= 1.3.4 =
|
361 |
+
- Fixed an error where if WooCommerce FAQs were set to "Yes", and not category had been created, all FAQs would show
|
362 |
+
|
363 |
+
= 1.3.3 =
|
364 |
+
- 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
|
365 |
+
|
366 |
+
= 1.3.2 =
|
367 |
+
- Fixed an error where view count wasn't being counted when FAQs were clicked to expand
|
368 |
+
|
369 |
+
= 1.3.1 =
|
370 |
+
- Fixed a JS error that was preventing the new shortcode helper from working with other plugins that modify the visual editor
|
371 |
+
|
372 |
+
= 1.3.0 =
|
373 |
+
- 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
|
374 |
+
- Fixed an error where category titles were no longer displaying
|
375 |
+
|
376 |
+
= 1.2.11 =
|
377 |
+
- Global post variable is now reset after the FAQs query loop
|
378 |
+
|
379 |
+
= 1.2.10 =
|
380 |
+
- Should make the plugin compatible with a couple of page builder plugins
|
381 |
+
|
382 |
+
= 1.2.9 =
|
383 |
+
- If there are no tags or categories for a particular FAQ, they should now be hidden
|
384 |
+
|
385 |
+
= 1.2.8 =
|
386 |
+
- 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
|
387 |
+
|
388 |
+
= 1.2.7 =
|
389 |
+
- Fixed an error where same page permalinks weren't opening the posts
|
390 |
+
|
391 |
+
= 1.2.6 =
|
392 |
+
- Added an option to just use the page ID for WooCommerce instead of the product's ID
|
393 |
+
|
394 |
+
= 1.2.5 =
|
395 |
+
- Fixed a broken link
|
396 |
+
- Added extra information about the premium version
|
397 |
+
|
398 |
+
= 1.2.4 =
|
399 |
+
- Fixed an error where FAQs on the same page as the search shortcode couldn't be clicked at times
|
400 |
+
|
401 |
+
= 1.2.3 =
|
402 |
+
- Added in WPML support for the main shortcodes
|
403 |
+
- Fixed an error with a missing ID tag
|
404 |
+
|
405 |
+
= 1.2.2 =
|
406 |
+
- Added the ability to have multiple widgets or shortcodes on a page
|
407 |
+
- Fixed a small error with the popular FAQs shortcode
|
408 |
+
|
409 |
+
= 1.2.1 =
|
410 |
+
- Fixed a missing file error
|
411 |
+
|
412 |
+
= 1.2.0 =
|
413 |
+
- 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
|
414 |
+
- Added the ability to filter FAQs by category
|
415 |
+
|
416 |
+
= 1.1.19 =
|
417 |
+
- Added another set of labeling options
|
418 |
+
|
419 |
+
= 1.1.18 =
|
420 |
+
- Minor CSS update
|
421 |
+
|
422 |
+
= 1.1.17 =
|
423 |
+
- Added anumber of extra labeling options
|
424 |
+
|
425 |
+
= 1.1.16 =
|
426 |
+
- Minor CSS update
|
427 |
+
|
428 |
+
= 1.1.15 =
|
429 |
+
- CSV files can now be used for FAQ imports
|
430 |
+
|
431 |
+
= 1.1.14 =
|
432 |
+
- 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
|
433 |
+
|
434 |
+
= 1.1.13 =
|
435 |
+
- Fixed a number of PHP notices
|
436 |
+
|
437 |
+
= 1.1.12 =
|
438 |
+
- Minor CSS update
|
439 |
+
|
440 |
+
= 1.1.11 =
|
441 |
+
- Fixed a missing div error that could come up with certain options selected
|
442 |
+
|
443 |
+
= 1.1.10 =
|
444 |
+
- Minor CSS update
|
445 |
+
|
446 |
+
= 1.1.9 =
|
447 |
+
- Added a "Category Toggle" options for users who group their FAQs by category
|
448 |
+
- Cleaned up some of the code dealing with options
|
449 |
+
|
450 |
+
= 1.1.8 =
|
451 |
+
- Fixed a scrolling error with non-FAQ links
|
452 |
+
|
453 |
+
= 1.1.7 =
|
454 |
+
- Should fix small problems with the "select-faq" shortcode and the "FAQ ID List" widget
|
455 |
+
|
456 |
+
= 1.1.6 =
|
457 |
+
- Removed blank categories from FAQ search results
|
458 |
+
- Added in a "Permalink Type" option, which lets you decide between linking to the post in the main page and the individual post page
|
459 |
+
|
460 |
+
= 1.1.5 =
|
461 |
+
- Fixed a problem with FAQ permalinks not opening in the list
|
462 |
+
|
463 |
+
= 1.1.4 =
|
464 |
+
- Fixed a conflict with WooCommerce, where a UFAQ script was keeping product information tabs open
|
465 |
+
|
466 |
+
= 1.1.3 =
|
467 |
+
- Fixed a problem where links inside of a toggable FAQ weren't clickable
|
468 |
+
|
469 |
+
= 1.1.2 =
|
470 |
+
- Added a color picker to the color fields on the styling options area
|
471 |
+
|
472 |
+
= 1.1.1 =
|
473 |
+
- Added 'display_all_answers' as a shortcode attribute, so some pages can have all answers displayed and others can have the started list style
|
474 |
+
- Fixed an option mistake
|
475 |
+
|
476 |
+
= 1.1.0 =
|
477 |
+
- Added new premium display styles
|
478 |
+
- Added an autocomplete titles option for the AJAX search shortcode
|
479 |
+
- Added more styling options to customize new display styles
|
480 |
+
- Added an option to add a 'Back to Top' link to each FAQ post
|
481 |
+
- Fixed a reveal error with non-accordion display and no effect selected
|
482 |
+
|
483 |
+
= 1.0.9 =
|
484 |
+
- Added some CSS classes in preparation for an upcoming large CSS/styling update
|
485 |
+
|
486 |
+
= 1.0.8 =
|
487 |
+
- Added a unique identifier to each FAQ so that if it is repeated on the same page, the correct post should open
|
488 |
+
|
489 |
+
= 1.0.7 =
|
490 |
+
- Minor CSS update
|
491 |
+
|
492 |
+
= 1.0.6 =
|
493 |
+
- Fixed an issue where new users weren't able to update ordering even after upgrading to premium
|
494 |
+
|
495 |
+
= 1.0.5 =
|
496 |
+
- Minor CSS update
|
497 |
+
|
498 |
+
= 1.0.4 =
|
499 |
+
- Fixed a status error message
|
500 |
+
|
501 |
+
= 1.0.3 =
|
502 |
+
- Added in widgets to display a number of popular or recently created faqs
|
503 |
+
|
504 |
+
= 1.0.2 =
|
505 |
+
- CSS update for the ordering table in the admin area
|
506 |
+
|
507 |
+
= 1.0.1 =
|
508 |
+
- Fix for the FAQ ordering bug
|
509 |
+
|
510 |
+
= 1.0.0 =
|
511 |
+
- Premium version release, check out our website for all of the details <http://www.etoilewebdesign.com/ultimate-faq/>
|