| | |
| | | <?php |
| | | |
| | | $jvbEmail = add_filter('jvb_email', 'altr_email'); |
| | | $jvbEmail = add_filter('jvb_email', 'atat_email'); |
| | | |
| | | function altr_email(array $defaults):array |
| | | function atat_email(array $defaults):array |
| | | { |
| | | return [ |
| | | 'colours' => [ |
| | | 'action-0' => '#ff0080', |
| | | 'action-50' => '#ff2492', |
| | | 'action-100' => '#ff47a4', |
| | | 'action-200' => '#ff6bb5', |
| | | 'secondary-0' => '#D69121', |
| | | 'secondary-50' => '#ffc421', |
| | | 'secondary-100' => '#ffcd44', |
| | | 'secondary-200' => '#ffd768', |
| | | 'light' => '#efefef', |
| | | 'light-50' => '#e2e2e2', |
| | | 'light-100' => '#d5d5d5', |
| | | 'light-200' => '#c9c9c9', |
| | | 'dark' => '#151515', |
| | | 'dark-50' => '#222222', |
| | | 'dark-100' => '#2e2e2e', |
| | | 'dark-200' => '#3b3b3b', |
| | | 'action-0' => '#AD5B4B', |
| | | 'action-50' => '#b7695a', |
| | | 'action-100' => '#bf796c', |
| | | 'action-200' => '#c78a7e', |
| | | 'secondary-0' => '#DA993F', |
| | | 'secondary-50' => '#dea454', |
| | | 'secondary-100' => '#e2b06a', |
| | | 'secondary-200' => '#e6bb7f', |
| | | 'light' => '#fdfcfc', |
| | | 'light-50' => '#f7f4f3', |
| | | 'light-100' => '#f0ebea', |
| | | 'light-200' => '#eae3e2', |
| | | 'dark' => '#503d3a', |
| | | 'dark-50' => '#594440', |
| | | 'dark-100' => '#624b47', |
| | | 'dark-200' => '#6b514d', |
| | | 'action-contrast'=> '', |
| | | 'secondary-contrast'=> '', |
| | | ], |
| | | 'content' => [ |
| | | 'title' => get_bloginfo('name'), |
| | | 'subjectPrefix' => '['.get_bloginfo('name').']', |
| | | 'signature' => '<p>  — ♡ the edmonton.ink crew</p>', |
| | | 'signature' => '<p>  — ♡ Madi Mori</p>', |
| | | 'footer' => [ |
| | | '<p>© ' . date('Y') . ' edmonton.ink — Your tattoo scene on your screen.</p>', |
| | | '<p><a href="' . get_home_url() . '" class="text-link">edmonton.ink</a></p>' |
| | | '<p>© ' . date('Y') . ' Tatty Soap</p>', |
| | | '<p><a href="' . get_home_url() . '" class="text-link">Tatty Soap</a></p>' |
| | | ] |
| | | ], |
| | | 'types' => [ |
| | | 'newUser' => [ |
| | | 'subject' => 'Welcome to Legacy! Finish creating your account.', |
| | | 'subject' => 'Welcome to Tatty Soap! Finish creating your account.', |
| | | 'showPrefix' => true, |
| | | ], |
| | | 'resetPass' => [ |
| | |
| | | * |
| | | */ |
| | | |
| | | add_filter('jvbNewUserEmail', 'altr_new_user_email', 10, 2); |
| | | function altr_new_user_email(string $message, WP_User $user):string |
| | | add_filter('jvbNewUserEmail', 'atat_new_user_email', 10, 2); |
| | | function atat_new_user_email(string $message, WP_User $user):string |
| | | { |
| | | |
| | | $user_login = $user->user_login; |
| | |
| | | |
| | | $message = sprintf( |
| | | '<p>Hey %s!</p> |
| | | <p>Thanks for signing up for our referral program at Legacy.</p> |
| | | <p>Thanks for signing up for a Tatty Soap account.</p> |
| | | <p><b>Login with your email: </b> %s</p> |
| | | <p>To set your password and access your account, click the button below:</p>%s |
| | | <p>Or copy and paste this link into your browser: %s</p> |