| @@ -20,13 +20,13 @@ | ||
| 20 | 20 | $email_title = timetics_get_option( 'booking_rescheduled_host_email_title' ); |
| 21 | 21 | $email_title = ! empty( $email_title ) ? $email_title : $this->get_title(); |
| 22 | 22 | |
| 23 | 23 | $placeholders = [ |
| 24 | - '{%meeting_title%}' => $this->meeting->name, | |
| 24 | + '{%meeting_title%}' => $this->meeting->get_name(), | |
| 25 | 25 | '{%meeting_date%}' => $date, |
| 26 | 26 | '{%meeting_time%}' => $time, |
| 27 | 27 | '{%meeting_location%}' => $location, |
| 28 | - '{%meeting_duration%}' => $this->meeting->duration, | |
| 28 | + '{%meeting_duration%}' => $this->meeting->get_duration(), | |
| 29 | 29 | '{%host_name%}' => $staff_name, |
| 30 | 30 | '{%host_email%}' => $this->staff->get_email(), |
| 31 | 31 | '{%customer_name%}' => $customer_name, |
| 32 | 32 | '{%customer_email%}' => $customer_email, |
| @@ -43,9 +43,9 @@ | ||
| 43 | 43 | </h3> |
| 44 | 44 | </div> |
| 45 | 45 | <?php if ( $email_body ): ?> |
| 46 | 46 | |
| 47 | - <?php echo timetics_replace_placeholder( $email_body, $placeholders ); ?> | |
| 47 | + <?php echo wp_kses( timetics_replace_placeholder( $email_body, $placeholders ), 'post' ); ?> | |
| 48 | 48 | <?php if ( 'virtual' === $location_type && $join_link ): ?> |
| 49 | 49 | <div class="single-data-entry" style="margin: 10px 0 20px;"> |
| 50 | 50 | <p style="font-weight: 600; font-size: 14px; line-height: 1; color: #0C274A; margin: 0 0 5px;"> |
| 51 | 51 | <?php esc_html_e( 'Location:', 'timetics' );?> |
| @@ -50,14 +50,14 @@ | ||
| 50 | 50 | <p style="font-weight: 600; font-size: 14px; line-height: 1; color: #0C274A; margin: 0 0 5px;"> |
| 51 | 51 | <?php esc_html_e( 'Location:', 'timetics' );?> |
| 52 | 52 | </p> |
| 53 | 53 | <p style="font-weight: 400; font-size: 14px; color: #556880; margin: 0;"> |
| 54 | - <?php echo esc_html__('Joining link:', 'timetics') ;?> | |
| 54 | + <?php echo esc_html__('Joining link:', 'timetics') ;?> | |
| 55 | 55 | <a style="color: #3161F1" href="<?php echo esc_url( $join_link ); ?>"><?php echo esc_url( $join_link ); ?></a> |
| 56 | 56 | </p> |
| 57 | 57 | </div> |
| 58 | 58 | <?php endif;?> |
| 59 | - <?php do_action( 'timetics_new_event_email', $this->booking ); ?> | |
| 59 | + <?php do_action( 'timetics_new_event_email', $this->booking, 'staff' ); ?> | |
| 60 | 60 | <?php else: ?> |
| 61 | 61 | |
| 62 | 62 | <p class="greeting" style="color: #556880; margin-bottom: 5px"> |
| 63 | 63 | <?php printf( esc_html__( 'Hi %s,', 'timetics' ), esc_html( $staff_name ) );?> |
| @@ -70,14 +70,14 @@ | ||
| 70 | 70 | <p style="font-weight: 600; font-size: 14px; line-height: 1; color: #0C274A; margin: 0 0 5px;"><?php echo esc_html__( 'Meeting Name:', 'timetics' ); ?></p> |
| 71 | 71 | <p style="font-weight: 400; font-size: 14px; color: #556880; margin: 0;"> |
| 72 | 72 | <?php echo esc_html( timetics_replace_placeholder( $email_title, $placeholders ) ); ?> |
| 73 | 73 | </p> |
| 74 | - | |
| 74 | + | |
| 75 | 75 | </div> |
| 76 | 76 | <div class="single-data-entry" style="margin: 0 0 20px;"> |
| 77 | 77 | <p style="font-weight: 600; font-size: 14px; line-height: 1; color: #0C274A; margin: 0 0 5px;"><?php echo esc_html__( 'Invitee:', 'timetics' ); ?></p> |
| 78 | 78 | <p style="font-weight: 400; font-size: 14px; color: #556880; margin: 0;"> |
| 79 | - <?php echo esc_html( $customer_name );?> - | |
| 79 | + <?php echo esc_html( $customer_name );?> - | |
| 80 | 80 | <a style="color: #3161F1" href="mailto:<?php echo esc_attr( $customer_email )?>"><?php echo esc_html( $customer_email ); ?></a> |
| 81 | 81 | </p> |
| 82 | 82 | </div> |
| 83 | 83 | |
| @@ -92,9 +92,9 @@ | ||
| 92 | 92 | <?php esc_html_e( 'Location:', 'timetics' );?> |
| 93 | 93 | </p> |
| 94 | 94 | <img width="110" style="margin: 5px 0;" src="https://arraytics.dev/social-icons/google-meet.png" alt="Google Meet"> |
| 95 | 95 | <p style="font-weight: 400; font-size: 14px; color: #556880; margin: 0;"> |
| 96 | - <?php echo esc_html__('Joining link:', 'timetics') ;?> | |
| 96 | + <?php echo esc_html__('Joining link:', 'timetics') ;?> | |
| 97 | 97 | <a style="color: #3161F1" href="<?php echo esc_url( $join_link ); ?>"><?php echo esc_url( $join_link ); ?></a> |
| 98 | 98 | </p> |
| 99 | 99 | </div> |
| 100 | 100 | <?php endif;?> |