PluginProbe
CartFlows – Funnel Builder & Checkout Plugin for WooCommerce / 3.3.0
CartFlows – Funnel Builder & Checkout Plugin for WooCommerce v3.3.0
3.3.0 3.2.1 3.2.0 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.1 trunk 1.0.4 1.1.0 1.1.0.1 1.1.1 1.1.10 1.1.11 1.1.12 1.1.13 1.1.14 1.1.15 1.1.16 1.1.17 1.1.18 1.1.19 1.1.2 All 162 releases
cartflows / modules / email-report / templates / email-header.php

email-header.php in CartFlows – Funnel Builder & Checkout Plugin for WooCommerce 3.3.0, at modules/email-report/templates/email-header.php

35 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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