Version Description
- Introducing a free new premium 7-day trial feature, which users can choose to test out before buying the premium version
Download this release
Release Info
Developer | Rustaurius |
Plugin | Ultimate FAQ |
Version | 1.5.12 |
Comparing to | |
See all releases |
Code changes from version 1.5.11 to 1.5.12
- Functions/EWD_UFAQ_Version_Reversion.php +87 -0
- Functions/Full_Upgrade.php +24 -11
- Main.php +2 -1
- html/DashboardPage.php +5 -2
- readme.txt +3 -0
Functions/EWD_UFAQ_Version_Reversion.php
ADDED
@@ -0,0 +1,87 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
function EWD_UFAQ_Version_Reversion() {
|
3 |
+
if (get_option("EWD_UFAQ_Trial_Happening") != "Yes" or time() < get_option("EWD_UFAQ_Trial_Expiry_Time")) {return;}
|
4 |
+
|
5 |
+
update_option("EWD_UFAQ_Display_Style", "Default");
|
6 |
+
update_option("EWD_UFAQ_Color_Block_Shape", "Square");
|
7 |
+
update_option("EWD_UFAQ_FAQ_Ratings", "No");
|
8 |
+
update_option("EWD_UFAQ_WooCommerce_FAQs", "No");
|
9 |
+
update_option("EWD_UFAQ_Use_Product", "Yes");
|
10 |
+
update_option("EWD_UFAQ_Reveal_Effect", "none");
|
11 |
+
update_option("EWD_UFAQ_Pretty_Permalinks", "No");
|
12 |
+
update_option("EWD_UFAQ_Allow_Proposed_Answer", "No");
|
13 |
+
update_option("EWD_UFAQ_Admin_Question_Notification", "No");
|
14 |
+
update_option("EWD_UFAQ_Auto_Complete_Titles", "Yes");
|
15 |
+
update_option("EWD_UFAQ_Slug_Base", "ufaqs");
|
16 |
+
|
17 |
+
update_option("EWD_UFAQ_Order_By", "date");
|
18 |
+
|
19 |
+
update_option("EWD_UFAQ_FAQ_Fields", array());
|
20 |
+
|
21 |
+
update_option("EWD_UFAQ_Posted_Label", "");
|
22 |
+
update_option("EWD_UFAQ_By_Label", "");
|
23 |
+
update_option("EWD_UFAQ_On_Label", "");
|
24 |
+
update_option("EWD_UFAQ_Category_Label", "");
|
25 |
+
update_option("EWD_UFAQ_Tag_Label", "");
|
26 |
+
update_option("EWD_UFAQ_Enter_Question_Label", "");
|
27 |
+
update_option("EWD_UFAQ_Search_Label", "");
|
28 |
+
update_option("EWD_UFAQ_Permalink_Label", "");
|
29 |
+
update_option("EWD_UFAQ_Back_To_Top_Label", "");
|
30 |
+
|
31 |
+
update_option("EWD_UFAQ_Thank_You_Submit_Label", "");
|
32 |
+
update_option("EWD_UFAQ_Submit_Question_Label", "");
|
33 |
+
update_option("EWD_UFAQ_Please_Fill_Form_Below_Label", "");
|
34 |
+
update_option("EWD_UFAQ_Send_Question_Label", "");
|
35 |
+
update_option("EWD_UFAQ_Question_Title_Label", "");
|
36 |
+
update_option("EWD_UFAQ_What_Question_Being_Answered_Label", "");
|
37 |
+
update_option("EWD_UFAQ_Proposed_Answer_Label", "");
|
38 |
+
update_option("EWD_UFAQ_Review_Author_Label", "");
|
39 |
+
update_option("EWD_UFAQ_What_Name_With_Review_Label", "");
|
40 |
+
update_option("EWD_UFAQ_Retrieving_Results", "");
|
41 |
+
update_option("EWD_UFAQ_No_Results_Found_Text", "");
|
42 |
+
|
43 |
+
update_option("EWD_UFAQ_Styling_Default_Bg_Color", "");
|
44 |
+
update_option("EWD_UFAQ_Styling_Default_Font_Color", "");
|
45 |
+
update_option("EWD_UFAQ_Styling_Default_Border", "");
|
46 |
+
update_option("EWD_UFAQ_Styling_Default_Border_Radius", "");
|
47 |
+
update_option("EWD_UFAQ_Styling_Block_Bg_Color", "");
|
48 |
+
update_option("EWD_UFAQ_Styling_Block_Font_Color", "");
|
49 |
+
update_option("EWD_UFAQ_Styling_List_Font", "");
|
50 |
+
update_option("EWD_UFAQ_Styling_List_Font_Size", "");
|
51 |
+
update_option("EWD_UFAQ_Styling_List_Font_Color", "");
|
52 |
+
update_option("EWD_UFAQ_Styling_List_Margin", "");
|
53 |
+
update_option("EWD_UFAQ_Styling_List_Padding", "");
|
54 |
+
|
55 |
+
update_option("EWD_UFAQ_Styling_Question_Font", "");
|
56 |
+
update_option("EWD_UFAQ_Styling_Question_Font_Size", "");
|
57 |
+
update_option("EWD_UFAQ_Styling_Question_Font_Color", "");
|
58 |
+
update_option("EWD_UFAQ_Styling_Question_Margin", "");
|
59 |
+
update_option("EWD_UFAQ_Styling_Question_Padding", "");
|
60 |
+
update_option("EWD_UFAQ_Styling_Question_Icon_Top_Margin", "");
|
61 |
+
update_option("EWD_UFAQ_Styling_Answer_Font", "");
|
62 |
+
update_option("EWD_UFAQ_Styling_Answer_Font_Size", "");
|
63 |
+
update_option("EWD_UFAQ_Styling_Answer_Font_Color", "");
|
64 |
+
update_option("EWD_UFAQ_Styling_Answer_Margin", "");
|
65 |
+
update_option("EWD_UFAQ_Styling_Answer_Padding", "");
|
66 |
+
update_option("EWD_UFAQ_Styling_Postdate_Font", "");
|
67 |
+
update_option("EWD_UFAQ_Styling_Postdate_Font_Size", "");
|
68 |
+
update_option("EWD_UFAQ_Styling_Postdate_Font_Color", "");
|
69 |
+
update_option("EWD_UFAQ_Styling_Postdate_Margin", "");
|
70 |
+
update_option("EWD_UFAQ_Styling_Postdate_Padding", "");
|
71 |
+
update_option("EWD_UFAQ_Styling_Category_Font", "");
|
72 |
+
update_option("EWD_UFAQ_Styling_Category_Font_Size", "");
|
73 |
+
update_option("EWD_UFAQ_Styling_Category_Font_Color", "");
|
74 |
+
update_option("EWD_UFAQ_Styling_Category_Margin", "");
|
75 |
+
update_option("EWD_UFAQ_Styling_Category_Padding", "");
|
76 |
+
|
77 |
+
update_option("EWD_UFAQ_Styling_Category_Heading_Type", "h4");
|
78 |
+
update_option("EWD_UFAQ_Styling_FAQ_Heading_Type", "h4");
|
79 |
+
update_option("EWD_UFAQ_Toggle_Symbol", "A");
|
80 |
+
|
81 |
+
update_option("EWD_UFAQ_Full_Version", "No");
|
82 |
+
update_option("EWD_UFAQ_Trial_Happening", "No");
|
83 |
+
delete_option("EWD_UFAQ_Trial_Expiry_Time");
|
84 |
+
}
|
85 |
+
add_action('admin_init', 'EWD_UFAQ_Version_Reversion');
|
86 |
+
|
87 |
+
?>
|
Functions/Full_Upgrade.php
CHANGED
@@ -3,19 +3,32 @@ function EWD_UFAQ_Upgrade_To_Full() {
|
|
3 |
global $ewd_ufaq_message, $EWD_UFAQ_Full_Version;
|
4 |
|
5 |
$Key = $_POST['Key'];
|
6 |
-
$opts = array('http'=>array('method'=>"GET"));
|
7 |
-
$context = stream_context_create($opts);
|
8 |
-
$Response = unserialize(file_get_contents("http://www.etoilewebdesign.com/UPCP-Key-Check/EWD_UFAQ_KeyCheck.php?Key=" . $Key . "&Site=" . get_bloginfo('wpurl'), false, $context));
|
9 |
-
//echo "http://www.etoilewebdesign.com/UPCP-Key-Check/EWD_OTP_KeyCheck.php?Key=" . $Key . "&Site=" . get_bloginfo('wpurl');
|
10 |
-
//$Response = file_get_contents("http://www.etoilewebdesign.com/UPCP-Key-Check/KeyCheck.php?Key=" . $Key);
|
11 |
|
12 |
-
if ($
|
13 |
-
|
|
|
|
|
|
|
|
|
|
|
14 |
}
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
}
|
20 |
}
|
21 |
|
3 |
global $ewd_ufaq_message, $EWD_UFAQ_Full_Version;
|
4 |
|
5 |
$Key = $_POST['Key'];
|
|
|
|
|
|
|
|
|
|
|
6 |
|
7 |
+
if ($Key == "EWD Trial" and !get_option("EWD_UFAQ_Trial_Happening")) {
|
8 |
+
$ewd_urp_message = array("Message_Type" => "Update", "Message" => __("Trial successfully started!", 'EWD_UFAQ'));
|
9 |
+
|
10 |
+
update_option("EWD_UFAQ_Trial_Expiry_Time", time() + (7*24*60*60));
|
11 |
+
update_option("EWD_UFAQ_Trial_Happening", "Yes");
|
12 |
+
update_option("EWD_UFAQ_Full_Version", "Yes");
|
13 |
+
$EWD_UFAQ_Full_Version = get_option("EWD_UFAQ_Full_Version");
|
14 |
}
|
15 |
+
elseif ($Key != "EWD Trial") {
|
16 |
+
$opts = array('http'=>array('method'=>"GET"));
|
17 |
+
$context = stream_context_create($opts);
|
18 |
+
$Response = unserialize(file_get_contents("http://www.etoilewebdesign.com/UPCP-Key-Check/EWD_UFAQ_KeyCheck.php?Key=" . $Key . "&Site=" . get_bloginfo('wpurl'), false, $context));
|
19 |
+
//echo "http://www.etoilewebdesign.com/UPCP-Key-Check/EWD_OTP_KeyCheck.php?Key=" . $Key . "&Site=" . get_bloginfo('wpurl');
|
20 |
+
//$Response = file_get_contents("http://www.etoilewebdesign.com/UPCP-Key-Check/KeyCheck.php?Key=" . $Key);
|
21 |
+
|
22 |
+
if ($Response['Message_Type'] == "Error") {
|
23 |
+
$ewd_ufaq_message = array("Message_Type" => "Error", "Message" => $Response['Message']);
|
24 |
+
}
|
25 |
+
else {
|
26 |
+
$ewd_ufaq_message = array("Message_Type" => "Update", "Message" => $Response['Message']);
|
27 |
+
update_option("EWD_UFAQ_Trial_Happening", "No");
|
28 |
+
delete_option("EWD_UFAQ_Trial_Expiry_Time");
|
29 |
+
update_option("EWD_UFAQ_Full_Version", "Yes");
|
30 |
+
$EWD_UFAQ_Full_Version = get_option("EWD_UFAQ_Full_Version");
|
31 |
+
}
|
32 |
}
|
33 |
}
|
34 |
|
Main.php
CHANGED
@@ -7,7 +7,7 @@ Author: Etoile Web Design
|
|
7 |
Author URI: http://www.EtoileWebDesign.com/wordpress-plugins/
|
8 |
Terms and Conditions: http://www.etoilewebdesign.com/plugin-terms-and-conditions/
|
9 |
Text Domain: EWD_UFAQ
|
10 |
-
Version: 1.5.
|
11 |
*/
|
12 |
|
13 |
global $ewd_ufaq_message;
|
@@ -308,6 +308,7 @@ include "Functions/EWD_UFAQ_Pointers_Manager_Class.php";
|
|
308 |
include "Functions/EWD_UFAQ_Rewrite_Rules.php";
|
309 |
include "Functions/EWD_UFAQ_Submit_Question.php";
|
310 |
include "Functions/EWD_UFAQ_Upgrade_Box.php";
|
|
|
311 |
include "Functions/EWD_UFAQ_Version_Update.php";
|
312 |
include "Functions/EWD_UFAQ_Widgets.php";
|
313 |
include "Functions/EWD_UFAQ_WooCommerce_Tab.php";
|
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.12
|
11 |
*/
|
12 |
|
13 |
global $ewd_ufaq_message;
|
308 |
include "Functions/EWD_UFAQ_Rewrite_Rules.php";
|
309 |
include "Functions/EWD_UFAQ_Submit_Question.php";
|
310 |
include "Functions/EWD_UFAQ_Upgrade_Box.php";
|
311 |
+
include "Functions/EWD_UFAQ_Version_Reversion.php";
|
312 |
include "Functions/EWD_UFAQ_Version_Update.php";
|
313 |
include "Functions/EWD_UFAQ_Widgets.php";
|
314 |
include "Functions/EWD_UFAQ_WooCommerce_Tab.php";
|
html/DashboardPage.php
CHANGED
@@ -10,12 +10,15 @@
|
|
10 |
|
11 |
<div id="ewd-dashboard-top" class="metabox-holder">
|
12 |
<?php
|
13 |
-
if ($UFAQ_Full_Version != "Yes") { ?>
|
14 |
<div id="side-sortables" class="metabox-holder ">
|
15 |
<div id="upcp_pro" class="postbox " >
|
16 |
<div class="handlediv" title="Click to toggle"></div><h3 class='hndle'><span><?php _e("Full Version", 'EWD_UFAQ') ?></span></h3>
|
17 |
<div class="inside">
|
18 |
-
<ul><li><a href="http://www.etoilewebdesign.com/plugins/ultimate-faqs/"><?php _e("Upgrade to the full version ", "EWD_UFAQ"); ?></a><?php _e("to take advantage of all the available features of Ultimate FAQs for Wordpress!", 'EWD_UFAQ'); ?></li
|
|
|
|
|
|
|
19 |
<h3 class='hndle'><span><?php _e("What you get by upgrading:", 'EWD_UFAQ') ?></span></h3>
|
20 |
<ul>
|
21 |
<li>Ability to add a unique FAQ tab to each WooCommerce product page.</li>
|
10 |
|
11 |
<div id="ewd-dashboard-top" class="metabox-holder">
|
12 |
<?php
|
13 |
+
if ($UFAQ_Full_Version != "Yes" or get_option("EWD_UFAQ_Trial_Happening") == "Yes") { ?>
|
14 |
<div id="side-sortables" class="metabox-holder ">
|
15 |
<div id="upcp_pro" class="postbox " >
|
16 |
<div class="handlediv" title="Click to toggle"></div><h3 class='hndle'><span><?php _e("Full Version", 'EWD_UFAQ') ?></span></h3>
|
17 |
<div class="inside">
|
18 |
+
<ul><li><a href="http://www.etoilewebdesign.com/plugins/ultimate-faqs/"><?php _e("Upgrade to the full version ", "EWD_UFAQ"); ?></a><?php _e("to take advantage of all the available features of Ultimate FAQs for Wordpress!", 'EWD_UFAQ'); ?></li>
|
19 |
+
<?php if (get_option("EWD_UFAQ_Trial_Happening") == "Yes") { ?><li><strong>Your trial expires at <?php echo date("Y-m-d H:i:s", get_option("EWD_UFAQ_Trial_Expiry_Time")); ?> GMT</strong>, upgrade before then to retain any premium changes made!</li>
|
20 |
+
<?php } elseif (!get_option("EWD_UFAQ_Trial_Happening")) { ?><li>Want to try out the features first? Use code "EWD Trial" for a 7 day trial!</li><?php } ?>
|
21 |
+
</ul>
|
22 |
<h3 class='hndle'><span><?php _e("What you get by upgrading:", 'EWD_UFAQ') ?></span></h3>
|
23 |
<ul>
|
24 |
<li>Ability to add a unique FAQ tab to each WooCommerce product page.</li>
|
readme.txt
CHANGED
@@ -210,6 +210,9 @@ Video 3 - FAQs Ordering
|
|
210 |
9. All answers displayed in the 'list' FAQ mode
|
211 |
|
212 |
== Changelog ==
|
|
|
|
|
|
|
213 |
= 1.5.11 =
|
214 |
- Added an "Expand/Collapse All" optional set of controls
|
215 |
- Added in a "Retrieving Results" label for the search shortcode
|
210 |
9. All answers displayed in the 'list' FAQ mode
|
211 |
|
212 |
== Changelog ==
|
213 |
+
= 1.5.12 =
|
214 |
+
- Introducing a free new premium 7-day trial feature, which users can choose to test out before buying the premium version
|
215 |
+
|
216 |
= 1.5.11 =
|
217 |
- Added an "Expand/Collapse All" optional set of controls
|
218 |
- Added in a "Retrieving Results" label for the search shortcode
|