PluginProbe
Timetics – Appointment Booking Calendar & Scheduling / 1.0.62
Timetics – Appointment Booking Calendar & Scheduling v1.0.62
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 1.0.22 All 64 releases
timetics / templates / emails / staff-booking-reminder.php

staff-booking-reminder.php in Timetics – Appointment Booking Calendar & Scheduling 1.0.62, at templates/emails/staff-booking-reminder.php

123 lines 8.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 defined( 'ABSPATH' ) || exit;
3
4 $timetics_staff_name = $this->staff->get_display_name();
5 $timetics_customer_name = $this->customer->get_display_name();
6 $timetics_customer_email = $this->customer->get_email();
7 $timetics_title = $this->get_title();
8 $timetics_description = $this->meeting->get_description();
9 $timetics_location = $this->booking->get_location();
10 $timetics_location_type = $this->booking->get_location_type();
11
12 $timetics_event = $this->booking->get_event();
13 $timetics_join_link = 'google-meet' === $timetics_location_type && ! empty( $timetics_event['hangoutLink'] ) ? $timetics_event['hangoutLink'] : '';
14 $timetics_timezone = $timetics_event ? $timetics_event['start']['timeZone'] : '';
15 $timetics_timestr = $timetics_event ? strtotime( $timetics_event['start']['dateTime'] ) : '';
16
17 // Use WordPress date and time format settings
18 $timetics_formatted = timetics_format_email_datetime( $this->booking->get_start_date(), $this->booking->get_start_time() );
19 $timetics_day = $timetics_formatted['day'];
20 $timetics_time = $timetics_formatted['time'];
21 $timetics_date = $timetics_formatted['date'];
22
23 $timetics_email_body = timetics_get_option( 'booking_reminder_host_email_body' );
24 $timetics_email_title = timetics_get_option( 'booking_reminder_host_email_title' );
25 $timetics_email_title = ! empty( $timetics_email_title ) ? $timetics_email_title : $this->get_title();
26
27 $timetics_placeholders = [
28 '{%meeting_title%}' => $this->meeting->get_name(),
29 '{%meeting_date%}' => $timetics_date,
30 '{%meeting_time%}' => $timetics_time,
31 '{%meeting_location%}' => $timetics_location,
32 '{%meeting_duration%}' => $this->meeting->get_duration(),
33 '{%host_name%}' => $timetics_staff_name,
34 '{%host_email%}' => $this->staff->get_email(),
35 '{%customer_name%}' => $timetics_customer_name,
36 '{%customer_email%}' => $timetics_customer_email,
37 ];
38 ?>
39
40 <div class="email-wrapper" style="margin-bottom: 30px; background-color: #f4f5f7; font-family: -apple-system,BlinkMacSystemFont,'Segoe UI','Noto Sans',Helvetica,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji', sans-serif;">
41 <div style="max-width: 600px; margin: 0 auto;">
42 <div class="email-content" style="padding: 40px; background-color: #ffffff; border-radius: 0 0 12px 12px; border-top: 4px solid #3161F1; margin-bottom: 40px;">
43 <?php do_action('timetics_email_header') ;?>
44 <div class="email-title">
45 <h3 style="color: #3161F1; font-size: 24px; font-weight: 600; margin: 30px 0;">
46 <?php echo esc_html( timetics_replace_placeholder( $timetics_email_title, $timetics_placeholders ) ); ?>
47 </h3>
48 </div>
49 <?php if ( $timetics_email_body ): ?>
50 <?php echo wp_kses( timetics_replace_placeholder( $timetics_email_body, $timetics_placeholders ), 'post' ); ?>
51 <?php if ( 'google-meet' === $timetics_location_type && $timetics_join_link ): ?>
52 <div class="single-data-entry" style="margin: 10px 0 20px;">
53 <p style="font-weight: 600; font-size: 14px; line-height: 1; color: #0C274A; margin: 0 0 5px;">
54 <?php esc_html_e( 'Location:', 'timetics' );?>
55 </p>
56 <p style="font-weight: 400; font-size: 14px; color: #556880; margin: 0;">
57 <?php echo esc_html__('Joining link:', 'timetics') ;?>
58 <a style="color: #3161F1" href="<?php echo esc_url( $timetics_join_link ); ?>"><?php echo esc_url( $timetics_join_link ); ?></a>
59 </p>
60 </div>
61 <?php endif;?>
62 <?php else: ?>
63
64 <p class="greeting" style="color: #556880; margin-bottom: 5px">
65 <?php
66 /* translators: %s: Recipient name */
67 printf( esc_html__( 'Hi %s,', 'timetics' ), esc_html( $timetics_staff_name ) );?>
68 </p>
69
70 <p style="color: #556880; margin-bottom: 5px"><?php
71 printf(
72 /* translators: %1$s: Booking date, %2$s: Booking time, %3$s: Meeting name */
73 esc_html__( 'I hope this email finds you well. This is just a friendly reminder that you have a reservation with us on %1$s at %2$s. We are looking forward to welcoming you to %3$s.', 'timetics' ),
74 esc_html( $timetics_date ),
75 esc_html( $timetics_time ),
76 esc_html( $this->meeting->name )
77 );
78 ?></p>
79
80 <div class="data-wrapper" style="border: 1px solid #E2ECF4; border-radius: 12px; padding: 30px; margin: 24px 0;">
81 <div class="single-data-entry" style="margin: 0 0 20px;">
82 <p style="font-weight: 600; font-size: 14px; line-height: 1; color: #0C274A; margin: 0 0 5px;"><?php echo esc_html__( 'Invitee:', 'timetics' ); ?></p>
83 <p style="font-weight: 400; font-size: 14px; color: #556880; margin: 0;">
84 <?php echo esc_html( $timetics_customer_name );?> -
85 <a style="color: #3161F1" href="mailto:<?php echo esc_attr( $timetics_customer_email )?>"><?php echo esc_html( $timetics_customer_email ); ?></a>
86 </p>
87 </div>
88
89 <div class="single-data-entry" style="margin: 10px 0 20px;">
90 <p style="font-weight: 600; font-size: 14px; line-height: 1; color: #0C274A; margin: 0 0 5px;"><?php echo esc_html__( 'Date and time:', 'timetics' ); ?></p>
91 <p style="font-weight: 400; font-size: 14px; color: #556880; margin: 0;"><?php
92 /* translators: 1: Time, 2: Day, 3: Date */
93 printf( esc_html__( '%1$s, %2$s %3$s', 'timetics' ), esc_html( $timetics_time ), esc_html( $timetics_day ), esc_html( $timetics_date ), esc_html( $timetics_timezone ) );?></p>
94 </div>
95
96 <?php if ( 'google-meet' === $timetics_location_type && $timetics_join_link ): ?>
97 <div class="single-data-entry" style="margin: 10px 0 20px;">
98 <p style="font-weight: 600; font-size: 14px; line-height: 1; color: #0C274A; margin: 0 0 5px;">
99 <?php esc_html_e( 'Location:', 'timetics' );?>
100 </p>
101 <img width="110" style="margin: 5px 0;" src="<?php echo esc_url( TIMETICS_PLUGIN_URL . 'assets/images/social-icons/google-meet.svg' ); ?>" alt="Google Meet">
102 <p style="font-weight: 400; font-size: 14px; color: #556880; margin: 0;">
103 <?php echo esc_html__('Joining link:', 'timetics') ;?>
104 <a style="color: #3161F1" href="<?php echo esc_url( $timetics_join_link ); ?>"><?php echo esc_url( $timetics_join_link ); ?></a>
105 </p>
106 </div>
107 <?php endif;?>
108
109 <?php do_action( 'timetics_new_event_email', $this->booking, 'staff' ); ?>
110
111 <?php if($timetics_timezone) :?>
112 <div class="single-data-entry" style="margin: 10px 0 20px;">
113 <p style="font-weight: 600; font-size: 14px; line-height: 1; color: #0C274A; margin: 0 0 5px;"><?php echo esc_html__( 'Invitee Time Zone:', 'timetics' ); ?></p>
114 <p style="font-weight: 400; font-size: 14px; color: #556880; margin: 0;"><?php echo esc_html( $timetics_timezone ); ?></p>
115 </div>
116 <?php endif;?>
117 </div>
118 <?php endif;?>
119 <p style="font-weight: 400; font-size: 14px; color: #556880; margin: 0;"><?php echo esc_html__('Thank you!', 'timetics'); ?></p>
120 </div>
121 <?php do_action('timetics_email_footer', $timetics_customer_email) ;?>
122 </div>
123 </div>