Ultimate FAQ - Version 1.6.18

Version Description

  • We're doing a big FAQ admin area styling update, first up is the dashboard!
  • Clarified the 'file' field type restriction for the submit FAQ shortcode
Download this release

Release Info

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

Code changes from version 1.6.17 to 1.6.18

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: ultimate-faqs
10
- Version: 1.6.17
11
  */
12
 
13
  global $ewd_ufaq_message;
@@ -78,6 +78,7 @@ function EWD_UFAQ_Add_Header_Bar($Called = "No") {
78
 
79
  <div class="EWD_UFAQ_Menu">
80
  <h2 class="nav-tab-wrapper">
 
81
  <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", 'ultimate-faqs'); ?></a>
82
  <?php if ($Admin_Approval == "Yes") { ?>
83
  <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", 'ultimate-faqs'); ?></a>
@@ -166,7 +167,7 @@ function EWD_UFAQ_Add_Stylesheet() {
166
  wp_enqueue_style( 'ewd-ufaq-rrssb' );
167
  }
168
 
169
- add_action('activated_plugin','save_ufaq_error');
170
  function save_ufaq_error(){
171
  update_option('plugin_error', ob_get_contents());
172
  file_put_contents("Error.txt", ob_get_contents());
7
  Author URI: http://www.EtoileWebDesign.com/wordpress-plugins/
8
  Terms and Conditions: http://www.etoilewebdesign.com/plugin-terms-and-conditions/
9
  Text Domain: ultimate-faqs
10
+ Version: 1.6.18
11
  */
12
 
13
  global $ewd_ufaq_message;
78
 
79
  <div class="EWD_UFAQ_Menu">
80
  <h2 class="nav-tab-wrapper">
81
+ <a id="ewd-ufaq-dash-mobile-menu-open" href="#" class="MenuTab nav-tab"><?php _e("MENU", 'ultimate-faqs'); ?><span id="ewd-ufaq-dash-mobile-menu-down-caret">&nbsp;&nbsp;&#9660;</span><span id="ewd-ufaq-dash-mobile-menu-up-caret">&nbsp;&nbsp;&#9650;</span></a>
82
  <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", 'ultimate-faqs'); ?></a>
83
  <?php if ($Admin_Approval == "Yes") { ?>
84
  <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", 'ultimate-faqs'); ?></a>
167
  wp_enqueue_style( 'ewd-ufaq-rrssb' );
168
  }
169
 
170
+ //add_action('activated_plugin','save_ufaq_error');
171
  function save_ufaq_error(){
172
  update_option('plugin_error', ob_get_contents());
173
  file_put_contents("Error.txt", ob_get_contents());
css/Admin.css CHANGED
@@ -970,3 +970,996 @@ display: inline-block;
970
  width: 200px;
971
  float: left;
972
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
970
  width: 200px;
971
  float: left;
972
  }
973
+
974
+
975
+
976
+
977
+
978
+ /*
979
+ ==============================================
980
+ NEW DASHBOARD
981
+ ==============================================
982
+ */
983
+
984
+
985
+ /*** WRAP ***/
986
+
987
+ .toplevel_page_EWD-UFAQ-Options #wpcontent {
988
+ padding-left: 0;
989
+ }
990
+ .toplevel_page_EWD-UFAQ-Options .wrap {
991
+ margin: 10px 0 0;
992
+ }
993
+ .toplevel_page_EWD-UFAQ-Options .wrap.ufaq-options-page-tabbed {
994
+ margin: 10px 0 0 32px;
995
+ width: calc(100% - 32px);
996
+ }
997
+ .toplevel_page_EWD-UFAQ-Options .Header {
998
+ padding-left: 20px;
999
+ }
1000
+ #ewd-dashboard-top, .ewd-dashboard-middle, .ewd-dashboard-footer {
1001
+ padding-left: 20px;
1002
+ width: calc(100% - 20px);
1003
+ }
1004
+
1005
+ .ewd-ufaq-import-export-container {
1006
+ position: relative;
1007
+ float: left;
1008
+ margin-left: 32px;
1009
+ width: calc(100% - 32px);
1010
+ }
1011
+
1012
+
1013
+ /*** BANNER ***/
1014
+
1015
+ .ewd-ufaq-dashboard-new-upgrade-banner {
1016
+ position: relative;
1017
+ float: left;
1018
+ width: 100%;
1019
+ height: 256px;
1020
+ background: url(../images/ewd-ufaq-dashboard-banner.png) center no-repeat #1b0f49;
1021
+ }
1022
+ .ewd-ufaq-dashboard-new-upgrade-banner .ewd-ufaq-dashboard-banner-icon {
1023
+ position: absolute;
1024
+ height: 112px;
1025
+ width: 112px;
1026
+ left: 172px;
1027
+ top: 72px;
1028
+ background: url(../images/ewd-ufaq-icon.png) no-repeat;
1029
+ background-size: 112px 112px;
1030
+ }
1031
+ .ewd-ufaq-dashboard-new-upgrade-banner .ewd-ufaq-dashboard-banner-buttons {
1032
+ position: absolute;
1033
+ height: 112px;
1034
+ width: 192px;
1035
+ right: 128px;
1036
+ top: 84px;
1037
+ }
1038
+ .ewd-ufaq-dashboard-new-upgrade-button {
1039
+ position: relative;
1040
+ float: right;
1041
+ width: 188px;
1042
+ border: 2px solid #0acbaa;
1043
+ background-color: #0acbaa;
1044
+ color: #fff;
1045
+ padding: 6px 0;
1046
+ font-size: 12px;
1047
+ text-decoration: none;
1048
+ text-align: center;
1049
+ margin-bottom: 20px;
1050
+ font-weight: bold;
1051
+ border-radius: 2px;
1052
+ }
1053
+ .ewd-ufaq-dashboard-new-upgrade-button:hover {
1054
+ background-color: #1CE6C3;
1055
+ border-color: #1CE6C3;
1056
+ color: #fff;
1057
+ }
1058
+ .ewd-ufaq-dashboard-new-upgrade-button.ewd-ufaq-dashboard-new-trial-button {
1059
+ background-color: transparent;
1060
+ color: #0acbaa;
1061
+ font-size: 11px;
1062
+ }
1063
+ .ewd-ufaq-dashboard-new-upgrade-button.ewd-ufaq-dashboard-new-trial-button:hover {
1064
+ background-color: #0acbaa;
1065
+ border-color: #0acbaa;
1066
+ color: #fff;
1067
+ }
1068
+ .ewd-ufaq-dashboard-new-upgrade-banner .ewd-ufaq-dashboard-banner-text {
1069
+ position: absolute;
1070
+ width: calc(100% - 680px);
1071
+ height: 112px;
1072
+ top: 76px;
1073
+ left: 320px;
1074
+ color: #fff;
1075
+ }
1076
+ .ewd-ufaq-dashboard-banner-title {
1077
+ position: relative;
1078
+ float: left;
1079
+ width: 100%;
1080
+ font-size: 29px;
1081
+ line-height: 32px;
1082
+ font-weight: bold;
1083
+ }
1084
+ .ewd-ufaq-dashboard-banner-brief {
1085
+ position: relative;
1086
+ float: left;
1087
+ width: 100%;
1088
+ margin-top: 14px;
1089
+ font-size: 14px;
1090
+ }
1091
+
1092
+ @media screen and (min-width: 1700px) {
1093
+ .ewd-ufaq-dashboard-new-upgrade-banner .ewd-ufaq-dashboard-banner-icon {
1094
+ left: 272px;
1095
+ }
1096
+ .ewd-ufaq-dashboard-new-upgrade-banner .ewd-ufaq-dashboard-banner-buttons {
1097
+ right: 228px;
1098
+ }
1099
+ .ewd-ufaq-dashboard-new-upgrade-banner .ewd-ufaq-dashboard-banner-text {
1100
+ width: calc(100% - 880px);
1101
+ left: 420px;
1102
+ }
1103
+ }
1104
+ @media screen and (max-width: 1200px) {
1105
+ .ewd-ufaq-dashboard-new-upgrade-banner .ewd-ufaq-dashboard-banner-icon {
1106
+ left: 54px;
1107
+ }
1108
+ .ewd-ufaq-dashboard-new-upgrade-banner .ewd-ufaq-dashboard-banner-buttons {
1109
+ right: 32px;
1110
+ }
1111
+ .ewd-ufaq-dashboard-new-upgrade-banner .ewd-ufaq-dashboard-banner-text {
1112
+ width: calc(100% - 466px);
1113
+ left: 202px;
1114
+ }
1115
+ }
1116
+ @media screen and (max-width: 800px) {
1117
+ .ewd-ufaq-dashboard-new-upgrade-banner {
1118
+ height: 512px;
1119
+ height: 300px;
1120
+ }
1121
+ .ewd-ufaq-dashboard-new-upgrade-banner .ewd-ufaq-dashboard-banner-icon {
1122
+ left: calc(50% - 56px);
1123
+ top: 48px;
1124
+ display: none;
1125
+ }
1126
+ .ewd-ufaq-dashboard-new-upgrade-banner .ewd-ufaq-dashboard-banner-text {
1127
+ width: 80%;
1128
+ left: 10%;
1129
+ top: 208px;
1130
+ height: 160px;
1131
+ text-align: center;
1132
+ height: 140px;
1133
+ top: 42px;
1134
+ }
1135
+ .ewd-ufaq-dashboard-banner-brief {
1136
+ display: none;
1137
+ }
1138
+ .ewd-ufaq-dashboard-new-upgrade-banner .ewd-ufaq-dashboard-banner-buttons {
1139
+ right: calc(50% - 96px);
1140
+ top: 368px;
1141
+ top: 172px;
1142
+ }
1143
+ }
1144
+
1145
+
1146
+
1147
+ /*** MENU ***/
1148
+
1149
+ .EWD_UFAQ_Menu {
1150
+ background-color: #6026B4;
1151
+ margin-bottom: 16px;
1152
+ }
1153
+ body.post-type-ufaq .EWD_UFAQ_Menu {
1154
+ margin-top: 64px;
1155
+ }
1156
+ .EWD_UFAQ_Menu .nav-tab-wrapper, .wrap .EWD_UFAQ_Menu h2.nav-tab-wrapper {
1157
+ border-bottom: 0 !important;
1158
+ margin: 0;
1159
+ padding-top: 0;
1160
+ padding-bottom: 0;
1161
+ line-height: inherit;
1162
+ }
1163
+ .EWD_UFAQ_Menu .nav-tab {
1164
+ border: none;
1165
+ margin-left: 0;
1166
+ padding: 12px 48px;
1167
+ font-size: 12px;
1168
+ text-transform: uppercase;
1169
+ background: #6026B4;
1170
+ color: #fff;
1171
+ border-right: 1px solid #854DD6;
1172
+ }
1173
+
1174
+ .EWD_UFAQ_Menu .nav-tab:hover {
1175
+ background: #682CBF;
1176
+ }
1177
+ .EWD_UFAQ_Menu .nav-tab-active {
1178
+ background: #874ED9;
1179
+ color: #fff;
1180
+ }
1181
+ .EWD_UFAQ_Menu .nav-tab-active:hover {
1182
+ background: #874ED9;
1183
+ color: #fff;
1184
+ }
1185
+ .EWD_UFAQ_Menu .nav-tab#ewd-ufaq-dash-mobile-menu-open {
1186
+ display: none;
1187
+ }
1188
+
1189
+ @media screen and (max-width: 1440px) {
1190
+ .EWD_UFAQ_Menu .nav-tab {
1191
+ padding: 12px 32px;
1192
+ }
1193
+ }
1194
+ @media screen and (max-width: 1150px) {
1195
+ .EWD_UFAQ_Menu .nav-tab {
1196
+ padding: 12px 18px;
1197
+ }
1198
+ }
1199
+ @media screen and (max-width: 800px) {
1200
+ .EWD_UFAQ_Menu .nav-tab {
1201
+ padding: 12px 0;
1202
+ margin: 0;
1203
+ width: 100%;
1204
+ clear: both;
1205
+ text-align: center;
1206
+ border-right: none;
1207
+ border-bottom: 1px solid #854DD6;
1208
+ }
1209
+ .EWD_UFAQ_Menu .nav-tab:last-of-type {
1210
+ border-bottom: none;
1211
+ }
1212
+ .EWD_UFAQ_Menu .nav-tab {
1213
+ display: none;
1214
+ }
1215
+ .EWD_UFAQ_Menu .nav-tab#ewd-ufaq-dash-mobile-menu-open {
1216
+ display: block;
1217
+ }
1218
+ #ewd-ufaq-dash-mobile-menu-up-caret {
1219
+ display: none;
1220
+ }
1221
+ #ewd-ufaq-dash-mobile-menu-down-caret {
1222
+ display: inline;
1223
+ }
1224
+ }
1225
+
1226
+
1227
+
1228
+ /*** CONTENT ***/
1229
+
1230
+ #ewd-ufaq-dashboard-content-area {
1231
+ position: relative;
1232
+ float: left;
1233
+ width: calc(100% - 162px);
1234
+ margin: 32px 20px 32px 142px;
1235
+ }
1236
+ #ewd-ufaq-dashboard-content-left {
1237
+ position: relative;
1238
+ float: left;
1239
+ width: 74%;
1240
+ }
1241
+ #ewd-ufaq-dashboard-content-right {
1242
+ position: relative;
1243
+ float: right;
1244
+ width: 24%;
1245
+ }
1246
+
1247
+ .ewd-ufaq-dashboard-new-widget-box {
1248
+ position: relative;
1249
+ float: left;
1250
+ background: #fff;
1251
+ box-shadow: -2px 2px 6px #ccc;
1252
+ margin-bottom: 16px;
1253
+ }
1254
+ .ewd-ufaq-dashboard-new-widget-box.ewd-widget-box-full {
1255
+ width: 100%;
1256
+ }
1257
+ .ewd-ufaq-dashboard-new-widget-box.ewd-widget-box-two-thirds {
1258
+ width: 66%;
1259
+ }
1260
+ .ewd-ufaq-dashboard-new-widget-box.ewd-widget-box-one-third {
1261
+ width: 32%;
1262
+ margin-left: 2%;
1263
+ }
1264
+ .ewd-ufaq-dashboard-new-widget-box-top, .ewd-ufaq-dashboard-new-widget-box-bottom {
1265
+ position: relative;
1266
+ float: left;
1267
+ width: calc(100% - 32px);
1268
+ padding: 8px 16px;
1269
+ color: #777;
1270
+ }
1271
+ .ewd-ufaq-dashboard-new-widget-box-top {
1272
+ padding: 12px 16px;
1273
+ font-weight: bold;
1274
+ color: #444;
1275
+ }
1276
+ .ewd-ufaq-dashboard-new-widget-box-bottom {
1277
+ border-top: 1px solid #e2e2e2;
1278
+ }
1279
+
1280
+ .ewd-ufaq-dashboard-key-widget {
1281
+ position: relative;
1282
+ float: left;
1283
+ width: calc(100% - 144px);
1284
+ min-height: 30px;
1285
+ margin: 24px 24px 8px;
1286
+ padding: 0 0 0 96px;
1287
+ background-image: url(../images/dash-asset-key.png);
1288
+ background-position: left top;
1289
+ background-size: 64px 30px;
1290
+ background-repeat: no-repeat;
1291
+ }
1292
+ .ewd-ufaq-dashboard-key-widget-input {
1293
+ position: relative;
1294
+ float: left;
1295
+ width: calc(65% - 2px);
1296
+ height: 30px;
1297
+ padding: 4px 8px !important;
1298
+ background: none;
1299
+ border: 1px solid #e2e2e2 !important;
1300
+ margin: 0 !important;
1301
+ }
1302
+ .ewd-ufaq-dashboard-key-widget-input::placeholder {
1303
+ color: #bbb;
1304
+ }
1305
+ .ewd-ufaq-dashboard-key-widget-submit {
1306
+ position: relative;
1307
+ float: left;
1308
+ width: 35%;
1309
+ height: 30px;
1310
+ font-size: 14px;
1311
+ background: #f2b52f;
1312
+ color: #fff;
1313
+ border: none;
1314
+ cursor: pointer;
1315
+ margin: 0 !important;
1316
+ }
1317
+ .ewd-ufaq-dashboard-key-widget-submit:hover {
1318
+ background: #F2BD49;
1319
+ }
1320
+ .ewd-ufaq-dashboard-key-widget-text {
1321
+ position: relative;
1322
+ float: left;
1323
+ width: 100%;
1324
+ margin-top: 7px;
1325
+ font-size: 11px;
1326
+ color: #888;
1327
+ font-style: italic;
1328
+ font-weight: normal;
1329
+ }
1330
+ .ewd-ufaq-dashboard-key-widget-text a {
1331
+ color: #0acbaa;
1332
+ text-decoration: none;
1333
+ font-weight: bold;
1334
+ }
1335
+ .ewd-ufaq-dashboard-key-widget-text a:hover {
1336
+ color: #1CE6C3;
1337
+ text-decoration: none;
1338
+ }
1339
+
1340
+ #ewd-ufaq-dashboard-support-widget-box .ewd-ufaq-dashboard-new-widget-box-top {
1341
+ cursor: pointer;
1342
+ }
1343
+ #ewd-ufaq-dash-mobile-support-down-caret {
1344
+ display: none;
1345
+ float: right;
1346
+ }
1347
+ #ewd-ufaq-dash-mobile-support-up-caret {
1348
+ display: inline;
1349
+ float: right;
1350
+ }
1351
+ .ewd-ufaq-dashboard-support-widgets {
1352
+ position: relative;
1353
+ float: left;
1354
+ width: 90%;
1355
+ padding: 14px 5%;
1356
+ }
1357
+ .ewd-ufaq-dashboard-support-widgets li {
1358
+ position: relative;
1359
+ float: left;
1360
+ width: 18.25%;
1361
+ margin-right: 9%;
1362
+ }
1363
+ .ewd-ufaq-dashboard-support-widgets li:last-of-type {
1364
+ margin-right: 0;
1365
+ }
1366
+ .ewd-ufaq-dashboard-support-widgets li a {
1367
+ position: relative;
1368
+ float: left;
1369
+ width: 100%;
1370
+ text-align: center;
1371
+ color: #444;
1372
+ text-decoration: none;
1373
+ font-weight: bold;
1374
+ }
1375
+ .ewd-ufaq-dashboard-support-widgets li a:hover {
1376
+ color: #6026B4;
1377
+ }
1378
+ .ewd-ufaq-dashboard-support-widgets li img {
1379
+ position: relative;
1380
+ float: left;
1381
+ width: 80%;
1382
+ height: auto;
1383
+ border: none;
1384
+ padding: 0 10% 12px;
1385
+ }
1386
+ .ewd-ufaq-dashboard-support-widgets li .ewd-ufaq-dashboard-support-widgets-text {
1387
+ position: relative;
1388
+ float: left;
1389
+ width: 100%;
1390
+ margin-top: 2px;
1391
+ }
1392
+
1393
+ #ewd-ufaq-dashboard-optional-table .ewd-ufaq-dashboard-new-widget-box-top {
1394
+ cursor: pointer;
1395
+ }
1396
+ #ewd-ufaq-dash-optional-table-down-caret {
1397
+ display: none;
1398
+ float: right;
1399
+ }
1400
+ #ewd-ufaq-dash-optional-table-up-caret {
1401
+ display: inline;
1402
+ float: right;
1403
+ }
1404
+
1405
+ .ewd-ufaq-dashboard-testimonials {
1406
+ position: relative;
1407
+ float: left;
1408
+ width: 100%;
1409
+ }
1410
+ .ewd-ufaq-dashboard-testimonials li {
1411
+ position: relative;
1412
+ float: left;
1413
+ width: 100%;
1414
+ text-align: center;
1415
+ }
1416
+ .ewd-ufaq-dashboard-testimonials li img {
1417
+ position: relative;
1418
+ float: left;
1419
+ width: 140px;
1420
+ height: auto;
1421
+ margin-top: 8px;
1422
+ margin-left: calc(50% - 70px);
1423
+ }
1424
+ .ewd-ufaq-dashboard-testimonials li .ewd-ufaq-dashboard-testimonial-title {
1425
+ position: relative;
1426
+ float: left;
1427
+ width: 100%;
1428
+ margin: 28px 0 20px;
1429
+ font-size: 30px;
1430
+ line-height: 30px;
1431
+ font-weight: bold;
1432
+ }
1433
+ .ewd-ufaq-dashboard-testimonials li .ewd-ufaq-dashboard-testimonial-author {
1434
+ position: relative;
1435
+ float: left;
1436
+ width: 100%;
1437
+ font-size: 16px;
1438
+ }
1439
+ .ewd-ufaq-dashboard-testimonials li .ewd-ufaq-dashboard-testimonial-text {
1440
+ position: relative;
1441
+ float: left;
1442
+ width: 80%;
1443
+ margin: 24px 10% 0;
1444
+ font-size: 12px;
1445
+ }
1446
+ .ewd-ufaq-dashboard-testimonials li .ewd-ufaq-dashboard-testimonial-text a {
1447
+ color: #0acbaa;
1448
+ text-decoration: none;
1449
+ font-weight: bold;
1450
+ }
1451
+ .ewd-ufaq-dashboard-testimonials li .ewd-ufaq-dashboard-testimonial-text a:hover {
1452
+ color: #1CE6C3;
1453
+ }
1454
+
1455
+ .ewd-ufaq-dashboard-review-ask {
1456
+ position: relative;
1457
+ float: left;
1458
+ width: calc(100% - 32px);
1459
+ padding: 16px 16px 12px;
1460
+ text-align: center;
1461
+ }
1462
+ .ewd-ufaq-dashboard-review-ask img {
1463
+ position: relative;
1464
+ float: left;
1465
+ width: 110px;
1466
+ height: auto;
1467
+ margin-left: calc(50% - 55px);
1468
+ }
1469
+ .ewd-ufaq-dashboard-review-ask-text {
1470
+ position: relative;
1471
+ float: left;
1472
+ width: 100%;
1473
+ margin: 24px 0;
1474
+ }
1475
+ .ewd-ufaq-dashboard-review-ask-button {
1476
+ clear: both;
1477
+ position: relative;
1478
+ float: left;
1479
+ width: calc(100% - 2px);
1480
+ border: 1px solid #888;
1481
+ background-color: transparent;
1482
+ color: #888;
1483
+ padding: 6px 0;
1484
+ font-size: 12px;
1485
+ text-decoration: none;
1486
+ text-align: center;
1487
+ font-weight: bold;
1488
+ border-radius: 2px;
1489
+ }
1490
+ .ewd-ufaq-dashboard-review-ask-button:hover {
1491
+ background-color: #888;
1492
+ border-color: #888;
1493
+ color: #fff;
1494
+ }
1495
+ .ewd-ufaq-dashboard-review-ask-dismiss {
1496
+ position: relative;
1497
+ float: left;
1498
+ background: transparent;
1499
+ border: none;
1500
+ margin: 16px 0 0 0;
1501
+ padding: 0;
1502
+ width: 100%;
1503
+ text-align: center;
1504
+ color: #999;
1505
+ font-size: 11px;
1506
+ text-transform: uppercase;
1507
+ cursor: pointer;
1508
+ }
1509
+ .ewd-ufaq-dashboard-review-ask-dismiss:hover {
1510
+ color: #555;
1511
+ }
1512
+
1513
+ .ewd-ufaq-dashboard-guarantee {
1514
+ position: relative;
1515
+ float: left;
1516
+ width: calc(100% - 208px);
1517
+ min-height: 127px;
1518
+ margin: 20px 24px;
1519
+ padding: 0 0 0 160px;
1520
+ background-image: url(../images/dash-asset-badge.png);
1521
+ background-position: left top;
1522
+ background-size: 128px 127px;
1523
+ background-repeat: no-repeat;
1524
+ color: #777;
1525
+ }
1526
+ .ewd-ufaq-dashboard-guarantee-title, .ewd-ufaq-dashboard-guarantee-text {
1527
+ position: relative;
1528
+ float: left;
1529
+ width: 100%;
1530
+ margin-top: 16px;
1531
+ }
1532
+ .ewd-ufaq-dashboard-guarantee-title {
1533
+ font-size: 24px;
1534
+ line-height: 24px;
1535
+ }
1536
+ .ewd-ufaq-dashboard-guarantee-text {
1537
+ font-size: 12px;
1538
+ font-weight: normal;
1539
+ }
1540
+
1541
+ .ewd-ufaq-dashboard-get-premium-widget-trial-time {
1542
+ position: relative;
1543
+ float: left;
1544
+ width: 100%;
1545
+ margin-top: 6px;
1546
+ background: #6026B4;
1547
+ }
1548
+ .ewd-ufaq-dashboard-get-premium-widget-trial-days, .ewd-ufaq-dashboard-get-premium-widget-trial-hours {
1549
+ position: relative;
1550
+ float: left;
1551
+ text-align: center;
1552
+ color: #fff;
1553
+ font-size: 43px;
1554
+ line-height: 35px;
1555
+ padding: 24px 0 8px;
1556
+ font-weight: bold;
1557
+ }
1558
+ .ewd-ufaq-dashboard-get-premium-widget-trial-days span, .ewd-ufaq-dashboard-get-premium-widget-trial-hours span {
1559
+ position: relative;
1560
+ float: left;
1561
+ width: 100%;
1562
+ font-size: 14px;
1563
+ font-weight: normal;
1564
+ }
1565
+ .ewd-ufaq-dashboard-get-premium-widget-trial-days {
1566
+ width: calc(50% - 7px);
1567
+ border-right: 7px solid #fff;
1568
+ }
1569
+ .ewd-ufaq-dashboard-get-premium-widget-trial-hours {
1570
+ width: 50%;
1571
+ }
1572
+ .ewd-ufaq-dashboard-get-premium-widget-trial-time-left {
1573
+ position: relative;
1574
+ float: left;
1575
+ width: 100%;
1576
+ margin: 28px 0 24px;
1577
+ color: #6026B4;
1578
+ font-size: 24px;
1579
+ text-align: center;
1580
+ font-weight: bold;
1581
+ }
1582
+ .ewd-ufaq-dashboard-get-premium-widget-features-title {
1583
+ position: relative;
1584
+ float: left;
1585
+ width: calc(100% - 16px);
1586
+ padding: 8px 8px 10px;
1587
+ color: #0acbaa;
1588
+ font-size: 18px;
1589
+ line-height: 1.5;
1590
+ font-weight: bold;
1591
+ }
1592
+ .ewd-ufaq-dashboard-get-premium-widget-features {
1593
+ position: relative;
1594
+ float: left;
1595
+ width: calc(100% - 16px);
1596
+ padding: 0 8px;
1597
+ -webkit-margin-after: 0;
1598
+ }
1599
+ .ewd-ufaq-dashboard-get-premium-widget-features li {
1600
+ clear: both;
1601
+ position: relative;
1602
+ float: left;
1603
+ width: calc(100% - 36px);
1604
+ margin-bottom: 8px;
1605
+ padding-left: 36px;
1606
+ background-image: url(../images/dash-asset-checkmark.png);
1607
+ background-position: left top;
1608
+ background-size: 20px;
1609
+ background-repeat: no-repeat;
1610
+ font-style: italic;
1611
+ }
1612
+ .ewd-ufaq-dashboard-get-premium-widget-features li:last-of-type {
1613
+ background-image: none;
1614
+ }
1615
+ .ewd-ufaq-dashboard-get-premium-widget-button {
1616
+ clear: both;
1617
+ position: relative;
1618
+ float: left;
1619
+ width: calc(100% - 20px);
1620
+ margin: 16px 8px;
1621
+ border: 2px solid #0acbaa;
1622
+ background-color: #0acbaa;
1623
+ color: #fff;
1624
+ padding: 6px 0;
1625
+ font-size: 12px;
1626
+ text-decoration: none;
1627
+ text-align: center;
1628
+ font-weight: bold;
1629
+ border-radius: 2px;
1630
+ }
1631
+ .ewd-ufaq-dashboard-get-premium-widget-button:hover {
1632
+ background-color: #1CE6C3;
1633
+ border-color: #1CE6C3;
1634
+ color: #fff;
1635
+ }
1636
+
1637
+ .ewd-ufaq-dashboard-other-plugins {
1638
+ position: relative;
1639
+ float: left;
1640
+ width: 100%;
1641
+ }
1642
+ .ewd-ufaq-dashboard-other-plugins li {
1643
+ position: relative;
1644
+ float: left;
1645
+ width: 100%;
1646
+ margin-bottom: 24px;
1647
+ }
1648
+ .ewd-ufaq-dashboard-other-plugins li:last-of-type {
1649
+ margin-bottom: 12px;
1650
+ }
1651
+ .ewd-ufaq-dashboard-other-plugins li img {
1652
+ position: relative;
1653
+ float: left;
1654
+ width: 64px;
1655
+ height: auto;
1656
+ margin-right: 16px;
1657
+ border: none;
1658
+ }
1659
+ .ewd-ufaq-dashboard-other-plugins li .ewd-ufaq-dashboard-other-plugins-text {
1660
+ position: relative;
1661
+ float: left;
1662
+ width: calc(100% - 80px);
1663
+ }
1664
+ .ewd-ufaq-dashboard-other-plugins li .ewd-ufaq-dashboard-other-plugins-title {
1665
+ position: relative;
1666
+ float: left;
1667
+ width: 100%;
1668
+ font-size: 16px;
1669
+ color: #444;
1670
+ font-weight: bold;
1671
+ }
1672
+ .ewd-ufaq-dashboard-other-plugins li .ewd-ufaq-dashboard-other-plugins-blurb {
1673
+ position: relative;
1674
+ float: left;
1675
+ width: 100%;
1676
+ font-size: 11px;
1677
+ margin-top: 8px;
1678
+ }
1679
+
1680
+ @media screen and (min-width: 1441px) {
1681
+ #ewd-ufaq-dashboard-content-area {
1682
+ width: calc(100% - 194px);
1683
+ margin: 32px 20px 32px 174px;
1684
+ }
1685
+ }
1686
+ @media screen and (max-width: 1150px) {
1687
+ #ewd-ufaq-dashboard-content-area {
1688
+ width: calc(100% - 40px);
1689
+ margin: 16px 20px 32px;
1690
+ }
1691
+ }
1692
+ @media screen and (max-width: 1000px) {
1693
+ .ewd-ufaq-dashboard-key-widget-submit {
1694
+ font-size: 12px;
1695
+ }
1696
+ }
1697
+ @media screen and (max-width: 800px) {
1698
+ #ewd-ufaq-dashboard-content-left, #ewd-ufaq-dashboard-content-right {
1699
+ float: left;
1700
+ width: 100%;
1701
+ }
1702
+ .ewd-ufaq-dashboard-new-widget-box.ewd-widget-box-two-thirds, .ewd-ufaq-dashboard-new-widget-box.ewd-widget-box-one-third {
1703
+ width: 100%;
1704
+ margin-left: 0;
1705
+ }
1706
+
1707
+ .ewd-ufaq-dashboard-key-widget {
1708
+ width: calc(100% - 48px);
1709
+ margin: 16px 24px 8px;
1710
+ padding: 54px 0 0 0;
1711
+ background-image: url(../images/dash-asset-key.png);
1712
+ background-size: 64px 30px;
1713
+ background-position: center top;
1714
+ background-repeat: no-repeat;
1715
+ }
1716
+ .ewd-ufaq-dashboard-key-widget-input {
1717
+ width: 100%;
1718
+ }
1719
+ .ewd-ufaq-dashboard-key-widget-submit {
1720
+ width: 100%;
1721
+ margin: 8px 0 0 0 !important;
1722
+ font-size: 14px;
1723
+ }
1724
+ .ewd-ufaq-dashboard-key-widget-text {
1725
+ margin-top: 16px;
1726
+ text-align: center;
1727
+ }
1728
+
1729
+ .ewd-ufaq-dashboard-support-widgets {
1730
+ width: 90%;
1731
+ padding: 0 5%;
1732
+ }
1733
+ .ewd-ufaq-dashboard-support-widgets li {
1734
+ width: 100%;
1735
+ margin: 0 0 12px 0;
1736
+ padding-bottom: 12px;
1737
+ border-bottom: 1px solid #ddd;
1738
+ }
1739
+ .ewd-ufaq-dashboard-support-widgets li:last-of-type {
1740
+ border-bottom: none;
1741
+ margin-bottom: 0;
1742
+ }
1743
+ .ewd-ufaq-dashboard-support-widgets li a {
1744
+ text-align: left;
1745
+ color: #444;
1746
+ }
1747
+ .ewd-ufaq-dashboard-support-widgets li a:hover {
1748
+ color: #6026B4;
1749
+ }
1750
+ .ewd-ufaq-dashboard-support-widgets li img {
1751
+ width: 32px;
1752
+ height: 32px;
1753
+ padding: 0 24px 0 16px;
1754
+ }
1755
+ .ewd-ufaq-dashboard-support-widgets li .ewd-ufaq-dashboard-support-widgets-text {
1756
+ width: calc(100% - 72px);
1757
+ margin-top: 7px;
1758
+ text-transform: uppercase;
1759
+ font-size: 11px;
1760
+ }
1761
+ #ewd-ufaq-dashboard-support-widget-box .ewd-ufaq-dashboard-new-widget-box-bottom {
1762
+ border-top: none;
1763
+ }
1764
+
1765
+ #ewd-ufaq-dashboard-get-premium-widget-box {
1766
+ display: none;
1767
+ }
1768
+ }
1769
+
1770
+ @media screen and (max-width: 568px) {
1771
+ #ewd-ufaq-dashboard-guarantee-widget-box {
1772
+ background: #6026B4;
1773
+ }
1774
+ .ewd-ufaq-dashboard-guarantee {
1775
+ width: calc(100% - 48px);
1776
+ padding: 0;
1777
+ height: 199px;
1778
+ background-image: url(../images/dash-asset-badge.png);
1779
+ background-size: 200px 199px;
1780
+ background-position: center top;
1781
+ background-repeat: no-repeat;
1782
+ }
1783
+ .ewd-ufaq-dashboard-guarantee-title, .ewd-ufaq-dashboard-guarantee-text {
1784
+ display: none;
1785
+ }
1786
+ }
1787
+
1788
+
1789
+
1790
+ /*** FOOTER ***/
1791
+
1792
+ #ewd-ufaq-dashboard-new-footer-one {
1793
+ position: relative;
1794
+ float: left;
1795
+ width: 100%;
1796
+ background: #fff;
1797
+ color: #777;
1798
+ }
1799
+ .ewd-ufaq-dashboard-new-footer-one-inside {
1800
+ position: relative;
1801
+ float: left;
1802
+ width: 80%;
1803
+ margin: 0 10%;
1804
+ }
1805
+ .ewd-ufaq-dashboard-new-footer-one-left {
1806
+ position: relative;
1807
+ float: left;
1808
+ width: calc(100% - 224px);
1809
+ margin-bottom: 32px;
1810
+ }
1811
+ .ewd-ufaq-dashboard-new-footer-one-title {
1812
+ position: relative;
1813
+ float: left;
1814
+ width: 100%;
1815
+ margin-top: 56px;
1816
+ font-size: 24px;
1817
+ font-weight: bold;
1818
+ }
1819
+ .ewd-ufaq-dashboard-new-footer-one-benefits {
1820
+ position: relative;
1821
+ float: left;
1822
+ width: 100%;
1823
+ margin-top: 32px;
1824
+ }
1825
+ .ewd-ufaq-dashboard-new-footer-one-benefits li {
1826
+ position: relative;
1827
+ float: left;
1828
+ width: calc(33.333333% - 36px);
1829
+ margin-bottom: 11px;
1830
+ padding-left: 36px;
1831
+ background-image: url(../images/dash-asset-checkmark.png);
1832
+ background-position: left top;
1833
+ background-size: 20px;
1834
+ background-repeat: no-repeat;
1835
+ font-style: italic;
1836
+ }
1837
+
1838
+ .ewd-ufaq-dashboard-new-footer-one-buttons {
1839
+ position: relative;
1840
+ float: right;
1841
+ width: 192px;
1842
+ margin-top: 112px;
1843
+ }
1844
+
1845
+ #ewd-ufaq-dashboard-new-footer-two {
1846
+ position: relative;
1847
+ float: left;
1848
+ width: 100%;
1849
+ background: #150947;
1850
+ color: #E5D3F5;
1851
+ }
1852
+ .ewd-ufaq-dashboard-new-footer-two-inside {
1853
+ position: relative;
1854
+ float: left;
1855
+ width: 90%;
1856
+ margin: 48px 5%;
1857
+ }
1858
+ .ewd-ufaq-dashboard-new-footer-two-icon {
1859
+ position: relative;
1860
+ float: left;
1861
+ width: 110px;
1862
+ height: auto;
1863
+ margin-right: 40px;
1864
+ }
1865
+ .ewd-ufaq-dashboard-new-footer-two-blurb {
1866
+ position: relative;
1867
+ float: left;
1868
+ width: 300px;
1869
+ line-height: 1.7;
1870
+ font-size: 12px;
1871
+ }
1872
+ .ewd-ufaq-dashboard-new-footer-two-menu {
1873
+ position: relative;
1874
+ float: right;
1875
+ width: 150px;
1876
+ -webkit-margin-after: 0;
1877
+ -webkit-margin-before: 0;
1878
+ }
1879
+ .ewd-ufaq-dashboard-new-footer-two-menu li {
1880
+ clear: both;
1881
+ position: relative;
1882
+ float: right;
1883
+ width: 100%;
1884
+ font-weight: bold;
1885
+ margin-bottom: 4px;
1886
+ color: #fff;
1887
+ font-size: 13px;
1888
+ }
1889
+ .ewd-ufaq-dashboard-new-footer-two-menu li:first-of-type {
1890
+ margin-bottom: 9px;
1891
+ }
1892
+ .ewd-ufaq-dashboard-new-footer-two-menu li:last-of-type {
1893
+ margin-bottom: 0;
1894
+ }
1895
+ .ewd-ufaq-dashboard-new-footer-two-menu li a {
1896
+ font-weight: normal;
1897
+ color: #E5D3F5;
1898
+ text-decoration: none;
1899
+ font-size: 12px;
1900
+ }
1901
+ .ewd-ufaq-dashboard-new-footer-two-menu li a:hover {
1902
+ color: #fff;
1903
+ }
1904
+
1905
+ @media screen and (max-width: 1100px) {
1906
+ .ewd-ufaq-dashboard-new-footer-one-left {
1907
+ width: 100%;
1908
+ margin-bottom: 0;
1909
+ }
1910
+ .ewd-ufaq-dashboard-new-footer-one-title {
1911
+ margin-top: 56px;
1912
+ font-size: 24px;
1913
+ line-height: 28px;
1914
+ text-align: center;
1915
+ }
1916
+ .ewd-ufaq-dashboard-new-footer-one-benefits li {
1917
+ width: calc(50% - 36px);
1918
+ }
1919
+ .ewd-ufaq-dashboard-new-footer-one-buttons {
1920
+ float: left;
1921
+ width: 100%;
1922
+ margin-top: 32px;
1923
+ margin-bottom: 24px;
1924
+ }
1925
+ .ewd-ufaq-dashboard-new-footer-one-buttons .ewd-ufaq-dashboard-new-upgrade-button {
1926
+ float: left;
1927
+ margin-left: calc(50% - 96px);
1928
+ }
1929
+
1930
+ .ewd-ufaq-dashboard-new-footer-two-icon {
1931
+ clear: both;
1932
+ float: left;
1933
+ margin: 0 0 16px calc(50% - 55px);
1934
+ }
1935
+ .ewd-ufaq-dashboard-new-footer-two-blurb {
1936
+ display: none;
1937
+ }
1938
+ .ewd-ufaq-dashboard-new-footer-two-menu {
1939
+ float: left;
1940
+ width: 100%;
1941
+ margin-top: 32px;
1942
+ }
1943
+ .ewd-ufaq-dashboard-new-footer-two-menu li {
1944
+ float: left;
1945
+ text-align: center;
1946
+ margin-bottom: 4px;
1947
+ font-size: 17px;
1948
+ }
1949
+ .ewd-ufaq-dashboard-new-footer-two-menu li:first-of-type {
1950
+ margin-bottom: 9px;
1951
+ }
1952
+ .ewd-ufaq-dashboard-new-footer-two-menu li:last-of-type {
1953
+ margin-bottom: 0;
1954
+ }
1955
+ .ewd-ufaq-dashboard-new-footer-two-menu li a {
1956
+ font-size: 16px;
1957
+ }
1958
+ }
1959
+ @media screen and (max-width: 568px) {
1960
+ .ewd-ufaq-dashboard-new-footer-one-benefits li {
1961
+ clear: both;
1962
+ width: calc(100% - 36px);
1963
+ }
1964
+ }
1965
+
html/AdminHeader.php CHANGED
@@ -1,5 +1,26 @@
1
  <div class="wrap">
2
  <div class="Header"><h2><?php _e("Ultimate FAQ Settings", 'ultimate-faqs') ?></h2></div>
3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  <?php EWD_UFAQ_Add_Header_Bar("Yes"); ?>
5
 
1
  <div class="wrap">
2
  <div class="Header"><h2><?php _e("Ultimate FAQ Settings", 'ultimate-faqs') ?></h2></div>
3
 
4
+
5
+ <?php if ($UFAQ_Full_Version != "Yes" or get_option("EWD_UFAQ_Trial_Happening") == "Yes") { ?>
6
+ <div class="ewd-ufaq-dashboard-new-upgrade-banner">
7
+ <div class="ewd-ufaq-dashboard-banner-icon"></div>
8
+ <div class="ewd-ufaq-dashboard-banner-buttons">
9
+ <a class="ewd-ufaq-dashboard-new-upgrade-button" href="http://www.etoilewebdesign.com/plugins/ultimate-faq/" target="_blank">UPGRADE NOW</a>
10
+ <?php if (get_option("EWD_UFAQ_Trial_Happening") != "Yes") { ?>
11
+ <a class="ewd-ufaq-dashboard-new-upgrade-button ewd-ufaq-dashboard-new-trial-button" href="#">GET FREE 7-DAY TRIAL</a>
12
+ <?php } ?>
13
+ </div>
14
+ <div class="ewd-ufaq-dashboard-banner-text">
15
+ <div class="ewd-ufaq-dashboard-banner-title">
16
+ GET FULL ACCESS WITH OUR PREMIUM VERSION
17
+ </div>
18
+ <div class="ewd-ufaq-dashboard-banner-brief">
19
+ Easily customize, administer and share your FAQs
20
+ </div>
21
+ </div>
22
+ </div>
23
+ <?php } ?>
24
+
25
  <?php EWD_UFAQ_Add_Header_Bar("Yes"); ?>
26
 
html/DashboardPage.php CHANGED
@@ -9,264 +9,282 @@
9
  if (isset($_POST['hide_ufaq_review_box_hidden'])) {update_option('EWD_UFAQ_Hide_Dash_Review_Ask', sanitize_text_field($_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
 
18
- <div id="fade" class="ewd-ufaq-dark_overlay"></div>
19
 
20
- <div id="ewd-dashboard-top" class="metabox-holder">
21
 
22
 
23
- <!-- Upgrade to pro link box -->
24
- <?php if ($UFAQ_Full_Version != "Yes" or get_option("EWD_UFAQ_Trial_Happening") == "Yes") { ?>
25
- <div id="ewd-ufaq-dashboard-top-upgrade">
26
- <div id="ewd-ufaq-dashboard-top-upgrade-left">
27
- <div id="ewd-dashboard-pro" class="postbox ewd-ufaq-postbox-collapsible" >
28
- <div class="handlediv" title="Click to toggle"></div><h3 class='hndle ewd-ufaq-dashboard-h3'><span><?php _e("UPGRADE TO FULL VERSION", 'ultimate-faqs') ?></span></h3>
29
- <div class="inside">
30
- <h3><?php _e("What you get by upgrading:", 'ultimate-faqs') ?></h3>
31
- <div class="clear"></div>
32
- <ul>
33
- <li><span>Ability to add a unique FAQ tab to each WooCommerce product page.</span></li>
34
- <li><span>Premium shortcodes to accept questions from users and insert an AJAX FAQ search.</span></li>
35
- <li><span>Additional FAQ style skins, dozens of styling and labeling options and much more!</span></li>
36
- <li><span>Access to e-mail support.</span></li>
37
- </ul>
38
- <div class="clear"></div>
39
- <a class="purchaseButton" href="http://www.etoilewebdesign.com/plugins/ultimate-faq/" target="_blank">
40
- Click here to purchase the full version
41
- </a>
42
- <div class="clear"></div>
43
- <div class="full-version-form-div">
44
- <form action="edit.php?post_type=ufaq" method="post">
45
- <div class="form-field form-required">
46
- <!-- <label for="Catalogue_Name"><?php _e("Product Key", 'ultimate-faqs') ?></label> -->
47
- <input name="Key" type="text" value="" size="40" placeholder="<?php _e('Enter product key or free trial code here', 'ultimate-faqs'); ?>" />
48
- </div>
49
- <input type="submit" name="EWD_UFAQ_Upgrade_To_Full" value="<?php _e('UPGRADE', 'ultimate-faqs'); ?>">
50
  </form>
51
  </div>
52
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
53
  </div>
54
- </div> <!-- ewd-ufaq-dashboard-top-upgrade-left -->
55
- <?php if (get_option("EWD_UFAQ_Trial_Happening") != "No") { ?>
56
- <div id="ewd-ufaq-dashboard-top-upgrade-right">
57
- <div id="ewd-dashboard-pro" class="postbox ewd-ufaq-postbox-collapsible" >
58
- <div class="handlediv" title="Click to expand"></div>
59
- <h3 class="hndle ewd-ufaq-dashboard-h3">&nbsp;</h3>
60
- <div class="inside">
61
- <div class="topPart">
 
 
 
 
 
62
  <?php
63
- if(!get_option("EWD_UFAQ_Trial_Happening")){
64
- _e("Want to try out the premium features first?", 'ultimate-faqs');
65
- }
66
- else{
67
- _e("Your free trial is currently active", 'ultimate-faqs');
68
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
69
  ?>
70
- </div>
71
- <div class="clear"></div>
72
- <div class="bottomPart">
73
- <?php if(!get_option("EWD_UFAQ_Trial_Happening")){ ?>
74
- Use code<br /><span class="freeTrialText">&nbsp;EWD Trial&nbsp;</span><br />for a free 7-day trial!
75
- <?php }
76
- else{ ?>
77
- Your trial expires at <span class="freeTrialText"><?php echo date("Y-m-d H:i:s", get_option("EWD_UFAQ_Trial_Expiry_Time")); ?> GMT</span>. <a href="http://www.etoilewebdesign.com/plugins/ultimate-faq/" class="freeTrialPurchaseLink" target="_blank">Upgrade here</a> before then to retain any premium changes made!
78
- <?php } ?>
79
- </div> <!-- bottomPart -->
80
- </div> <!-- inside -->
81
- </div> <!-- postbox -->
82
- </div> <!-- ewd-ufaq-dashboard-top-upgrade-right -->
83
- <?php } ?>
84
- </div> <!-- ewd-ufaq-dashboard-top-upgrade -->
85
- <?php } ?>
86
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
87
 
88
- <?php
89
- EWD_UFAQ_Get_EWD_Blog();
90
- EWD_UFAQ_Get_Changelog();
91
- /*
92
- if (get_option("EWD_UFAQ_Update_Flag") == "Yes" or get_option("EWD_UFAQ_Install_Flag") == "Yes") {?>
93
- <div id="side-sortables" class="metabox-holder ">
94
- <div id="EWD_UFAQ_pro" class="postbox " >
95
- <div class="handlediv" title="Click to toggle"></div>
96
- <h3 class='hndle'><span><?php _e("Thank You!", 'ultimate-faqs') ?></span></h3>
97
- <div class="inside">
98
- <?php if (get_option("EWD_UFAQ_Install_Flag") == "Yes") { ?><ul><li><?php _e("Thanks for installing the Ultimate FAQs plugin.", 'ultimate-faqs'); ?><br> <a href='https://www.youtube.com/channel/UCZPuaoetCJB1vZOmpnMxJNw'><?php _e("Subscribe to our YouTube channel ", 'ultimate-faqs'); ?></a> <?php _e("for tutorial videos on this and our other plugins!", 'ultimate-faqs');?> </li></ul>
99
- <?php } else { ?><ul><li><?php _e("Thanks for upgrading to version 1.3.1!", 'ultimate-faqs'); ?><br> <a href='https://wordpress.org/support/view/plugin-reviews/ultimate-faqs?filter=5'><?php _e("Please rate our plugin", 'ultimate-faqs'); ?></a> <?php _e("if you find Ultimate FAQs useful!", 'ultimate-faqs');?> </li></ul><?php } ?>
100
-
101
- <?php /* if (get_option("EWD_UFAQ_Install_Flag") == "Yes") { ?><ul><li><?php _e("Thanks for installing the Ultimate Product Catalogue Plugin.", 'ultimate-faqs'); ?><br> <a href='http://www.facebook.com/EtoileWebDesign'><?php _e("Follow us on Facebook", 'ultimate-faqs'); ?></a> <?php _e("to suggest new features or hear about upcoming ones!", 'ultimate-faqs');?> </li></ul>
102
- <?php } else { ?><ul><li><?php _e("Thanks for upgrading to version 2.2.9!", 'ultimate-faqs'); ?><br> <a href='http://www.facebook.com/EtoileWebDesign'><?php _e("Follow us on Facebook", 'ultimate-faqs'); ?></a> <?php _e("to suggest new features or hear about upcoming ones!", 'ultimate-faqs');?> </li></ul><?php } */ ?>
103
-
104
- <?php /* if (get_option("EWD_UFAQ_Install_Flag") == "Yes") { ?><ul><li><?php _e("Thanks for installing the Ultimate Product Catalogue Plugin.", 'ultimate-faqs'); ?><br> <a href='http://www.facebook.com/EtoileWebDesign'><?php _e("Follow us on Facebook", 'ultimate-faqs'); ?></a> <?php _e("to suggest new features or hear about upcoming ones!", 'ultimate-faqs');?> </li></ul>
105
- <?php } else { ?><ul><li><?php _e("Thanks for upgrading to version 3.0.16!", 'ultimate-faqs'); ?><br> <a href='http://wordpress.org/support/view/plugin-reviews/ultimate-product-catalogue'><?php _e("Please rate our plugin", 'ultimate-faqs'); ?></a> <?php _e("if you find the Ultimate Product Catalogue Plugin useful!", 'ultimate-faqs');?> </li></ul><?php } */ ?>
106
-
107
- <?php /* if (get_option("EWD_UFAQ_Install_Flag") == "Yes") { ?><ul><li><?php _e("Thanks for installing the Ultimate Product Catalogue Plugin.", 'ultimate-faqs'); ?><br> <a href='http://www.facebook.com/EtoileWebDesign'><?php _e("Follow us on Facebook", 'ultimate-faqs'); ?></a> <?php _e("to suggest new features or hear about upcoming ones!", 'ultimate-faqs');?> </li></ul>
108
- <?php } else { ?><ul><li><?php _e("Thanks for upgrading to version 3.4.8!", 'ultimate-faqs'); ?><br> <a href='http://wordpress.org/plugins/order-tracking/'><?php _e("Try out order tracking plugin ", 'ultimate-faqs'); ?></a> <?php _e("if you ship orders and find the Ultimate Product Catalogue Plugin useful!", 'ultimate-faqs');?> </li></ul><?php } */ ?>
109
-
110
- <?php /* if (get_option("EWD_UFAQ_Install_Flag") == "Yes") { ?><ul><li><?php _e("Thanks for installing the Ultimate Product Catalogue Plugin.", 'ultimate-faqs'); ?><br> <a href='http://www.facebook.com/EtoileWebDesign'><?php _e("Follow us on Facebook", 'ultimate-faqs'); ?></a> <?php _e("to suggest new features or hear about upcoming ones!", 'ultimate-faqs');?> </li></ul>
111
- <?php } else { ?><ul><li><?php _e("Thanks for upgrading to version 2.3.9!", 'ultimate-faqs'); ?><br> <a href='http://wordpress.org/support/topic/error-hunt'><?php _e("Please let us know about any small display/functionality errors. ", 'ultimate-faqs'); ?></a> <?php _e("We've noticed a couple, and would like to eliminate as many as possible.", 'ultimate-faqs');?> </li></ul><?php } */ ?>
112
-
113
- <?php /* if (get_option("EWD_UFAQ_Install_Flag") == "Yes") { ?><ul><li><?php _e("Thanks for installing the Ultimate Product Catalogue Plugin.", 'ultimate-faqs'); ?><br> <a href='https://www.youtube.com/channel/UCZPuaoetCJB1vZOmpnMxJNw'><?php _e("Check out our YouTube channel ", 'ultimate-faqs'); ?></a> <?php _e("for tutorial videos on this and our other plugins!", 'ultimate-faqs');?> </li></ul>
114
- <?php } elseif ($Full_Version == "Yes") { ?><ul><li><?php _e("Thanks for upgrading to version 3.5.0!", 'ultimate-faqs'); ?><br> <a href='http://www.facebook.com/EtoileWebDesign'><?php _e("Follow us on Facebook", 'ultimate-faqs'); ?></a> <?php _e("to suggest new features or hear about upcoming ones!", 'ultimate-faqs');?> </li></ul>
115
- <?php } else { ?><ul><li><?php _e("Thanks for upgrading to version 3.4!", 'ultimate-faqs'); ?><br> <?php _e("Love the plugin but don't need the premium version? Help us speed up product support and development by donating. Thanks for using the plugin!", 'ultimate-faqs');?>
116
- <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
117
- <input type="hidden" name="cmd" value="_s-xclick">
118
- <input type="hidden" name="hosted_button_id" value="AQLMJFJ62GEFJ">
119
- <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
120
- <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
121
  </form>
122
- </li></ul>
123
- <?php } ?>
124
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
125
  </div>
126
  </div>
127
- </div>
128
- <?php
129
- EWD_UFAQ_Get_EWD_Blog();
130
- EWD_UFAQ_Get_Changelog();
131
- update_option('EWD_UFAQ_Update_Flag', "No");
132
- update_option('EWD_UFAQ_Install_Flag', "No");
133
- }*/
134
- ?>
135
 
 
136
 
137
- <?php if ( time() < 1511845201 and $UFAQ_Full_Version != "Yes" ) { ?>
138
- <a href="https://www.etoilewebdesign.com/license-payment/"><img src="http://www.etoilewebdesign.com/Screenshots/blackFridaypromotionbanner1200.png" style="position: relative; float: left; width: 100%; height: auto; border: none;" /></a>
139
- <div style="clear: both;"></div>
140
- <?php } ?>
141
 
142
-
143
- <div id="ewd-dashboard-box-orders" class="ewd-ufaq-dashboard-box" >
144
- <div class="ewd-dashboard-box-icon"><img src="<?php echo plugins_url(); ?>/ultimate-faqs/images/ewd-dashboard-icon-ufaq-01.png"/>
145
- </div>
146
- <div class="ewd-dashboard-box-value-and-field-container">
147
- <div class="ewd-dashboard-box-value"><span class="displaying-num"><?php echo $wpdb->get_var("SELECT COUNT(ID) FROM $wpdb->posts WHERE post_type='ufaq' AND post_status='publish'"); ?></span>
148
- </div>
149
- <div class="ewd-dashboard-box-field">FAQs
150
- </div>
151
- </div>
152
- </div>
153
- <div id="ewd-dashboard-box-views" class="ewd-ufaq-dashboard-box" >
154
- <div class="ewd-dashboard-box-icon"><img src="<?php echo plugins_url(); ?>/ultimate-faqs/images/ewd-dashboard-icon-ufaq-02.png"/>
155
- </div>
156
- <div class="ewd-dashboard-box-value-and-field-container">
157
- <div class="ewd-dashboard-box-value"><?php echo $wpdb->get_var("SELECT SUM(meta_value) FROM $wpdb->postmeta WHERE meta_key='ufaq_view_count' and post_id!='0'"); ?>
158
- </div>
159
- <div class="ewd-dashboard-box-field">Views
160
- </div>
 
 
 
 
161
  </div>
162
- </div>
163
- <div id="ewd-dashboard-box-links" class="ewd-ufaq-dashboard-box" >
164
- <div class="ewd-dashboard-box-icon"><img src="<?php echo plugins_url(); ?>/ultimate-faqs/images/ewd-dashboard-icon-ufaq-03.png"/>
165
- </div>
166
- <div class="ewd-dashboard-box-value-and-field-container">
167
- <div class="ewd-dashboard-box-value"><?php echo $wpdb->get_var("SELECT meta_value FROM $wpdb->postmeta WHERE meta_key='ufaq_view_count' and post_id!='0' ORDER BY cast(meta_value as unsigned) DESC"); ?>
168
- </div>
169
- <div class="ewd-dashboard-box-field">Most FAQ Views
170
- </div>
171
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
172
  </div>
 
173
 
174
- <div id="ewd-dashboard-box-support" class="ewd-ufaq-dashboard-box" >
175
- <div class="ewd-dashboard-box-icon"><img src="<?php echo plugins_url(); ?>/ultimate-faqs/images/ufaq-buttonsicons-04.png"/>
176
- </div>
177
- <div class="ewd-dashboard-box-value-and-field-container">
178
- <div class="ewd-dashboard-box-support-value">
179
- <form id="form1" runat="server">
180
- <a href="javascript:void(0)" onclick="document.getElementById('light').style.display='block';document.getElementById('fade').style.display='block'">Click here for support</a>
181
- </div>
182
- </div>
183
- </div>
184
- <div id="light" class="ewd-ufaq-bright_content">
185
- <asp:Label ID="lbltext" runat="server" Text="Hey there!"></asp:Label>
186
- <a href="javascript:void(0)" onclick="document.getElementById('light').style.display='none';document.getElementById('fade').style.display='none'">Close</a>
187
- </br>
188
- <h2>Need help?</h2>
189
- <p>You may find the information you need with our support tools.</p>
190
- <a href="https://www.youtube.com/playlist?list=PLEndQUuhlvSrNdfu5FKa1uGHsaKZxgdWt"><img src="<?php echo plugins_url(); ?>/ultimate-faqs/images/support_icons_ufaq-01.png" /></a>
191
- <a href="https://www.youtube.com/playlist?list=PLEndQUuhlvSrNdfu5FKa1uGHsaKZxgdWt"><h4>Youtube Tutorials</h4></a>
192
- <p>Our tutorials show you the basics of setting up your plugin, to the more specific utilization of our features.</p>
193
- <div class="ewd-ufaq-clear"></div>
194
- <a href="https://wordpress.org/support/plugin/ultimate-faqs"><img src="<?php echo plugins_url(); ?>/ultimate-faqs/images/support_icons_ufaq-03.png"/></a>
195
- <a href="https://wordpress.org/support/plugin/ultimate-faqs"><h4>WordPress Forum</h4></a>
196
- <p>We make sure to answer your questions within a 24hrs frame during our business days. Search within our threads to find your answers. If it has not been addressed, please create a new thread!</p>
197
- <div class="ewd-ufaq-clear"></div>
198
- <a href="http://www.etoilewebdesign.com/plugins/ultimate-faq/documentation-ultimate-faq/"><img src="<?php echo plugins_url(); ?>/ultimate-faqs/images/support_icons_ufaq-02.png"/></a>
199
- <a href="http://www.etoilewebdesign.com/plugins/ultimate-faq/documentation-ultimate-faq/"><h4>Documentation</h4></a>
200
- <p>Most information concerning the installation, the shortcodes and the features are found within our documentation page.</p>
201
- </div>
202
- </form>
203
-
204
- <!--END TOP BOX-->
205
- </div>
206
 
207
 
208
 
209
- <!--Middle box-->
210
- <div class="ewd-dashboard-middle">
211
- <div id="col-full">
212
- <h3 class="ewd-ufaq-dashboard-h3">FAQ Summary</h3>
213
- <div>
214
- <table class='ewd-ufaq-overview-table wp-list-table widefat fixed striped posts'>
215
- <thead>
216
- <tr>
217
- <th><?php _e("Title", 'EWD_ABCO'); ?></th>
218
- <th><?php _e("Views", 'EWD_ABCO'); ?></th>
219
- <th><?php _e("Categories", 'EWD_ABCO'); ?></th>
220
- </tr>
221
- </thead>
222
- <tbody>
223
- <?php
224
- $args = array(
225
- 'post_type' => 'ufaq',
226
- 'orderby' => 'meta_value_num',
227
- 'meta_key' => 'ufaq_view_count'
228
- );
229
-
230
- $Dashboard_FAQs_Query = new WP_Query($args);
231
- $Dashboard_FAQs = $Dashboard_FAQs_Query->get_posts();
232
-
233
- if (sizeOf($Dashboard_FAQs) == 0) {echo "<tr><td colspan='3'>" . __("No FAQs to display yet. Create an FAQ and then view it for it to be displayed here.", 'ultimate-faqs') . "</td></tr>";}
234
- else {
235
- foreach ($Dashboard_FAQs as $Dashboard_FAQ) { ?>
236
- <tr>
237
- <td><a href='post.php?post=<?php echo $Dashboard_FAQ->ID;?>&action=edit'><?php echo $Dashboard_FAQ->post_title; ?></a></td>
238
- <td><?php echo get_post_meta($Dashboard_FAQ->ID, 'ufaq_view_count', true); ?></td>
239
- <td><?php echo EWD_UFAQ_Get_Categories($Dashboard_FAQ->ID); ?></td>
240
- </tr>
241
- <?php }
242
- }
243
- ?>
244
- </tbody>
245
- </table>
246
- </div>
247
- <br class="clear" />
248
- </div>
249
- </div>
250
-
251
- <?php if($hideReview != 'Yes' and $Ask_Review_Date < time()){ ?>
252
- <div id='ewd-ufaq-dashboard-leave-review' class='ewd-ufaq-leave-review postbox ewd-ufaq-postbox-collapsible'>
253
- <h3 class='hndle ewd-ufaq-dashboard-h3'>Leave a Review <span></span></h3>
254
- <div class='ewd-dashboard-content'>
255
- <div class="ewd-dashboard-leave-review-text">
256
- If you enjoy this plugin and have a minute, please consider leaving a 5-star review. Thank you in advance!
257
- </div>
258
- <a href="https://wordpress.org/support/plugin/ultimate-faqs/reviews/" class="ewd-dashboard-leave-review-link" target="_blank">Leave a Review!</a>
259
- <div class="clear"></div>
260
- </div>
261
- <form action="admin.php?page=EWD-UFAQ-Options" method="post">
262
- <input type="hidden" name="hide_ufaq_review_box_hidden" value="Yes">
263
- <input type="submit" name="hide_ufaq_review_box_submit" class="ewd-dashboard-leave-review-dismiss" value="I've already left a review">
264
- </form>
265
- </div>
266
- <div class="clear"></div>
267
- <?php } ?>
268
 
269
- <?php if ($Ask_Review_Date < time() and $Install_Time < time() - 3600*24*4) { ?>
 
270
  <div id='ewd-ufaq-review-ask-overlay'></div>
271
  <div class='ewd-ufaq-review-ask-popup'>
272
  <div class='ewd-ufaq-review-ask-title'><?php _e('Thank You!', 'ultimate-faqs'); ?></div>
@@ -281,82 +299,8 @@ if (get_option("EWD_UFAQ_Update_Flag") == "Yes" or get_option("EWD_UFAQ_Install_
281
  <div class='ewd-ufaq-hide-review-ask' id="ewd-ufaq-hide-review-ask-never" data-askreviewdelay='2000'><?php _e('Never ask me again', 'ultimate-faqs'); ?></div>
282
  </div>
283
  </div>
284
- <?php } ?>
 
285
 
286
- <!-- END MIDDLE BOX -->
287
 
288
- <!-- FOOTER BOX -->
289
- <!-- A list of the products in the catalogue -->
290
- <div class="ewd-dashboard-footer">
291
- <div id='ewd-dashboard-updates' class='ewd-ufaq-updates postbox ewd-ufaq-postbox-collapsible'>
292
- <h3 class='hndle ewd-ufaq-dashboard-h3' id='ewd-recent-changes'><?php _e("Recent Changes", 'ultimate-faqs'); ?> <i class="fa fa-cog" aria-hidden="true"></i></h3>
293
- <div class='ewd-dashboard-content' ><?php echo get_option('EWD_UFAQ_Changelog_Content'); ?></div>
294
- </div>
295
-
296
- <div id='ewd-dashboard-blog' class='ewd-ufaq-blog postbox ewd-ufaq-postbox-collapsible'>
297
- <h3 class='hndle ewd-ufaq-dashboard-h3'>News <i class="fa fa-rss" aria-hidden="true"></i></h3>
298
- <div class='ewd-dashboard-content'><?php echo get_option('EWD_UFAQ_Blog_Content'); ?></div>
299
- </div>
300
-
301
- <div id="ewd-dashboard-plugins" class='ewd-ufaq-plugins postbox ewd-ufaq-postbox-collapsible' >
302
- <h3 class='hndle ewd-ufaq-dashboard-h3'><span><?php _e("Goes great with:", 'ultimate-faqs') ?></span><i class="fa fa-plug" aria-hidden="true"></i></h3>
303
- <div class="inside">
304
- <div class="ewd-dashboard-plugin-icons">
305
- <div style="width:50%">
306
- <a target='_blank' href='https://wordpress.org/plugins/ultimate-product-catalogue/'><img style="width:100%" src='<?php echo plugins_url(); ?>/ultimate-faqs/images/UPCP_Icons-07-300x300.png'/></a>
307
- </div>
308
- <div>
309
- <h3>Product Catalog</h3> <p>Enables you to display your business's products in a clean and efficient manner.</p>
310
- </div>
311
 
312
- </div>
313
- <div class="ewd-dashboard-plugin-icons">
314
- <div style="width:50%">
315
- <a target='_blank' href='https://wordpress.org/plugins/ultimate-reviews/'><img style="width:100%" src='<?php echo plugins_url(); ?>/ultimate-faqs/images/URP_Icons-03.png'/></a>
316
- </div>
317
- <div>
318
- <h3>Ultimate Reviews</h3><p>Let visitors submit reviews and display them right in the tabbed page layout! Require login, email confirmation, and many more options!</p>
319
- </div>
320
-
321
- </div>
322
- </div>
323
- </div>
324
- </div>
325
- </div>
326
-
327
-
328
- <?php
329
- function EWD_UFAQ_Get_EWD_Blog() {
330
- $Blog_URL = EWD_UFAQ_CD_PLUGIN_PATH . 'Blog.html';
331
- $Blog = file_get_contents($Blog_URL);
332
-
333
- update_option('EWD_UFAQ_Blog_Content', $Blog);
334
- }
335
-
336
- function EWD_UFAQ_Get_Changelog() {
337
- $Readme_URL = EWD_UFAQ_CD_PLUGIN_PATH . 'readme.txt';
338
- $Readme = file_get_contents($Readme_URL);
339
-
340
- $Changes_Start = strpos($Readme, "== Changelog ==") + 15;
341
- $Changes_Section = substr($Readme, $Changes_Start);
342
-
343
- $Changes_Text = substr($Changes_Section, 0, strposX($Changes_Section, "=", 5));
344
-
345
- $Changes_Text = str_replace("= ", "<h3>", $Changes_Text);
346
- $Changes_Text = str_replace(" =", "</h3>", $Changes_Text);
347
- $Changes_Text = str_replace("- ", "<br />- ", $Changes_Text);
348
-
349
- update_option('EWD_UFAQ_Changelog_Content', $Changes_Text);
350
- }
351
-
352
- function strposX($haystack, $needle, $number){
353
- if($number == '1'){
354
- return strpos($haystack, $needle);
355
- }elseif($number > '1'){
356
- return strpos($haystack, $needle, strposX($haystack, $needle, $number - 1) + strlen($needle));
357
- }else{
358
- return error_log('Error: Value for parameter $number is out of range');
359
- }
360
- }
361
-
362
- ?>
9
  if (isset($_POST['hide_ufaq_review_box_hidden'])) {update_option('EWD_UFAQ_Hide_Dash_Review_Ask', sanitize_text_field($_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 = get_option("EWD_UFAQ_Install_Time") + 3600*24*4;}
13
 
 
14
  //end review box
15
  ?>
16
 
 
17
 
 
18
 
19
 
20
+
21
+ <!-- START NEW DASHBOARD -->
22
+
23
+ <div id="ewd-ufaq-dashboard-content-area">
24
+
25
+ <div id="ewd-ufaq-dashboard-content-left">
26
+
27
+ <?php if ($UFAQ_Full_Version != "Yes" or get_option("EWD_UFAQ_Trial_Happening") == "Yes") { ?>
28
+ <div class="ewd-ufaq-dashboard-new-widget-box ewd-widget-box-full">
29
+ <div class="ewd-ufaq-dashboard-new-widget-box-top">
30
+ <form method="post" action="edit.php?post_type=ufaq" class="ewd-ufaq-dashboard-key-widget">
31
+ <input class="ewd-ufaq-dashboard-key-widget-input" name="Key" type="text" placeholder="<?php _e('Enter Product Key Here', 'ultimate-faqs'); ?>">
32
+ <input class="ewd-ufaq-dashboard-key-widget-submit" name="EWD_UFAQ_Upgrade_To_Full" type="submit" value="<?php _e('UNLOCK PREMIUM', 'ultimate-faqs'); ?>">
33
+ <div class="ewd-ufaq-dashboard-key-widget-text">Don't have a key? Use the <a href="http://www.etoilewebdesign.com/plugins/ultimate-faq/#buy" target="_blank">Upgrade Now</a> button above to purchase and unlock all premium features.</div>
 
 
 
 
 
 
 
 
 
 
 
 
 
34
  </form>
35
  </div>
36
  </div>
37
+ <?php } ?>
38
+
39
+ <div class="ewd-ufaq-dashboard-new-widget-box ewd-widget-box-full" id="ewd-ufaq-dashboard-support-widget-box">
40
+ <div class="ewd-ufaq-dashboard-new-widget-box-top">Get Support<span id="ewd-ufaq-dash-mobile-support-down-caret">&nbsp;&nbsp;&#9660;</span><span id="ewd-ufaq-dash-mobile-support-up-caret">&nbsp;&nbsp;&#9650;</span></div>
41
+ <div class="ewd-ufaq-dashboard-new-widget-box-bottom">
42
+ <ul class="ewd-ufaq-dashboard-support-widgets">
43
+ <li>
44
+ <a href="https://www.youtube.com/playlist?list=PLEndQUuhlvSrNdfu5FKa1uGHsaKZxgdWt">
45
+ <img src="<?php echo plugins_url( '../images/ewd-support-icon-youtube.png', __FILE__ ); ?>">
46
+ <div class="ewd-ufaq-dashboard-support-widgets-text">YouTube Tutorials</div>
47
+ </a>
48
+ </li>
49
+ <li>
50
+ <a href="https://wordpress.org/plugins/ultimate-faqs/#faq">
51
+ <img src="<?php echo plugins_url( '../images/ewd-support-icon-faqs.png', __FILE__ ); ?>">
52
+ <div class="ewd-ufaq-dashboard-support-widgets-text">Plugin FAQs</div>
53
+ </a>
54
+ </li>
55
+ <li>
56
+ <a href="https://wordpress.org/support/plugin/ultimate-faqs">
57
+ <img src="<?php echo plugins_url( '../images/ewd-support-icon-forum.png', __FILE__ ); ?>">
58
+ <div class="ewd-ufaq-dashboard-support-widgets-text">Support Forum</div>
59
+ </a>
60
+ </li>
61
+ <li>
62
+ <a href="https://www.etoilewebdesign.com/plugins/ultimate-faq/documentation-ultimate-faq/">
63
+ <img src="<?php echo plugins_url( '../images/ewd-support-icon-documentation.png', __FILE__ ); ?>">
64
+ <div class="ewd-ufaq-dashboard-support-widgets-text">Documentation</div>
65
+ </a>
66
+ </li>
67
+ </ul>
68
+ </div>
69
  </div>
70
+
71
+ <div class="ewd-ufaq-dashboard-new-widget-box ewd-widget-box-full" id="ewd-ufaq-dashboard-optional-table">
72
+ <div class="ewd-ufaq-dashboard-new-widget-box-top">FAQ Summary<span id="ewd-ufaq-dash-optional-table-down-caret">&nbsp;&nbsp;&#9660;</span><span id="ewd-ufaq-dash-optional-table-up-caret">&nbsp;&nbsp;&#9650;</span></div>
73
+ <div class="ewd-ufaq-dashboard-new-widget-box-bottom">
74
+ <table class='ewd-ufaq-overview-table wp-list-table widefat fixed striped posts'>
75
+ <thead>
76
+ <tr>
77
+ <th><?php _e("Title", 'EWD_ABCO'); ?></th>
78
+ <th><?php _e("Views", 'EWD_ABCO'); ?></th>
79
+ <th><?php _e("Categories", 'EWD_ABCO'); ?></th>
80
+ </tr>
81
+ </thead>
82
+ <tbody>
83
  <?php
84
+ $args = array(
85
+ 'post_type' => 'ufaq',
86
+ 'orderby' => 'meta_value_num',
87
+ 'meta_key' => 'ufaq_view_count',
88
+ 'posts_per_page' => 10
89
+ );
90
+
91
+ $Dashboard_FAQs_Query = new WP_Query($args);
92
+ $Dashboard_FAQs = $Dashboard_FAQs_Query->get_posts();
93
+
94
+ if (sizeOf($Dashboard_FAQs) == 0) {echo "<tr><td colspan='3'>" . __("No FAQs to display yet. Create an FAQ and then view it for it to be displayed here.", 'ultimate-faqs') . "</td></tr>";}
95
+ else {
96
+ foreach ($Dashboard_FAQs as $Dashboard_FAQ) { ?>
97
+ <tr>
98
+ <td><a href='post.php?post=<?php echo $Dashboard_FAQ->ID;?>&action=edit'><?php echo $Dashboard_FAQ->post_title; ?></a></td>
99
+ <td><?php echo get_post_meta($Dashboard_FAQ->ID, 'ufaq_view_count', true); ?></td>
100
+ <td><?php echo EWD_UFAQ_Get_Categories($Dashboard_FAQ->ID); ?></td>
101
+ </tr>
102
+ <?php }
103
+ }
104
  ?>
105
+ </tbody>
106
+ </table>
107
+ </div>
108
+ </div>
 
 
 
 
 
 
 
 
 
 
 
 
109
 
110
+ <div class="ewd-ufaq-dashboard-new-widget-box <?php echo ( ($hideReview != 'Yes' and $Ask_Review_Date < time()) ? 'ewd-widget-box-two-thirds' : 'ewd-widget-box-full' ); ?>">
111
+ <div class="ewd-ufaq-dashboard-new-widget-box-top">What People Are Saying</div>
112
+ <div class="ewd-ufaq-dashboard-new-widget-box-bottom">
113
+ <ul class="ewd-ufaq-dashboard-testimonials">
114
+ <?php $randomTestimonial = rand(0,2);
115
+ if($randomTestimonial == 0){ ?>
116
+ <li id="ewd-ufaq-dashboard-testimonial-one">
117
+ <img src="<?php echo plugins_url( '../images/dash-asset-stars.png', __FILE__ ); ?>">
118
+ <div class="ewd-ufaq-dashboard-testimonial-title">"Awesome. Just Awesome."</div>
119
+ <div class="ewd-ufaq-dashboard-testimonial-author">- @johnny</div>
120
+ <div class="ewd-ufaq-dashboard-testimonial-text">Thanks for this very well-made plugin. This works so well out of the box, I barely had to do ANYTHING to create an amazing FAQ accordion display... <a href="#">read more</a></div>
121
+ </li>
122
+ <?php }
123
+ if($randomTestimonial == 1){ ?>
124
+ <li id="ewd-ufaq-dashboard-testimonial-two">
125
+ <img src="<?php echo plugins_url( '../images/dash-asset-stars.png', __FILE__ ); ?>">
126
+ <div class="ewd-ufaq-dashboard-testimonial-title">"Great. Just Great."</div>
127
+ <div class="ewd-ufaq-dashboard-testimonial-author">- @marie</div>
128
+ <div class="ewd-ufaq-dashboard-testimonial-text">Thanks for this very well-made plugin. This works so well out of the box, I barely had to do ANYTHING to create an amazing FAQ accordion display... <a href="#">read more</a></div>
129
+ </li>
130
+ <?php }
131
+ if($randomTestimonial == 2){ ?>
132
+ <li id="ewd-ufaq-dashboard-testimonial-three">
133
+ <img src="<?php echo plugins_url( '../images/dash-asset-stars.png', __FILE__ ); ?>">
134
+ <div class="ewd-ufaq-dashboard-testimonial-title">"Fantastic. Just Fantastic."</div>
135
+ <div class="ewd-ufaq-dashboard-testimonial-author">- @amber</div>
136
+ <div class="ewd-ufaq-dashboard-testimonial-text">Thanks for this very well-made plugin. This works so well out of the box, I barely had to do ANYTHING to create an amazing FAQ accordion display... <a href="#">read more</a></div>
137
+ </li>
138
+ <?php } ?>
139
+ </ul>
140
+ </div>
141
+ </div>
142
 
143
+ <?php if($hideReview != 'Yes' and $Ask_Review_Date < time()){ ?>
144
+ <div class="ewd-ufaq-dashboard-new-widget-box ewd-widget-box-one-third">
145
+ <div class="ewd-ufaq-dashboard-new-widget-box-top">Leave a review</div>
146
+ <div class="ewd-ufaq-dashboard-new-widget-box-bottom">
147
+ <div class="ewd-ufaq-dashboard-review-ask">
148
+ <img src="<?php echo plugins_url( '../images/dash-asset-stars.png', __FILE__ ); ?>">
149
+ <div class="ewd-ufaq-dashboard-review-ask-text">If you enjoy this plugin and have a minute, please consider leaving a 5-star review. Thank you!</div>
150
+ <a href="https://wordpress.org/plugins/ultimate-faqs/#reviews" class="ewd-ufaq-dashboard-review-ask-button">LEAVE A REVIEW</a>
151
+ <form action="admin.php?page=EWD-UFAQ-Options" method="post">
152
+ <input type="hidden" name="hide_ufaq_review_box_hidden" value="Yes">
153
+ <input type="submit" name="hide_ufaq_review_box_submit" class="ewd-ufaq-dashboard-review-ask-dismiss" value="I've already left a review">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
154
  </form>
155
+ </div>
156
+ </div>
157
+ </div>
158
+ <?php } ?>
159
+
160
+ <?php if ($UFAQ_Full_Version != "Yes" or get_option("EWD_UFAQ_Trial_Happening") == "Yes") { ?>
161
+ <div class="ewd-ufaq-dashboard-new-widget-box ewd-widget-box-full" id="ewd-ufaq-dashboard-guarantee-widget-box">
162
+ <div class="ewd-ufaq-dashboard-new-widget-box-top">
163
+ <div class="ewd-ufaq-dashboard-guarantee">
164
+ <div class="ewd-ufaq-dashboard-guarantee-title">14-Day 100% Money-Back Guarantee</div>
165
+ <div class="ewd-ufaq-dashboard-guarantee-text">If you're not 100% satisfied with the premium version of our plugin - no problem. You have 14 days to receive a FULL REFUND. We're certain you won't need it, though. Lorem ipsum dolor sitamet, consectetuer adipiscing elit.</div>
166
+ </div>
167
+ </div>
168
+ </div>
169
+ <?php } ?>
170
+
171
+ </div> <!-- left -->
172
+
173
+ <div id="ewd-ufaq-dashboard-content-right">
174
+
175
+ <?php if ($UFAQ_Full_Version != "Yes" or get_option("EWD_UFAQ_Trial_Happening") == "Yes") { ?>
176
+ <div class="ewd-ufaq-dashboard-new-widget-box ewd-widget-box-full" id="ewd-ufaq-dashboard-get-premium-widget-box">
177
+ <div class="ewd-ufaq-dashboard-new-widget-box-top">Get Premium</div>
178
+ <?php if(get_option("EWD_UFAQ_Trial_Happening") == "Yes"){
179
+ $trialExpireTime = get_option("EWD_UFAQ_Trial_Expiry_Time");
180
+ $currentTime = time();
181
+ $trialTimeLeft = $trialExpireTime - $currentTime;
182
+ $trialTimeLeftDays = ( date("d", $trialTimeLeft) ) - 1;
183
+ $trialTimeLeftHours = date("H", $trialTimeLeft);
184
+ ?>
185
+ <div class="ewd-ufaq-dashboard-new-widget-box-bottom">
186
+ <div class="ewd-ufaq-dashboard-get-premium-widget-trial-time">
187
+ <div class="ewd-ufaq-dashboard-get-premium-widget-trial-days"><?php echo $trialTimeLeftDays; ?><span>days</span></div>
188
+ <div class="ewd-ufaq-dashboard-get-premium-widget-trial-hours"><?php echo $trialTimeLeftHours; ?><span>hours</span></div>
189
+ </div>
190
+ <div class="ewd-ufaq-dashboard-get-premium-widget-trial-time-left">LEFT IN TRIAL</div>
191
+ </div>
192
+ <?php } ?>
193
+ <div class="ewd-ufaq-dashboard-new-widget-box-bottom">
194
+ <div class="ewd-ufaq-dashboard-get-premium-widget-features-title"<?php echo ( get_option("EWD_UFAQ_Trial_Happening") == "Yes" ? "style='padding-top: 20px;'" : ""); ?>>GET FULL ACCESS WITH OUR PREMIUM VERSION AND GET:</div>
195
+ <ul class="ewd-ufaq-dashboard-get-premium-widget-features">
196
+ <li>Unlimited FAQs</li>
197
+ <li>Advanced Styling Options</li>
198
+ <li>Social Sharing</li>
199
+ <li>SEO-Friendly Permalinks</li>
200
+ <li>+ More</li>
201
+ </ul>
202
+ <a href="http://www.etoilewebdesign.com/plugins/ultimate-faq/#buy" class="ewd-ufaq-dashboard-get-premium-widget-button" target="_blank">UPGRADE NOW</a>
203
+ </div>
204
+ </div>
205
+ <?php } ?>
206
+
207
+ <div class="ewd-ufaq-dashboard-new-widget-box ewd-widget-box-full">
208
+ <div class="ewd-ufaq-dashboard-new-widget-box-top">Other Plugins by Etoile</div>
209
+ <div class="ewd-ufaq-dashboard-new-widget-box-bottom">
210
+ <ul class="ewd-ufaq-dashboard-other-plugins">
211
+ <li>
212
+ <a href="https://wordpress.org/plugins/ultimate-product-catalogue/" target="_blank"><img src="<?php echo plugins_url( '../images/ewd-upcp-icon.png', __FILE__ ); ?>"></a>
213
+ <div class="ewd-ufaq-dashboard-other-plugins-text">
214
+ <div class="ewd-ufaq-dashboard-other-plugins-title">Product Catalog</div>
215
+ <div class="ewd-ufaq-dashboard-other-plugins-blurb">Enables you to display your business's products in a clean and efficient manner.</div>
216
+ </div>
217
+ </li>
218
+ <li>
219
+ <a href="https://wordpress.org/plugins/ultimate-reviews/" target="_blank"><img src="<?php echo plugins_url( '../images/ewd-urp-icon.png', __FILE__ ); ?>"></a>
220
+ <div class="ewd-ufaq-dashboard-other-plugins-text">
221
+ <div class="ewd-ufaq-dashboard-other-plugins-title">Ultimate Reviews</div>
222
+ <div class="ewd-ufaq-dashboard-other-plugins-blurb">Let visitors submit reviews and display them right in the tabbed page layout!</div>
223
+ </div>
224
+ </li>
225
+ </ul>
226
  </div>
227
  </div>
 
 
 
 
 
 
 
 
228
 
229
+ </div> <!-- right -->
230
 
231
+ </div> <!-- ewd-ufaq-dashboard-content-area -->
 
 
 
232
 
233
+ <?php if ($UFAQ_Full_Version != "Yes" or get_option("EWD_UFAQ_Trial_Happening") == "Yes") { ?>
234
+ <div id="ewd-ufaq-dashboard-new-footer-one">
235
+ <div class="ewd-ufaq-dashboard-new-footer-one-inside">
236
+ <div class="ewd-ufaq-dashboard-new-footer-one-left">
237
+ <div class="ewd-ufaq-dashboard-new-footer-one-title">What's Included in Our Premium Version?</div>
238
+ <ul class="ewd-ufaq-dashboard-new-footer-one-benefits">
239
+ <li>Unlimited FAQs</li>
240
+ <li>15 Different Icon Sets</li>
241
+ <li>Import/Export FAQs</li>
242
+ <li>Advanced Styling Options</li>
243
+ <li>FAQ Search</li>
244
+ <li>WooCommerce FAQs</li>
245
+ <li>Unlimited FAQs</li>
246
+ <li>15 Different Icon Sets</li>
247
+ <li>Import/Export FAQs</li>
248
+ <li>Advanced Styling Options</li>
249
+ <li>FAQ Search</li>
250
+ <li>WooCommerce FAQs</li>
251
+ </ul>
252
+ </div>
253
+ <div class="ewd-ufaq-dashboard-new-footer-one-buttons">
254
+ <a class="ewd-ufaq-dashboard-new-upgrade-button" href="http://www.etoilewebdesign.com/plugins/ultimate-faq/#buy" target="_blank">UPGRADE NOW</a>
255
+ </div>
256
  </div>
257
+ </div> <!-- ewd-ufaq-dashboard-new-footer-one -->
258
+ <?php } ?>
259
+ <div id="ewd-ufaq-dashboard-new-footer-two">
260
+ <div class="ewd-ufaq-dashboard-new-footer-two-inside">
261
+ <img src="<?php echo plugins_url( '../images/ewd-logo-white.png', __FILE__ ); ?>" class="ewd-ufaq-dashboard-new-footer-two-icon">
262
+ <div class="ewd-ufaq-dashboard-new-footer-two-blurb">
263
+ At Etoile Web Design, we build reliable, easy-to-use WordPress plugins with a modern look. Rich in features, highly customizable and responsive, plugins by Etoile Web Design can be used as out-of-the-box solutions and can also be adapted to your specific requirements.
 
 
264
  </div>
265
+ <ul class="ewd-ufaq-dashboard-new-footer-two-menu">
266
+ <li>SOCIAL</li>
267
+ <li><a href="https://www.facebook.com/EtoileWebDesign/">Facebook</a></li>
268
+ <li><a href="https://twitter.com/EtoileWebDesign">Twitter</a></li>
269
+ <li><a href="https://www.etoilewebdesign.com/blog/">Blog</a></li>
270
+ </ul>
271
+ <ul class="ewd-ufaq-dashboard-new-footer-two-menu">
272
+ <li>SUPPORT</li>
273
+ <li><a href="https://www.youtube.com/playlist?list=PLEndQUuhlvSrNdfu5FKa1uGHsaKZxgdWt">YouTube Tutorials</a></li>
274
+ <li><a href="https://wordpress.org/support/plugin/ultimate-faqs">Forums</a></li>
275
+ <li><a href="http://www.etoilewebdesign.com/plugins/ultimate-faq/documentation-ultimate-faq/">Documentation</a></li>
276
+ <li><a href="https://wordpress.org/plugins/ultimate-faqs/#faq">FAQs</a></li>
277
+ </ul>
278
  </div>
279
+ </div> <!-- ewd-ufaq-dashboard-new-footer-two -->
280
 
281
+ <!-- END NEW DASHBOARD -->
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
282
 
283
 
284
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
285
 
286
+ <?php //if ($Ask_Review_Date < time()) { ?>
287
+ <!--
288
  <div id='ewd-ufaq-review-ask-overlay'></div>
289
  <div class='ewd-ufaq-review-ask-popup'>
290
  <div class='ewd-ufaq-review-ask-title'><?php _e('Thank You!', 'ultimate-faqs'); ?></div>
299
  <div class='ewd-ufaq-hide-review-ask' id="ewd-ufaq-hide-review-ask-never" data-askreviewdelay='2000'><?php _e('Never ask me again', 'ultimate-faqs'); ?></div>
300
  </div>
301
  </div>
302
+ -->
303
+ <?php //}
304
 
 
305
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
306
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
html/ExportPage.php CHANGED
@@ -2,24 +2,29 @@
2
  $Custom_CSS = get_option("EWD_UFAQ_Custom_CSS");
3
  ?>
4
  <div class="wrap">
5
- <div id="icon-options-general" class="icon32"><br /></div><h2>Export</h2>
6
 
7
- <?php if ($UFAQ_Full_Version != "Yes") { ?>
8
- <div class='ewd-ufaq-upgrade notice'>Upgrade to the premium version to use these features</div>
9
- <?php } ?>
10
 
11
- <form method="post" action="admin.php?page=EWD-UFAQ-Options&DisplayPage=Export&Action=EWD_UFAQ_ExportToPDF">
12
- <table class="form-table">
13
- </table>
14
 
 
 
 
15
 
16
- <p class="submit"><input type="submit" name="Export_Submit" id="submit" class="button button-primary" value="Export to PDF" <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></p></form>
 
 
17
 
18
- <form method="post" action="admin.php?page=EWD-UFAQ-Options&DisplayPage=Export&Action=EWD_UFAQ_ExportToSpreadsheet">
19
- <table class="form-table">
20
- </table>
21
 
 
22
 
23
- <p class="submit"><input type="submit" name="Export_Submit" id="submit" class="button button-primary" value="Export to Spreadsheet" <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></p></form>
 
 
 
 
 
 
 
24
 
25
  </div>
2
  $Custom_CSS = get_option("EWD_UFAQ_Custom_CSS");
3
  ?>
4
  <div class="wrap">
 
5
 
6
+ <div class="ewd-ufaq-import-export-container">
 
 
7
 
8
+ <div id="icon-options-general" class="icon32"><br /></div><h2>Export</h2>
 
 
9
 
10
+ <?php if ($UFAQ_Full_Version != "Yes") { ?>
11
+ <div class='ewd-ufaq-upgrade notice'>Upgrade to the premium version to use these features</div>
12
+ <?php } ?>
13
 
14
+ <form method="post" action="admin.php?page=EWD-UFAQ-Options&DisplayPage=Export&Action=EWD_UFAQ_ExportToPDF">
15
+ <table class="form-table">
16
+ </table>
17
 
 
 
 
18
 
19
+ <p class="submit"><input type="submit" name="Export_Submit" id="submit" class="button button-primary" value="Export to PDF" <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></p></form>
20
 
21
+ <form method="post" action="admin.php?page=EWD-UFAQ-Options&DisplayPage=Export&Action=EWD_UFAQ_ExportToSpreadsheet">
22
+ <table class="form-table">
23
+ </table>
24
+
25
+
26
+ <p class="submit"><input type="submit" name="Export_Submit" id="submit" class="button button-primary" value="Export to Spreadsheet" <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /></p></form>
27
+
28
+ </div> <!--ewd-ufaq-import-export-container-->
29
 
30
  </div>
html/ImportPage.php CHANGED
@@ -2,29 +2,34 @@
2
  $Custom_CSS = get_option("EWD_UFAQ_Custom_CSS");
3
  ?>
4
  <div class="wrap">
5
- <div id="icon-options-general" class="icon32"><br /></div><h2>Import</h2>
6
 
7
- <?php if ($UFAQ_Full_Version != "Yes") { ?>
8
- <div class='ewd-ufaq-upgrade notice'>Upgrade to the premium version to use some of these features</div>
9
- <?php } ?>
10
 
11
- <h4>Import FAQs from Plugin</h4>
12
- <p>Import all of your FAQ posts and categories from the plugin "Q and A FAQ and Knowledge Base for WordPress"</p>
13
- <form method="post" action="admin.php?page=EWD-UFAQ-Options&DisplayPage=ImportPosts&Action=EWD_UFAQ_ImportFaqs">
14
- <table class="form-table">
15
- </table>
16
 
 
 
 
17
 
18
- <p class="submit"><input type="submit" name="Export_Submit" id="submit" class="button button-primary" value="Import Plugin FAQs" /></p></form>
 
 
 
 
19
 
20
- <h4>Import FAQs from a spreadsheet</h4>
21
- <form method="post" action="admin.php?page=EWD-UFAQ-Options&DisplayPage=ImportPosts&Action=EWD_UFAQ_ImportFaqsFromSpreadsheet" enctype="multipart/form-data">
22
- <div class="form-field form-required">
23
- <label for="FAQs_Spreadsheet"><?php _e("Spreadsheet Containing FAQs", 'ultimate-faqs') ?></label><br />
24
- <input name="FAQs_Spreadsheet" id="FAQs_Spreadsheet" type="file" value=""/>
25
- </div>
26
 
 
27
 
28
- <p class="submit"><input type="submit" name="Export_Submit" id="submit" class="button button-primary" value="Import Spreadsheet FAQs" <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/></p></form>
 
 
 
 
 
29
 
30
- </div>
 
 
 
 
 
2
  $Custom_CSS = get_option("EWD_UFAQ_Custom_CSS");
3
  ?>
4
  <div class="wrap">
 
5
 
6
+ <div class="ewd-ufaq-import-export-container">
 
 
7
 
8
+ <div id="icon-options-general" class="icon32"><br /></div><h2>Import</h2>
 
 
 
 
9
 
10
+ <?php if ($UFAQ_Full_Version != "Yes") { ?>
11
+ <div class='ewd-ufaq-upgrade notice'>Upgrade to the premium version to use some of these features</div>
12
+ <?php } ?>
13
 
14
+ <h4>Import FAQs from Plugin</h4>
15
+ <p>Import all of your FAQ posts and categories from the plugin "Q and A FAQ and Knowledge Base for WordPress"</p>
16
+ <form method="post" action="admin.php?page=EWD-UFAQ-Options&DisplayPage=ImportPosts&Action=EWD_UFAQ_ImportFaqs">
17
+ <table class="form-table">
18
+ </table>
19
 
 
 
 
 
 
 
20
 
21
+ <p class="submit"><input type="submit" name="Export_Submit" id="submit" class="button button-primary" value="Import Plugin FAQs" /></p></form>
22
 
23
+ <h4>Import FAQs from a spreadsheet</h4>
24
+ <form method="post" action="admin.php?page=EWD-UFAQ-Options&DisplayPage=ImportPosts&Action=EWD_UFAQ_ImportFaqsFromSpreadsheet" enctype="multipart/form-data">
25
+ <div class="form-field form-required">
26
+ <label for="FAQs_Spreadsheet"><?php _e("Spreadsheet Containing FAQs", 'ultimate-faqs') ?></label><br />
27
+ <input name="FAQs_Spreadsheet" id="FAQs_Spreadsheet" type="file" value=""/>
28
+ </div>
29
 
30
+
31
+ <p class="submit"><input type="submit" name="Export_Submit" id="submit" class="button button-primary" value="Import Spreadsheet FAQs" <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?>/></p></form>
32
+
33
+ </div> <!--ewd-ufaq-import-export-container-->
34
+
35
+ </div> <!--wrap-->
html/OptionsPage.php CHANGED
@@ -520,7 +520,7 @@
520
  <fieldset><legend class="screen-reader-text"><span>Submit Custom Fields</span></legend>
521
  <label title='Yes'><input type='radio' name='submit_custom_fields' value='Yes' <?php if($Submit_Custom_Fields == "Yes") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /> <span>Yes</span></label><br />
522
  <label title='No'><input type='radio' name='submit_custom_fields' value='No' <?php if($Submit_Custom_Fields == "No") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /> <span>No</span></label><br />
523
- <p>When using the user-submitted question shortcode, should users be able to fill in custom fields for the question they're submitting? File type custom fields cannot be submitted.</p>
524
  </fieldset>
525
  </td>
526
  </tr>
520
  <fieldset><legend class="screen-reader-text"><span>Submit Custom Fields</span></legend>
521
  <label title='Yes'><input type='radio' name='submit_custom_fields' value='Yes' <?php if($Submit_Custom_Fields == "Yes") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /> <span>Yes</span></label><br />
522
  <label title='No'><input type='radio' name='submit_custom_fields' value='No' <?php if($Submit_Custom_Fields == "No") {echo "checked='checked'";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> /> <span>No</span></label><br />
523
+ <p>When using the user-submitted question shortcode, should users be able to fill in custom fields for the question they're submitting? File type custom fields cannot be submitted for security reasons.</p>
524
  </fieldset>
525
  </td>
526
  </tr>
js/Admin.js CHANGED
@@ -168,4 +168,36 @@ function EWD_UFAQ_hexToRgb(hex) {
168
  g: parseInt(result[2], 16),
169
  b: parseInt(result[3], 16)
170
  } : null;
171
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
168
  g: parseInt(result[2], 16),
169
  b: parseInt(result[3], 16)
170
  } : null;
171
+ }
172
+
173
+ //NEW DASHBOARD MOBILE MENU AND WIDGET TOGGLING
174
+ jQuery(document).ready(function($){
175
+ $('#ewd-ufaq-dash-mobile-menu-open').click(function(){
176
+ $('.EWD_UFAQ_Menu .nav-tab:nth-of-type(1n+2)').toggle();
177
+ $('#ewd-ufaq-dash-mobile-menu-up-caret').toggle();
178
+ $('#ewd-ufaq-dash-mobile-menu-down-caret').toggle();
179
+ return false;
180
+ });
181
+ $(function(){
182
+ $(window).resize(function(){
183
+ if($(window).width() > 800){
184
+ $('.EWD_UFAQ_Menu .nav-tab:nth-of-type(1n+2)').show();
185
+ }
186
+ else{
187
+ $('.EWD_UFAQ_Menu .nav-tab:nth-of-type(1n+2)').hide();
188
+ $('#ewd-ufaq-dash-mobile-menu-up-caret').hide();
189
+ $('#ewd-ufaq-dash-mobile-menu-down-caret').show();
190
+ }
191
+ }).resize();
192
+ });
193
+ $('#ewd-ufaq-dashboard-support-widget-box .ewd-ufaq-dashboard-new-widget-box-top').click(function(){
194
+ $('#ewd-ufaq-dashboard-support-widget-box .ewd-ufaq-dashboard-new-widget-box-bottom').toggle();
195
+ $('#ewd-ufaq-dash-mobile-support-up-caret').toggle();
196
+ $('#ewd-ufaq-dash-mobile-support-down-caret').toggle();
197
+ });
198
+ $('#ewd-ufaq-dashboard-optional-table .ewd-ufaq-dashboard-new-widget-box-top').click(function(){
199
+ $('#ewd-ufaq-dashboard-optional-table .ewd-ufaq-dashboard-new-widget-box-bottom').toggle();
200
+ $('#ewd-ufaq-dash-optional-table-up-caret').toggle();
201
+ $('#ewd-ufaq-dash-optional-table-down-caret').toggle();
202
+ });
203
+ });
readme.txt CHANGED
@@ -266,6 +266,10 @@ Video 3 - FAQs Ordering
266
 
267
 
268
  == Changelog ==
 
 
 
 
269
  = 1.6.17 =
270
  - Added an option to change who has access to the FAQ admin area
271
 
266
 
267
 
268
  == Changelog ==
269
+ = 1.6.18 =
270
+ - We're doing a big FAQ admin area styling update, first up is the dashboard!
271
+ - Clarified the 'file' field type restriction for the submit FAQ shortcode
272
+
273
  = 1.6.17 =
274
  - Added an option to change who has access to the FAQ admin area
275