email.blade.php
104 lines
| 1 | <!doctype html><html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"><head><title><mj-raw><?php echo esc_html__( |
| 2 | 'Website Analytics Report', |
| 3 | 'independent-analytics' |
| 4 | ) . ' email.php' . $date; ?></mj-raw></title><!--[if !mso]><!--><meta http-equiv="X-UA-Compatible" content="IE=edge"><!--<![endif]--><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><style type="text/css">#outlook a { padding:0; } |
| 5 | body { margin:0;padding:0;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%; } |
| 6 | table, td { border-collapse:collapse;mso-table-lspace:0pt;mso-table-rspace:0pt; } |
| 7 | img { border:0;height:auto;line-height:100%; outline:none;text-decoration:none;-ms-interpolation-mode:bicubic; } |
| 8 | p { display:block;margin:13px 0; }</style><!--[if mso]> |
| 9 | <noscript> |
| 10 | <xml> |
| 11 | <o:OfficeDocumentSettings> |
| 12 | <o:AllowPNG/> |
| 13 | <o:PixelsPerInch>96</o:PixelsPerInch> |
| 14 | </o:OfficeDocumentSettings> |
| 15 | </xml> |
| 16 | </noscript> |
| 17 | <![endif]--><!--[if lte mso 11]> |
| 18 | <style type="text/css"> |
| 19 | .mj-outlook-group-fix { width:100% !important; } |
| 20 | </style> |
| 21 | <![endif]--><!--[if !mso]><!--><link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700" rel="stylesheet" type="text/css"><link href="https://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700" rel="stylesheet" type="text/css"><style type="text/css">@import url(https://fonts.googleapis.com/css?family=Roboto:300,400,500,700); |
| 22 | @import url(https://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700);</style><!--<![endif]--><style type="text/css">@media only screen and (min-width:480px) { |
| 23 | .mj-column-per-100 { width:100% !important; max-width: 100%; } |
| 24 | .mj-column-per-50 { width:50% !important; max-width: 50%; } |
| 25 | .mj-column-per-10 { width:10% !important; max-width: 10%; } |
| 26 | .mj-column-per-90 { width:90% !important; max-width: 90%; } |
| 27 | }</style><style media="screen and (min-width:480px)">.moz-text-html .mj-column-per-100 { width:100% !important; max-width: 100%; } |
| 28 | .moz-text-html .mj-column-per-50 { width:50% !important; max-width: 50%; } |
| 29 | .moz-text-html .mj-column-per-10 { width:10% !important; max-width: 10%; } |
| 30 | .moz-text-html .mj-column-per-90 { width:90% !important; max-width: 90%; }</style><style type="text/css"></style><style type="text/css">.header-top-container { |
| 31 | background-color: <?php echo $colors['0']; ?> !important; |
| 32 | } |
| 33 | .header-top-container * { |
| 34 | color: <?php echo $colors['1']; ?> !important; |
| 35 | } |
| 36 | .header-bottom-container { |
| 37 | background-color: <?php echo $colors['2']; ?> !important; |
| 38 | } |
| 39 | .header-bottom-container * { |
| 40 | color: <?php echo $colors['3']; ?> !important; |
| 41 | } |
| 42 | .quick-stat-value a { |
| 43 | color: #000 !important; |
| 44 | text-decoration: none !important; |
| 45 | } |
| 46 | .bar-chart-row td:hover div { |
| 47 | background-color: #19053C !important; |
| 48 | } |
| 49 | .bar-chart-row td:hover span { |
| 50 | display: block !important; |
| 51 | } |
| 52 | .top-ten-table td { |
| 53 | font-size: 12px; |
| 54 | } |
| 55 | .top-ten-table .table-heading { |
| 56 | line-height: 2; |
| 57 | } |
| 58 | .top-ten-table .name { |
| 59 | max-width: 130px; |
| 60 | overflow: hidden; |
| 61 | white-space: nowrap; |
| 62 | line-height: 1.8; |
| 63 | } |
| 64 | .top-ten-table a { |
| 65 | color: #000 !important; |
| 66 | text-decoration: none !important; |
| 67 | } |
| 68 | .y-axis { |
| 69 | width: 10% !important; |
| 70 | width: calc(50px + 0) !important; |
| 71 | } |
| 72 | .chart-container { |
| 73 | width: 90% !important; |
| 74 | width: calc(100% - 50px) !important; |
| 75 | } |
| 76 | @media all and (max-width: 599px) { |
| 77 | .chart-date-label { |
| 78 | font-size: 12px; |
| 79 | } |
| 80 | }</style></head><body style="word-spacing:normal;background-color:#ECE9F2;"><div class="body-container" style="background-color:#ECE9F2;"><!--[if mso | IE]><table align="center" border="0" cellpadding="0" cellspacing="0" class="header-top-container-outlook" role="presentation" style="width:600px;" width="600" ><tr><td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;"><![endif]--><div class="header-top-container" style="margin:0px auto;max-width:600px;"><table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="width:100%;"><tbody><tr><td style="direction:ltr;font-size:0px;padding:20px 0;text-align:center;"><!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td class="" style="vertical-align:top;width:600px;" ><![endif]--><div class="mj-column-per-100 mj-outlook-group-fix" style="font-size:0px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;"><table border="0" cellpadding="0" cellspacing="0" role="presentation" style="vertical-align:top;" width="100%"><tbody><tr><td align="center" class="header-text" style="font-size:0px;padding:0 0 8px 0;word-break:break-word;"><div style="font-family:-apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif;font-size:24px;font-weight:700;line-height:1;text-align:center;color:#000000;"><?php esc_html_e($site_title); ?></div></td></tr><tr><td align="center" class="header-text" style="font-size:0px;padding:0;word-break:break-word;"><!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td height="18px" style="vertical-align:top;height:18px;"><![endif]--><div style="font-family:-apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif;font-size:16px;line-height:1;text-align:center;color:#000000;height:18px;"><?php esc_html_e('Website performance report', 'independent-analytics'); ?></div><!--[if mso | IE]></td></tr></table><![endif]--></td></tr></tbody></table></div><!--[if mso | IE]></td></tr></table><![endif]--></td></tr></tbody></table></div><!--[if mso | IE]></td></tr></table><table align="center" border="0" cellpadding="0" cellspacing="0" class="header-bottom-container-outlook" role="presentation" style="width:600px;" width="600" ><tr><td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;"><![endif]--><div class="header-bottom-container" style="margin:0px auto;max-width:600px;"><table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="width:100%;"><tbody><tr><td style="direction:ltr;font-size:0px;padding:0;text-align:center;"><!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td class="" style="vertical-align:top;width:600px;" ><![endif]--><div class="mj-column-per-100 mj-outlook-group-fix" style="font-size:0px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;"><table border="0" cellpadding="0" cellspacing="0" role="presentation" style="vertical-align:top;" width="100%"><tbody><tr><td align="center" class="header-text" style="font-size:0px;padding:6px 0 0 0;word-break:break-word;"><!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td height="32px" style="vertical-align:top;height:32px;"><![endif]--><div style="font-family:-apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif;font-size:16px;letter-spacing:0.03em;line-height:1.5;text-align:center;text-transform:uppercase;color:#000000;height:32px;"><?php esc_html_e($date); ?></div><!--[if mso | IE]></td></tr></table><![endif]--></td></tr></tbody></table></div><!--[if mso | IE]></td></tr></table><![endif]--></td></tr></tbody></table></div><!--[if mso | IE]></td></tr></table><table align="center" border="0" cellpadding="0" cellspacing="0" class="" role="presentation" style="width:600px;" width="600" bgcolor="#ffffff" ><tr><td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;"><![endif]--><div style="background:#ffffff;background-color:#ffffff;margin:0px auto;max-width:600px;"><table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#ffffff;background-color:#ffffff;width:100%;"><tbody><tr><td style="direction:ltr;font-size:0px;padding:12px 0 0 0;text-align:center;"><!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td class="" style="vertical-align:top;width:600px;" ><![endif]--><div class="mj-column-per-100 mj-outlook-group-fix" style="font-size:0px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;"><table border="0" cellpadding="0" cellspacing="0" role="presentation" style="vertical-align:top;" width="100%"><tbody><tr><td align="left" style="font-size:0px;padding:10px 25px;word-break:break-word;"><div style="font-family:-apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif;font-size:21px;font-weight:700;line-height:1;text-align:left;color:#000000;"><mj-raw><?php esc_html_e('Performance Overview', 'independent-analytics'); ?></mj-raw></div></td></tr><tr><td align="center" style="font-size:0px;padding:10px 25px;word-break:break-word;"><p style="border-top:solid 2px #ECE9F2;font-size:1px;margin:0px auto;width:100%;"></p><!--[if mso | IE]><table align="center" border="0" cellpadding="0" cellspacing="0" style="border-top:solid 2px #ECE9F2;font-size:1px;margin:0px auto;width:550px;" role="presentation" width="550px" ><tr><td style="height:0;line-height:0;"> |
| 81 | </td></tr></table><![endif]--></td></tr></tbody></table></div><!--[if mso | IE]></td></tr></table><![endif]--></td></tr></tbody></table></div><!--[if mso | IE]></td></tr></table><![endif]--> <?php for($x = 0; $x < count($stats); $x++) : |
| 82 | if ($x % 2 == 0) : ?> <!--[if mso | IE]><table align="center" border="0" cellpadding="0" cellspacing="0" class="" role="presentation" style="width:600px;" width="600" bgcolor="#ffffff" ><tr><td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;"><![endif]--><div style="background:#ffffff;background-color:#ffffff;margin:0px auto;max-width:600px;"><table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#ffffff;background-color:#ffffff;width:100%;"><tbody><tr><td style="direction:ltr;font-size:0px;padding:12px 12px 0 12px;text-align:center;"><!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><![endif]--> <?php endif;?> <!--[if mso | IE]><td class="" style="vertical-align:top;width:288px;" ><![endif]--><div class="mj-column-per-50 mj-outlook-group-fix" style="font-size:0px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;"><table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%"><tbody><tr><td style="vertical-align:top;padding:6px;"><table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%"><tbody><tr><td align="left" style="background:#F7F5FA;font-size:0px;padding:10px 25px;word-break:break-word;"><!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td height="15px" style="vertical-align:top;height:15px;"><![endif]--><div style="font-family:-apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif;font-size:14px;line-height:1;text-align:left;color:#000000;height:15px;"><mj-raw><?php esc_html_e($stats[$x]['title']); ?></mj-raw></div><!--[if mso | IE]></td></tr></table><![endif]--></td></tr><tr><td align="left" class="quick-stat-value" style="font-size:0px;padding:12px 24px 11px;word-break:break-word;"><div style="font-family:-apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif;font-size:24px;line-height:1;text-align:left;color:#000000;"><mj-raw><?php echo wp_kses($stats[$x]['count'], ['span' => []]); ?></mj-raw></div></td></tr> <?php |
| 83 | $compare = $stats[$x]['class'] == 'bounce-rate' ? $stats[$x]['growth'] * -1 : $stats[$x]['growth']; |
| 84 | if ($compare < 0 ) : |
| 85 | ?> <tr><td align="left" style="font-size:0px;padding:0 24px 12px;word-break:break-word;"><div style="font-family:-apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif;font-size:16px;line-height:1;text-align:left;color:#D93B29;"><mj-raw><?php echo number_format_i18n($stats[$x]['growth']) . '%'; ?></mj-raw></div></td></tr> <?php else : ?> <tr><td align="left" style="font-size:0px;padding:0 24px 12px;word-break:break-word;"><div style="font-family:-apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif;font-size:16px;line-height:1;text-align:left;color:#36B366;"><mj-raw><?php echo number_format_i18n($stats[$x]['growth']) . '%'; ?></mj-raw></div></td></tr> <?php endif; ?> </tbody></table></td></tr></tbody></table></div><!--[if mso | IE]></td><![endif]--> <?php if ($x % 2 != 0 || $x == count($stats) - 1) : ?> <!--[if mso | IE]></tr></table><![endif]--></td></tr></tbody></table></div><!--[if mso | IE]></td></tr></table><![endif]--> <?php endif; ?><?php endfor; ?> <!--[if mso | IE]><table align="center" border="0" cellpadding="0" cellspacing="0" class="" role="presentation" style="width:600px;" width="600" bgcolor="#ffffff" ><tr><td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;"><![endif]--><div style="background:#ffffff;background-color:#ffffff;margin:0px auto;max-width:600px;"><table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#ffffff;background-color:#ffffff;width:100%;"><tbody><tr><td style="direction:ltr;font-size:0px;padding:6px 0 6px 0;text-align:center;"><!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td class="" style="vertical-align:top;width:600px;" ><![endif]--><div class="mj-column-per-100 mj-outlook-group-fix" style="font-size:0px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;"><table border="0" cellpadding="0" cellspacing="0" role="presentation" style="vertical-align:top;" width="100%"><tbody><tr><td align="left" style="font-size:0px;padding:10px 25px;word-break:break-word;"><div style="font-family:-apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif;font-size:21px;font-weight:700;line-height:1;text-align:left;color:#000000;">Daily Views</div></td></tr><tr><td align="center" style="font-size:0px;padding:10px 25px;word-break:break-word;"><p style="border-top:solid 2px #ECE9F2;font-size:1px;margin:0px auto;width:100%;"></p><!--[if mso | IE]><table align="center" border="0" cellpadding="0" cellspacing="0" style="border-top:solid 2px #ECE9F2;font-size:1px;margin:0px auto;width:550px;" role="presentation" width="550px" ><tr><td style="height:0;line-height:0;"> |
| 86 | </td></tr></table><![endif]--></td></tr></tbody></table></div><!--[if mso | IE]></td></tr></table><![endif]--></td></tr></tbody></table></div><!--[if mso | IE]></td></tr></table><table align="center" border="0" cellpadding="0" cellspacing="0" class="" role="presentation" style="width:600px;" width="600" bgcolor="#ffffff" ><tr><td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;"><![endif]--><div style="background:#ffffff;background-color:#ffffff;margin:0px auto;max-width:600px;"><table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#ffffff;background-color:#ffffff;width:100%;"><tbody><tr><td style="direction:ltr;font-size:0px;padding:12px 0 12px;text-align:center;"><!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td class="" style="width:600px;" ><![endif]--><div class="mj-column-per-100 mj-outlook-group-fix" style="font-size:0;line-height:0;text-align:left;display:inline-block;width:100%;direction:ltr;"><!--[if mso | IE]><table border="0" cellpadding="0" cellspacing="0" role="presentation" ><tr><td style="vertical-align:top;width:60px;" ><![endif]--><div class="mj-column-per-10 mj-outlook-group-fix y-axis" style="font-size:0px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:10%;"><table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%"><tbody><tr><td style="border-right:solid 2px #ECE9F2;vertical-align:top;padding:0;"><table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%"><tbody><tr><td align="left" style="font-size:0px;padding:0 6px 20px 0;word-break:break-word;"><table cellpadding="0" cellspacing="0" width="100%" border="0" style="color:#000000;font-family:-apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif;font-size:13px;line-height:22px;table-layout:auto;width:100%;border:none;"><tr align="right" height="67px" style="height: 67px"><td style="vertical-align: top; line-height: 1;"><mj-raw><?php esc_html_e($y_labels['0']) ?></mj-raw></td></tr><tr align="right" height="67px" style="height: 67px"><td><mj-raw><?php esc_html_e($y_labels['1']) ?></mj-raw></td></tr><tr align="right" height="67px" vertical-align="bottom" style="height: 67px"><td style="vertical-align: bottom; line-height: 1;"><span vertical-align="bottom"><mj-raw><?php esc_html_e($y_labels['2']) ?></mj-raw></span></td></tr></table></td></tr></tbody></table></td></tr></tbody></table></div><!--[if mso | IE]></td><td style="vertical-align:top;width:540px;" ><![endif]--><div class="mj-column-per-90 mj-outlook-group-fix chart-container" style="font-size:0px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:90%;"><table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%"><tbody><tr><td style="vertical-align:top;padding:0;"><table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%"><tbody><tr><td align="left" style="font-size:0px;padding:0 24px 16px 8px;word-break:break-word;"><table cellpadding="0" cellspacing="0" width="100%" border="0" style="color:#000000;font-family:-apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif;font-size:13px;line-height:22px;table-layout:auto;width:100%;border:none;"><tr class="bar-chart-row" height="200" style="height: 200px; position:"> <?php |
| 87 | for ($x = 0; $x < count($chart_views); $x++) : |
| 88 | $color = ($x + 5) % 5 == 0 ? $colors['5'] : $colors['4']; |
| 89 | if ($chart_views[$x] == 0) { |
| 90 | $height = 0; |
| 91 | } else { |
| 92 | $height = round(($chart_views[$x]/$most_views) * 200); |
| 93 | } ?> <td height="200" style="height: 200px; padding: 2px; vertical-align: bottom;"><!--[if mso]><?php echo '<table height="200"><tr><td height="'. esc_attr($height) .'" style="background-color: '. esc_attr($color) .'; height: '. esc_attr($height) .'px; width: 100%; color: '. esc_attr($color) .'">A</td></tr></table>'; ?><![endif]--> <?php |
| 94 | echo '<div height="'. esc_attr($height) .'" style="background-color: '. esc_attr($color) .'; height: '. esc_attr($height) .'px; width: 100%"></div>'; |
| 95 | ?> <span style="display: none; white-space: nowrap; width: 0; height: 0; line-height: 1.45; font-size: 12px;"> <?php echo number_format_i18n($chart_views[$x], 0); ?> </span></td> <?php endfor; ?> </tr></table></td></tr><tr><td align="center" style="font-size:0px;padding:0 24px 0 0;word-break:break-word;"><p style="border-top:solid 2px #ECE9F2;font-size:1px;margin:0px auto;width:100%;"></p><!--[if mso | IE]><table align="center" border="0" cellpadding="0" cellspacing="0" style="border-top:solid 2px #ECE9F2;font-size:1px;margin:0px auto;width:516px;" role="presentation" width="516px" ><tr><td style="height:0;line-height:0;"> |
| 96 | </td></tr></table><![endif]--></td></tr><tr><td align="left" style="font-size:0px;padding:2px 24px 0 4px;word-break:break-word;"><table cellpadding="0" cellspacing="0" width="100%" border="0" style="color:#000000;font-family:-apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif;font-size:13px;line-height:22px;table-layout:auto;width:100%;border:none;"><tr><mj-raw><?php foreach ($x_labels as $date) : ?></mj-raw><td style="width: 16%;" class="chart-date-label"><mj-raw><?php esc_html_e($date); ?></mj-raw></td><mj-raw><?php endforeach; ?></mj-raw></tr></table></td></tr></tbody></table></td></tr></tbody></table></div><!--[if mso | IE]></td></tr></table><![endif]--></div><!--[if mso | IE]></td></tr></table><![endif]--></td></tr></tbody></table></div><!--[if mso | IE]></td></tr></table><table align="center" border="0" cellpadding="0" cellspacing="0" class="" role="presentation" style="width:600px;" width="600" bgcolor="#ffffff" ><tr><td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;"><![endif]--><div style="background:#ffffff;background-color:#ffffff;margin:0px auto;max-width:600px;"><table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#ffffff;background-color:#ffffff;width:100%;"><tbody><tr><td style="direction:ltr;font-size:0px;padding:12px 0 0 0;text-align:center;"><!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td class="" style="vertical-align:top;width:600px;" ><![endif]--><div class="mj-column-per-100 mj-outlook-group-fix" style="font-size:0px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;"><table border="0" cellpadding="0" cellspacing="0" role="presentation" style="vertical-align:top;" width="100%"><tbody><tr><td align="left" style="font-size:0px;padding:10px 25px;word-break:break-word;"><div style="font-family:-apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif;font-size:21px;font-weight:700;line-height:1;text-align:left;color:#000000;"><mj-raw><?php esc_html_e("Top 10's", "independent-analytics"); ?></mj-raw></div></td></tr><tr><td align="center" style="font-size:0px;padding:10px 25px;word-break:break-word;"><p style="border-top:solid 2px #ECE9F2;font-size:1px;margin:0px auto;width:100%;"></p><!--[if mso | IE]><table align="center" border="0" cellpadding="0" cellspacing="0" style="border-top:solid 2px #ECE9F2;font-size:1px;margin:0px auto;width:550px;" role="presentation" width="550px" ><tr><td style="height:0;line-height:0;"> |
| 97 | </td></tr></table><![endif]--></td></tr></tbody></table></div><!--[if mso | IE]></td></tr></table><![endif]--></td></tr></tbody></table></div><!--[if mso | IE]></td></tr></table><![endif]--> <?php |
| 98 | $x = 0; |
| 99 | foreach($top_ten as $type => $rows) : |
| 100 | if ($x % 2 == 0) : ?> <!--[if mso | IE]><table align="center" border="0" cellpadding="0" cellspacing="0" class="" role="presentation" style="width:600px;" width="600" bgcolor="#ffffff" ><tr><td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;"><![endif]--><div style="background:#ffffff;background-color:#ffffff;margin:0px auto;max-width:600px;"><table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#ffffff;background-color:#ffffff;width:100%;"><tbody><tr><td style="direction:ltr;font-size:0px;padding:20px 0;padding-bottom:0;padding-top:6px;text-align:center;"><!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><![endif]--> <?php endif;?> <!--[if mso | IE]><td class="" style="vertical-align:top;width:300px;" ><![endif]--><div class="mj-column-per-50 mj-outlook-group-fix" style="font-size:0px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;"><table border="0" cellpadding="0" cellspacing="0" role="presentation" style="vertical-align:top;" width="100%"><tbody><tr><td align="left" class="top-ten-table" style="font-size:0px;padding:10px 25px;word-break:break-word;"><table cellpadding="0" cellspacing="0" width="100%" border="0" style="color:#000000;font-family:-apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif;font-size:13px;line-height:22px;table-layout:auto;width:100%;border:none;"><tr class="table-heading"><th align="left"><?php esc_html_e(ucfirst($type)); ?></th><th align="right"><mj-raw><?php esc_html_e('Views', 'independent-analytics'); ?></mj-raw></th></tr><mj-raw><?php foreach ($rows as $row) : ?></mj-raw><tr><td class="name"><mj-raw><?php esc_html_e($row['title']); ?></mj-raw></td><td align="right"><mj-raw><?php esc_html_e(number_format_i18n($row['views'])); ?></mj-raw></td></tr><mj-raw><?php endforeach; ?></mj-raw></table></td></tr></tbody></table></div><!--[if mso | IE]></td><![endif]--> <?php if ($x % 2 != 0 || $x == count($top_ten) - 1) : ?> <!--[if mso | IE]></tr></table><![endif]--></td></tr></tbody></table></div><!--[if mso | IE]></td></tr></table><![endif]--> <?php endif; ?><?php |
| 101 | $x++; |
| 102 | endforeach; ?> <!--[if mso | IE]><table align="center" border="0" cellpadding="0" cellspacing="0" class="" role="presentation" style="width:600px;" width="600" bgcolor="#DEDAE6" ><tr><td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;"><![endif]--><div style="background:#DEDAE6;background-color:#DEDAE6;margin:0px auto;max-width:600px;"><table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#DEDAE6;background-color:#DEDAE6;width:100%;"><tbody><tr><td style="direction:ltr;font-size:0px;padding:12px;text-align:center;"><!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td class="" style="vertical-align:top;width:576px;" ><![endif]--><div class="mj-column-per-100 mj-outlook-group-fix" style="font-size:0px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;"><table border="0" cellpadding="0" cellspacing="0" role="presentation" style="vertical-align:top;" width="100%"><tbody><tr><td align="center" style="font-size:0px;padding:10px 25px;word-break:break-word;"><div style="font-family:-apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif;font-size:13px;line-height:1.5;text-align:center;color:#000000;"><mj-raw><?php |
| 103 | printf(esc_html__('This email was generated and delivered by %s', 'independent-analytics'), $site_url); |
| 104 | ?></mj-raw></div></td></tr></tbody></table></div><!--[if mso | IE]></td></tr></table><![endif]--></td></tr></tbody></table></div><!--[if mso | IE]></td></tr></table><![endif]--></div></body></html> |