From 196fbeca8a5c9b01e53274cbdaccf97db9a0dcb1 Mon Sep 17 00:00:00 2001 From: Christy Jacob Date: Tue, 27 Jul 2021 19:55:04 +0530 Subject: [PATCH] feat(cta): delete the cta template and cta css classes --- app/config/locale/templates/email-base.tpl | 55 ---------------------- app/config/locale/templates/email-cta.tpl | 24 ---------- app/controllers/api/account.php | 6 --- app/controllers/api/teams.php | 3 -- 4 files changed, 88 deletions(-) delete mode 100644 app/config/locale/templates/email-cta.tpl diff --git a/app/config/locale/templates/email-base.tpl b/app/config/locale/templates/email-base.tpl index a93fcc84e..0d7ff4d53 100644 --- a/app/config/locale/templates/email-base.tpl +++ b/app/config/locale/templates/email-base.tpl @@ -82,59 +82,11 @@ word-break: break-all; } - .btn { - box-sizing: border-box; - width: 100%; - } - - .btn>tbody>tr>td { - padding-bottom: 15px; - padding-top: 15px; - } - - .btn table { - width: auto; - } - - .btn table td { - background-color: {{bg-content}}; - border-radius: 20px; - text-align: center; - } - - .btn a { - background-color: {{bg-content}}; - border-radius: 20px; - box-sizing: border-box; - color: #577590; - cursor: pointer; - display: inline-block; - font-size: 14px; - font-weight: bold; - margin: 0; - padding: 12px 25px; - text-decoration: none; - text-transform: capitalize; - } - - .btn-primary table td { - background-color: {{bg-cta}}; - } - - .btn-primary a { - background-color: {{bg-cta}}; - color: {{text-cta}}; - } - @media only screen and (max-width: 620px) { .container { padding: 0; width: 100%; } - - .btn-primary a { - font-size: 13px; - } } @media all { @@ -169,13 +121,6 @@ line-height: inherit; } - .btn-primary table td:hover { - opacity: 0.7 !important; - } - - .btn-primary a:hover { - opacity: 0.7 !important; - } } diff --git a/app/config/locale/templates/email-cta.tpl b/app/config/locale/templates/email-cta.tpl deleted file mode 100644 index 97103f610..000000000 --- a/app/config/locale/templates/email-cta.tpl +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - -

- - {{redirect}} - -

\ No newline at end of file diff --git a/app/controllers/api/account.php b/app/controllers/api/account.php index 42868eab5..5e52b49ac 100644 --- a/app/controllers/api/account.php +++ b/app/controllers/api/account.php @@ -1517,7 +1517,6 @@ App::post('/v1/account/recovery') $body = Template::fromFile(__DIR__.'/../../config/locale/templates/email-base.tpl'); $content = Template::fromString($locale->getText('account.emails.recovery.body')); - // $cta = Template::fromFile(__DIR__.'/../../config/locale/templates/email-cta.tpl'); $body ->setParam('{{content}}', $content->render(false)) @@ -1528,9 +1527,7 @@ App::post('/v1/account/recovery') ->setParam('{{redirect}}', $url) ->setParam('{{bg-body}}', '#f7f7f7') ->setParam('{{bg-content}}', '#ffffff') - ->setParam('{{bg-cta}}', '#073b4c') ->setParam('{{text-content}}', '#000000') - ->setParam('{{text-cta}}', '#ffffff') ; $mails @@ -1720,7 +1717,6 @@ App::post('/v1/account/verification') $body = Template::fromFile(__DIR__.'/../../config/locale/templates/email-base.tpl'); $content = Template::fromString($locale->getText('account.emails.verification.body')); - // $cta = Template::fromFile(__DIR__.'/../../config/locale/templates/email-cta.tpl'); $body ->setParam('{{content}}', $content->render(false)) @@ -1731,9 +1727,7 @@ App::post('/v1/account/verification') ->setParam('{{redirect}}', $url) ->setParam('{{bg-body}}', '#f7f7f7') ->setParam('{{bg-content}}', '#ffffff') - ->setParam('{{bg-cta}}', '#073b4c') ->setParam('{{text-content}}', '#000000') - ->setParam('{{text-cta}}', '#ffffff') ; $mails diff --git a/app/controllers/api/teams.php b/app/controllers/api/teams.php index 231922278..93545ae83 100644 --- a/app/controllers/api/teams.php +++ b/app/controllers/api/teams.php @@ -421,7 +421,6 @@ App::post('/v1/teams/:teamId/memberships') $body = Template::fromFile(__DIR__.'/../../config/locale/templates/email-base.tpl'); $content = Template::fromString($locale->getText('account.emails.invitation.body')); - // $cta = Template::fromFile(__DIR__.'/../../config/locale/templates/email-cta.tpl'); $title = \sprintf($locale->getText('account.emails.invitation.title'), $team->getAttribute('name', '[TEAM-NAME]'), $project->getAttribute('name', ['[APP-NAME]'])); $body @@ -434,9 +433,7 @@ App::post('/v1/teams/:teamId/memberships') ->setParam('{{redirect}}', $url) ->setParam('{{bg-body}}', '#f7f7f7') ->setParam('{{bg-content}}', '#ffffff') - ->setParam('{{bg-cta}}', '#073b4c') ->setParam('{{text-content}}', '#000000') - ->setParam('{{text-cta}}', '#ffffff') ; if (!$isPrivilegedUser && !$isAppUser) { // No need of confirmation when in admin or app mode