From 76d68c97f572120dc75d0501cc82acf4022d6b33 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Tue, 23 Dec 2025 20:14:14 +0000
Subject: [PATCH] =legacy rebrand finished

---
 email/_setup.php |   52 +++++++++++++++++++++++++++++++++++++---------------
 1 files changed, 37 insertions(+), 15 deletions(-)

diff --git a/email/_setup.php b/email/_setup.php
index 2e0f02b..61f25b7 100644
--- a/email/_setup.php
+++ b/email/_setup.php
@@ -28,10 +28,10 @@
         'content'		=> [
             'title'				=> get_bloginfo('name'),
             'subjectPrefix'		=> '['.get_bloginfo('name').']',
-            'signature'			=> '<p>&emsp; —  ♡ the edmonton.ink crew</p>',
+            'signature'			=> '<p>&emsp; —  ♡ the team at Legacy</p>',
             'footer'	=> [
-                '<p>&copy; ' . 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>&copy; ' . date('Y') . ' Legacy Tattoo Removal — See the Difference.</p>',
+                '<p><a href="' . get_home_url() . '">Legacy Tattoo Removal</a></p>'
             ]
         ],
         'types' => [
@@ -51,6 +51,28 @@
         ]
     ];
 }
+
+add_filter('jvb_form_email_to', function() {
+    return 'info@legacytattooremoval.ca';
+});
+
+
+add_filter('jvb_form_email_subject', 'altr_form_email_subject', 10, 3);
+function altr_form_email_subject(string $subject, $formType, $formData):string
+{
+    $base = '[Legacy]';
+    switch ($formType) {
+        case 'contact':
+            return $base.' Contact';
+        case 'get_an_estimate':
+            return $base.' Estimate';
+        case 'nlp':
+            return $base.' NLP Request';
+        case 'partner':
+            return $base.' Partner Intro';
+    }
+    return $subject;
+}
 /*
  * EXTEND WITH:
  *      {string} $message: email content
@@ -117,8 +139,8 @@
             <p>If you didn\'t create this account, just ignore this email and the link will expire.</p>',
             $user->display_name,
             $user->user_login,
-            jvbMailButton($reset_url, 'Set Your Password'),
-            jvbEmailLink($reset_url)
+            JVB()->email()->button($reset_url, 'Set Your Password'),
+            JVB()->email()->link($reset_url)
         );
     }
     return $message;
@@ -197,8 +219,8 @@
 			<div class="divider"></div>
 			<p>This password reset link is only valid for 24 hours.</p>',
         $user_login,
-        jvbMailButton($resetUrl,'Reset Password'),
-        jvbEmailLink($resetUrl)
+        JVB()->email()->button($resetUrl,'Reset Password'),
+        JVB()->email()->link($resetUrl)
     );
 }
 
@@ -215,7 +237,7 @@
         $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')
     );
 }
 
@@ -228,8 +250,8 @@
 			%s
 			<p>Or copy and paste this link into your browser:</p>
 			%s',
-        jvbMailButton($confirmURL, 'Confirm this Email'),
-        jvbEmailLink($confirmURL)
+        JVB()->email()->button($confirmURL, 'Confirm this Email'),
+        JVB()->email()->link($confirmURL)
     );
 }
 
@@ -242,7 +264,7 @@
 			<p>If you\'re not expecting this email, and did not change your password - please <strong>contact us immediately</strong></p>
 			<p>You can <a href="sms:+18259257398">text us</a>, or reply to this email.</p>
 			%s',
-        jvbMailButton(wp_login_url(), 'Log In to Your Account')
+        JVB()->email()->button(wp_login_url(), 'Log In to Your Account')
     );
 }
 
@@ -266,8 +288,8 @@
 			<p>Or copy and paste this link into your browser:</p>
 			%s',
         $request_name,
-        jvbMailButton($confirmURL, 'Confirm'),
-        jvbEmailLink($confirmURL)
+        JVB()->email()->button($confirmURL, 'Confirm'),
+        JVB()->email()->link($confirmURL)
     );
 }
 
@@ -282,8 +304,8 @@
 			%s
 			<div class="divider"></div>
 			<p><strong>Important:</strong> For privacy and security, this link will expire at %s.</p>',
-        jvbMailButton($downloadURL, 'Download Your Data'),
-        jvbEmailLink($downloadURL),
+        JVB()->email()->button($downloadURL, 'Download Your Data'),
+        JVB()->email()->link($downloadURL),
         $expiresAt
     );
 }
\ No newline at end of file

--
Gitblit v1.10.0