PluginProbe ʕ •ᴥ•ʔ
LatePoint – Calendar Booking Plugin for Appointments and Events / 5.1.9
LatePoint – Calendar Booking Plugin for Appointments and Events v5.1.9
5.6.6 5.6.5 5.6.4 5.6.3 5.6.2 5.6.1 5.6.0 5.5.2 5.5.1 5.5.0 5.4.2 trunk 5.1.0 5.1.1 5.1.2 5.1.3 5.1.4 5.1.5 5.1.6 5.1.7 5.1.8 5.1.9 5.1.91 5.1.92 5.1.93 5.1.94 5.2.0 5.2.1 5.2.10 5.2.11 5.2.2 5.2.3 5.2.4 5.2.5 5.2.6 5.2.7 5.2.8 5.2.9 5.3.0 5.3.1 5.3.2 5.4.0 5.4.1
latepoint / blocks / bricks / bricks_widget_customer_dashboard.php
latepoint / blocks / bricks Last commit date
bricks_widget_book_button.php 1 year ago bricks_widget_book_form.php 1 year ago bricks_widget_calendar.php 1 year ago bricks_widget_customer_dashboard.php 1 year ago bricks_widget_customer_login.php 1 year ago bricks_widget_list_of_resources.php 1 year ago
bricks_widget_customer_dashboard.php
40 lines
1 <?php
2
3 if ( ! defined( 'ABSPATH' ) ) {
4 exit;
5 }
6
7 class Latepoint_Bricks_Widget_Customer_Dashboard extends \Bricks\Element {
8
9 public $category = 'latepoint';
10 public $name = 'latepoint_customer_dashboard';
11 public $icon = 'ti-blackboard';
12
13
14 public function get_label(): string {
15 return esc_html__( 'Customer Dashboard', 'latepoint' );
16 }
17
18 public function set_controls() {
19 $this->controls['_width']['default'] = '100%';
20
21 $this->controls['hide_new_appointment_ui'] = array(
22 'tab' => 'content',
23 'label' => esc_html__( 'Hide New Appointment UI', 'latepoint' ),
24 'type' => 'checkbox',
25 'inline' => true,
26 );
27 }
28
29
30 // Render element HTML
31 public function render() {
32 $allowed_params = [
33 'hide_new_appointment_ui'
34 ];
35
36 $params = OsBlockHelper::attributes_to_data_params($this->settings, $allowed_params);
37
38 echo do_shortcode('[latepoint_customer_dashboard ' . $params . ']');
39 }
40 }