| 1 |
<?php |
| 2 |
/** |
| 3 |
* Template Name: Email Header. |
| 4 |
* |
| 5 |
* Expected variables (passed from Cartflows_Admin_Report_Emails::get_email_content()): |
| 6 |
* - $cf_logo (string) Absolute URL of the CartFlows email logo image. |
| 7 |
* - $total_revenue (string) Formatted weekly revenue (wc_price() HTML output). |
| 8 |
* |
| 9 |
* @package CartFlows |
| 10 |
*/ |
| 11 |
|
| 12 |
if ( ! defined( 'ABSPATH' ) ) { |
| 13 |
exit; |
| 14 |
} |
| 15 |
|
| 16 |
// Defensive defaults so the template renders without notices if a variable is missing. |
| 17 |
$cf_logo = isset( $cf_logo ) ? $cf_logo : ''; |
| 18 |
$total_revenue = isset( $total_revenue ) ? $total_revenue : ''; |
| 19 |
?> |
| 20 |
<tr> |
| 21 |
<td align="center" class="modern-sans" style="background-color:#f06434; padding:16px 24px; font-family:-apple-system,BlinkMacSystemFont,'Segoe UI','Helvetica Neue',Helvetica,Arial,sans-serif; font-size:14px; font-weight:600; color:#ffffff; letter-spacing:0.2px; line-height:1.4;"> |
| 22 |
<?php |
| 23 |
/* translators: %s: Total revenue earned in the last 7 days, formatted with currency. */ |
| 24 |
echo sprintf( esc_html__( 'Your weekly CartFlows report — %s earned', 'cartflows' ), wp_kses_post( $total_revenue ) ); |
| 25 |
?> |
| 26 |
</td> |
| 27 |
</tr> |
| 28 |
<tr> |
| 29 |
<td align="center" style="padding:32px 24px 8px 24px;"> |
| 30 |
<a href="<?php echo esc_url( 'https://cartflows.com/' ); ?>" target="_blank"> |
| 31 |
<img src="<?php echo esc_url( $cf_logo ); ?>" alt="<?php echo esc_attr__( 'CartFlows', 'cartflows' ); ?>" width="156" style="display:block; max-width:156px; height:auto; border:0;" /> |
| 32 |
</a> |
| 33 |
</td> |
| 34 |
</tr> |
| 35 |
|