| 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 |
|