From 5a6906f710e9333507486df3cbb545a67a040881 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Sun, 24 May 2026 02:26:17 +0000
Subject: [PATCH] =Minor changes to email.php, which had info for Legacy and edmonton.ink hardcoded in it. Added a colours.php and JVB_COLOURS constant to define our base, contrast, action, and secondary colours for use within php templates
---
base/email.php | 37 +++++++++++--------------------------
1 files changed, 11 insertions(+), 26 deletions(-)
diff --git a/base/email.php b/base/email.php
index 81865b2..b6fcd4e 100644
--- a/base/email.php
+++ b/base/email.php
@@ -1,37 +1,22 @@
<?php
+$name = get_bloginfo('name');
+$desc = get_bloginfo('description');
$defaults = [
- '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-contrast'=> '',
- 'secondary-contrast'=> '',
- ],
'content' => [
- 'title' => get_bloginfo('name'),
- 'subjectPrefix' => '['.get_bloginfo('name').']',
- 'signature' => '<p>  — ♡ the edmonton.ink crew</p>',
+ 'title' => $name,
+ 'subjectPrefix' => '['.$name.']',
+ 'signature' => '<p>  — ♡ '.$name.'</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') . ' '.$name.' — '.$desc.'</p>',
+ '<p><a href="' . get_home_url() . '" class="text-link">'.get_home_url().'</a></p>'
]
],
'types' => [
'newUser' => [
- 'subject' => 'Welcome to Legacy! Finish creating your account.',
+ 'subject' => sprintf(
+ 'Welcome to %s! Finish creating your account.',
+ get_bloginfo('name')
+ ),
'showPrefix' => true,
],
'resetPass' => [
--
Gitblit v1.10.0