PluginProbe
Timetics – Appointment Booking Calendar & Scheduling / 1.0.10
Timetics – Appointment Booking Calendar & Scheduling v1.0.10
1.0.64 1.0.62 1.0.63 1.0.61 1.0.60 1.0.59 1.0.58 1.0.57 1.0.56 trunk 1.0.0 1.0.1 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.15 1.0.16 1.0.17 1.0.18 1.0.19 1.0.2 1.0.20 1.0.21 All 65 releases
timetics / templates / emails / cancel-event.php

cancel-event.php in Timetics – Appointment Booking Calendar & Scheduling 1.0.10, at templates/emails/cancel-event.php

70 lines 3.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 $staff_name = $this->staff->get_display_name();
3 $customer_name = $this->customer->get_display_name();
4 $customer_email = $this->customer->get_email();
5 $title = $this->get_title();
6 $description = $this->meeting->get_description();
7 $location = $this->booking->get_location();
8 $location_type = $this->booking->get_location_type();
9
10 $event = $this->booking->get_event();
11 $join_link = 'google-meet' === $location_type && ! empty( $event['hangoutLink'] ) ? $event['hangoutLink'] : '';
12 $timezone = $event ? $event['start']['timeZone'] : '';
13 $timestr = $event ? strtotime( $event['start']['dateTime'] ) : '';
14
15 $day = gmdate( 'l', strtotime( $this->booking->get_start_date() ) );
16 $time = gmdate( 'h:i a', strtotime( $this->booking->get_start_time() ) );
17 $date = gmdate( 'd F Y', strtotime( $this->booking->get_start_date() ) );
18
19 $email_body = timetics_get_option( 'booking_canceled_host_email_body' );
20 $email_title = timetics_get_option( 'booking_canceled_host_email_title' );
21 $email_title = ! empty( $email_title ) ? $email_title : $this->get_title();
22
23 $placeholders = [
24 '{%meeting_title%}' => $this->meeting->name,
25 '{%meeting_date%}' => $date,
26 '{%meeting_time%}' => $time,
27 '{%meeting_location%}' => $location,
28 '{%meeting_duration%}' => $this->meeting->duration,
29 '{%host_name%}' => $staff_name,
30 '{%host_email%}' => $this->staff->get_email(),
31 '{%customer_name%}' => $customer_name,
32 '{%customer_email%}' => $customer_email,
33 ];
34 ?>
35
36 <main class="email-wrapper">
37 <div class="email-title"><h3><?php echo esc_html( timetics_replace_placeholder( $email_title, $placeholders ) ); ?></h3></div>
38
39 <div class="email-content">
40 <?php if ( $email_body ): ?>
41 <?php echo timetics_replace_placeholder( $email_body, $placeholders ); ?>
42 <?php else: ?>
43 <p class="greeting">
44 <?php printf( esc_html__( 'Hi %s', 'timetics' ), esc_html( $staff_name ) );?>
45 </p>
46 <p><?php esc_attr_e( 'Meeting has been canceled', 'timetics' );?></p>
47 <p>
48 <?php printf( '%s %s', esc_html__( 'Invitee:', 'timetics' ), esc_html( $customer_name ) );?>
49 <br>
50 <?php printf( '%s %s', esc_html__( 'Invitee Email:', 'timetics' ), esc_html( $customer_email ) );?>
51 </p>
52 <p>
53 <?php printf( esc_html__( 'Meeting Date/Time: %s - %s, %s %s', 'timetics' ), esc_html( $time ), esc_html( $day ), esc_html( $date ), esc_html( $timezone ) );?>
54 </p>
55 <p>
56 <?php printf( '%s %s', esc_html__( 'Description:', 'timetics' ), esc_html( $description ) );?>
57 </p>
58
59 <?php if ( 'virtual' === $location_type && $join_link ): ?>
60 <p><?php esc_html_e( 'Location: This is a Google Meet web conference.', 'timetics' );?>
61 </p>
62 <span><a href="<?php echo esc_url( $join_link ); ?>"><?php esc_html_e( 'Join Now', 'timetics' );?></a></span>
63 <?php endif;?>
64 <p>
65 <?php printf( '%s %s', esc_html__( 'Invitee Time Zone:', 'timetics' ), esc_html( $timezone ) );?>
66 </p>
67 <?php endif;?>
68 </div>
69 </main>
70