PluginProbe
WP Data Access – App Builder for Tables, Forms, Charts, Maps & Dashboards / 5.5.84
WP Data Access – App Builder for Tables, Forms, Charts, Maps & Dashboards v5.5.84
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 5.5.42 All 160 releases
wp-data-access / WPDataAccess / Data_Apps / WPDA_Query_Builder.php

WPDA_Query_Builder.php in WP Data Access – App Builder for Tables, Forms, Charts, Maps & Dashboards 5.5.84, at WPDataAccess/Data_Apps/WPDA_Query_Builder.php

72 lines 1.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace WPDataAccess\Data_Apps;
4
5 use WPDataAccess\WPDA;
6 class WPDA_Query_Builder extends WPDA_Container {
7 public function show() {
8 if ( !WPDA::current_user_is_admin() ) {
9 if ( !is_admin() && !$this->send_feedback() ) {
10 return;
11 }
12 $this->show_feedback( __( 'Not authorized', 'wp-data-access' ) );
13 return;
14 }
15 if ( is_admin() ) {
16 $this->show_on_backend();
17 } else {
18 $this->show_on_frontend();
19 }
20 $this->add_client( 'qb' );
21 }
22
23 private function show_on_backend() {
24 ?>
25
26 <div class="wrap wpda-query-builder-backend">
27
28 <h1 class="wp-heading-inline" style="margin-bottom: 18px">
29 <a href="javascript:void(0)"
30 onclick="ppActionOpenQueriesMenu(event)"
31 class="button qb-menu-button wpda_tooltip"
32 title="Query Builder Menu"
33 >
34 <i class="fas fa-bars qb-menu-icon"></i>
35 </a>
36
37 <span>
38 <?php
39 ?>
40 Query Builder
41 </span>
42
43 <a href="javascript:void(0)"
44 onclick="ppActionFullScreen()"
45 class="button qb-menu-button wpda_tooltip"
46 title="Toggle full-screen"
47 >
48 <i class="fas fa-expand qb-menu-icon"></i>
49 </a>
50 </h1>
51
52 <?php
53 $this->show_on_frontend();
54 ?>
55
56 </div>
57
58 <?php
59 }
60
61 private function show_on_frontend() {
62 ?>
63
64 <div class="wpda-pp-container">
65 <div class="pp-container-query-builder"></div>
66 </div>
67
68 <?php
69 }
70
71 }
72