3231ba33 by Jeff Balicki

eee

1 parent a0d868c2
......@@ -133,7 +133,8 @@ $understrap_inc_dir = 'inc';
// Array of files to include.
$understrap_includes = array(
'/emails.php'
'/emails.php',
'/wpsl.php'
);
......
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:o="urn:schemas-microsoft-com:office:office">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="x-apple-disable-message-reformatting">
<title></title>
<!--[if mso]>
<noscript>
<xml>
<o:OfficeDocumentSettings>
<o:PixelsPerInch>96</o:PixelsPerInch>
</o:OfficeDocumentSettings>
</xml>
</noscript>
<![endif]-->
<style>
@font-face { font-family: Calibri;
src: url('https://fp-canada.gotenzing.com/wp-content/themes/understrap-child/Calibri.woff') format('woff'); }
@font-face { font-family: Calibri-bold;
src: url('https://fp-canada.gotenzing.com/wp-content/themes/understrap-child/Calibri-Bold.woff') format('woff'); }
table, td, div, h1, p {font-family: Calibri;}
strong{font-family: Calibri;}
</style>
</head>
<body style="margin:0;padding:0;">
<table role="presentation" style="width:100%;border-collapse:collapse;border:0;border-spacing:0;background:#ffffff;">
<tr>
<td align="center" style="padding:0;">
<table bgcolor="#BA0C2F" role="presentation" style="width:602px;border-collapse:collapse;border-spacing:0;text-align:left;">
<tr style="background:#BA0C2F;">
<td align="center">
&nbsp;
</td>
<td align="center">
&nbsp;
</td>
<td align="center" width="135">
<img width="135" src="https://fp-canada.gotenzing.com/wp-content/uploads/2022/01/fp_logo.png" class="img-fluid" alt="FP Canada">
</td>
<td align="center" width="40">
&nbsp;&nbsp;
</td>
</tr>
<tr style="background:#BA0C2F;">
<td colspan="4" style="padding:36px 30px 42px 30px;">
<table role="presentation" style="width:100%;border-collapse:collapse;border:0;border-spacing:0;">
<tr>
<td style="padding:0 0 36px 0;color:#153643;">
<h1 style="font-size:50px;line-height:55px;color:#fff;margin:0 0 20px 0; font-family: Calibri-bold;">
WE’RE LOOKING<br>FORWARD TO HELPING<br>YOU WYN.
</h1>
</td>
</tr>
</table>
</td>
</tr>
<tr style="background:#ffffff;">
<td colspan="4" style="padding:36px 30px 42px 30px;">
<table role="presentation" style="width:100%;border-collapse:collapse;border:0;border-spacing:0;">
<tr>
<td colspan="3" style="padding:0 0 36px 0;color:#153643;">
<p style="margin:0 0 12px 0;font-size:24px;line-height:28px;font-family: Calibri;color:#012169;">You’ve registered for the WYN Campaign. Your contact info will be made available on the Find A Planner segment of the What’s Your Number campaign microsite. Congratulations! The campaign begins on February 21, 2022</p>
<p style="margin:0 0 12px 0;font-size:24px;line-height:28px;font-family: Calibri;color:#012169;">You’ve also signed up for the WYN Webinar on February 14, 2022. The FP Canada team looks forward to taking you through the program to help you prepare for success.</p>
</td>
</tr>
<tr style="background:#ffffff;">
<td colspan="4" style="padding-bottom:10px">
</td>
</tr>
<tr>
<td align="center">
&nbsp;
</td>
<td align="center">
<img width="147" src="https://fp-canada.gotenzing.com/wp-content/uploads/2022/01/logo.png" class="img-fluid" alt="FP Canada">
</td>
<td align="center">
&nbsp;
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="4" style="padding:30px;background:#fff;">
<table role="presentation" style="width:100%;border-collapse:collapse;border:0;border-spacing:0;font-size:9px;font-family:Arial,sans-serif;">
<tr>
<td style="padding-bottom:50px;width:5%;" align="left">
&nbsp;&nbsp;
</td>
<td style="padding:0;width:90%;border-top: 1px solid #000;" align="left">
<table role="presentation" style="width:100%;border-collapse:collapse;border:0;border-spacing:0;">
<tr>
<td colspan="6" style="padding:0;width:5%;" align="left">
&nbsp;&nbsp;
</td>
</tr>
<tr>
<td style="padding:0;width:5%;" align="center">
&nbsp;&nbsp;
</td>
<td style="padding:0;width:5%;" align="center">
<a href="https://twitter.com/OfficialFPCan">
<img width="16" src="https://fp-canada.gotenzing.com/wp-content/uploads/2022/01/t.png" class="img-fluid" alt="FP Canada">
</a>
</td>
<td style="padding:0;width:5%;" align="center">
<a href="https://www.facebook.com/OfficialFPCanada">
<img width="8" src="https://fp-canada.gotenzing.com/wp-content/uploads/2022/01/fb.png" class="img-fluid" alt="FP Canada">
</a>
</td>
<td style="padding:0;width:5%;" align="center">
<a href="https://www.youtube.com/c/FPCanadaOfficial">
<img width="16" src="https://fp-canada.gotenzing.com/wp-content/uploads/2022/01/you.png" class="img-fluid" alt="FP Canada">
</a>
</td>
<td style="padding:0;width:5%;" align="center">
<a href="https://www.linkedin.com/company/fpcanada/">
<img width="16" src="https://fp-canada.gotenzing.com/wp-content/uploads/2022/01/link.png" class="img-fluid" alt="FP Canada">
</a>
</td>
<td style="padding:0;width:5%;" align="center">
&nbsp;&nbsp;
</td>
</tr>
</table>
</td>
<td style="padding:0;width:5%;" align="left">
</td>
</tr>
<tr>
<td style="padding-bottom:0px;width:5%;" align="left">
&nbsp;&nbsp;
</td>
</tr>
<tr>
<td colspan="4" style="padding-bottom:10px;width:5%; font-size:14px;" align="center">
<p><strong>FP Canada</strong><br>
902-375 University Ave.<br>
Toronto, ON M5G 2J5 <br>
<a style="color:#5B6770;text-decoration: none;" href="tel:1 800 305 9886">1 800 305 9886</a> | <a style="color:#5B6770;text-decoration: none;" href="mailto:wyncampaign@fpcanada.ca">wyncampaign@fpcanada.ca</a>
</p>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
\ No newline at end of file
......@@ -27,7 +27,7 @@
<table role="presentation" style="width:100%;border-collapse:collapse;border:0;border-spacing:0;background:#ffffff;">
<tr>
<td align="center" style="padding:0;">
<table role="presentation" style="width:602px;border-collapse:collapse;border-spacing:0;text-align:left;">
<table bgcolor="#582C83" role="presentation" style="width:602px;border-collapse:collapse;border-spacing:0;text-align:left;">
<tr style="background:#582C83;">
<td align="center">
&nbsp;
......@@ -48,7 +48,7 @@
<tr>
<td style="padding:0 0 36px 0;color:#153643;">
<h1 style="font-size:50px;line-height:55px;color:#fff;margin:0 0 20px 0; font-family: Calibri-bold;">
Important<br>Registration<br>Information
IMPORTANT<br>REGISTRATION<br>INFORMATION
</h1>
</td>
</tr>
......@@ -92,29 +92,35 @@
<td style="padding:0;width:90%;border-top: 1px solid #000;" align="left">
<table role="presentation" style="width:100%;border-collapse:collapse;border:0;border-spacing:0;">
<tr>
<td colspan="7" style="padding:0;width:5%;" align="left">
<td colspan="6" style="padding:0;width:5%;" align="left">
&nbsp;&nbsp;
</td>
</tr>
<tr>
<td style="padding:0;width:5%;" align="left">
<td style="padding:0;width:5%;" align="center">
&nbsp;&nbsp;
</td>
<td style="padding:0;width:5%;" align="left">
<td style="padding:0;width:5%;" align="center">
<a href="https://twitter.com/OfficialFPCan">
<img width="16" src="https://fp-canada.gotenzing.com/wp-content/uploads/2022/01/t.png" class="img-fluid" alt="FP Canada">
</a>
</td>
<td style="padding:0;width:5%;" align="left">
<td style="padding:0;width:5%;" align="center">
<a href="https://www.facebook.com/OfficialFPCanada">
<img width="8" src="https://fp-canada.gotenzing.com/wp-content/uploads/2022/01/fb.png" class="img-fluid" alt="FP Canada">
</a>
</td>
<td style="padding:0;width:5%;" align="left">
<img width="17" src="https://fp-canada.gotenzing.com/wp-content/uploads/2022/01/insta.png" class="img-fluid" alt="FP Canada">
</td>
<td style="padding:0;width:5%;" align="left">
<td style="padding:0;width:5%;" align="center">
<a href="https://www.youtube.com/c/FPCanadaOfficial">
<img width="16" src="https://fp-canada.gotenzing.com/wp-content/uploads/2022/01/you.png" class="img-fluid" alt="FP Canada">
</a>
</td>
<td style="padding:0;width:5%;" align="left">
<td style="padding:0;width:5%;" align="center">
<a href="https://www.linkedin.com/company/fpcanada/">
<img width="16" src="https://fp-canada.gotenzing.com/wp-content/uploads/2022/01/link.png" class="img-fluid" alt="FP Canada">
</a>
</td>
<td style="padding:0;width:5%;" align="left">
<td style="padding:0;width:5%;" align="center">
&nbsp;&nbsp;
</td>
</tr>
......@@ -146,4 +152,10 @@
</table>
</body>
</html>
\ No newline at end of file
</html>
......
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:o="urn:schemas-microsoft-com:office:office">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="x-apple-disable-message-reformatting">
<title></title>
<!--[if mso]>
<noscript>
<xml>
<o:OfficeDocumentSettings>
<o:PixelsPerInch>96</o:PixelsPerInch>
</o:OfficeDocumentSettings>
</xml>
</noscript>
<![endif]-->
<style>
@font-face { font-family: Calibri;
src: url('https://fp-canada.gotenzing.com/wp-content/themes/understrap-child/Calibri.woff') format('woff'); }
@font-face { font-family: Calibri-bold;
src: url('https://fp-canada.gotenzing.com/wp-content/themes/understrap-child/Calibri-Bold.woff') format('woff'); }
table, td, div, h1, p {font-family: Calibri;}
strong{font-family: Calibri;}
</style>
</head>
<body style="margin:0;padding:0;">
<table role="presentation" style="width:100%;border-collapse:collapse;border:0;border-spacing:0;background:#ffffff;">
<tr>
<td align="center" style="padding:0;">
<table bgcolor="#BA0C2F" role="presentation" style="width:602px;border-collapse:collapse;border-spacing:0;text-align:left;">
<tr style="background:#BA0C2F;">
<td align="center">
&nbsp;
</td>
<td align="center">
&nbsp;
</td>
<td align="center" width="135">
<img width="135" src="https://fp-canada.gotenzing.com/wp-content/uploads/2022/01/fp_logo.png" class="img-fluid" alt="FP Canada">
</td>
<td align="center" width="40">
&nbsp;&nbsp;
</td>
</tr>
<tr style="background:#BA0C2F;">
<td colspan="4" style="padding:36px 30px 42px 30px;">
<table role="presentation" style="width:100%;border-collapse:collapse;border:0;border-spacing:0;">
<tr>
<td style="padding:0 0 36px 0;color:#153643;">
<h1 style="font-size:50px;line-height:55px;color:#fff;margin:0 0 20px 0; font-family: Calibri-bold;">
YOUR WYN CAMPAIGN REGISTRATION DID NOT GO THROUGH
</h1>
</td>
</tr>
</table>
</td>
</tr>
<tr style="background:#ffffff;">
<td colspan="4" style="padding:36px 30px 42px 30px;">
<table role="presentation" style="width:100%;border-collapse:collapse;border:0;border-spacing:0;">
<tr>
<td colspan="3" style="padding:0 0 36px 0;color:#153643;">
<p style="margin:0 0 12px 0;font-size:24px;line-height:28px;font-family: Calibri;color:#012169;">It seems there is an issue with your WYN Registration. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis eget malesuada augue. Ut vel ornare tellus, at tempus ante. Ut tristique lacus a suscipit egestas. </p>
<p style="margin:0;font-weight:bold;font-size:20px;line-height:22px;font-family: Calibri-bold;color:#5B6770;">If you have questions, contact us at <a style="color:#012169;text-decoration: none;" href="mailto:wyncampaign@fpcanada.ca">wyncampaign@fpcanada.ca</a></p>
</td>
</tr>
<tr style="background:#ffffff;">
<td colspan="4" style="padding-bottom:10px">
</td>
</tr>
<tr>
<td align="center">
&nbsp;
</td>
<td align="center">
<img width="147" src="https://fp-canada.gotenzing.com/wp-content/uploads/2022/01/logo.png" class="img-fluid" alt="FP Canada">
</td>
<td align="center">
&nbsp;
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="4" style="padding:30px;background:#fff;">
<table role="presentation" style="width:100%;border-collapse:collapse;border:0;border-spacing:0;font-size:9px;font-family:Arial,sans-serif;">
<tr>
<td style="padding-bottom:50px;width:5%;" align="left">
&nbsp;&nbsp;
</td>
<td style="padding:0;width:90%;border-top: 1px solid #000;" align="left">
<table role="presentation" style="width:100%;border-collapse:collapse;border:0;border-spacing:0;">
<tr>
<td colspan="6" style="padding:0;width:5%;" align="left">
&nbsp;&nbsp;
</td>
</tr>
<tr>
<td style="padding:0;width:5%;" align="center">
&nbsp;&nbsp;
</td>
<td style="padding:0;width:5%;" align="center">
<a href="https://twitter.com/OfficialFPCan">
<img width="16" src="https://fp-canada.gotenzing.com/wp-content/uploads/2022/01/t.png" class="img-fluid" alt="FP Canada">
</a>
</td>
<td style="padding:0;width:5%;" align="center">
<a href="https://www.facebook.com/OfficialFPCanada">
<img width="8" src="https://fp-canada.gotenzing.com/wp-content/uploads/2022/01/fb.png" class="img-fluid" alt="FP Canada">
</a>
</td>
<td style="padding:0;width:5%;" align="center">
<a href="https://www.youtube.com/c/FPCanadaOfficial">
<img width="16" src="https://fp-canada.gotenzing.com/wp-content/uploads/2022/01/you.png" class="img-fluid" alt="FP Canada">
</a>
</td>
<td style="padding:0;width:5%;" align="center">
<a href="https://www.linkedin.com/company/fpcanada/">
<img width="16" src="https://fp-canada.gotenzing.com/wp-content/uploads/2022/01/link.png" class="img-fluid" alt="FP Canada">
</a>
</td>
<td style="padding:0;width:5%;" align="center">
&nbsp;&nbsp;
</td>
</tr>
</table>
</td>
<td style="padding:0;width:5%;" align="left">
</td>
</tr>
<tr>
<td style="padding-bottom:0px;width:5%;" align="left">
&nbsp;&nbsp;
</td>
</tr>
<tr>
<td colspan="4" style="padding-bottom:10px;width:5%; font-size:14px;" align="center">
<p><strong>FP Canada</strong><br>
902-375 University Ave.<br>
Toronto, ON M5G 2J5 <br>
<a style="color:#5B6770;text-decoration: none;" href="tel:1 800 305 9886">1 800 305 9886</a> | <a style="color:#5B6770;text-decoration: none;" href="mailto:wyncampaign@fpcanada.ca">wyncampaign@fpcanada.ca</a>
</p>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
\ No newline at end of file
......@@ -19,7 +19,6 @@ add_filter( 'cf7_2_post_status_wpsl_stores', 'publish_new_wpsl_stores',10,3);
function publish_new_wpsl_stores($status, $ckf7_key, $submitted_data){
$email = $submitted_data['your-email'];
$subject = 'Important Registration Information';
$message = file_get_contents('https://fp-canada.gotenzing.com/wp-content/themes/understrap-child/inc/Registration-Confirmation.html');
......@@ -30,3 +29,27 @@ add_filter( 'cf7_2_post_status_wpsl_stores', 'publish_new_wpsl_stores',10,3);
return 'draft';
}
add_action('publish_wpsl_stores','send_notification_for_publish_project',10,1);
function send_notification_for_publish_project( $post_id ) {
$email = get_post_meta($post_id, 'wpsl_email', true);
$subject = 'Important Registration Information';
$message = file_get_contents('https://fp-canada.gotenzing.com/wp-content/themes/understrap-child/inc/Registration-Acceptance.html');
$headers_customer = array('Content-Type: text/html; charset=UTF-8');
wp_mail( $email , $subject, $message, $headers_customer);
}
add_action( 'trash_wpsl_stores', 'send_notification_for_delete_project' ,10,1);
function send_notification_for_delete_project( $post_id ) {
$email = get_post_meta($post_id, 'wpsl_email', true);
$subject = 'Important Registration Information';
$message = file_get_contents('https://fp-canada.gotenzing.com/wp-content/themes/understrap-child/inc/Registration-Denied.html');
$headers_customer = array('Content-Type: text/html; charset=UTF-8');
wp_mail( $email , $subject, $message, $headers_customer);
}
\ No newline at end of file
......
<?php
/**
* Understrap emails
*
* @package Understrap
*/
// Exit if accessed directly.
add_filter( 'wpsl_frontend_meta_fields', 'custom_frontend_meta_fields' );
function custom_frontend_meta_fields( $store_fields ) {
$store_fields['wpsl_first_name'] = array(
'name' => 'first_name',
'type' => 'text'
);
$store_fields['wpsl_last_name'] = array(
'name' => 'last_name',
'type' => 'text'
);
$store_fields['wpsl_email'] = array(
'name' => 'email',
'type' => 'text'
);
$store_fields['wpsl_phone'] = array(
'name' => 'phone',
'type' => 'text'
);
$store_fields['wpsl_ext'] = array(
'name' => 'ext',
'type' => 'int'
);
$store_fields['wpsl_fp_id'] = array(
'name' => 'fp_id',
'type' => 'text'
);
$store_fields['wpsl_designation'] = array(
'name' => 'designation',
'type' => 'text'
);
$store_fields['wpsl_unit'] = array(
'name' => 'unit',
'type' => 'text'
);
return $store_fields;
}
add_filter( 'wpsl_meta_box_fields', 'custom_meta_box_fields2' );
function custom_meta_box_fields2( $meta_fields ) {
$meta_fields[__( 'Additional Information', 'wpsl' )] = array(
'phone' => array(
'label' => __( 'Tel', 'wpsl' )
),
'ext' => array(
'label' => __( 'Ext', 'wpsl' )
),
'unit' => array(
'label' => __( 'Unit', 'wpsl' )
),
'email' => array(
'label' => __( 'Email', 'wpsl' )
),
'url' => array(
'label' => __( 'Url', 'wpsl' )
),
'first_name' => array(
'label' => __( 'First Name', 'wpsl' )
),
'last_name' => array(
'label' => __( 'Last Name', 'wpsl' )
),
'designation' => array(
'label' => __( 'Designation', 'wpsl' )
),
'fp_id' => array(
'label' => __( 'FP ID', 'wpsl' )
)
);
return $meta_fields;
}