From 3f08cede4c4e71244a5c5f8f6cfe1ce98e5e908b Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Sun, 26 Apr 2026 22:06:20 +0000
Subject: [PATCH] =Switching to new jvb system
---
atatty.php | 64 ++++++++++++++++++++++++++++---
1 files changed, 57 insertions(+), 7 deletions(-)
diff --git a/atatty.php b/atatty.php
index 41aeb43..bb08f02 100644
--- a/atatty.php
+++ b/atatty.php
@@ -13,6 +13,7 @@
exit;
}
+use JVBase\base\Site;
use JVBase\managers\CacheManager;
add_filter('jvb_base', function () {
@@ -23,6 +24,10 @@
const ATAT_DIR = WP_PLUGIN_DIR . '/atatty';
define('ATAT_URL', plugin_dir_url(__FILE__));
+
+add_filter('jvbChildDir', function() { return ATAT_DIR; });
+add_filter('jvbChildUrl', function() { return ATAT_URL; });
+
require(ATAT_DIR . '/content/_setup.php');
require(ATAT_DIR . '/dashboard/_setup.php');
require(ATAT_DIR . '/email/_setup.php');
@@ -30,9 +35,33 @@
require(ATAT_DIR . '/login/_setup.php');
require(ATAT_DIR . '/taxonomies/_setup.php');
require(ATAT_DIR . '/users/_setup.php');
+require(ATAT_DIR . '/blocks/_setup.php');
+require(ATAT_DIR . '/seo.php');
//require(ATAT_DIR . '/files/fileManagement.php');
-
+add_action('plugins_loaded', 'atat_siteDefinition', 2);
+add_action('jvbLoadDefinitions', 'atat_siteDefinition');
+function atat_siteDefinition():void
+{
+ if (!class_exists('JVBase\base\Site')) {
+ return;
+ }
+ $site = Site::getInstance();
+ $site->set('icons', 'light');
+ $site->setAll([
+// 'has_map',
+// 'referrals',
+ ]);
+ $site->setIntegrations([
+ 'cloudflare',
+ 'facebook',
+ 'gmb',
+ 'helcim',
+ 'postmark',
+ 'instagram',
+ 'umami'
+ ]);
+}
/**
* Defines base options like:
* - directory & Membership
@@ -69,7 +98,7 @@
'facebook' => true,
'maps' => true,
'gmb' => true,
- 'helcim' => false,
+ 'helcim' => true,
'postmark' => true,
'instagram' => true,
'square' => false,
@@ -116,10 +145,10 @@
//}
-//add_filter('jvbAboveHeader', 'atat_header');
-function atat_legacy_header(string $header):string
+add_filter('jvbBelowHeader', 'atat_header');
+function atat_header(string $header):string
{
- return '<p><b>WED - SUN</b> <span class="hide-small"> </span>10<span class="hide-small">:00</span>AM - 6<span class="hide-small">:00</span>PM</p><p>By Appointment<span class="hide-small"> Only</span></p>';
+ return '<p>FREE LOCAL PICKUP at <a href="https://legacytattooremoval.ca/">Legacy Tattoo Removal</a>.</p>';
}
@@ -146,7 +175,7 @@
) {
return $nav.'<li><ul class="socials">
<li>
- <a href="https://www.facebook.com/tatty.soap/" target="_blank" rel="nofollow" title="Find us on Facebook">
+ <a href="https://www.facebook.com/madebymadimori/" target="_blank" rel="nofollow" title="Find us on Facebook">
'.jvbIcon('facebook-logo').'
<span class="screen-reader-text">
Find us on Facebook
@@ -154,7 +183,7 @@
</a>
</li>
<li>
- <a href="https://www.instagram.com/tatty.soap" target="_blank" rel="nofollow" title="Find us on Instagram">
+ <a href="https://www.instagram.com/madebymadimori" target="_blank" rel="nofollow" title="Find us on Instagram">
'.jvbIcon('instagram-logo').'
<span class="screen-reader-text">
Find us on Instagram
@@ -193,3 +222,24 @@
]
);
}
+
+
+add_filter('jvbRandomFooterText', 'atat_footer_text');
+function atat_footer_text(string $text):string
+{
+ $privacy = get_privacy_policy_url();
+ $privacy = ($privacy === '') ? '' : ' | <a href="'.$privacy.'">Privacy Policy</a>';
+ return '<p class="font-small">©'.date('Y').' <a href="https://madimori.ca/">Madi Mori</a>'.$privacy.'</p><p class="font-small">Built with ♡ by <a href="https://jakevan.ca">Jake Van</a></p>';
+}
+
+add_filter('jvbRegisterCustomIcons', 'atat_custom_icons');
+function atat_custom_icons(array $icons):array
+{
+ $icons['background'] = ATAT_DIR . '/assets/icons/background.svg';
+// $icons['logo-jakevan'] = ATAT_DIR . '/assets/icons/logo-concentric-jakevan.svg';
+// $icons['logo-right'] = ATAT_DIR . '/assets/icons/logo-right-aligned.svg';
+// $icons['logo-right-jakevan'] = ATAT_DIR . '/assets/icons/logo-right-aligned-jakevan.svg';
+// $icons['jakevan'] = ATAT_DIR . '/assets/icons/jakevan.svg';
+// $icons['loading'] = ATAT_DIR . '/assets/icons/loading.svg';
+ return $icons;
+}
\ No newline at end of file
--
Gitblit v1.10.0