PluginProbe
WP Data Access – App Builder for Tables, Forms, Charts, Maps & Dashboards / 5.5.41
WP Data Access – App Builder for Tables, Forms, Charts, Maps & Dashboards v5.5.41
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
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.41, at WPDataAccess/Data_Apps/WPDA_Query_Builder.php

54 lines 1.1 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();
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 <?php
30 ?>
31 Query Builder
32 </h1>
33
34 <?php
35 $this->show_on_frontend();
36 ?>
37
38 </div>
39
40 <?php
41 }
42
43 private function show_on_frontend() {
44 ?>
45
46 <div class="wpda-pp-container">
47 <div class="pp-container-query-builder"></div>
48 </div>
49
50 <?php
51 }
52
53 }
54