PluginProbe
WP Data Access – App Builder for Tables, Forms, Charts, Maps & Dashboards / 5.5.85
WP Data Access – App Builder for Tables, Forms, Charts, Maps & Dashboards v5.5.85
5.5.85 5.5.84 5.5.83 5.5.82 5.5.81 5.5.80 5.5.79 5.5.77 5.5.76 5.5.75 5.5.73 5.5.72 5.5.22 5.5.23 5.5.29 5.5.3 5.5.31 5.5.32 5.5.34 5.5.35 5.5.36 5.5.37 5.5.4 5.5.40 5.5.41 All 161 releases
← All changes | WPDataAccess/Dashboard/WPDA_Dashboard.php +5 -220 5.5.82 → 5.5.85 View file →
@@ -233,17 +233,9 @@
233 233 $this->dashboard_js();
234 234 break;
235 235 case WP_Data_Access_Admin::PAGE_MAIN:
236 236 if ( !isset( $_REQUEST['page_action'] ) ) {
237 - if ( !isset( $_REQUEST['table_name'] ) ) {
238 - $this->toolbar_wpda();
239 - } else {
240 - if ( !isset( $_REQUEST['action'] ) || 'new' !== $_REQUEST['action'] && 'edit' !== $_REQUEST['action'] ) {
241 - $this->toolbar_wpda_table();
242 - } else {
243 - $this->toolbar_wpda_row();
244 - }
245 - }
237 + $this->toolbar_wpda();
246 238 } elseif ( 'wpda_backup' === $_REQUEST['page_action'] && (!isset( $_REQUEST['action'] ) || 'remove' === $_REQUEST['action'] || 'update' === $_REQUEST['action'] || 'add' === $_REQUEST['action']) ) {
247 239 $this->toolbar_backup();
248 240 } elseif ( 'wpda_import_csv' === $_REQUEST['page_action'] ) {
249 241 $this->toolbar_import_csv();
@@ -251,11 +243,8 @@
251 243 break;
252 244 case WP_Data_Access_Admin::PAGE_APPS:
253 245 $this->toolbar_apps();
254 246 break;
255 - case WP_Data_Access_Admin::PAGE_QUERY_BUILDER:
256 - $this->toolbar_sql();
257 - break;
258 247 case WP_Data_Access_Admin::PAGE_DESIGNER:
259 248 if ( !isset( $_REQUEST['action'] ) || 'new' !== $_REQUEST['action'] && 'edit' !== $_REQUEST['action'] ) {
260 249 $this->toolbar_designer();
261 250 }
@@ -1000,11 +989,9 @@
1000 989 </div><?php
1001 990 ?>
1002 991 </div>
1003 992 </div>
1004 - <div class="wpda-promotion" style="font-size: 16px">
1005 - The old Data Explorer is no longer available. <a href="https://wpdataaccess.com/contact/" target="_blank"><i class="fa-solid fa-arrow-up-right-from-square"></i> Please contact us if you need any help.</a>
1006 - </div>
993 + <div></div>
1007 994 <?php
1008 995 //$this->get_promotions('wpda');
1009 996 ?>
1010 997 </div>
@@ -1011,109 +998,8 @@
1011 998 <?php
1012 999 }
1013 1000
1014 1001 /**
1015 - * Data Explorer table page toolbar
1016 - *
1017 - * @return void
1018 - */
1019 - protected function toolbar_wpda_table() {
1020 - ?>
1021 - <form id="wpda_new_row" style="display: none" method="post" action="?page=<?php
1022 - echo esc_attr( WP_Data_Access_Admin::PAGE_MAIN );
1023 - ?>">
1024 - <?php
1025 - if ( isset( $_REQUEST['wpdaschema_name'] ) ) {
1026 - $schema_name = esc_attr( sanitize_text_field( wp_unslash( $_REQUEST['wpdaschema_name'] ) ) );
1027 - // phpcs:disable WordPress.Security.EscapeOutput
1028 - echo "<input type='hidden' name='wpdaschema_name' value='{$schema_name}'>";
1029 - // phpcs:enable WordPress.Security.EscapeOutput
1030 - }
1031 - ?>
1032 - <input type="hidden" id="wpda_new_row_table_name" name="table_name" value="">
1033 - <input type="hidden" name="action" value="new">
1034 - </form>
1035 - <div id="wpda-dashboard-toolbar" class="wpda-dashboard-toolbar" style="display:none">
1036 - <div class="wpda-nowrap">
1037 - <div>
1038 - <div>
1039 - <a href="javascript:void(0)"
1040 - id="wpda_toolbar_icon_add_row"
1041 - class="wpda-dashboard-item wpda_tooltip"
1042 - title="Add new row to table"
1043 - >
1044 - <i class="fas fa-plus-circle"></i>
1045 - <div>
1046 - Add row
1047 - </div>
1048 - </a>
1049 - </div><div>
1050 - <a onclick="jQuery('#upload_file_container').show()"
1051 - href="javascript:void(0)"
1052 - class="wpda-dashboard-item wpda_tooltip"
1053 - title="Allows only imports into table authors"
1054 - >
1055 - <i class="fas fa-code"></i>
1056 - <div>
1057 - Import rows
1058 - </div>
1059 - </a>
1060 - </div>
1061 - </div>
1062 - </div>
1063 - <?php
1064 - $this->get_promotions( 'table' );
1065 - ?>
1066 - </div>
1067 - <?php
1068 - }
1069 -
1070 - /**
1071 - * Data Explorer data entry form toolbar
1072 - *
1073 - * @return void
1074 - */
1075 - protected function toolbar_wpda_row() {
1076 - ?>
1077 - <form id="wpda_new_row" style="display: none" method="post" action="?page=<?php
1078 - echo esc_attr( WP_Data_Access_Admin::PAGE_MAIN );
1079 - ?>">
1080 - <?php
1081 - if ( isset( $_REQUEST['wpdaschema_name'] ) ) {
1082 - $schema_name = esc_attr( sanitize_text_field( wp_unslash( $_REQUEST['wpdaschema_name'] ) ) );
1083 - // phpcs:disable WordPress.Security.EscapeOutput
1084 - echo "<input type='hidden' name='wpdaschema_name' value='{$schema_name}'>";
1085 - // phpcs:enable WordPress.Security.EscapeOutput
1086 - }
1087 - ?>
1088 - <input type="hidden" id="wpda_new_row_table_name" name="table_name" value="">
1089 - <input type="hidden" name="action" value="new">
1090 - </form>
1091 - <div id="wpda-dashboard-toolbar" class="wpda-dashboard-toolbar" style="display:none">
1092 - <div class="wpda-nowrap">
1093 - <div>
1094 - <div>
1095 - <a href="javascript:void(0)"
1096 - id="wpda_toolbar_icon_add_row"
1097 - class="wpda-dashboard-item wpda_tooltip"
1098 - title="Add new row to table"
1099 - >
1100 - <i class="fas fa-plus-circle"></i>
1101 - <div>
1102 - Add row
1103 - </div>
1104 - </a>
1105 - </div>
1106 - </div>
1107 - </div>
1108 - <?php
1109 - $this->get_promotions( 'row' );
1110 - ?>
1111 - </div>
1112 - <?php
1113 - }
1114 -
1115 - /**
1116 1002 * Data Backup toolbar
1117 1003 *
1118 1004 * @return void
1119 1005 */
@@ -1264,109 +1150,8 @@
1264 1150 <?php
1265 1151 }
1266 1152
1267 1153 /**
1268 - * Query Builder toolbar
1269 - *
1270 - * @return void
1271 - */
1272 - protected function toolbar_sql() {
1273 - $current_query_builder_version = get_user_meta( WPDA::get_current_user_id(), 'wpda_query_builder_version', true );
1274 - ?>
1275 - <div id="wpda-dashboard-toolbar" class="wpda-dashboard-toolbar" style="display:none">
1276 - <div class="wpda-nowrap">
1277 - <div>
1278 - <?php
1279 - if ( 'old' === $current_query_builder_version ) {
1280 - ?>
1281 - <div>
1282 - <a href="javascript:tabNew()"
1283 - class="wpda-dashboard-item wpda_tooltip"
1284 - title="Create new query"
1285 - >
1286 - <i class="fas fa-plus-circle"></i>
1287 - <div>
1288 - Create new query
1289 - </div>
1290 - </a>
1291 - </div><div>
1292 - <a href="javascript:openQuery()"
1293 - class="wpda-dashboard-item wpda_tooltip"
1294 - title="Open existing query"
1295 - >
1296 - <i class="fas fa-folder-open"></i>
1297 - <div>
1298 - Open existing query
1299 - </div>
1300 - </a>
1301 - </div>
1302 - <?php
1303 - } else {
1304 - ?>
1305 - <div>
1306 - <a href="javascript:void(0)"
1307 - onclick="ppActionOpenQueriesMenu(event)"
1308 - class="wpda-dashboard-item wpda_tooltip"
1309 - title="Create new query"
1310 - >
1311 - <i class="fas fa-bars"></i>
1312 - <div>
1313 - Menu
1314 - </div>
1315 - </a>
1316 - </div><div>
1317 - <a href="javascript:void(0)"
1318 - onclick="ppActionFullScreen()"
1319 - class="wpda-dashboard-item wpda_tooltip"
1320 - title="Switch to full screen mode"
1321 - >
1322 - <i class="fas fa-expand"></i>
1323 - <div>
1324 - Full Screen
1325 - </div>
1326 - </a>
1327 - </div>
1328 - <?php
1329 - }
1330 - ?>
1331 - </div>
1332 - </div>
1333 - <div class="wpda-promotion" style="font-size: 16px">
1334 - <?php
1335 - if ( 'old' !== $current_query_builder_version ) {
1336 - ?>
1337 - <span
1338 - style="display: flex; align-items: center; gap: 5px; white-space: nowrap;"
1339 - >
1340 - <a href="?page=<?php
1341 - echo esc_attr( WP_Data_Access_Admin::PAGE_QUERY_BUILDER );
1342 - ?>&qb=old"
1343 - style="display: flex; align-items: center; gap: 5px; white-space: nowrap;"
1344 - >
1345 - <i class="fas fa-toggle-on"></i>
1346 - <span>Switch to old Query Builder</span>
1347 - </a>
1348 - </span>
1349 - <?php
1350 - } else {
1351 - ?>
1352 - <a href="?page=<?php
1353 - echo esc_attr( WP_Data_Access_Admin::PAGE_QUERY_BUILDER );
1354 - ?>&qb=new"
1355 - style="display: flex; align-items: center; gap: 5px;"
1356 - >
1357 - <i class="fas fa-toggle-off"></i>
1358 - <span>Switch to new Query Builder</span>
1359 - </a>
1360 - <?php
1361 - }
1362 - ?>
1363 - </div>
1364 - </div>
1365 - <?php
1366 - }
1367 -
1368 - /**
1369 1154 * Data Designer toolbar
1370 1155 *
1371 1156 * @return void
1372 1157 */
@@ -1396,9 +1181,9 @@
1396 1181 Create table design
1397 1182 </div>
1398 1183 </a>
1399 1184 </div><div>
1400 - <a onclick="jQuery('#upload_file_container').show()"
1185 + <a onclick="alert('This feature has been removed. Please use the Data Explorer import feature.')"
1401 1186 href="javascript:void(0)"
1402 1187 class="wpda-dashboard-item wpda_tooltip"
1403 1188 title="Import table designs"
1404 1189 >
@@ -1444,9 +1229,9 @@
1444 1229 Create data table
1445 1230 </div>
1446 1231 </a>
1447 1232 </div><div>
1448 - <a onclick="jQuery('#upload_file_container').show()"
1233 + <a onclick="alert('This feature has been removed. Please use the Data Explorer import feature.')"
1449 1234 href="javascript:void(0)"
1450 1235 class="wpda-dashboard-item wpda_tooltip"
1451 1236 title="Import data tables"
1452 1237 >
@@ -1503,9 +1288,9 @@
1503 1288 Create project
1504 1289 </div>
1505 1290 </a>
1506 1291 </div><div>
1507 - <a onclick="jQuery('#upload_file_container_multi').show()"
1292 + <a onclick="jQuery(alert('This feature has been removed. Please use the Data Explorer import feature.')).show()"
1508 1293 href="javascript:void(0)"
1509 1294 class="wpda-dashboard-item wpda_tooltip"
1510 1295 title="Import projects"
1511 1296 >