From 772462eeca3002a1d52508aeba485aab2b4742ad Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Tue, 03 Mar 2026 19:06:19 +0000
Subject: [PATCH] =MAJOR OVERHAUL. Likely should have made a new branch ages ago. Key changes: Registrar.php is the base for custom post types, taxonomies, and user roles. Replaces JVB_CONTENT, JVB_TAXONOMY, and JVB_USER constants, eliminates most of Features.php (except for JVB_SITE, JVB_MEMBERSHIP), and has built in sanitizing and validation via sub-classes. Also started a major overhaul of the Schema output. Created a shit ton of property traits and classes to help sanitize and ensure proper data for different schema types. Still a bunch to do, but better to be starting committing changes here on this other branch.
---
inc/EmbedGenerator.php | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/inc/EmbedGenerator.php b/inc/EmbedGenerator.php
index 63c1f11..1d6e9cd 100644
--- a/inc/EmbedGenerator.php
+++ b/inc/EmbedGenerator.php
@@ -1,7 +1,7 @@
<?php
namespace JVBase;
-use JVBase\meta\MetaManager;
+use JVBase\meta\Meta;
use WP_User;
if (!defined('ABSPATH')) {
@@ -16,7 +16,7 @@
protected int $user_id;
protected int $profileID;
protected WP_User $user_data;
- protected MetaManager $meta;
+ protected Meta $meta;
protected string $base_url = 'https://edmonton.ink';
protected string $badge_url;
@@ -30,7 +30,8 @@
$this->user_id = $user_id;
$this->profileID = get_user_meta($user_id, BASE . 'link', true);
$this->user_data = get_userdata($user_id);
- $this->meta = new MetaManager($this->profileID, 'post');
+
+ $this->meta = Meta::forPost($this->profileID);
// Set badge URL - this would be your badge image path
$this->badge_url = JVB_URL . 'assets/images/badges/edmonton-ink-badge.png';
@@ -169,7 +170,7 @@
protected function getArtistStyles():array
{
$styles = [];
- $top_styles = $this->meta->getValue('top_style');
+ $top_styles = $this->meta->get('top_style');
if (!empty($top_styles)) {
$style_ids = explode(',', $top_styles);
--
Gitblit v1.10.0