feat(cta): delete the cta template and cta css classes
This commit is contained in:
parent
d97a4df9db
commit
196fbeca8a
4 changed files with 0 additions and 88 deletions
|
@ -82,59 +82,11 @@
|
||||||
word-break: break-all;
|
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) {
|
@media only screen and (max-width: 620px) {
|
||||||
.container {
|
.container {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-primary a {
|
|
||||||
font-size: 13px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@media all {
|
@media all {
|
||||||
|
@ -169,13 +121,6 @@
|
||||||
line-height: inherit;
|
line-height: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-primary table td:hover {
|
|
||||||
opacity: 0.7 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn-primary a:hover {
|
|
||||||
opacity: 0.7 !important;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
|
|
@ -1,24 +0,0 @@
|
||||||
<table role="presentation" border="0" cellpadding="0" cellspacing="0" class="btn btn-primary">
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<table role="presentation" border="0" cellpadding="0" cellspacing="0">
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<a href="{{redirect}}" target="_blank">
|
|
||||||
{{title}}
|
|
||||||
</a>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
<p>
|
|
||||||
<a href="{{redirect}}" target="_blank">
|
|
||||||
{{redirect}}
|
|
||||||
</a>
|
|
||||||
</p>
|
|
|
@ -1517,7 +1517,6 @@ App::post('/v1/account/recovery')
|
||||||
|
|
||||||
$body = Template::fromFile(__DIR__.'/../../config/locale/templates/email-base.tpl');
|
$body = Template::fromFile(__DIR__.'/../../config/locale/templates/email-base.tpl');
|
||||||
$content = Template::fromString($locale->getText('account.emails.recovery.body'));
|
$content = Template::fromString($locale->getText('account.emails.recovery.body'));
|
||||||
// $cta = Template::fromFile(__DIR__.'/../../config/locale/templates/email-cta.tpl');
|
|
||||||
|
|
||||||
$body
|
$body
|
||||||
->setParam('{{content}}', $content->render(false))
|
->setParam('{{content}}', $content->render(false))
|
||||||
|
@ -1528,9 +1527,7 @@ App::post('/v1/account/recovery')
|
||||||
->setParam('{{redirect}}', $url)
|
->setParam('{{redirect}}', $url)
|
||||||
->setParam('{{bg-body}}', '#f7f7f7')
|
->setParam('{{bg-body}}', '#f7f7f7')
|
||||||
->setParam('{{bg-content}}', '#ffffff')
|
->setParam('{{bg-content}}', '#ffffff')
|
||||||
->setParam('{{bg-cta}}', '#073b4c')
|
|
||||||
->setParam('{{text-content}}', '#000000')
|
->setParam('{{text-content}}', '#000000')
|
||||||
->setParam('{{text-cta}}', '#ffffff')
|
|
||||||
;
|
;
|
||||||
|
|
||||||
$mails
|
$mails
|
||||||
|
@ -1720,7 +1717,6 @@ App::post('/v1/account/verification')
|
||||||
|
|
||||||
$body = Template::fromFile(__DIR__.'/../../config/locale/templates/email-base.tpl');
|
$body = Template::fromFile(__DIR__.'/../../config/locale/templates/email-base.tpl');
|
||||||
$content = Template::fromString($locale->getText('account.emails.verification.body'));
|
$content = Template::fromString($locale->getText('account.emails.verification.body'));
|
||||||
// $cta = Template::fromFile(__DIR__.'/../../config/locale/templates/email-cta.tpl');
|
|
||||||
|
|
||||||
$body
|
$body
|
||||||
->setParam('{{content}}', $content->render(false))
|
->setParam('{{content}}', $content->render(false))
|
||||||
|
@ -1731,9 +1727,7 @@ App::post('/v1/account/verification')
|
||||||
->setParam('{{redirect}}', $url)
|
->setParam('{{redirect}}', $url)
|
||||||
->setParam('{{bg-body}}', '#f7f7f7')
|
->setParam('{{bg-body}}', '#f7f7f7')
|
||||||
->setParam('{{bg-content}}', '#ffffff')
|
->setParam('{{bg-content}}', '#ffffff')
|
||||||
->setParam('{{bg-cta}}', '#073b4c')
|
|
||||||
->setParam('{{text-content}}', '#000000')
|
->setParam('{{text-content}}', '#000000')
|
||||||
->setParam('{{text-cta}}', '#ffffff')
|
|
||||||
;
|
;
|
||||||
|
|
||||||
$mails
|
$mails
|
||||||
|
|
|
@ -421,7 +421,6 @@ App::post('/v1/teams/:teamId/memberships')
|
||||||
|
|
||||||
$body = Template::fromFile(__DIR__.'/../../config/locale/templates/email-base.tpl');
|
$body = Template::fromFile(__DIR__.'/../../config/locale/templates/email-base.tpl');
|
||||||
$content = Template::fromString($locale->getText('account.emails.invitation.body'));
|
$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]']));
|
$title = \sprintf($locale->getText('account.emails.invitation.title'), $team->getAttribute('name', '[TEAM-NAME]'), $project->getAttribute('name', ['[APP-NAME]']));
|
||||||
|
|
||||||
$body
|
$body
|
||||||
|
@ -434,9 +433,7 @@ App::post('/v1/teams/:teamId/memberships')
|
||||||
->setParam('{{redirect}}', $url)
|
->setParam('{{redirect}}', $url)
|
||||||
->setParam('{{bg-body}}', '#f7f7f7')
|
->setParam('{{bg-body}}', '#f7f7f7')
|
||||||
->setParam('{{bg-content}}', '#ffffff')
|
->setParam('{{bg-content}}', '#ffffff')
|
||||||
->setParam('{{bg-cta}}', '#073b4c')
|
|
||||||
->setParam('{{text-content}}', '#000000')
|
->setParam('{{text-content}}', '#000000')
|
||||||
->setParam('{{text-cta}}', '#ffffff')
|
|
||||||
;
|
;
|
||||||
|
|
||||||
if (!$isPrivilegedUser && !$isAppUser) { // No need of confirmation when in admin or app mode
|
if (!$isPrivilegedUser && !$isAppUser) { // No need of confirmation when in admin or app mode
|
||||||
|
|
Loading…
Reference in a new issue