# timetics/1.0.1/templates/emails/new-event.php

Timetics – Appointment Booking Calendar &amp; Scheduling, version 1.0.1. 49 lines.

- Page: https://pluginprobe.com/plugins/timetics/1.0.1/code/templates/emails/new-event.php
- Raw: https://pluginprobe.com/plugins/timetics/1.0.1/raw/templates/emails/new-event.php
- Modified: 2023-02-13T14:12:26+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/timetics/1.0.1/code/templates/emails/new-event.php#L10-L20`.

```php
<?php
    $staff_name    = $this->staff->get_display_name();
    $customer_name = $this->customer->get_display_name();
    $customer_email = $this->customer->get_email();
    $title         = $this->get_title();
    $description   = $this->meeting->get_description();
    $location      = $this->booking->get_location();
    $location_type = $this->booking->get_location_type();

    $event         = $this->booking->get_event();
    $join_link     = 'google-meet' === $location_type ? $event['hangoutLink'] : '';
    $timezone      = $event ? $event['start']['timeZone'] : '';
    $timestr       = $event ? strtotime( $event['start']['dateTime'] ) : '';

    $day           = gmdate( 'l', strtotime( $this->booking->get_start_date() ) );
    $time          = gmdate( 'h:i a', strtotime( $this->booking->get_start_time() ) );
    $date          = gmdate( 'd F Y', strtotime( $this->booking->get_start_date() ) );
?>

<main class="email-wrapper">
    <div class="email-title"><h3><?php echo esc_html( $this->get_title() ); ?></h3></div>
    <div class="email-content">
        <p class="greeting">
            <?php printf( __( 'Hi %s', 'timetics' ),  esc_html( $staff_name ) ); ?>
        </p>
        <p><?php esc_attr_e( 'A new meeting has been scheduled', 'timetics' ); ?></p>
        <p>
            <?php printf( '%s %s', __( 'Invitee:', 'timetics' ), esc_html( $customer_name ) ); ?>
            <br>
            <?php printf( '%s %s', __( 'Invitee Email:', 'timetics' ), esc_html( $customer_email ) ); ?>
        </p>
        <p>
            <?php printf( __('Meeting Date/Time: %s - %s, %s %s', 'timetics'), esc_html( $time ), esc_html( $day ), esc_html( $date ), esc_html( $timezone ) ); ?>
        </p>
        <p>
            <?php printf( '%s %s', __( 'Description:', 'timetics' ), esc_html( $description ) ); ?>
        </p>

        <?php if ( 'google-meet' === $location_type): ?>
        <p><?php esc_html_e( 'Location: This is a Google Meet web conference.', 'timetics' ); ?>
        </p>
        <span><a href="<?php echo esc_url( $join_link ); ?>"><?php esc_html_e( 'Join Now', 'timetics' ); ?></a></span>
        <?php endif; ?>
        <p>
            <?php printf( '%s %s', __( 'Invitee Time Zone:', 'timetics' ), esc_html( $timezone ) ); ?>
        </p>
    </div>
</main>

```
