'; echo '

' . __('Appointment Information','booked-frontend-agents') . '

'; if (!$_POST['user_id'] && isset($_POST['appt_id'])): $guest_name = get_post_meta($_POST['appt_id'], '_appointment_guest_name',true); $guest_email = get_post_meta($_POST['appt_id'], '_appointment_guest_email',true); echo '

'.__('Contact Information','booked-frontend-agents').'

'; echo '

'.__('Name','booked-frontend-agents').': '.$guest_name.'
'; if ($guest_email) : echo ''.__('Email','booked-frontend-agents').': '.$guest_email.''; endif; echo '

'; else : // Customer Information $user_info = get_userdata($_POST['user_id']); $display_name = booked_get_name($_POST['user_id']); $email = $user_info->user_email; $phone = get_user_meta($_POST['user_id'], 'booked_phone', true); echo '

'.__('Contact Information','booked-frontend-agents').'

'; echo '

'.__('Name','booked-frontend-agents').': '.$display_name.'
'; if ($email) : echo ''.__('Email','booked-frontend-agents').': '.$email.'
'; endif; if ($phone) : echo ''.__('Phone','booked-frontend-agents').': '.$phone.''; endif; echo '

'; endif; // Appointment Information if (isset($_POST['appt_id'])): $time_format = get_option('time_format'); $date_format = get_option('date_format'); $appt_id = $_POST['appt_id']; $timestamp = get_post_meta($appt_id, '_appointment_timestamp',true); $timeslot = get_post_meta($appt_id, '_appointment_timeslot',true); $cf_meta_value = get_post_meta($appt_id, '_cf_meta_value',true); $date_display = date_i18n($date_format,$timestamp); $day_name = date_i18n('l',$timestamp); $timeslots = explode('-',$timeslot); $time_start = date($time_format,strtotime($timeslots[0])); $time_end = date($time_format,strtotime($timeslots[1])); if ($timeslots[0] == '0000' && $timeslots[1] == '2400'): $timeslotText = 'All day'; else : $timeslotText = $time_start.' '.__('to','booked-frontend-agents').' '.$time_end; endif; $cf_meta_value = apply_filters('booked_fea_cf_metavalue',$cf_meta_value); echo '

'.__('Appointment Information','booked-frontend-agents').'

'; do_action('booked_before_appointment_information_admin'); echo '

'.__('Date','booked-frontend-agents').': '.$day_name.', '.$date_display.'
'; echo ''.__('Time','booked-frontend-agents').': '.$timeslotText.'

'; echo ($cf_meta_value ? '
'.$cf_meta_value.'
' : ''); do_action('booked_after_appointment_information_admin'); endif; // Close button echo ''; echo ''; echo ob_get_clean(); wp_die(); endif; } } }