PluginProbe
Timetics – Appointment Booking Calendar & Scheduling / 1.0.0
Timetics – Appointment Booking Calendar & Scheduling v1.0.0
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 1.0.22 1.0.23 1.0.24 All 62 releases
timetics / templates / emails / new-event.php

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

49 lines 2.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 ? $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
20 <main class="email-wrapper">
21 <div class="email-title"><h3><?php echo esc_html( $this->get_title() ); ?></h3></div>
22 <div class="email-content">
23 <p class="greeting">
24 <?php printf( __( 'Hi %s', 'timetics' ), esc_html( $staff_name ) ); ?>
25 </p>
26 <p><?php esc_attr_e( 'A new meeting has been scheduled', 'timetics' ); ?></p>
27 <p>
28 <?php printf( '%s %s', __( 'Invitee:', 'timetics' ), esc_html( $customer_name ) ); ?>
29 <br>
30 <?php printf( '%s %s', __( 'Invitee Email:', 'timetics' ), esc_html( $customer_email ) ); ?>
31 </p>
32 <p>
33 <?php printf( __('Meeting Date/Time: %s - %s, %s %s', 'timetics'), esc_html( $time ), esc_html( $day ), esc_html( $date ), esc_html( $timezone ) ); ?>
34 </p>
35 <p>
36 <?php printf( '%s %s', __( 'Description:', 'timetics' ), esc_html( $description ) ); ?>
37 </p>
38
39 <?php if ( 'google-meet' === $location_type): ?>
40 <p><?php esc_html_e( 'Location: This is a Google Meet web conference.', 'timetics' ); ?>
41 </p>
42 <span><a href="<?php echo esc_url( $join_link ); ?>"><?php esc_html_e( 'Join Now', 'timetics' ); ?></a></span>
43 <?php endif; ?>
44 <p>
45 <?php printf( '%s %s', __( 'Invitee Time Zone:', 'timetics' ), esc_html( $timezone ) ); ?>
46 </p>
47 </div>
48 </main>
49