From 38a48d1d83eec17ce3ec0c7ce1139a6d14f6e716 Mon Sep 17 00:00:00 2001 From: fditrapani Date: Wed, 9 Sep 2020 18:44:22 -0400 Subject: [PATCH] Cleanup updated billing information --- components.php | 16 ++++++++++++++-- index.php | 2 +- suspended.php | 2 +- ...ent-method.php => updated-billing-info.php | 19 ++++++++----------- 4 files changed, 24 insertions(+), 15 deletions(-) rename updated-payment-method.php => updated-billing-info.php (84%) diff --git a/components.php b/components.php index 8ac3c87..f541b5f 100644 --- a/components.php +++ b/components.php @@ -35,7 +35,7 @@ function renderEmailTemplate( $title, $content ) { $halfVerticalSpacer - + WordPress.com logo @@ -253,10 +253,22 @@ function renderTextLink( $text, $textColor = '#353535', $size = "16px" ){ return $textLink; } +function renderHiddenTextLink( $text, $textColor = '#353535', $size = "16px" ){ + $color = include("colors.php"); + $text = renderRegularText( $text, $textColor, $size ); + $textLink = << + $text + + EOD; + + return $textLink; +} + function renderHorizontalRule() { $color = include("colors.php"); - return "
"; + return "
"; } function renderBillingHistory( $title = "Billing history"){ diff --git a/index.php b/index.php index a147ce3..2240993 100644 --- a/index.php +++ b/index.php @@ -28,7 +28,7 @@ 7 => '' . renderRegularText("Expiring card") . '', 8 => '' . renderRegularText("Renewal failure") . '', 9 => '' . renderRegularText("Refund") . '', - 10 => '' . renderRegularText("Updated billing information") . '', + 10 => '' . renderRegularText("Updated billing information") . '', 11 => '' . renderRegularText("Cancelled plan") . '', 12 => '' . renderRegularText("Cancelled subscription") . '', 12 => '' . renderRegularText("Suspended site") . '', diff --git a/suspended.php b/suspended.php index b4b0c80..ba146af 100644 --- a/suspended.php +++ b/suspended.php @@ -25,7 +25,7 @@ $product = renderItem( "WordPress.com Personal", $color["error"], - "Removed", + "Suspended", "Plan for " . renderTextLink("Filippo Di Trapani"), false, true diff --git a/updated-payment-method.php b/updated-billing-info.php similarity index 84% rename from updated-payment-method.php rename to updated-billing-info.php index 3676356..f70279e 100644 --- a/updated-payment-method.php +++ b/updated-billing-info.php @@ -37,30 +37,27 @@ $verticalSpacer = renderVerticalSpacer( "40px" ); $halfVerticalSpacer = renderVerticalSpacer( "20px" ); - $billingContent = renderBillingHistory(); - - $recentPurchaseTitle = renderBoldText("Recently renewed"); - $recentPurchaseDetails = renderItem( - "filippodt.com", - $color['success'], - "Renewed for $20 on July 22, 2020", - ".com domain registration" ); + $billingTitle = renderSecondaryTitle('Account information'); + $billingContent = renderBoldText('fditrapani') . "
" . + renderHiddenTextLink('filippodt@gmail.com') . "
" . + renderTextLink('Manage account'); $supportContent = renderSupport(); $content = <<