2022-11-27 15:03:07 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title><?php echo esc_html( $this->get_email_subject() ); ?></title>
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<!--[if !mso]><!-->
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
|
<!--<![endif]-->
|
|
|
|
|
|
|
|
<style>
|
|
|
|
@media only screen and (max-width: 480px) {
|
|
|
|
body {
|
|
|
|
max-width: 320px;
|
|
|
|
}
|
|
|
|
.push-down-25 {
|
|
|
|
margin-bottom: 25px;
|
|
|
|
}
|
|
|
|
.pull-down-8 {
|
|
|
|
margin-top: 8px !important;
|
|
|
|
}
|
|
|
|
.pull-down-5 {
|
|
|
|
margin-top: 5px !important;
|
|
|
|
}
|
|
|
|
h1 {
|
|
|
|
font-size: 20px !important;
|
|
|
|
line-height: 26px !important;
|
|
|
|
}
|
|
|
|
h2 {
|
|
|
|
font-size: 16px !important;
|
|
|
|
line-height: 22px !important;
|
|
|
|
}
|
|
|
|
p {
|
|
|
|
font-size: 12px !important;
|
|
|
|
line-height: 17px !important;
|
|
|
|
}
|
|
|
|
p.bigger {
|
|
|
|
font-size: 12px !important;
|
|
|
|
line-height: 16px !important;
|
|
|
|
}
|
|
|
|
.email-header-holder {
|
|
|
|
max-height: 50px !important;
|
|
|
|
height: 50px !important;
|
|
|
|
}
|
|
|
|
.logo-holder {
|
|
|
|
padding: 10px 22px 5px 22px !important;
|
|
|
|
}
|
|
|
|
.logo-holder .edd-logo {
|
|
|
|
max-width: 175px !important;
|
|
|
|
max-height: 28px !important;
|
|
|
|
}
|
|
|
|
.content-holder {
|
|
|
|
padding: 22px 22px 0px 22px !important;
|
|
|
|
}
|
|
|
|
.content-holder.pro-tip-section {
|
|
|
|
padding: 0px 22px 27px 22px !important;
|
|
|
|
}
|
|
|
|
.period-date {
|
|
|
|
font-size: 12px !important;
|
|
|
|
line-height: 15px !important;
|
|
|
|
}
|
|
|
|
.link-style {
|
|
|
|
font-size: 12px !important;
|
|
|
|
line-height: 15px !important;
|
|
|
|
}
|
|
|
|
.link-style.bigger {
|
|
|
|
font-size: 12px !important;
|
|
|
|
line-height: 15px !important;
|
|
|
|
}
|
|
|
|
.stats-totals-wrapper {
|
|
|
|
margin-top: 38px !important;
|
|
|
|
}
|
|
|
|
.stats-totals-wrapper td {
|
|
|
|
font-size: 12px !important;
|
|
|
|
border-collapse: collapse !important;
|
|
|
|
}
|
|
|
|
.stats-total-item {
|
|
|
|
width: 145px;
|
|
|
|
display: inline-table;
|
|
|
|
min-width: 145px;
|
|
|
|
}
|
|
|
|
.stats-total-item-inner {
|
|
|
|
font-size: 12px !important;
|
|
|
|
border-collapse: collapse !important;
|
|
|
|
}
|
|
|
|
.stats-total-item-title {
|
|
|
|
font-size: 16px !important;
|
|
|
|
line-height: 19px !important;
|
|
|
|
margin-bottom: 10px !important;
|
|
|
|
}
|
|
|
|
.stats-total-item-value {
|
|
|
|
line-height: 18px !important;
|
|
|
|
font-size: 16px !important;
|
|
|
|
margin: 0 0 11px 0px !important;
|
|
|
|
}
|
|
|
|
.stats-total-item-percent {
|
|
|
|
line-height: 11px !important;
|
|
|
|
font-size: 11px !important;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
.stats-total-item-percent span.comparison {
|
|
|
|
font-style: normal;
|
|
|
|
font-weight: lighter;
|
|
|
|
font-size: 11px !important;
|
|
|
|
line-height: 15px !important;
|
|
|
|
margin-top: 5px !important;
|
|
|
|
}
|
|
|
|
.stats-total-item-percent img {
|
|
|
|
width: 8px !important;
|
|
|
|
height: 6px !important;
|
|
|
|
vertical-align: baseline !important;
|
|
|
|
}
|
|
|
|
.table-top-title {
|
|
|
|
font-size: 12px !important;
|
|
|
|
line-height: 15px !important;
|
|
|
|
}
|
|
|
|
table.top-products tr th {
|
|
|
|
padding: 8px 0px !important;
|
|
|
|
font-size: 12px !important;
|
|
|
|
line-height: 15px !important;
|
|
|
|
}
|
|
|
|
table.top-products tr td {
|
|
|
|
font-size: 12px !important;
|
|
|
|
padding: 10px 0px !important;
|
|
|
|
border-bottom: 1px solid #F0F1F4;
|
|
|
|
}
|
|
|
|
table.top-products tr td:nth-child(2) {
|
|
|
|
font-size: 12px !important;
|
|
|
|
}
|
|
|
|
.pro-tip-holder {
|
|
|
|
background: #F3F8FE;
|
|
|
|
border-radius: 8px !important;
|
|
|
|
padding: 24px 24px !important;
|
|
|
|
}
|
|
|
|
.pro-tip-section-title {
|
|
|
|
font-size: 14px !important;
|
|
|
|
line-height: 15px !important;
|
|
|
|
}
|
|
|
|
.pro-tip-section-title img {
|
|
|
|
margin-right: 3px !important;
|
|
|
|
}
|
|
|
|
.pro-tip-title {
|
|
|
|
font-size: 14px !important;
|
|
|
|
line-height: 18px !important;
|
|
|
|
}
|
|
|
|
.cta-btn {
|
|
|
|
padding: 6px 15px;
|
|
|
|
font-weight: 600;
|
|
|
|
font-size: 16px;
|
|
|
|
line-height: 20px;
|
|
|
|
background: #2794DA;
|
|
|
|
display: inline-block;
|
|
|
|
color: #FFFFFF;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
|
|
|
</head>
|
|
|
|
|
|
|
|
|
|
|
|
<body style="margin: 0px auto; max-width: 450px;">
|
|
|
|
<!-- PREVIEW TEXT -->
|
|
|
|
<div style="display: none; max-height: 0px; overflow: hidden;">
|
|
|
|
<?php echo esc_html( __( 'Store performance summary', 'easy-digital-downloads' ) ); ?> <?php echo esc_html( $date_range['start_date']->format( $wp_date_format ) ); ?> - <?php echo esc_html( $date_range['end_date']->format( $wp_date_format ) ); ?>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- HEADER HOLDER -->
|
|
|
|
<div class="email-header-holder" style="background: #343A40; max-height: 60px; height: 60px;">
|
|
|
|
|
|
|
|
<div class="email-container" style="max-width: 450px; margin: 0 auto; font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif; color: #1F2937;">
|
|
|
|
|
|
|
|
<div class="logo-holder" style="padding: 12px 31px 7px 31px; display: inline-block;">
|
2023-03-17 22:34:04 +00:00
|
|
|
<img src="<?php echo esc_url( 'https://plugin.easydigitaldownloads.com/cdn/summaries/edd-logo-white-2x.png' ); ?>" class="edd-logo" width="216" height="35" style="width: 100%; max-width: 100%; height: auto; max-width: 216px; max-height: 35px;">
|
2022-11-27 15:03:07 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="email-container" style="max-width: 450px; margin: 0 auto; font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif; color: #1F2937;">
|
|
|
|
|
|
|
|
|
|
|
|
<!-- MAIN EMAIL CONTENT HOLDER -->
|
|
|
|
|
|
|
|
<div class="content-box" style="background: #FFF;">
|
|
|
|
|
|
|
|
<div class="content-holder" style="padding: 22px 31px 0px 31px;">
|
|
|
|
|
|
|
|
<h1 style="margin: 0px; color: #1F2937;font-weight: 700;font-size: 24px;line-height: 24px;"><?php echo esc_html( __( 'Your eCommerce Summary', 'easy-digital-downloads' ) ); ?></h1>
|
|
|
|
|
|
|
|
<div class="period-date pull-down-8" style="margin-top: 8px; font-weight: 400; font-size: 14px; line-height: 18px; color: #4B5563;">
|
|
|
|
<?php echo esc_html( $date_range['start_date']->format( $wp_date_format ) ); ?> - <?php echo esc_html( $date_range['end_date']->format( $wp_date_format ) ); ?>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<a href="<?php echo esc_url( $site_url ); ?>" class="link-style pull-down-8" style="margin-top: 8px; font-weight: 400; font-size: 14px; text-decoration-line: underline; display: inline-block; color: inherit; text-decoration: none;">
|
|
|
|
<?php echo esc_url( $site_url ); ?>
|
|
|
|
</a>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="pull-down-20" style="margin-top: 20px;">
|
|
|
|
<h2 style="margin: 0px; font-weight: 700; font-size: 18px; line-height: 23px; letter-spacing: -0.02em; color: #1F2937;"><?php echo esc_html( __( 'Hey there!', 'easy-digital-downloads' ) ); ?></h2>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<p class="pull-down-5" style="margin: 0px; font-weight: 400; font-size: 14px; line-height: 18px; color: #4B5563; margin-top: 5px;">
|
|
|
|
<?php
|
|
|
|
/* Translators: period name (e.g. week) */
|
|
|
|
echo esc_html( sprintf( __( 'Below is a look at how your store performed in the last %s.', 'easy-digital-downloads' ), $period_name ) );
|
|
|
|
?>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- DATA LISTING -->
|
|
|
|
<table class="stats-totals-wrapper" style="border-collapse: collapse; border-spacing: 0; padding: 0; vertical-align: top; text-align: left; mso-table-lspace: 0pt; mso-table-rspace: 0pt; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; width: 100%; margin-top: 48px;" width="100%" valign="top" align="left">
|
|
|
|
<tr style="padding: 0; vertical-align: top; text-align: left;" valign="top" align="left">
|
|
|
|
<td class="stats-totals-item-wrapper" style="word-wrap: break-word; -webkit-hyphens: auto; -moz-hyphens: auto; hyphens: auto; padding: 0px; vertical-align: top; text-align: center; mso-table-lspace: 0pt; mso-table-rspace: 0pt; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; color: #444444; font-weight: normal; margin: 0; mso-line-height-rule: exactly; line-height: 140%; font-size: 14px; border-collapse: collapse;" valign="top" align="center">
|
|
|
|
<table class="stats-total-item" width="145" style="border-spacing: 0; padding: 0; vertical-align: top; text-align: left; mso-table-lspace: 0pt; mso-table-rspace: 0pt; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; width: 145px; display: inline-table; min-width: 145px;" valign="top" align="center">
|
|
|
|
<tr style="padding: 0; vertical-align: top; text-align: left;" valign="top" align="left">
|
|
|
|
<td class="stats-total-item-inner" style="width: 100%; min-width: 100%; word-wrap: break-word; -webkit-hyphens: auto; -moz-hyphens: auto; hyphens: auto; padding: 0px; vertical-align: top; text-align: center; mso-table-lspace: 0pt; mso-table-rspace: 0pt; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; color: #444444; font-weight: normal; margin: 0; mso-line-height-rule: exactly; line-height: 140%; font-size: 14px; border-collapse: collapse;" width="100%" valign="top" align="center">
|
|
|
|
<p class="stats-total-item-icon-wrapper" style="font-weight: 400; font-size: 14px; line-height: 18px; margin: 0; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; color: #809EB0; padding: 0; text-align: center; mso-line-height-rule: exactly; margin-bottom: 1px; height: 32px;">
|
2023-03-17 22:34:04 +00:00
|
|
|
<img src="<?php echo esc_url( 'https://plugin.easydigitaldownloads.com/cdn/summaries/icon-gross.png' ); ?>" alt="#" title="#" width="28" height="28">
|
2022-11-27 15:03:07 +00:00
|
|
|
</p>
|
|
|
|
<p class="stats-total-item-title" style="margin: 0; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; color: #1F2937; padding: 0; text-align: center; mso-line-height-rule: exactly; font-weight: 600; font-size: 14px; line-height: 18px; font-style: normal; margin-bottom: 5px; white-space: nowrap;">
|
|
|
|
<?php echo esc_html( __( 'Gross Revenue', 'easy-digital-downloads' ) ); ?>
|
|
|
|
</p>
|
|
|
|
<p class="stats-total-item-value dark-white-color" style="margin: 0 0 6px 0; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; color: #444444; font-weight: bold; padding: 0; text-align: center; mso-line-height-rule: exactly; line-height: 32px; font-size: 32px;">
|
|
|
|
<?php echo esc_html( edd_currency_filter( edd_format_amount( $dataset['earnings_gross']['value'] ) ) ); ?>
|
|
|
|
</p>
|
|
|
|
<p class="stats-total-item-percent" style="margin: 0; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; color: #777777; font-weight: normal; padding: 0; text-align: center; mso-line-height-rule: exactly; line-height: 14px; font-size: 10px; white-space: nowrap;">
|
|
|
|
<?php echo $this->build_relative_markup( $dataset['earnings_gross']['relative_data'] ); ?>
|
|
|
|
<span class="comparison" style="font-style: normal; font-weight: lighter; font-size: 12px; line-height: 14px; text-align: center; color: #6B7280; display: block; margin-top: 6px;">
|
|
|
|
<?php echo esc_html( $relative_text ); ?>
|
|
|
|
</span>
|
|
|
|
</p>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="stats-totals-item-wrapper" style="word-wrap: break-word; -webkit-hyphens: auto; -moz-hyphens: auto; hyphens: auto; padding: 0px; vertical-align: top; text-align: center; mso-table-lspace: 0pt; mso-table-rspace: 0pt; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; color: #444444; font-weight: normal; margin: 0; mso-line-height-rule: exactly; line-height: 140%; font-size: 14px; border-collapse: collapse;" valign="top" align="center">
|
|
|
|
<table class="stats-total-item" width="145" style="border-spacing: 0; padding: 0; vertical-align: top; text-align: left; mso-table-lspace: 0pt; mso-table-rspace: 0pt; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; width: 145px; display: inline-table; min-width: 145px;" valign="top" align="center">
|
|
|
|
<tr style="padding: 0; vertical-align: top; text-align: left;" valign="top" align="left">
|
|
|
|
<td class="stats-total-item-inner" style="width: 100%; min-width: 100%; word-wrap: break-word; -webkit-hyphens: auto; -moz-hyphens: auto; hyphens: auto; padding: 0px; vertical-align: top; text-align: center; mso-table-lspace: 0pt; mso-table-rspace: 0pt; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; color: #444444; font-weight: normal; margin: 0; mso-line-height-rule: exactly; line-height: 140%; font-size: 14px; border-collapse: collapse;" width="100%" valign="top" align="center">
|
|
|
|
<p class="stats-total-item-icon-wrapper" style="font-weight: 400; font-size: 14px; line-height: 18px; margin: 0; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; color: #809EB0; padding: 0; text-align: center; mso-line-height-rule: exactly; margin-bottom: 1px; height: 32px;">
|
2023-03-17 22:34:04 +00:00
|
|
|
<img src="<?php echo esc_url( 'https://plugin.easydigitaldownloads.com/cdn/summaries/icon-net.png' ); ?>" alt="#" title="#" width="28" height="28">
|
2022-11-27 15:03:07 +00:00
|
|
|
</p>
|
|
|
|
<p class="stats-total-item-title" style="margin: 0; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; color: #1F2937; padding: 0; text-align: center; mso-line-height-rule: exactly; font-weight: 600; font-size: 14px; line-height: 18px; font-style: normal; margin-bottom: 5px; white-space: nowrap;">
|
|
|
|
<?php echo esc_html( __( 'Net Revenue', 'easy-digital-downloads' ) ); ?>
|
|
|
|
</p>
|
|
|
|
<p class="stats-total-item-value dark-white-color" style="margin: 0 0 6px 0; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; color: #444444; font-weight: bold; padding: 0; text-align: center; mso-line-height-rule: exactly; line-height: 32px; font-size: 32px;">
|
|
|
|
<?php echo esc_html( edd_currency_filter( edd_format_amount( $dataset['earnings_net']['value'] ) ) ); ?>
|
|
|
|
</p>
|
|
|
|
<p class="stats-total-item-percent" style="margin: 0; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; color: #777777; font-weight: normal; padding: 0; text-align: center; mso-line-height-rule: exactly; line-height: 14px; font-size: 10px; white-space: nowrap;">
|
|
|
|
<?php echo $this->build_relative_markup( $dataset['earnings_net']['relative_data'] ); ?>
|
|
|
|
<span class="comparison" style="font-style: normal; font-weight: lighter; font-size: 12px; line-height: 14px; text-align: center; color: #6B7280; display: block; margin-top: 6px;">
|
|
|
|
<?php echo esc_html( $relative_text ); ?>
|
|
|
|
</span>
|
|
|
|
</p>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<table class="stats-totals-wrapper pull-down-40" style="border-collapse: collapse; border-spacing: 0; padding: 0; vertical-align: top; text-align: left; mso-table-lspace: 0pt; mso-table-rspace: 0pt; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; width: 100%; margin-top: 48px; margin-bottom: 48px !important;" width="100%" valign="top" align="left">
|
|
|
|
<tr style="padding: 0; vertical-align: top; text-align: left;" valign="top" align="left">
|
|
|
|
<td class="stats-totals-item-wrapper" style="word-wrap: break-word; -webkit-hyphens: auto; -moz-hyphens: auto; hyphens: auto; padding: 0px; vertical-align: top; text-align: center; mso-table-lspace: 0pt; mso-table-rspace: 0pt; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; color: #444444; font-weight: normal; margin: 0; mso-line-height-rule: exactly; line-height: 140%; font-size: 14px; border-collapse: collapse;" valign="top" align="center">
|
|
|
|
<table class="stats-total-item" width="145" style="border-spacing: 0; padding: 0; vertical-align: top; text-align: left; mso-table-lspace: 0pt; mso-table-rspace: 0pt; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; width: 145px; display: inline-table; min-width: 145px;" valign="top" align="center">
|
|
|
|
<tr style="padding: 0; vertical-align: top; text-align: left;" valign="top" align="left">
|
|
|
|
<td class="stats-total-item-inner" style="width: 100%; min-width: 100%; word-wrap: break-word; -webkit-hyphens: auto; -moz-hyphens: auto; hyphens: auto; padding: 0px; vertical-align: top; text-align: center; mso-table-lspace: 0pt; mso-table-rspace: 0pt; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; color: #444444; font-weight: normal; margin: 0; mso-line-height-rule: exactly; line-height: 140%; font-size: 14px; border-collapse: collapse;" width="100%" valign="top" align="center">
|
|
|
|
<p class="stats-total-item-icon-wrapper" style="font-weight: 400; font-size: 14px; line-height: 18px; margin: 0; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; color: #809EB0; padding: 0; text-align: center; mso-line-height-rule: exactly; margin-bottom: 1px; height: 32px;">
|
2023-03-17 22:34:04 +00:00
|
|
|
<img src="<?php echo esc_url( 'https://plugin.easydigitaldownloads.com/cdn/summaries/icon-new-customers.png' ); ?>" alt="#" title="#" width="28" height="28">
|
2022-11-27 15:03:07 +00:00
|
|
|
</p>
|
|
|
|
<p class="stats-total-item-title" style="margin: 0; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; color: #1F2937; padding: 0; text-align: center; mso-line-height-rule: exactly; font-weight: 600; font-size: 14px; line-height: 18px; font-style: normal; margin-bottom: 5px; white-space: nowrap;">
|
|
|
|
<?php echo esc_html( __( 'New Customers', 'easy-digital-downloads' ) ); ?>
|
|
|
|
</p>
|
|
|
|
<p class="stats-total-item-value dark-white-color" style="margin: 0 0 6px 0; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; color: #444444; font-weight: bold; padding: 0; text-align: center; mso-line-height-rule: exactly; line-height: 32px; font-size: 32px;">
|
|
|
|
<?php echo esc_html( $dataset['new_customers']['value'] ); ?>
|
|
|
|
</p>
|
|
|
|
<p class="stats-total-item-percent" style="margin: 0; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; color: #777777; font-weight: normal; padding: 0; text-align: center; mso-line-height-rule: exactly; line-height: 14px; font-size: 10px; white-space: nowrap;">
|
|
|
|
<?php echo $this->build_relative_markup( $dataset['new_customers']['relative_data'] ); ?>
|
|
|
|
<span class="comparison" style="font-style: normal; font-weight: lighter; font-size: 12px; line-height: 14px; text-align: center; color: #6B7280; display: block; margin-top: 6px;">
|
|
|
|
<?php echo esc_html( $relative_text ); ?>
|
|
|
|
</span>
|
|
|
|
</p>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
<td class="stats-totals-item-wrapper" style="word-wrap: break-word; -webkit-hyphens: auto; -moz-hyphens: auto; hyphens: auto; padding: 0px; vertical-align: top; text-align: center; mso-table-lspace: 0pt; mso-table-rspace: 0pt; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; color: #444444; font-weight: normal; margin: 0; mso-line-height-rule: exactly; line-height: 140%; font-size: 14px; border-collapse: collapse;" valign="top" align="center">
|
|
|
|
<table class="stats-total-item" width="145" style="border-spacing: 0; padding: 0; vertical-align: top; text-align: left; mso-table-lspace: 0pt; mso-table-rspace: 0pt; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; width: 145px; display: inline-table; min-width: 145px;" valign="top" align="center">
|
|
|
|
<tr style="padding: 0; vertical-align: top; text-align: left;" valign="top" align="left">
|
|
|
|
<td class="stats-total-item-inner" style="width: 100%; min-width: 100%; word-wrap: break-word; -webkit-hyphens: auto; -moz-hyphens: auto; hyphens: auto; padding: 0px; vertical-align: top; text-align: center; mso-table-lspace: 0pt; mso-table-rspace: 0pt; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; color: #444444; font-weight: normal; margin: 0; mso-line-height-rule: exactly; line-height: 140%; font-size: 14px; border-collapse: collapse;" width="100%" valign="top" align="center">
|
|
|
|
<p class="stats-total-item-icon-wrapper" style="font-weight: 400; font-size: 14px; line-height: 18px; margin: 0; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; color: #809EB0; padding: 0; text-align: center; mso-line-height-rule: exactly; margin-bottom: 1px; height: 32px;">
|
2023-03-17 22:34:04 +00:00
|
|
|
<img src="<?php echo esc_url( 'https://plugin.easydigitaldownloads.com/cdn/summaries/icon-average.png' ); ?>" alt="#" title="#" width="28" height="28">
|
2022-11-27 15:03:07 +00:00
|
|
|
</p>
|
|
|
|
<p class="stats-total-item-title" style="margin: 0; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; color: #1F2937; padding: 0; text-align: center; mso-line-height-rule: exactly; font-weight: 600; font-size: 14px; line-height: 18px; font-style: normal; margin-bottom: 5px; white-space: nowrap;">
|
|
|
|
<?php echo esc_html( __( 'Average Order', 'easy-digital-downloads' ) ); ?>
|
|
|
|
</p>
|
|
|
|
<p class="stats-total-item-value dark-white-color" style="margin: 0 0 6px 0; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; color: #444444; font-weight: bold; padding: 0; text-align: center; mso-line-height-rule: exactly; line-height: 32px; font-size: 32px;">
|
|
|
|
<?php echo esc_html( edd_currency_filter( edd_format_amount( $dataset['average_order_value']['value'] ) ) ); ?>
|
|
|
|
</p>
|
|
|
|
<p class="stats-total-item-percent" style="margin: 0; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; color: #777777; font-weight: normal; padding: 0; text-align: center; mso-line-height-rule: exactly; line-height: 14px; font-size: 10px; white-space: nowrap;">
|
|
|
|
<?php echo $this->build_relative_markup( $dataset['average_order_value']['relative_data'] ); ?>
|
|
|
|
<span class="comparison" style="font-style: normal; font-weight: lighter; font-size: 12px; line-height: 14px; text-align: center; color: #6B7280; display: block; margin-top: 6px;">
|
|
|
|
<?php echo esc_html( $relative_text ); ?>
|
|
|
|
</span>
|
|
|
|
</p>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
<hr style="border: 0.2px solid #E5E7EB; display: block;">
|
|
|
|
|
|
|
|
|
|
|
|
<!-- TABLE DATA -->
|
|
|
|
<div class="table-data-holder pull-down-25 " style="margin-top: 25px; ">
|
|
|
|
<div class="table-top-icon align-c" style="text-align: center;">
|
2023-03-17 22:34:04 +00:00
|
|
|
<img src="<?php echo esc_url( 'https://plugin.easydigitaldownloads.com/cdn/summaries/icon-top-products.png' ); ?>" alt="#" title="#" width="28" height="28">
|
2022-11-27 15:03:07 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="table-top-title align-c" style="text-align: center; font-size: 14px; line-height: 18px; font-weight: 600; color: #1F2937; display: block; margin-top: 0px; margin-bottom: 12px;">
|
|
|
|
<?php echo esc_html( __( 'Top 5 Products by Revenue', 'easy-digital-downloads' ) ); ?>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<table class="top-products" style="border-collapse: collapse; width: 100%; font-size: 12px; line-height: 15px; color: #4B5563;" width="100%">
|
|
|
|
<tr>
|
|
|
|
<th style="font-weight: 600; border-bottom: 1px solid #E5E7EB; text-align: left; border-right: none; padding: 10px 0px; font-size: 12px; line-height: 15px;" align="left"><?php echo esc_html( __( 'Product', 'easy-digital-downloads' ) ); ?></th>
|
|
|
|
<th style="font-weight: 600; border-bottom: 1px solid #E5E7EB; border-right: none; padding: 10px 0px; font-size: 12px; line-height: 15px; text-align: right;" align="right"><?php echo esc_html( __( 'Gross Revenue', 'easy-digital-downloads' ) ); ?></th>
|
|
|
|
</tr>
|
|
|
|
<?php
|
|
|
|
$counter = 1;
|
|
|
|
foreach ( $dataset['top_selling_products'] as $product ) :
|
|
|
|
if ( ! $product->object instanceof \EDD_Download ) {
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
|
|
|
|
$title = $product->object->post_title;
|
|
|
|
$revenue = edd_currency_filter( edd_format_amount( $product->total ) );
|
|
|
|
?>
|
|
|
|
<tr>
|
|
|
|
<td style="font-size: 12px; color: #4B5563; font-weight: 400; text-align: left; padding: 9px 0px; border-bottom: 1px solid #F0F1F4;" align="left"><?php echo esc_html( $counter ); ?>. <?php echo esc_html( $title ); ?></td>
|
|
|
|
<td style="font-size: 12px; color: #4B5563; font-weight: 400; padding: 9px 0px; border-bottom: 1px solid #F0F1F4; text-align: right;" align="right"><?php echo esc_html( $revenue ); ?></td>
|
|
|
|
</tr>
|
|
|
|
<?php
|
|
|
|
$counter++;
|
|
|
|
endforeach;
|
|
|
|
?>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<a href="<?php echo esc_attr( $view_more_url ); ?>" style="color: #2794DA; margin-top: 15px; margin-bottom: 15px; font-weight: 400; font-size: 14px; text-decoration-line: underline; display: inline-block; text-decoration: none;">
|
|
|
|
<?php echo esc_html( __( 'View Full Report', 'easy-digital-downloads' ) ); ?>
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<!-- /.content-box -->
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<!-- /.email-container -->
|
|
|
|
|
|
|
|
|
|
|
|
<?php if ( ! empty( $blurb ) ) : ?>
|
|
|
|
<!-- PRO-TIP SECTION -->
|
|
|
|
<div class="email-container pro-tip-blurb" style="max-width: 450px; margin: 0 auto; font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif; color: #1F2937;">
|
|
|
|
<div class="content-box pro-tip-section" style="background: #FFF;">
|
|
|
|
|
|
|
|
<div class="content-holder pro-tip-section" style="padding: 0px 31px 27px 31px;">
|
|
|
|
|
|
|
|
<div class="pro-tip-holder" style="background: #F3F8FE; border-radius: 10px; padding: 32px 40px;">
|
|
|
|
|
|
|
|
<div class="pro-tip-section-title" style="font-weight: 600; font-size: 18px; line-height: 23px; color: #2794DA;">
|
2023-03-17 22:34:04 +00:00
|
|
|
<img src="<?php echo esc_url( 'https://plugin.easydigitaldownloads.com/cdn/summaries/icon-megaphone.png' ); ?>" alt="#" title="#" width="24" height="24" style="vertical-align: bottom; display: inline-block; margin-right: 4px;">
|
2022-11-27 15:03:07 +00:00
|
|
|
<?php echo esc_html( __( 'Pro-tip from our expert', 'easy-digital-downloads' ) ); ?>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="pro-tip-title pull-down-12" style="margin-top: 12px; font-weight: 600; font-size: 20px; line-height: 26px; color: #1F2937;">
|
|
|
|
<?php echo esc_html( $blurb['headline'] ); ?>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<p class="bigger pull-down-8" style="margin: 0px; font-weight: 400; color: #4B5563; margin-top: 8px; font-size: 16px; line-height: 22px;">
|
|
|
|
<?php echo esc_html( $blurb['content'] ); ?>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<div class="pull-down-15" style="margin-top: 15px;">
|
|
|
|
<a href="<?php echo esc_attr( $blurb['button_link'] ); ?>" class="cta-btn" style="padding: 6px 15px; font-weight: 600; font-size: 14px; line-height: 20px; background: #2794DA; display: inline-block; text-decoration: none; color: white;">
|
|
|
|
<?php echo esc_html( $blurb['button_text'] ); ?>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<!-- /.pro-tip-blurb -->
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|