-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
fditrapani
committed
Sep 9, 2020
1 parent
3f707ab
commit 43f0326
Showing
18 changed files
with
918 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
<html xmlns:v="urn:schemas-microsoft-com:vml"> | ||
<?php include("components.php") ?> | ||
<?php include("styles.php") ?> | ||
<?php include("colors.php"); ?> | ||
|
||
<head> | ||
<title>WordPress.com</title> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | ||
<meta http-equiv="Content-Language" content="en-us"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<meta name="format-detection" content="date=no"> | ||
<meta name="format-detection" content="telephone=no"> | ||
<meta name="format-detection" content="address=no"> | ||
|
||
|
||
</head> | ||
<body bgcolor="<?php echo $color['background']; ?>" style="direction: ltr; background-color: <?php echo $color['background']; ?>; margin: 0; padding: 0;"> | ||
<?php echo renderStyles() ?> | ||
|
||
<?php | ||
$product = renderItem( | ||
"WordPress.com Personal", | ||
$color["error"], | ||
"Expires August 22, 2020", | ||
"Plan for " . renderTextLink("Filippo Di Trapani"), | ||
); | ||
$button_cta = renderRegularText("Add another year for $60", $color["white"], "14px"); | ||
$button = renderPrimaryButton( $button_cta ); | ||
|
||
$verticalSpacer = renderVerticalSpacer( "40px" ); | ||
$halfVerticalSpacer = renderVerticalSpacer( "20px" ); | ||
$featureTitle = renderSecondaryTitle( "Don’t lose out" ); | ||
$featureParagraph = "<p style='margin-top: 0'>" . renderRegularText("Your plan will continue to run until it expires. If you choose not to renew, these features will be removed from your site.") . "</p>"; | ||
$featureList = renderUnorderedList( array( | ||
1 => renderRegularText("Ability to set filippodt.com as your primary address."), | ||
2 => renderRegularText("Remove WordPress.com ads from your site."), | ||
3 => renderRegularText("Access to live chat when you need immediate support."), | ||
4 => renderRegularText("Increased storage space for your photos, audio files, or videos."), | ||
), "warning"); | ||
|
||
$billingContent = renderBillingHistory(); | ||
|
||
$recentPurchaseTitle = renderBoldText("Recently renewed"); | ||
$horizontalRule = renderHorizontalRule(); | ||
$recentPurchaseDetails = renderItem( | ||
"filippodt.com", | ||
$color['success'], | ||
"Renewed for $20 on July 22, 2020", | ||
".com domain registration" ); | ||
|
||
$supportContent = renderSupport(); | ||
|
||
$content = <<<EOD | ||
$product | ||
$halfVerticalSpacer | ||
$button | ||
$verticalSpacer | ||
$featureTitle | ||
$featureParagraph | ||
$featureList | ||
$verticalSpacer | ||
$billingContent | ||
$recentPurchaseTitle | ||
$horizontalRule | ||
$halfVerticalSpacer | ||
$recentPurchaseDetails | ||
$halfVerticalSpacer | ||
$supportContent | ||
EOD; | ||
|
||
echo renderEmailTemplate( "You cancelled your plan", $content ); | ||
?> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
<html xmlns:v="urn:schemas-microsoft-com:vml"> | ||
<?php include("components.php") ?> | ||
<?php include("styles.php") ?> | ||
<?php include("colors.php"); ?> | ||
|
||
<head> | ||
<title>WordPress.com</title> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | ||
<meta http-equiv="Content-Language" content="en-us"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<meta name="format-detection" content="date=no"> | ||
<meta name="format-detection" content="telephone=no"> | ||
<meta name="format-detection" content="address=no"> | ||
|
||
|
||
</head> | ||
<body bgcolor="<?php echo $color['background']; ?>" style="direction: ltr; background-color: <?php echo $color['background']; ?>; margin: 0; padding: 0;"> | ||
<?php echo renderStyles() ?> | ||
|
||
<?php | ||
$horizontalRule = renderHorizontalRule(); | ||
$verticalSpacer = renderVerticalSpacer( "40px" ); | ||
$halfVerticalSpacer = renderVerticalSpacer( "20px" ); | ||
|
||
$product = renderItem( | ||
"WordPress.com Personal", | ||
$color["error"], | ||
"Expires August 22, 2020", | ||
"Plan for " . renderTextLink("Filippo Di Trapani") | ||
); | ||
|
||
$secondary_button_cta = renderRegularText("Reactivate subscription", $color["text"], "14px"); | ||
$secondary_button = renderSecondaryButton( $secondary_button_cta ); | ||
|
||
$domain = renderItem( | ||
"filippodt.com", | ||
$color["error"], | ||
"Expires August 28, 2020", | ||
"Primary domain for " . renderTextLink("Filippo Di Trapani") | ||
); | ||
$domain_button = renderSecondaryButton( $secondary_button_cta ); | ||
|
||
$button_cta = renderRegularText("Reactivate these subscriptions", $color["white"], "14px"); | ||
$button = renderPrimaryButton( $button_cta ); | ||
|
||
$featureTitle = renderSecondaryTitle( "Don’t lose out" ); | ||
$featureParagraph = "<p style='margin-top: 0'>" . renderRegularText("Your upgrades will continue to run until they expires. If you choose not to renew, these features will be removed from your site.") . "</p>"; | ||
$featureList = renderUnorderedList( array( | ||
1 => renderRegularText("Ability to set filippodt.com as your primary address."), | ||
2 => renderRegularText("Remove WordPress.com ads from your site."), | ||
3 => renderRegularText("Access to live chat when you need immediate support."), | ||
4 => renderRegularText("Increased storage space for your photos, audio files, or videos."), | ||
), "warning"); | ||
|
||
$billingContent = renderBillingHistory(); | ||
|
||
$supportContent = renderSupport(); | ||
|
||
$content = <<<EOD | ||
$horizontalRule | ||
$halfVerticalSpacer | ||
$product | ||
<p style="margin-bottom: 0">$secondary_button</p> | ||
$halfVerticalSpacer | ||
$horizontalRule | ||
$halfVerticalSpacer | ||
$domain | ||
<p style="margin-bottom: 0">$domain_button</p> | ||
$halfVerticalSpacer | ||
$horizontalRule | ||
$halfVerticalSpacer | ||
$button | ||
$verticalSpacer | ||
$featureTitle | ||
$featureParagraph | ||
$featureList | ||
$verticalSpacer | ||
$billingContent | ||
$supportContent | ||
EOD; | ||
|
||
echo renderEmailTemplate( "You cancelled your subscription", $content ); | ||
?> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
<html xmlns:v="urn:schemas-microsoft-com:vml"> | ||
<?php include("components.php") ?> | ||
<?php include("styles.php") ?> | ||
<?php include("colors.php"); ?> | ||
|
||
<head> | ||
<title>WordPress.com</title> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | ||
<meta http-equiv="Content-Language" content="en-us"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<meta name="format-detection" content="date=no"> | ||
<meta name="format-detection" content="telephone=no"> | ||
<meta name="format-detection" content="address=no"> | ||
|
||
|
||
</head> | ||
<body bgcolor="<?php echo $color['background']; ?>" style="direction: ltr; background-color: <?php echo $color['background']; ?>; margin: 0; padding: 0;"> | ||
<?php echo renderStyles() ?> | ||
|
||
<?php | ||
$horizontalRule = renderHorizontalRule(); | ||
$verticalSpacer = renderVerticalSpacer( "40px" ); | ||
$halfVerticalSpacer = renderVerticalSpacer( "20px" ); | ||
|
||
$card = renderItem( | ||
"VISA ending in 4020", | ||
$color["error"], | ||
"Expires September 30, 2020", | ||
"Filippo Di Trapani", | ||
false, | ||
); | ||
|
||
$button_cta = renderRegularText("Change payment method", $color["white"], "14px"); | ||
$button = renderPrimaryButton( $button_cta ); | ||
|
||
$featureTitle = renderSecondaryTitle( "Don’t lose out" ); | ||
$featureParagraph = "<p style='margin-top: 0'>" . renderRegularText("Please note that if we can’t process your payment, your upgrades will be removed from your site.") . "</p>"; | ||
$product = renderItem( | ||
"WordPress.com Personal", | ||
$color["warning"], | ||
"Expires August 22, 2020", | ||
"Plan for <a href='#' class='text-link' style='color:" . $color["text"] . "'>" . renderRegularText("Filippo Di Trapani") . "</a>", | ||
); | ||
$domain = renderItem( | ||
"filippodt.com", | ||
$color["warning"], | ||
"Expires August 28, 2020", | ||
"Primary domain for <a href='#' class='text-link' style='color:" . $color["text"] . "'>" . renderRegularText("Filippo Di Trapani") . "</a>", | ||
); | ||
|
||
|
||
$billingContent = renderBillingHistory(); | ||
|
||
$supportContent = renderSupport(); | ||
|
||
$content = <<<EOD | ||
$horizontalRule | ||
$halfVerticalSpacer | ||
$card | ||
$halfVerticalSpacer | ||
$horizontalRule | ||
$halfVerticalSpacer | ||
$button | ||
$verticalSpacer | ||
$featureTitle | ||
$featureParagraph | ||
$horizontalRule | ||
$halfVerticalSpacer | ||
$product | ||
$halfVerticalSpacer | ||
$horizontalRule | ||
$halfVerticalSpacer | ||
$domain | ||
$halfVerticalSpacer | ||
$horizontalRule | ||
$verticalSpacer | ||
$billingContent | ||
$supportContent | ||
EOD; | ||
|
||
echo renderEmailTemplate( "Your credit card is about to expire", $content ); | ||
?> | ||
</body> | ||
</html> |
Oops, something went wrong.