| 1 |
<?php |
| 2 |
defined( 'ABSPATH' ) || exit; |
| 3 |
|
| 4 |
/** |
| 5 |
* @var int $days |
| 6 |
* @var string $frequency |
| 7 |
* @var int $totalBooked |
| 8 |
* @var int $totalCompleted |
| 9 |
*/ |
| 10 |
?> |
| 11 |
|
| 12 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
| 13 |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 14 |
<html xmlns="http://www.w3.org/1999/xhtml" |
| 15 |
style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;"> |
| 16 |
<head> |
| 17 |
<meta name="viewport" content="width=device-width"/> |
| 18 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> |
| 19 |
<title>Email Summary</title> |
| 20 |
<style type="text/css"> |
| 21 |
.summary_table { |
| 22 |
width: 100%; |
| 23 |
text-align: left; |
| 24 |
border-collapse: collapse; |
| 25 |
} |
| 26 |
|
| 27 |
.summary_table tr td { |
| 28 |
border: 1px solid #e0e0e0; |
| 29 |
padding: 6px 15px; |
| 30 |
} |
| 31 |
|
| 32 |
.summary_table tr th { |
| 33 |
border: 1px solid #e0e0e0; |
| 34 |
padding: 10px 15px; |
| 35 |
font-size: 14px; |
| 36 |
font-weight: 500; |
| 37 |
} |
| 38 |
|
| 39 |
thead { |
| 40 |
background: #f6f6f6; |
| 41 |
} |
| 42 |
|
| 43 |
img { |
| 44 |
max-width: 100%; |
| 45 |
} |
| 46 |
|
| 47 |
body { |
| 48 |
-webkit-font-smoothing: antialiased; |
| 49 |
-webkit-text-size-adjust: none; |
| 50 |
width: 100% !important; |
| 51 |
height: 100%; |
| 52 |
line-height: 1.6em; |
| 53 |
} |
| 54 |
|
| 55 |
body { |
| 56 |
background-color: #306ae0; |
| 57 |
} |
| 58 |
|
| 59 |
@media only screen and (max-width: 640px) { |
| 60 |
body { |
| 61 |
padding: 0 !important; |
| 62 |
} |
| 63 |
|
| 64 |
h1 { |
| 65 |
font-weight: 800 !important; |
| 66 |
margin: 20px 0 5px !important; |
| 67 |
} |
| 68 |
|
| 69 |
h2 { |
| 70 |
font-weight: 800 !important; |
| 71 |
margin: 20px 0 5px !important; |
| 72 |
} |
| 73 |
|
| 74 |
h3 { |
| 75 |
font-weight: 800 !important; |
| 76 |
margin: 20px 0 5px !important; |
| 77 |
} |
| 78 |
|
| 79 |
h4 { |
| 80 |
font-weight: 800 !important; |
| 81 |
margin: 20px 0 5px !important; |
| 82 |
} |
| 83 |
|
| 84 |
h1 { |
| 85 |
font-size: 22px !important; |
| 86 |
} |
| 87 |
|
| 88 |
h2 { |
| 89 |
font-size: 18px !important; |
| 90 |
} |
| 91 |
|
| 92 |
h3 { |
| 93 |
font-size: 16px !important; |
| 94 |
} |
| 95 |
|
| 96 |
.fcal_container { |
| 97 |
padding: 0 !important; |
| 98 |
width: 100% !important; |
| 99 |
} |
| 100 |
|
| 101 |
.content { |
| 102 |
padding: 0 !important; |
| 103 |
} |
| 104 |
|
| 105 |
.content-wrap { |
| 106 |
padding: 10px !important; |
| 107 |
} |
| 108 |
|
| 109 |
.invoice { |
| 110 |
width: 100% !important; |
| 111 |
} |
| 112 |
} |
| 113 |
</style> |
| 114 |
</head> |
| 115 |
<body itemscope itemtype="http://schema.org/EmailMessage" |
| 116 |
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: none; width: 100% !important; height: 100%; line-height: 1.6em; background-color: #f6f6f6; margin: 0;" |
| 117 |
bgcolor="#f6f6f6"> |
| 118 |
<table class="body-wrap" |
| 119 |
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; width: 100%; background-color: #f6f6f6; margin: 0;" |
| 120 |
bgcolor="#f6f6f6"> |
| 121 |
<tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;"> |
| 122 |
<td style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0;" |
| 123 |
valign="top"></td> |
| 124 |
<td class="fcal_container" width="600" |
| 125 |
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; display: block !important; max-width: 600px !important; clear: both !important; margin: 0 auto;" |
| 126 |
valign="top"> |
| 127 |
<div class="content" |
| 128 |
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; max-width: 600px; display: block; margin: 0 auto; padding: 20px;"> |
| 129 |
<table class="main" width="100%" cellpadding="0" cellspacing="0" |
| 130 |
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; border-radius: 3px; background-color: #fff; margin: 0; border: 1px solid #e9e9e9;" |
| 131 |
bgcolor="#fff"> |
| 132 |
<tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;"> |
| 133 |
<td class="alert alert-warning" |
| 134 |
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 16px; vertical-align: top; color: #fff; font-weight: 500; text-align: center; border-radius: 3px 3px 0 0; background-color: #306ae0; margin: 0; padding: 20px;" |
| 135 |
align="center" bgcolor="#FF9F00" valign="top"> |
| 136 |
<?php |
| 137 |
// Translators: %s is replaced with the booking frequency (e.g., "daily", "weekly"). |
| 138 |
printf(esc_html__('Your %s Booking Summary', 'fluent-booking'), esc_html(ucfirst($frequency))); |
| 139 |
?> |
| 140 |
</td> |
| 141 |
</tr> |
| 142 |
<tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;"> |
| 143 |
<td class="content-wrap" |
| 144 |
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 20px;" |
| 145 |
valign="top"> |
| 146 |
<table width="100%" cellpadding="0" cellspacing="0" |
| 147 |
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;"> |
| 148 |
<tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;"> |
| 149 |
<td class="content-block" |
| 150 |
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 0 0 20px;" |
| 151 |
valign="top"> |
| 152 |
<b><?php esc_html_e('Hello There,', 'fluent-booking'); ?></b><br/> |
| 153 |
<?php |
| 154 |
// Translators: %d is replaced with the number of days. |
| 155 |
printf(esc_html__('Let\'s see how many events are booked in the last %d days.', 'fluent-booking'), esc_html($days)); |
| 156 |
?> |
| 157 |
</td> |
| 158 |
</tr> |
| 159 |
<tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;"> |
| 160 |
<td class="content-block" |
| 161 |
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 0 0 20px;" |
| 162 |
valign="top"> |
| 163 |
<table class="summary_table"> |
| 164 |
<thead> |
| 165 |
<tr> |
| 166 |
<th><?php esc_html_e('Total New Booked', 'fluent-booking'); ?></th> |
| 167 |
<th><?php esc_html_e('Total Meeting Completed', 'fluent-booking'); ?></th> |
| 168 |
</tr> |
| 169 |
</thead> |
| 170 |
<tbody> |
| 171 |
<tr> |
| 172 |
<td><?php echo esc_html($totalBooked); ?></td> |
| 173 |
<td><?php echo esc_html($totalCompleted); ?></td> |
| 174 |
</tr> |
| 175 |
</tbody> |
| 176 |
</table> |
| 177 |
</td> |
| 178 |
</tr> |
| 179 |
</table> |
| 180 |
</td> |
| 181 |
</tr> |
| 182 |
</table> |
| 183 |
<div class="footer" |
| 184 |
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; width: 100%; clear: both; color: #999; margin: 0; padding: 20px;"> |
| 185 |
<table width="100%" |
| 186 |
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;"> |
| 187 |
<tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;"> |
| 188 |
<td class="aligncenter content-block" |
| 189 |
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 12px; vertical-align: top; color: #999; text-align: center; margin: 0; padding: 0;" |
| 190 |
align="center" valign="top"> |
| 191 |
<p style="margin: 0;"> <?php esc_html_e('This email has been generated by fluent booking', 'fluent-booking'); ?> </p> |
| 192 |
</td> |
| 193 |
</tr> |
| 194 |
</table> |
| 195 |
</div> |
| 196 |
</div> |
| 197 |
</td> |
| 198 |
<td style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0;" |
| 199 |
valign="top"></td> |
| 200 |
</tr> |
| 201 |
</table> |
| 202 |
</body> |
| 203 |
</html> |
| 204 |
|