Ultimate FAQ - Version 1.5.25

Version Description

  • Made a number of changes to speed up page loads for longer FAQs
  • Fixed an issue with the "Random FAQ" widget where an FAQ would be displayed multiple times if it was in multiple categories
Download this release

Release Info

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

Code changes from version 1.5.24 to 1.5.25

Files changed (39) hide show
  1. Functions/EWD_UFAQ_Version_Update.php +2 -0
  2. Functions/Process_Ajax.php +10 -1
  3. Main.php +15 -12
  4. PHPExcel/Classes/PHPExcel/Shared/Escher/DggContainer/BstoreContainer.php +0 -65
  5. PHPExcel/Classes/PHPExcel/locale/cs/config +1 -1
  6. PHPExcel/Classes/PHPExcel/locale/cs/functions +1 -1
  7. PHPExcel/Classes/PHPExcel/locale/da/config +2 -2
  8. PHPExcel/Classes/PHPExcel/locale/da/functions +1 -1
  9. PHPExcel/Classes/PHPExcel/locale/de/config +2 -2
  10. PHPExcel/Classes/PHPExcel/locale/de/functions +1 -1
  11. PHPExcel/Classes/PHPExcel/locale/en/uk/config +1 -1
  12. PHPExcel/Classes/PHPExcel/locale/es/config +2 -2
  13. PHPExcel/Classes/PHPExcel/locale/es/functions +1 -1
  14. PHPExcel/Classes/PHPExcel/locale/fi/config +2 -2
  15. PHPExcel/Classes/PHPExcel/locale/fi/functions +1 -1
  16. PHPExcel/Classes/PHPExcel/locale/fr/config +2 -2
  17. PHPExcel/Classes/PHPExcel/locale/fr/functions +1 -1
  18. PHPExcel/Classes/PHPExcel/locale/hu/config +1 -1
  19. PHPExcel/Classes/PHPExcel/locale/hu/functions +1 -1
  20. PHPExcel/Classes/PHPExcel/locale/it/config +2 -2
  21. PHPExcel/Classes/PHPExcel/locale/it/functions +1 -1
  22. PHPExcel/Classes/PHPExcel/locale/nl/config +2 -2
  23. PHPExcel/Classes/PHPExcel/locale/nl/functions +1 -1
  24. PHPExcel/Classes/PHPExcel/locale/no/config +2 -2
  25. PHPExcel/Classes/PHPExcel/locale/no/functions +1 -1
  26. PHPExcel/Classes/PHPExcel/locale/pl/config +2 -2
  27. PHPExcel/Classes/PHPExcel/locale/pl/functions +1 -1
  28. PHPExcel/Classes/PHPExcel/locale/pt/br/config +2 -2
  29. PHPExcel/Classes/PHPExcel/locale/pt/config +2 -2
  30. PHPExcel/Classes/PHPExcel/locale/ru/config +2 -2
  31. PHPExcel/Classes/PHPExcel/locale/ru/functions +1 -1
  32. PHPExcel/Classes/PHPExcel/locale/sv/config +2 -2
  33. PHPExcel/Classes/PHPExcel/locale/tr/config +2 -2
  34. PHPExcel/Classes/PHPExcel/locale/tr/functions +1 -1
  35. Shortcodes/DisplayFAQs.php +6 -1
  36. css/Admin.css +104 -0
  37. html/DashboardPage.php +25 -13
  38. js/Admin.js +14 -0
  39. readme.txt +4 -0
Functions/EWD_UFAQ_Version_Update.php CHANGED
@@ -43,6 +43,8 @@ function EWD_UFAQ_Version_Update() {
43
  if (get_option("EWD_UFAQ_Styling_Category_Heading_Type") == "") {update_option("EWD_UFAQ_Styling_Category_Heading_Type", "h4");}
44
  if (get_option("EWD_UFAQ_Styling_FAQ_Heading_Type") == "") {update_option("EWD_UFAQ_Styling_FAQ_Heading_Type", "h4");}
45
 
 
 
46
  update_option('EWD_UFAQ_Version', $EWD_UFAQ_Version);
47
  }
48
 
43
  if (get_option("EWD_UFAQ_Styling_Category_Heading_Type") == "") {update_option("EWD_UFAQ_Styling_Category_Heading_Type", "h4");}
44
  if (get_option("EWD_UFAQ_Styling_FAQ_Heading_Type") == "") {update_option("EWD_UFAQ_Styling_FAQ_Heading_Type", "h4");}
45
 
46
+ if (get_option("EWD_UFAQ_Install_Time") == "") {update_option("EWD_UFAQ_Install_Time", time() - 3600*24*4);}
47
+
48
  update_option('EWD_UFAQ_Version', $EWD_UFAQ_Version);
49
  }
50
 
Functions/Process_Ajax.php CHANGED
@@ -139,4 +139,13 @@ function EWD_UFAQ_WC_FAQ_Category() {
139
 
140
  die();
141
  }
142
- add_action('wp_ajax_ewd_ufaq_wc_faq_category','EWD_UFAQ_WC_FAQ_Category');
 
 
 
 
 
 
 
 
 
139
 
140
  die();
141
  }
142
+ add_action('wp_ajax_ewd_ufaq_wc_faq_category','EWD_UFAQ_WC_FAQ_Category');
143
+
144
+ function EWD_UFAQ_Hide_Review_Ask(){
145
+ $Ask_Review_Date = $_POST['Ask_Review_Date'];
146
+
147
+ update_option('EWD_UFAQ_Ask_Review_Date', time()+3600*24*$Ask_Review_Date);
148
+
149
+ die();
150
+ }
151
+ add_action('wp_ajax_ewd_ufaq_hide_review_ask','EWD_UFAQ_Hide_Review_Ask');
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.24
11
  */
12
 
13
  global $ewd_ufaq_message;
@@ -151,18 +151,20 @@ function Add_EWD_UFAQ_FrontEnd_Scripts() {
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
 
@@ -228,6 +230,7 @@ function Set_EWD_UFAQ_Options() {
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");
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.25
11
  */
12
 
13
  global $ewd_ufaq_message;
151
  wp_enqueue_script("jquery-effects-core");
152
  wp_enqueue_script('jquery-ui-autocomplete');
153
 
154
+ $Reveal_Effect = get_option("EWD_UFAQ_Reveal_Effect");
155
+
156
+ if ($Reveal_Effect == "blind") {wp_enqueue_script("jquery-effects-blind");}
157
+ if ($Reveal_Effect == "bounce") {wp_enqueue_script("jquery-effects-bounce");}
158
+ if ($Reveal_Effect == "clip") {wp_enqueue_script("jquery-effects-clip");}
159
+ if ($Reveal_Effect == "drop") {wp_enqueue_script("jquery-effects-drop");}
160
+ if ($Reveal_Effect == "explode") {wp_enqueue_script("jquery-effects-explode");}
161
+ if ($Reveal_Effect == "fade") {wp_enqueue_script("jquery-effects-fade");}
162
+ if ($Reveal_Effect == "fold") {wp_enqueue_script("jquery-effects-fold");}
163
+ if ($Reveal_Effect == "highlight") {wp_enqueue_script("jquery-effects-highlight");}
164
+ if ($Reveal_Effect == "pulsate") {wp_enqueue_script("jquery-effects-pulsate");}
165
  wp_enqueue_script("jquery-effects-scale");
166
+ if ($Reveal_Effect == "shake") {wp_enqueue_script("jquery-effects-shake");}
167
+ if ($Reveal_Effect == "slide") {wp_enqueue_script("jquery-effects-slide");}
168
  wp_enqueue_script("jquery-effects-transfer");
169
  }
170
 
230
  if (get_option("EWD_UFAQ_Install_Flag") == "") {update_option("EWD_UFAQ_Install_Flag", "Yes");}
231
 
232
  if (get_option("EWD_UFAQ_Install_Version") == "") {update_option("EWD_UFAQ_Install_Version", 1.6);}
233
+ if (get_option("EWD_UFAQ_Install_Time") == "") {update_option("EWD_UFAQ_Install_Time", time());}
234
  }
235
 
236
  $UFAQ_Full_Version = get_option("EWD_UFAQ_Full_Version");
PHPExcel/Classes/PHPExcel/Shared/Escher/DggContainer/BstoreContainer.php CHANGED
@@ -1,65 +0,0 @@
1
- <?php
2
- /**
3
- * PHPExcel
4
- *
5
- * Copyright (c) 2006 - 2014 PHPExcel
6
- *
7
- * This library is free software; you can redistribute it and/or
8
- * modify it under the terms of the GNU Lesser General Public
9
- * License as published by the Free Software Foundation; either
10
- * version 2.1 of the License, or (at your option) any later version.
11
- *
12
- * This library is distributed in the hope that it will be useful,
13
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
- * Lesser General Public License for more details.
16
- *
17
- * You should have received a copy of the GNU Lesser General Public
18
- * License along with this library; if not, write to the Free Software
19
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20
- *
21
- * @category PHPExcel
22
- * @package PHPExcel_Shared_Escher
23
- * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
24
- * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
25
- * @version 1.8.0, 2014-03-02
26
- */
27
-
28
- /**
29
- * PHPExcel_Shared_Escher_DggContainer_BstoreContainer
30
- *
31
- * @category PHPExcel
32
- * @package PHPExcel_Shared_Escher
33
- * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
34
- */
35
- class PHPExcel_Shared_Escher_DggContainer_BstoreContainer
36
- {
37
- /**
38
- * BLIP Store Entries. Each of them holds one BLIP (Big Large Image or Picture)
39
- *
40
- * @var array
41
- */
42
- private $_BSECollection = array();
43
-
44
- /**
45
- * Add a BLIP Store Entry
46
- *
47
- * @param PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE $BSE
48
- */
49
- public function addBSE($BSE)
50
- {
51
- $this->_BSECollection[] = $BSE;
52
- $BSE->setParent($this);
53
- }
54
-
55
- /**
56
- * Get the collection of BLIP Store Entries
57
- *
58
- * @return PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE[]
59
- */
60
- public function getBSECollection()
61
- {
62
- return $this->_BSECollection;
63
- }
64
-
65
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
PHPExcel/Classes/PHPExcel/locale/cs/config CHANGED
@@ -1,6 +1,6 @@
1
  ##
2
  ## PHPExcel
3
- ##
4
  ## Copyright (c) 2006 - 2013 PHPExcel
5
  ##
6
  ## This library is free software; you can redistribute it and/or
1
  ##
2
  ## PHPExcel
3
+ ##
4
  ## Copyright (c) 2006 - 2013 PHPExcel
5
  ##
6
  ## This library is free software; you can redistribute it and/or
PHPExcel/Classes/PHPExcel/locale/cs/functions CHANGED
@@ -1,6 +1,6 @@
1
  ##
2
  ## PHPExcel
3
- ##
4
  ## Copyright (c) 2006 - 2013 PHPExcel
5
  ##
6
  ## This library is free software; you can redistribute it and/or
1
  ##
2
  ## PHPExcel
3
+ ##
4
  ## Copyright (c) 2006 - 2013 PHPExcel
5
  ##
6
  ## This library is free software; you can redistribute it and/or
PHPExcel/Classes/PHPExcel/locale/da/config CHANGED
@@ -1,6 +1,6 @@
1
  ##
2
  ## PHPExcel
3
- ##
4
  ## Copyright (c) 2006 - 2013 PHPExcel
5
  ##
6
  ## This library is free software; you can redistribute it and/or
@@ -37,7 +37,7 @@ currencySymbol = kr
37
 
38
 
39
  ##
40
- ## Excel Error Codes (For future use)
41
  ##
42
  NULL = #NUL!
43
  DIV0 = #DIVISION/0!
1
  ##
2
  ## PHPExcel
3
+ ##
4
  ## Copyright (c) 2006 - 2013 PHPExcel
5
  ##
6
  ## This library is free software; you can redistribute it and/or
37
 
38
 
39
  ##
40
+ ## Excel Error Codes (For future use)
41
  ##
42
  NULL = #NUL!
43
  DIV0 = #DIVISION/0!
PHPExcel/Classes/PHPExcel/locale/da/functions CHANGED
@@ -1,6 +1,6 @@
1
  ##
2
  ## PHPExcel
3
- ##
4
  ## Copyright (c) 2006 - 2013 PHPExcel
5
  ##
6
  ## This library is free software; you can redistribute it and/or
1
  ##
2
  ## PHPExcel
3
+ ##
4
  ## Copyright (c) 2006 - 2013 PHPExcel
5
  ##
6
  ## This library is free software; you can redistribute it and/or
PHPExcel/Classes/PHPExcel/locale/de/config CHANGED
@@ -1,6 +1,6 @@
1
  ##
2
  ## PHPExcel
3
- ##
4
  ## Copyright (c) 2006 - 2013 PHPExcel
5
  ##
6
  ## This library is free software; you can redistribute it and/or
@@ -36,7 +36,7 @@ currencySymbol = €
36
 
37
 
38
  ##
39
- ## Excel Error Codes (For future use)
40
  ##
41
  NULL = #NULL!
42
  DIV0 = #DIV/0!
1
  ##
2
  ## PHPExcel
3
+ ##
4
  ## Copyright (c) 2006 - 2013 PHPExcel
5
  ##
6
  ## This library is free software; you can redistribute it and/or
36
 
37
 
38
  ##
39
+ ## Excel Error Codes (For future use)
40
  ##
41
  NULL = #NULL!
42
  DIV0 = #DIV/0!
PHPExcel/Classes/PHPExcel/locale/de/functions CHANGED
@@ -1,6 +1,6 @@
1
  ##
2
  ## PHPExcel
3
- ##
4
  ## Copyright (c) 2006 - 2013 PHPExcel
5
  ##
6
  ## This library is free software; you can redistribute it and/or
1
  ##
2
  ## PHPExcel
3
+ ##
4
  ## Copyright (c) 2006 - 2013 PHPExcel
5
  ##
6
  ## This library is free software; you can redistribute it and/or
PHPExcel/Classes/PHPExcel/locale/en/uk/config CHANGED
@@ -1,6 +1,6 @@
1
  ##
2
  ## PHPExcel
3
- ##
4
  ## Copyright (c) 2006 - 2013 PHPExcel
5
  ##
6
  ## This library is free software; you can redistribute it and/or
1
  ##
2
  ## PHPExcel
3
+ ##
4
  ## Copyright (c) 2006 - 2013 PHPExcel
5
  ##
6
  ## This library is free software; you can redistribute it and/or
PHPExcel/Classes/PHPExcel/locale/es/config CHANGED
@@ -1,6 +1,6 @@
1
  ##
2
  ## PHPExcel
3
- ##
4
  ## Copyright (c) 2006 - 2013 PHPExcel
5
  ##
6
  ## This library is free software; you can redistribute it and/or
@@ -36,7 +36,7 @@ currencySymbol = $ ## I'm surprised that the Excel Documentation suggests $ rath
36
 
37
 
38
  ##
39
- ## Excel Error Codes (For future use)
40
  ##
41
  NULL = #¡NULO!
42
  DIV0 = #¡DIV/0!
1
  ##
2
  ## PHPExcel
3
+ ##
4
  ## Copyright (c) 2006 - 2013 PHPExcel
5
  ##
6
  ## This library is free software; you can redistribute it and/or
36
 
37
 
38
  ##
39
+ ## Excel Error Codes (For future use)
40
  ##
41
  NULL = #¡NULO!
42
  DIV0 = #¡DIV/0!
PHPExcel/Classes/PHPExcel/locale/es/functions CHANGED
@@ -1,6 +1,6 @@
1
  ##
2
  ## PHPExcel
3
- ##
4
  ## Copyright (c) 2006 - 2013 PHPExcel
5
  ##
6
  ## This library is free software; you can redistribute it and/or
1
  ##
2
  ## PHPExcel
3
+ ##
4
  ## Copyright (c) 2006 - 2013 PHPExcel
5
  ##
6
  ## This library is free software; you can redistribute it and/or
PHPExcel/Classes/PHPExcel/locale/fi/config CHANGED
@@ -1,6 +1,6 @@
1
  ##
2
  ## PHPExcel
3
- ##
4
  ## Copyright (c) 2006 - 2013 PHPExcel
5
  ##
6
  ## This library is free software; you can redistribute it and/or
@@ -36,7 +36,7 @@ currencySymbol = $ # Symbol not known, should it be a € (Euro)?
36
 
37
 
38
  ##
39
- ## Excel Error Codes (For future use)
40
  ##
41
  NULL = #TYHJÄ!
42
  DIV0 = #JAKO/0!
1
  ##
2
  ## PHPExcel
3
+ ##
4
  ## Copyright (c) 2006 - 2013 PHPExcel
5
  ##
6
  ## This library is free software; you can redistribute it and/or
36
 
37
 
38
  ##
39
+ ## Excel Error Codes (For future use)
40
  ##
41
  NULL = #TYHJÄ!
42
  DIV0 = #JAKO/0!
PHPExcel/Classes/PHPExcel/locale/fi/functions CHANGED
@@ -1,6 +1,6 @@
1
  ##
2
  ## PHPExcel
3
- ##
4
  ## Copyright (c) 2006 - 2013 PHPExcel
5
  ##
6
  ## This library is free software; you can redistribute it and/or
1
  ##
2
  ## PHPExcel
3
+ ##
4
  ## Copyright (c) 2006 - 2013 PHPExcel
5
  ##
6
  ## This library is free software; you can redistribute it and/or
PHPExcel/Classes/PHPExcel/locale/fr/config CHANGED
@@ -1,6 +1,6 @@
1
  ##
2
  ## PHPExcel
3
- ##
4
  ## Copyright (c) 2006 - 2013 PHPExcel
5
  ##
6
  ## This library is free software; you can redistribute it and/or
@@ -36,7 +36,7 @@ currencySymbol = €
36
 
37
 
38
  ##
39
- ## Excel Error Codes (For future use)
40
  ##
41
  NULL = #NUL!
42
  DIV0 = #DIV/0!
1
  ##
2
  ## PHPExcel
3
+ ##
4
  ## Copyright (c) 2006 - 2013 PHPExcel
5
  ##
6
  ## This library is free software; you can redistribute it and/or
36
 
37
 
38
  ##
39
+ ## Excel Error Codes (For future use)
40
  ##
41
  NULL = #NUL!
42
  DIV0 = #DIV/0!
PHPExcel/Classes/PHPExcel/locale/fr/functions CHANGED
@@ -1,6 +1,6 @@
1
  ##
2
  ## PHPExcel
3
- ##
4
  ## Copyright (c) 2006 - 2013 PHPExcel
5
  ##
6
  ## This library is free software; you can redistribute it and/or
1
  ##
2
  ## PHPExcel
3
+ ##
4
  ## Copyright (c) 2006 - 2013 PHPExcel
5
  ##
6
  ## This library is free software; you can redistribute it and/or
PHPExcel/Classes/PHPExcel/locale/hu/config CHANGED
@@ -1,6 +1,6 @@
1
  ##
2
  ## PHPExcel
3
- ##
4
  ## Copyright (c) 2006 - 2013 PHPExcel
5
  ##
6
  ## This library is free software; you can redistribute it and/or
1
  ##
2
  ## PHPExcel
3
+ ##
4
  ## Copyright (c) 2006 - 2013 PHPExcel
5
  ##
6
  ## This library is free software; you can redistribute it and/or
PHPExcel/Classes/PHPExcel/locale/hu/functions CHANGED
@@ -1,6 +1,6 @@
1
  ##
2
  ## PHPExcel
3
- ##
4
  ## Copyright (c) 2006 - 2013 PHPExcel
5
  ##
6
  ## This library is free software; you can redistribute it and/or
1
  ##
2
  ## PHPExcel
3
+ ##
4
  ## Copyright (c) 2006 - 2013 PHPExcel
5
  ##
6
  ## This library is free software; you can redistribute it and/or
PHPExcel/Classes/PHPExcel/locale/it/config CHANGED
@@ -1,6 +1,6 @@
1
  ##
2
  ## PHPExcel
3
- ##
4
  ## Copyright (c) 2006 - 2013 PHPExcel
5
  ##
6
  ## This library is free software; you can redistribute it and/or
@@ -36,7 +36,7 @@ currencySymbol = €
36
 
37
 
38
  ##
39
- ## Excel Error Codes (For future use)
40
  ##
41
  NULL = #NULLO!
42
  DIV0 = #DIV/0!
1
  ##
2
  ## PHPExcel
3
+ ##
4
  ## Copyright (c) 2006 - 2013 PHPExcel
5
  ##
6
  ## This library is free software; you can redistribute it and/or
36
 
37
 
38
  ##
39
+ ## Excel Error Codes (For future use)
40
  ##
41
  NULL = #NULLO!
42
  DIV0 = #DIV/0!
PHPExcel/Classes/PHPExcel/locale/it/functions CHANGED
@@ -1,6 +1,6 @@
1
  ##
2
  ## PHPExcel
3
- ##
4
  ## Copyright (c) 2006 - 2013 PHPExcel
5
  ##
6
  ## This library is free software; you can redistribute it and/or
1
  ##
2
  ## PHPExcel
3
+ ##
4
  ## Copyright (c) 2006 - 2013 PHPExcel
5
  ##
6
  ## This library is free software; you can redistribute it and/or
PHPExcel/Classes/PHPExcel/locale/nl/config CHANGED
@@ -1,6 +1,6 @@
1
  ##
2
  ## PHPExcel
3
- ##
4
  ## Copyright (c) 2006 - 2013 PHPExcel
5
  ##
6
  ## This library is free software; you can redistribute it and/or
@@ -36,7 +36,7 @@ currencySymbol = €
36
 
37
 
38
  ##
39
- ## Excel Error Codes (For future use)
40
  ##
41
  NULL = #LEEG!
42
  DIV0 = #DEEL/0!
1
  ##
2
  ## PHPExcel
3
+ ##
4
  ## Copyright (c) 2006 - 2013 PHPExcel
5
  ##
6
  ## This library is free software; you can redistribute it and/or
36
 
37
 
38
  ##
39
+ ## Excel Error Codes (For future use)
40
  ##
41
  NULL = #LEEG!
42
  DIV0 = #DEEL/0!
PHPExcel/Classes/PHPExcel/locale/nl/functions CHANGED
@@ -1,6 +1,6 @@
1
  ##
2
  ## PHPExcel
3
- ##
4
  ## Copyright (c) 2006 - 2013 PHPExcel
5
  ##
6
  ## This library is free software; you can redistribute it and/or
1
  ##
2
  ## PHPExcel
3
+ ##
4
  ## Copyright (c) 2006 - 2013 PHPExcel
5
  ##
6
  ## This library is free software; you can redistribute it and/or
PHPExcel/Classes/PHPExcel/locale/no/config CHANGED
@@ -1,6 +1,6 @@
1
  ##
2
  ## PHPExcel
3
- ##
4
  ## Copyright (c) 2006 - 2013 PHPExcel
5
  ##
6
  ## This library is free software; you can redistribute it and/or
@@ -36,7 +36,7 @@ currencySymbol = kr
36
 
37
 
38
  ##
39
- ## Excel Error Codes (For future use)
40
  ##
41
  NULL = #NULL!
42
  DIV0 = #DIV/0!
1
  ##
2
  ## PHPExcel
3
+ ##
4
  ## Copyright (c) 2006 - 2013 PHPExcel
5
  ##
6
  ## This library is free software; you can redistribute it and/or
36
 
37
 
38
  ##
39
+ ## Excel Error Codes (For future use)
40
  ##
41
  NULL = #NULL!
42
  DIV0 = #DIV/0!
PHPExcel/Classes/PHPExcel/locale/no/functions CHANGED
@@ -1,6 +1,6 @@
1
  ##
2
  ## PHPExcel
3
- ##
4
  ## Copyright (c) 2006 - 2013 PHPExcel
5
  ##
6
  ## This library is free software; you can redistribute it and/or
1
  ##
2
  ## PHPExcel
3
+ ##
4
  ## Copyright (c) 2006 - 2013 PHPExcel
5
  ##
6
  ## This library is free software; you can redistribute it and/or
PHPExcel/Classes/PHPExcel/locale/pl/config CHANGED
@@ -1,6 +1,6 @@
1
  ##
2
  ## PHPExcel
3
- ##
4
  ## Copyright (c) 2006 - 2013 PHPExcel
5
  ##
6
  ## This library is free software; you can redistribute it and/or
@@ -36,7 +36,7 @@ currencySymbol = zł
36
 
37
 
38
  ##
39
- ## Excel Error Codes (For future use)
40
  ##
41
  NULL = #ZERO!
42
  DIV0 = #DZIEL/0!
1
  ##
2
  ## PHPExcel
3
+ ##
4
  ## Copyright (c) 2006 - 2013 PHPExcel
5
  ##
6
  ## This library is free software; you can redistribute it and/or
36
 
37
 
38
  ##
39
+ ## Excel Error Codes (For future use)
40
  ##
41
  NULL = #ZERO!
42
  DIV0 = #DZIEL/0!
PHPExcel/Classes/PHPExcel/locale/pl/functions CHANGED
@@ -1,6 +1,6 @@
1
  ##
2
  ## PHPExcel
3
- ##
4
  ## Copyright (c) 2006 - 2013 PHPExcel
5
  ##
6
  ## This library is free software; you can redistribute it and/or
1
  ##
2
  ## PHPExcel
3
+ ##
4
  ## Copyright (c) 2006 - 2013 PHPExcel
5
  ##
6
  ## This library is free software; you can redistribute it and/or
PHPExcel/Classes/PHPExcel/locale/pt/br/config CHANGED
@@ -1,6 +1,6 @@
1
  ##
2
  ## PHPExcel
3
- ##
4
  ## Copyright (c) 2006 - 2013 PHPExcel
5
  ##
6
  ## This library is free software; you can redistribute it and/or
@@ -36,7 +36,7 @@ currencySymbol = R$
36
 
37
 
38
  ##
39
- ## Excel Error Codes (For future use)
40
  ##
41
  NULL = #NULO!
42
  DIV0 = #DIV/0!
1
  ##
2
  ## PHPExcel
3
+ ##
4
  ## Copyright (c) 2006 - 2013 PHPExcel
5
  ##
6
  ## This library is free software; you can redistribute it and/or
36
 
37
 
38
  ##
39
+ ## Excel Error Codes (For future use)
40
  ##
41
  NULL = #NULO!
42
  DIV0 = #DIV/0!
PHPExcel/Classes/PHPExcel/locale/pt/config CHANGED
@@ -1,6 +1,6 @@
1
  ##
2
  ## PHPExcel
3
- ##
4
  ## Copyright (c) 2006 - 2013 PHPExcel
5
  ##
6
  ## This library is free software; you can redistribute it and/or
@@ -36,7 +36,7 @@ currencySymbol = €
36
 
37
 
38
  ##
39
- ## Excel Error Codes (For future use)
40
  ##
41
  NULL = #NULO!
42
  DIV0 = #DIV/0!
1
  ##
2
  ## PHPExcel
3
+ ##
4
  ## Copyright (c) 2006 - 2013 PHPExcel
5
  ##
6
  ## This library is free software; you can redistribute it and/or
36
 
37
 
38
  ##
39
+ ## Excel Error Codes (For future use)
40
  ##
41
  NULL = #NULO!
42
  DIV0 = #DIV/0!
PHPExcel/Classes/PHPExcel/locale/ru/config CHANGED
@@ -1,6 +1,6 @@
1
  ##
2
  ## PHPExcel
3
- ##
4
  ## Copyright (c) 2006 - 2013 PHPExcel
5
  ##
6
  ## This library is free software; you can redistribute it and/or
@@ -36,7 +36,7 @@ currencySymbol = р
36
 
37
 
38
  ##
39
- ## Excel Error Codes (For future use)
40
  ##
41
  NULL = #ПУСТО!
42
  DIV0 = #ДЕЛ/0!
1
  ##
2
  ## PHPExcel
3
+ ##
4
  ## Copyright (c) 2006 - 2013 PHPExcel
5
  ##
6
  ## This library is free software; you can redistribute it and/or
36
 
37
 
38
  ##
39
+ ## Excel Error Codes (For future use)
40
  ##
41
  NULL = #ПУСТО!
42
  DIV0 = #ДЕЛ/0!
PHPExcel/Classes/PHPExcel/locale/ru/functions CHANGED
@@ -1,6 +1,6 @@
1
  ##
2
  ## PHPExcel
3
- ##
4
  ## Copyright (c) 2006 - 2013 PHPExcel
5
  ##
6
  ## This library is free software; you can redistribute it and/or
1
  ##
2
  ## PHPExcel
3
+ ##
4
  ## Copyright (c) 2006 - 2013 PHPExcel
5
  ##
6
  ## This library is free software; you can redistribute it and/or
PHPExcel/Classes/PHPExcel/locale/sv/config CHANGED
@@ -1,6 +1,6 @@
1
  ##
2
  ## PHPExcel
3
- ##
4
  ## Copyright (c) 2006 - 2013 PHPExcel
5
  ##
6
  ## This library is free software; you can redistribute it and/or
@@ -36,7 +36,7 @@ currencySymbol = kr
36
 
37
 
38
  ##
39
- ## Excel Error Codes (For future use)
40
  ##
41
  NULL = #Skärning!
42
  DIV0 = #Division/0!
1
  ##
2
  ## PHPExcel
3
+ ##
4
  ## Copyright (c) 2006 - 2013 PHPExcel
5
  ##
6
  ## This library is free software; you can redistribute it and/or
36
 
37
 
38
  ##
39
+ ## Excel Error Codes (For future use)
40
  ##
41
  NULL = #Skärning!
42
  DIV0 = #Division/0!
PHPExcel/Classes/PHPExcel/locale/tr/config CHANGED
@@ -1,6 +1,6 @@
1
  ##
2
  ## PHPExcel
3
- ##
4
  ## Copyright (c) 2006 - 2013 PHPExcel
5
  ##
6
  ## This library is free software; you can redistribute it and/or
@@ -36,7 +36,7 @@ currencySymbol = YTL
36
 
37
 
38
  ##
39
- ## Excel Error Codes (For future use)
40
  ##
41
  NULL = #BOŞ!
42
  DIV0 = #SAYI/0!
1
  ##
2
  ## PHPExcel
3
+ ##
4
  ## Copyright (c) 2006 - 2013 PHPExcel
5
  ##
6
  ## This library is free software; you can redistribute it and/or
36
 
37
 
38
  ##
39
+ ## Excel Error Codes (For future use)
40
  ##
41
  NULL = #BOŞ!
42
  DIV0 = #SAYI/0!
PHPExcel/Classes/PHPExcel/locale/tr/functions CHANGED
@@ -1,6 +1,6 @@
1
  ##
2
  ## PHPExcel
3
- ##
4
  ## Copyright (c) 2006 - 2013 PHPExcel
5
  ##
6
  ## This library is free software; you can redistribute it and/or
1
  ##
2
  ## PHPExcel
3
+ ##
4
  ## Copyright (c) 2006 - 2013 PHPExcel
5
  ##
6
  ## This library is free software; you can redistribute it and/or
Shortcodes/DisplayFAQs.php CHANGED
@@ -101,6 +101,7 @@ function Display_FAQs($atts) {
101
 
102
  if ($post__in != "") {
103
  $post_id_array = json_decode(str_replace(array("&lsqb;", "&rsqb;"), array("[", "]"), $post__in));
 
104
  }
105
  elseif ($post__in_string != "") {$post_id_array = explode(",", $post__in_string);}
106
  else {$post_id_array = "";}
@@ -224,7 +225,7 @@ function Display_FAQs($atts) {
224
  if (isset($exclude_category_filter_array)) {$tax_query_array[] = $exclude_category_filter_array;}
225
  if (isset($include_tag_filter_array)) {$tax_query_array[] = $include_tag_filter_array;}
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',
@@ -263,6 +264,10 @@ function Display_FAQs($atts) {
263
  $Category_Terms = wp_get_post_terms($faq->ID, 'ufaq-category');
264
  $Tag_Terms = wp_get_post_terms($faq->ID, 'ufaq-tag');
265
 
 
 
 
 
266
  if ($Permalink_Type == "IndividualPage") {
267
  $FAQ_Permalink = get_permalink($faq->ID);
268
  }
101
 
102
  if ($post__in != "") {
103
  $post_id_array = json_decode(str_replace(array("&lsqb;", "&rsqb;"), array("[", "]"), $post__in));
104
+ $post_id_array[] = 0;
105
  }
106
  elseif ($post__in_string != "") {$post_id_array = explode(",", $post__in_string);}
107
  else {$post_id_array = "";}
225
  if (isset($exclude_category_filter_array)) {$tax_query_array[] = $exclude_category_filter_array;}
226
  if (isset($include_tag_filter_array)) {$tax_query_array[] = $include_tag_filter_array;}
227
  if (isset($category_array)) {$tax_query_array[] = $category_array;}
228
+
229
  $params = array('posts_per_page' => $post_count,
230
  'post_status' => 'publish',
231
  'post_type' => 'ufaq',
264
  $Category_Terms = wp_get_post_terms($faq->ID, 'ufaq-category');
265
  $Tag_Terms = wp_get_post_terms($faq->ID, 'ufaq-tag');
266
 
267
+ if (is_array($post_id_array)) {
268
+ if (($key = array_search($faq->ID, $post_id_array)) !== false) {unset($post_id_array[$key]);}
269
+ }
270
+
271
  if ($Permalink_Type == "IndividualPage") {
272
  $FAQ_Permalink = get_permalink($faq->ID);
273
  }
css/Admin.css CHANGED
@@ -827,3 +827,107 @@ SHORTCODE REMINDER IN BASIC AREA OF OPTIONS TAB
827
  height: 36px;
828
  }
829
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
827
  height: 36px;
828
  }
829
  }
830
+
831
+
832
+ /***********************************************************
833
+ NEW ASK FOR REVIEW POPUP
834
+ ***********************************************************/
835
+ #ewd-ufaq-review-ask-overlay {
836
+ position: fixed;
837
+ top: 0;
838
+ left: 0;
839
+ width: 100%;
840
+ height: 100%;
841
+ background: #000;
842
+ background: rgba(0,0,0,.825);
843
+ z-index: 1001;
844
+ }
845
+ .ewd-ufaq-review-ask-popup {
846
+ position: absolute;
847
+ top: 48px;
848
+ left: 25%;
849
+ width: 50%;
850
+ height: auto;
851
+ /*padding: 16px;*/
852
+ background-color: white;
853
+ z-index: 1002;
854
+ overflow: auto;
855
+ }
856
+ @media screen and (max-width: 900px) {
857
+ .ewd-ufaq-review-ask-popup {
858
+ width: 90%;
859
+ left: 5%;
860
+ }
861
+ }
862
+ .ewd-ufaq-review-ask-popup p, .ewd-ufaq-review-ask-popup a {
863
+ font-size: 15px;
864
+ }
865
+ .ewd-ufaq-review-ask-popup p:first-of-type {
866
+ margin-top: 0;
867
+ }
868
+ .ewd-ufaq-review-ask-title {
869
+ position: relative;
870
+ float: left;
871
+ width: calc(100% - 32px);
872
+ padding: 16px;
873
+ background: #9D64BC;
874
+ color: #fff;
875
+ font-size: 20px;
876
+ }
877
+ .ewd-ufaq-review-ask-content {
878
+ position: relative;
879
+ float: left;
880
+ width: calc(100% - 74px);
881
+ margin: 16px 37px 16px 16px;
882
+ border-left: 5px solid #9d64bc;
883
+ padding-left: 16px;
884
+ }
885
+ .ewd-ufaq-review-ask-content-link {
886
+ background: #262262;
887
+ color: #fff;
888
+ position: relative;
889
+ float: left;
890
+ width: 160px;
891
+ padding: 10px 0;
892
+ text-align: center;
893
+ text-decoration: none;
894
+ }
895
+ .ewd-ufaq-review-ask-content-link:hover {
896
+ background: #9D64BC;
897
+ color: #fff;
898
+ }
899
+ .ewd-ufaq-review-ask-footer-links {
900
+ position: relative;
901
+ float: left;
902
+ width: calc(100% - 74px);
903
+ margin: 18px 37px 12px;
904
+ }
905
+ .ewd-ufaq-hide-review-ask {
906
+ position: relative;
907
+ float: left;
908
+ width: 160px;
909
+ padding: 4px 0;
910
+ margin-bottom: 12px;
911
+ text-align: center;
912
+ color: #fff;
913
+ cursor: pointer;
914
+ }
915
+ #ewd-ufaq-hide-review-ask-week {
916
+ background: transparent;
917
+ border: 2px solid #c6ab55;
918
+ color: #c6ab55;
919
+ margin-right: 16px;
920
+ }
921
+ #ewd-ufaq-hide-review-ask-week:hover {
922
+ background: #c6ab55;
923
+ color: #fff;
924
+ }
925
+ #ewd-ufaq-hide-review-ask-never {
926
+ background: transparent;
927
+ border: 2px solid #c6ab55;
928
+ color: #c6ab55;
929
+ }
930
+ #ewd-ufaq-hide-review-ask-never:hover {
931
+ background: #c6ab55;
932
+ color: #fff;
933
+ }
html/DashboardPage.php CHANGED
@@ -6,17 +6,12 @@
6
  $Slug_Base = get_option("EWD_UFAQ_Slug_Base");
7
 
8
  //start review box
9
- if(get_option('EWD_UFAQ_Hide_Dash_Review_Ask')){
10
- $hideReview = get_option('EWD_UFAQ_Hide_Dash_Review_Ask');
11
- }
12
- else {
13
- add_option('EWD_UFAQ_Hide_Dash_Review_Ask', 'No');
14
- }
15
- $hideReviewBox = $_POST["hide_ufaq_review_box_hidden"];
16
- if($hideReviewBox == 'Yes'){
17
- update_option('EWD_UFAQ_Hide_Dash_Review_Ask', 'Yes');
18
- header('Location: admin.php?page=EWD-UFAQ-Options');
19
- }
20
  //end review box
21
  ?>
22
 
@@ -247,12 +242,12 @@ if (get_option("EWD_UFAQ_Update_Flag") == "Yes" or get_option("EWD_UFAQ_Install_
247
  </div>
248
  </div>
249
 
250
- <?php if($hideReview != 'Yes'){ ?>
251
  <div id='ewd-ufaq-dashboard-leave-review' class='ewd-ufaq-leave-review postbox ewd-ufaq-postbox-collapsible'>
252
  <h3 class='hndle ewd-ufaq-dashboard-h3'>Leave a Review <span></span></h3>
253
  <div class='ewd-dashboard-content'>
254
  <div class="ewd-dashboard-leave-review-text">
255
- If you enjoy this plugin and have a minute, please consider leaving a 5-star review. Thank you!
256
  </div>
257
  <a href="https://wordpress.org/support/plugin/ultimate-faqs/reviews/" class="ewd-dashboard-leave-review-link" target="_blank">Leave a Review!</a>
258
  <div class="clear"></div>
@@ -265,6 +260,23 @@ if (get_option("EWD_UFAQ_Update_Flag") == "Yes" or get_option("EWD_UFAQ_Install_
265
  <div class="clear"></div>
266
  <?php } ?>
267
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
268
  <!-- END MIDDLE BOX -->
269
 
270
  <!-- FOOTER BOX -->
6
  $Slug_Base = get_option("EWD_UFAQ_Slug_Base");
7
 
8
  //start review box
9
+ if (isset($_POST['hide_ufaq_review_box_hidden'])) {update_option('EWD_UFAQ_Hide_Dash_Review_Ask', $_POST['hide_ufaq_review_box_hidden']);}
10
+ $hideReview = get_option('EWD_UFAQ_Hide_Dash_Review_Ask');
11
+ $Ask_Review_Date = get_option('EWD_UFAQ_Ask_Review_Date');
12
+ if ($Ask_Review_Date == "") {$Ask_Review_Date = time() - 3600*24;}
13
+
14
+ $Install_Time = get_option("EWD_UFAQ_Install_Time");
 
 
 
 
 
15
  //end review box
16
  ?>
17
 
242
  </div>
243
  </div>
244
 
245
+ <?php if($hideReview != 'Yes' and $Ask_Review_Date < time()){ ?>
246
  <div id='ewd-ufaq-dashboard-leave-review' class='ewd-ufaq-leave-review postbox ewd-ufaq-postbox-collapsible'>
247
  <h3 class='hndle ewd-ufaq-dashboard-h3'>Leave a Review <span></span></h3>
248
  <div class='ewd-dashboard-content'>
249
  <div class="ewd-dashboard-leave-review-text">
250
+ If you enjoy this plugin and have a minute, please consider leaving a 5-star review. Thank you in advance!
251
  </div>
252
  <a href="https://wordpress.org/support/plugin/ultimate-faqs/reviews/" class="ewd-dashboard-leave-review-link" target="_blank">Leave a Review!</a>
253
  <div class="clear"></div>
260
  <div class="clear"></div>
261
  <?php } ?>
262
 
263
+ <?php if ($Ask_Review_Date < time() and $Install_Time > time() + 3600*24*4) { ?>
264
+ <div id='ewd-ufaq-review-ask-overlay'></div>
265
+ <div class='ewd-ufaq-review-ask-popup'>
266
+ <div class='ewd-ufaq-review-ask-title'><?php _e('Thank You!', 'EWD_UFAQ'); ?></div>
267
+ <div class='ewd-ufaq-review-ask-content'>
268
+ <p><?php _e('We wanted to thank the users of our plugins for all of their great reviews recently.', 'EWD_UFAQ'); ?></p>
269
+ <p><?php _e('Your positive feedback and constructive suggestions on how to improve our plugins make coming in to work every day worth it for us.', 'EWD_UFAQ'); ?></p>
270
+ <p><strong><?php _e("Haven't had a chance to leave a review yet? You can do so at:", 'EWD_UFAQ'); ?></strong></p>
271
+ <a href='https://wordpress.org/support/plugin/ultimate-faqs/reviews/' target="_blank" class='ewd-ufaq-review-ask-content-link'>Leave a Review!</a>
272
+ </div>
273
+ <div class='ewd-ufaq-review-ask-footer-links'>
274
+ <div class='ewd-ufaq-hide-review-ask' id="ewd-ufaq-hide-review-ask-week" data-askreviewdelay='7'><?php _e('Ask me in a week', 'EWD_UFAQ'); ?></div>
275
+ <div class='ewd-ufaq-hide-review-ask' id="ewd-ufaq-hide-review-ask-never" data-askreviewdelay='2000'><?php _e('Never ask me again', 'EWD_UFAQ'); ?></div>
276
+ </div>
277
+ </div>
278
+ <?php } ?>
279
+
280
  <!-- END MIDDLE BOX -->
281
 
282
  <!-- FOOTER BOX -->
js/Admin.js CHANGED
@@ -96,6 +96,20 @@ function SetCustomFieldDeleteHandlers() {
96
  });
97
  }
98
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
99
  jQuery(document).ready(function() {
100
  jQuery('.ewd-ufaq-spectrum').spectrum({
101
  showInput: true,
96
  });
97
  }
98
 
99
+ jQuery(document).ready(function() {
100
+ jQuery('.ewd-ufaq-hide-review-ask').on('click', function() {
101
+ var Ask_Review_Date = jQuery(this).data('askreviewdelay');
102
+
103
+ jQuery('.ewd-ufaq-review-ask-popup, #ewd-ufaq-review-ask-overlay').addClass('ufaq-hidden');
104
+
105
+ var data = 'Ask_Review_Date=' + Ask_Review_Date + '&action=ewd_ufaq_hide_review_ask';
106
+ jQuery.post(ajaxurl, data, function() {});
107
+ });
108
+ jQuery('#ewd-ufaq-review-ask-overlay').on('click', function() {
109
+ jQuery('.ewd-ufaq-review-ask-popup, #ewd-ufaq-review-ask-overlay').addClass('ufaq-hidden');
110
+ })
111
+ });
112
+
113
  jQuery(document).ready(function() {
114
  jQuery('.ewd-ufaq-spectrum').spectrum({
115
  showInput: true,
readme.txt CHANGED
@@ -247,6 +247,10 @@ Video 3 - FAQs Ordering
247
  13. View of FAQ custom fields in the admin
248
 
249
  == Changelog ==
 
 
 
 
250
  = 1.5.24 =
251
  - Fixed a missing slash on the WooCommerce FAQs tab in the admin area
252
 
247
  13. View of FAQ custom fields in the admin
248
 
249
  == Changelog ==
250
+ = 1.5.25 =
251
+ - Made a number of changes to speed up page loads for longer FAQs
252
+ - Fixed an issue with the "Random FAQ" widget where an FAQ would be displayed multiple times if it was in multiple categories
253
+
254
  = 1.5.24 =
255
  - Fixed a missing slash on the WooCommerce FAQs tab in the admin area
256