Commit 8164980d authored by Emiliano Balbuena's avatar Emiliano Balbuena

(wip): Use new template and tracking var

1 merge request!453WIP: Update confirmation email template
Pipeline #114580285 failed with stages
in 7 minutes and 50 seconds
......@@ -105,7 +105,7 @@
>
Minds, Inc. © 2020
 
<a href="<?= $vars['site_url'] . 'settings/emails?__e_ct_guid=' . $vars['guid'] ?>" style="color: #0091FF;">Manage email settings</a>
<a href="<?= $vars['site_url'] . 'settings/emails?' . $vars['tracking'] ?>" style="color: #0091FF;">Manage email settings</a>
</td>
</tr>
......@@ -119,12 +119,7 @@
$vars['email'],
$vars['campaign'],
$vars['topic'],
http_build_query([
'__e_ct_guid' => $vars['guid'],
'campaign' => $vars['campaign'],
'topic' => $vars['topic'],
'state' => $vars['state']
])
$vars['tracking']
) ?>" style="color: #0091FF;">Unsubscribe</a> from this type of email
</td>
</tr>
......
......@@ -57,7 +57,7 @@ class Confirmation extends EmailCampaign
$subject = 'Please, confirm your email';
$this->template->setTemplate('default.tpl');
$this->template->setTemplate('default-2020.tpl');
$this->template->setBody('./Templates/confirmation.tpl');
$this->template->set('user', $this->user);
$this->template->set('username', $this->user->username);
......
Please register or to comment