| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* The template for Email, notify about send on approve reservation. |
| 5 |
* Receiver: owner of reservation |
| 6 |
* This is the template that email layout |
| 7 |
* |
| 8 |
*/ |
| 9 |
|
| 10 |
if (!defined('ABSPATH')) { |
| 11 |
exit; // Exit if accessed directly. |
| 12 |
} |
| 13 |
|
| 14 |
?> |
| 15 |
|
| 16 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 17 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
| 18 |
|
| 19 |
<head> |
| 20 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
| 21 |
<title><?php echo esc_html__('Reservation Completed', 'wpdirectorykit'); ?></title> |
| 22 |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
| 23 |
</head> |
| 24 |
|
| 25 |
<body leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" offset="0" style="padding: 0;width: 100%; background-color: #f7f7f7; -webkit-text-size-adjust: none;"> |
| 26 |
<div id="wrapper" dir="ltr" style="max-width: 600px; width:calc(100% - 30px); background-color: #fff; margin: 0 auto;border: 1px solid #dedede;box-shadow: 0 1px 4px rgb(0 0 0 / 10%);"> |
| 27 |
|
| 28 |
<!-- header --> |
| 29 |
<div class="header" style="background-color: #2671cb;padding: 48px 48px;color: #FFF;"> |
| 30 |
<h2 style="margin:0;font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; font-size: 30px; font-weight: 300; line-height: 150%; margin: 0; text-align: left; text-shadow: 0 1px 0 #ab79a1; color: #ffffff; background-color: inherit;""> |
| 31 |
<?php echo esc_html__('Reservation Completed', 'wpdirectorykit'); ?> |
| 32 |
</h2> |
| 33 |
</div> |
| 34 |
|
| 35 |
<!-- Body --> |
| 36 |
<div class=" body" style="padding: 48px 48px;color: #636363; font-size: 14px;font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;"> |
| 37 |
<h2 style="margin-top:0"> |
| 38 |
<?php echo esc_html__('Hi', 'wpdirectorykit'); ?> <?php echo wdk_show_data('display_name', $user_client); ?>, |
| 39 |
</h2> |
| 40 |
<p> |
| 41 |
<?php echo esc_html__('Your Reservation Completed for listing', 'wpdirectorykit'); ?> <a href="<?php echo esc_url(get_permalink($listing)); ?>"><?php echo esc_html(wmvc_show_data('post_title', $listing, '', TRUE, TRUE)); ?></a> |
| 42 |
</p> |
| 43 |
<?php if(wmvc_show_data('post_id', $listing, false)):?> |
| 44 |
<p> |
| 45 |
<a href="<?php echo esc_url(get_permalink($listing));?>"> |
| 46 |
<img src="<?php echo esc_url(wdk_image_src($listing, 'thumb'));?>" alt="<?php echo esc_attr(wdk_field_value('post_title', $listing)) ;?>" style="display: block;max-width: 250px;max-height: 250px;"> |
| 47 |
</a> |
| 48 |
</p> |
| 49 |
<?php endif;?> |
| 50 |
|
| 51 |
<?php if(function_exists('wdk_dash_url')):?> |
| 52 |
<p> |
| 53 |
<a href="<?php echo esc_url(wdk_dash_url('dash_page=booking-myreservations&function=edit&id='.$reservation_id));?>"><?php echo esc_html__('Edit Reservation Notes', 'wpdirectorykit'); ?></a> |
| 54 |
</p> |
| 55 |
<?php endif; ?> |
| 56 |
<br> |
| 57 |
|
| 58 |
<p> |
| 59 |
<strong><?php echo esc_html__('Mail Details', 'wpdirectorykit'); ?>: </strong> |
| 60 |
</p> |
| 61 |
<?php if(wmvc_show_data('address', $listing, false, TRUE, TRUE)):?> |
| 62 |
<p> |
| 63 |
<strong><?php echo esc_html__('Address', 'wpdirectorykit'); ?>:</strong> <a href="<?php echo esc_url(get_permalink($listing)); ?>"><?php echo esc_html(wmvc_show_data('address', $listing, '', TRUE, TRUE)); ?></a><br /> |
| 64 |
</p> |
| 65 |
<?php endif; ?> |
| 66 |
<?php if(wmvc_show_data('lng', $listing, false, TRUE, TRUE) && wmvc_show_data('lat', $listing, false, TRUE, TRUE)):?> |
| 67 |
<p> |
| 68 |
<a target="_blank" href="<?php echo esc_url('https://maps.google.com/maps?daddr='.wmvc_show_data('address', $listing, '', TRUE, TRUE).'@'.wmvc_show_data('lat', $listing, '', TRUE, TRUE).','.wmvc_show_data('lng', $listing, '', TRUE, TRUE)); ?>"> |
| 69 |
<strong><?php echo esc_html__('Route to destination', 'wpdirectorykit'); ?></strong> |
| 70 |
</a> |
| 71 |
<br /> |
| 72 |
<?php echo esc_html(wmvc_show_data('lat', $listing, '', TRUE, TRUE)); ?>,<?php echo esc_html(wmvc_show_data('lng', $listing, '', TRUE, TRUE)); ?> |
| 73 |
</p> |
| 74 |
<?php endif; ?> |
| 75 |
<?php if (is_string($data)) : ?> |
| 76 |
<?php echo wp_kses_post($data); ?> |
| 77 |
<?php else : ?> |
| 78 |
<?php foreach ($data as $key => $value) : ?> |
| 79 |
<?php if (!empty($value)) : ?> |
| 80 |
<p> |
| 81 |
<strong><?php echo esc_html__(ucfirst(str_replace('_', ' ', $key)), 'wpdirectorykit'); ?>:</strong> <?php echo wp_kses_post($value); ?><br /> |
| 82 |
</p> |
| 83 |
<?php endif; ?> |
| 84 |
<?php endforeach; ?> |
| 85 |
<?php endif; ?> |
| 86 |
<?php if (!empty($notes)) : ?> |
| 87 |
<p style=" |
| 88 |
position: relative; |
| 89 |
padding: .75rem 1.25rem;line-height: 1.7; |
| 90 |
margin-bottom: 1rem; |
| 91 |
border: 1px solid transparent; |
| 92 |
border-top-color: transparent; |
| 93 |
border-right-color: transparent; |
| 94 |
border-bottom-color: transparent; |
| 95 |
border-left-color: transparent; |
| 96 |
border-radius: .25rem; |
| 97 |
width: 100%; |
| 98 |
color: #0c5460; |
| 99 |
background-color: #d1ecf1; |
| 100 |
border-color: #bee5eb; |
| 101 |
" |
| 102 |
> |
| 103 |
<strong><?php echo esc_html__('Notes', 'wpdirectorykit'); ?>:</strong> <?php echo wp_kses_post($notes); ?> |
| 104 |
</p> |
| 105 |
<?php endif; ?> |
| 106 |
<p> |
| 107 |
<strong><?php echo esc_html__('Owner Contact Details', 'wpdirectorykit'); ?>:</strong> |
| 108 |
</p> |
| 109 |
<ul class="wdk-list" style="margin:0;padding: 0;list-style: none;"> |
| 110 |
<?php if(wmvc_show_data('display_name', $user_owner, false, TRUE, TRUE)):?> |
| 111 |
<li style="margin-bottom: 4px;" class="meta-item"><strong><?php echo esc_html__('Name', 'wpdirectorykit'); ?>:</strong> <?php echo esc_html(wmvc_show_data('display_name', $user_owner, false, TRUE, TRUE));?></li> |
| 112 |
<?php endif;?> |
| 113 |
<?php if(wmvc_show_data('wdk_phone', $user_owner, false, TRUE, TRUE)):?> |
| 114 |
<li style="margin-bottom: 4px;" class="meta-item"><strong><?php echo esc_html__('Phone', 'wpdirectorykit'); ?>:</strong> <a href="tel:<?php echo esc_attr(wdk_filter_phone(wmvc_show_data('wdk_phone', $user_owner, false, TRUE, TRUE)));?>"><?php echo esc_html(wmvc_show_data('wdk_phone', $user_owner, false, TRUE, TRUE));?></a></li> |
| 115 |
<?php endif;?> |
| 116 |
<?php if(wmvc_show_data('user_email', $user_owner, false, TRUE, TRUE)):?> |
| 117 |
<li style="margin-bottom: 4px;" class="meta-item"><strong><?php echo esc_html__('Email', 'wpdirectorykit'); ?>:</strong> <a href="mailto:<?php echo esc_attr(wmvc_show_data('user_email', $user_owner, false, TRUE, TRUE));?>"><?php echo esc_html(wmvc_show_data('user_email', $user_owner, false, TRUE, TRUE));?></a></li> |
| 118 |
<?php endif;?> |
| 119 |
<?php if(wmvc_show_data('wdk_address', $user_owner, false, TRUE, TRUE)):?> |
| 120 |
<li style="margin-bottom: 4px;" class="meta-item"><strong><?php echo esc_html__('Address', 'wpdirectorykit'); ?>:</strong> <?php echo esc_html(wmvc_show_data('wdk_address', $user_owner, false, TRUE, TRUE));?></li> |
| 121 |
<?php endif;?> |
| 122 |
<?php if(wmvc_show_data('wdk_city', $user_owner, false, TRUE, TRUE)):?> |
| 123 |
<li style="margin-bottom: 4px;" class="meta-item"><strong><?php echo esc_html__('City', 'wpdirectorykit'); ?>:</strong> <?php echo esc_html(wmvc_show_data('wdk_city', $user_owner, false, TRUE, TRUE));?></li> |
| 124 |
<?php endif;?> |
| 125 |
</ul> |
| 126 |
|
| 127 |
<br> |
| 128 |
<?php if(wmvc_show_data('is_paid', $reservation, false, TRUE, TRUE)):?> |
| 129 |
<p> |
| 130 |
<?php echo esc_html__('Thanks on payment!', 'wpdirectorykit'); ?> |
| 131 |
</p> |
| 132 |
<?php endif; ?> |
| 133 |
</div> |
| 134 |
|
| 135 |
<!-- Footer --> |
| 136 |
<div class="footer" style="padding: 25px 48px;color: #4e5254; font-weight: 500;font-size: 14px;line-height: 1.6;font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;border-top: 1px solid #eee;"> |
| 137 |
<?php echo esc_html__('Thanks', 'wpdirectorykit'); ?>, </br> |
| 138 |
<?php echo esc_html__('Best regards', 'wpdirectorykit'); ?>, </br> |
| 139 |
<?php echo esc_html(get_bloginfo('name')); ?> </br> |
| 140 |
</div> |
| 141 |
</div> |
| 142 |
</body> |
| 143 |
|
| 144 |
</html> |