| 1 |
<?php |
| 2 |
/** |
| 3 |
* Template Name: Email Quick Links + Sign-off (Free). |
| 4 |
* Included for non-Pro users from email-body.php. |
| 5 |
* |
| 6 |
* Expected variables (passed from Cartflows_Admin_Report_Emails::get_email_content()): |
| 7 |
* - $quick_links (array) Map of link label => URL. |
| 8 |
* - $sign_off (string) Team sign-off name. |
| 9 |
* |
| 10 |
* @package CartFlows |
| 11 |
*/ |
| 12 |
|
| 13 |
if ( ! defined( 'ABSPATH' ) ) { |
| 14 |
exit; |
| 15 |
} |
| 16 |
|
| 17 |
// Defensive defaults so the template renders without notices if a variable is missing. |
| 18 |
$quick_links = isset( $quick_links ) ? $quick_links : array(); |
| 19 |
$sign_off = isset( $sign_off ) ? $sign_off : ''; |
| 20 |
?> |
| 21 |
<!-- Quick links --> |
| 22 |
<tr> |
| 23 |
<td class="px-lg modern-sans" style="padding:32px 40px 0 40px; font-family:-apple-system,BlinkMacSystemFont,'Segoe UI','Helvetica Neue',Helvetica,Arial,sans-serif;"> |
| 24 |
<p style="margin:0 0 14px 0; font-size:16px; font-weight:700; color:#0f172a; letter-spacing:-0.01em;"> |
| 25 |
<?php echo esc_html__( 'Quick links', 'cartflows' ); ?> |
| 26 |
</p> |
| 27 |
<div style="font-size:0; line-height:0;" class="chip-row"> |
| 28 |
<?php foreach ( $quick_links as $label => $url ) : ?> |
| 29 |
<a href="<?php echo esc_url( $url ); ?>" target="_blank" style="display:inline-block; margin:0 8px 8px 0; padding:7px 13px; background-color:#fff4eb; border:1px solid #fde8d8; border-radius:999px; font-family:-apple-system,BlinkMacSystemFont,'Segoe UI','Helvetica Neue',Helvetica,Arial,sans-serif; font-size:11px; font-weight:500; color:#c2410c; text-decoration:none; line-height:1; white-space:nowrap;"><?php echo esc_html( $label ); ?></a> |
| 30 |
<?php endforeach; ?> |
| 31 |
</div> |
| 32 |
</td> |
| 33 |
</tr> |
| 34 |
|
| 35 |
<!-- Sign-off --> |
| 36 |
<tr> |
| 37 |
<td class="px-lg modern-sans" style="padding:36px 40px 40px 40px; font-family:-apple-system,BlinkMacSystemFont,'Segoe UI','Helvetica Neue',Helvetica,Arial,sans-serif; font-size:14px; color:#475569; line-height:1.6;"> |
| 38 |
<p style="margin:0;"><?php echo esc_html__( 'Thanks,', 'cartflows' ); ?></p> |
| 39 |
<p style="margin:2px 0 0 0; color:#0f172a; font-weight:600;"><?php echo esc_html( $sign_off ); ?></p> |
| 40 |
</td> |
| 41 |
</tr> |
| 42 |
|