| | |
| | | <p>This password reset link is only valid for 24 hours.</p>', |
| | | $user->display_name, |
| | | $user_login, |
| | | jvbMailButton($reset_url,'Reset Password'), |
| | | jvbEmailLink($reset_url) |
| | | JVB()->email()->button($reset_url,'Reset Password'), |
| | | JVB()->email()->link($reset_url) |
| | | ); |
| | | $content = apply_filters('jvbPasswordResetEmail', $content, $user_login, $user, $reset_url); |
| | | $content .= $this->signature; |
| | |
| | | $newUser['first_name'], |
| | | $oldUser['user_email'], |
| | | $newUser['user_email'], |
| | | jvbMailButton(wp_login_url(), 'Log In To Your Account') |
| | | JVB()->email()->button(wp_login_url(), 'Log In To Your Account') |
| | | ); |
| | | $content = apply_filters('jvbEmailChangeRequestEmail', $content, $oldUser, $newUser); |
| | | $content .= $this->signature; |
| | |
| | | %s |
| | | <p>Or copy and paste this link into your browser:</p> |
| | | %s', |
| | | jvbMailButton($confirm_url, 'Confirm this Email'), |
| | | jvbEmailLink($confirm_url) |
| | | JVB()->email()->button($confirm_url, 'Confirm this Email'), |
| | | JVB()->email()->link($confirm_url) |
| | | ); |
| | | |
| | | $content = apply_filters('jvbEmailChangedEmail', $content, $confirm_url); |
| | |
| | | <p>You can <a href="sms:+18259257398">text us</a>, or reply to this email.</p> |
| | | %s', |
| | | $oldUser['first_name'], |
| | | jvbMailButton(wp_login_url(), 'Log In to Your Account') |
| | | JVB()->email()->button(wp_login_url(), 'Log In to Your Account') |
| | | ); |
| | | $content = apply_filters('jvbPasswordChangeEmail', $content, $oldUser, $newUser); |
| | | $content .= $this->signature; |
| | |
| | | <p>Or copy and paste this link into your browser:</p> |
| | | %s', |
| | | $request_name, |
| | | jvbMailButton($confirm_url, 'Confirm'), |
| | | jvbEmailLink($confirm_url) |
| | | JVB()->email()->button($confirm_url, 'Confirm'), |
| | | JVB()->email()->link($confirm_url) |
| | | ); |
| | | $message = apply_filters('jvbPersonalDataExport', $message, $request_type, $confirm_url, $email_data); |
| | | |
| | |
| | | %s |
| | | <div class="divider"></div> |
| | | <p><strong>Important:</strong> For privacy and security, this link will expire at %s.</p>', |
| | | jvbMailButton($download_url, 'Download Your Data'), |
| | | jvbEmailLink($download_url), |
| | | JVB()->email()->button($download_url, 'Download Your Data'), |
| | | JVB()->email()->link($download_url), |
| | | $expiresAt |
| | | ); |
| | | $message = apply_filters('jvbPersonalDataExported', $message, $download_url, $expiresAt, $email_data); |
| | |
| | | |
| | | return $this->getEmailTemplate($message, 'Your Personal Data Export'); |
| | | } |
| | | |
| | | public function signature():string |
| | | { |
| | | return $this->signature; |
| | | } |
| | | |
| | | new EmailManager(); |
| | | public function button(string $link, string $title):string |
| | | { |
| | | return sprintf( |
| | | '<p style="text-align: center;"><a href="%s" class="button">%s</a></p>', |
| | | $link, |
| | | $title |
| | | ); |
| | | } |
| | | |
| | | public function link(string $link):string |
| | | { |
| | | return sprintf( |
| | | '<p style="user-select:all;">%s</p>', |
| | | $link |
| | | ); |
| | | } |
| | | |
| | | } |
| | | |
| | | |