PluginProbe
CartFlows – Funnel Builder & Checkout Plugin for WooCommerce / 3.1.2
CartFlows – Funnel Builder & Checkout Plugin for WooCommerce v3.1.2
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-footer.php

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

77 lines 3.5 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 Footer — social icons + auto-generated note + unsubscribe.
4 * Rendered outside the white card.
5 *
6 * Expected variables (passed from Cartflows_Admin_Report_Emails::get_email_content()):
7 * - $facebook_icon (string) Absolute URL of the Facebook icon image.
8 * - $twitter_icon (string) Absolute URL of the Twitter icon image.
9 * - $youtube_icon (string) Absolute URL of the YouTube icon image.
10 * - $store_name (string) Store name pulled from get_bloginfo( 'name' ).
11 * - $unsubscribe_link (string) Unsubscribe URL with HMAC token.
12 *
13 * @package CartFlows
14 */
15
16 if ( ! defined( 'ABSPATH' ) ) {
17 exit;
18 }
19
20 // Defensive defaults so the template renders without notices if a variable is missing.
21 $facebook_icon = isset( $facebook_icon ) ? $facebook_icon : '';
22 $twitter_icon = isset( $twitter_icon ) ? $twitter_icon : '';
23 $youtube_icon = isset( $youtube_icon ) ? $youtube_icon : '';
24 $store_name = isset( $store_name ) ? $store_name : '';
25 $unsubscribe_link = isset( $unsubscribe_link ) ? $unsubscribe_link : '';
26 ?>
27 <table role="presentation" class="container" align="center" border="0" cellpadding="0" cellspacing="0" width="640" style="max-width:640px;">
28
29 <!-- Social icons -->
30 <tr>
31 <td align="center" style="padding:24px 24px 0 24px;">
32 <table role="presentation" border="0" cellpadding="0" cellspacing="0">
33 <tr>
34 <td style="padding:0 8px;">
35 <a href="<?php echo esc_url( 'https://www.facebook.com/groups/cartflows/' ); ?>" target="_blank">
36 <img alt="<?php echo esc_attr__( 'Facebook', 'cartflows' ); ?>" src="<?php echo esc_url( $facebook_icon ); ?>" width="22" height="22" style="display:block; border:0;" />
37 </a>
38 </td>
39 <td style="padding:0 8px;">
40 <a href="<?php echo esc_url( 'https://twitter.com/cartflows' ); ?>" target="_blank">
41 <img alt="<?php echo esc_attr__( 'Twitter', 'cartflows' ); ?>" src="<?php echo esc_url( $twitter_icon ); ?>" width="22" height="22" style="display:block; border:0;" />
42 </a>
43 </td>
44 <td style="padding:0 8px;">
45 <a href="<?php echo esc_url( 'https://www.youtube.com/channel/UCEdXT5pEI_Vbd5te5v7sOpQ' ); ?>" target="_blank">
46 <img alt="<?php echo esc_attr__( 'YouTube', 'cartflows' ); ?>" src="<?php echo esc_url( $youtube_icon ); ?>" width="22" height="22" style="display:block; border:0;" />
47 </a>
48 </td>
49 </tr>
50 </table>
51 </td>
52 </tr>
53
54 <!-- Footer auto-generated text -->
55 <tr>
56 <td align="center" class="modern-sans" style="padding:18px 24px 8px 24px; font-family:-apple-system,BlinkMacSystemFont,'Segoe UI','Helvetica Neue',Helvetica,Arial,sans-serif; font-size:12px; color:#94a3b8; line-height:1.7;">
57 <?php
58 echo sprintf(
59 /* translators: %s: store name with link to home URL. */
60 wp_kses_post( __( 'This email was auto-generated and sent from %s.', 'cartflows' ) ),
61 '<a href="' . esc_url( home_url() ) . '" target="_blank" style="color:#94a3b8; text-decoration:underline;">' . esc_html( $store_name ) . '</a>'
62 );
63 ?>
64 </td>
65 </tr>
66
67 <!-- Unsubscribe -->
68 <tr>
69 <td align="center" class="modern-sans" style="padding:0 24px 24px 24px; font-family:-apple-system,BlinkMacSystemFont,'Segoe UI','Helvetica Neue',Helvetica,Arial,sans-serif; font-size:12px; color:#94a3b8; line-height:1.7;">
70 <a href="<?php echo esc_url( $unsubscribe_link ); ?>" target="_blank" rel="noopener" style="color:#94a3b8; text-decoration:underline;">
71 <?php echo esc_html__( 'Unsubscribe', 'cartflows' ); ?>
72 </a>
73 </td>
74 </tr>
75
76 </table>
77