From c19264ac916707096fe294d996a1b7fb85206b34 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Sun, 08 Mar 2026 19:55:31 +0000
Subject: [PATCH] =Furthering along the complete refactor. Added some basic setup for is_content taxonomies, including a page for an archive of the terms.

---
 inc/managers/ReferralManager.php |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/inc/managers/ReferralManager.php b/inc/managers/ReferralManager.php
index e6a4517..48245fa 100644
--- a/inc/managers/ReferralManager.php
+++ b/inc/managers/ReferralManager.php
@@ -1069,21 +1069,21 @@
 	<form id="referral-code-form">
 				'.jvbFormStatus(). '
     <input type="hidden" name="user_select" value="' . esc_attr(get_option(BASE.'referral_role','client')) . '">
-    ' .Form::render('referral_name', null, [
+    ' .Form::render('referral_name', '', [
 				'required'	=> true,
 				'type'		=> 'text',
 				'label'		=> 'Your Name',
 				'placeholder'=> 'Mister Meeseeks',
 				'autocomplete'=>'name'
 			]).
-			Form::render('referral_email', null, [
+			Form::render('referral_email', '', [
 				'required'	=> true,
 				'type'		=> 'email',
 				'label'		=> 'Your Email',
 				'placeholder'=> 'look@me.com',
 				'autocomplete'=> 'email'
 			]).
-			Form::render('referral_code', null, $prefill_code, [
+			Form::render('referral_code', $prefill_code, [
 				'required'	=> true,
 				'type'		=> 'text',
 				'label'		=> 'Referral Code',
@@ -2491,11 +2491,11 @@
 			<p><small>(No data is stored. Your friends will get an email from our email.)</small></p>
 			<?php
 			$invite = [
-				'type' => 'tag_list',
+				'type' => 'taglist',
 				'label' => 'Invite Your Friends',
 				'hint' => 'Add friends to send them a referral link',
 				'add_label' => 'Add Invite',
-				'tag_format' => '{name} ({email})', // or 'first_field', 'all_fields', 'email', etc.
+				'tag_format' => '{{name}} ({{email}})', // or 'first_field', 'all_fields', 'email', etc.
 				'fields' => [
 					'name' => [
 						'type' => 'text',
@@ -2526,7 +2526,7 @@
 					'hint'		=> 'We\'ll add your code and a link automatically.'
 				]
 			];
-			echo Form::render('invite', null, $invite);
+			echo Form::render('invite', '', $invite);
 			?>
 			<details>
 				<summary class="icon icon-caret-down">Customize Message</summary>
@@ -2573,7 +2573,7 @@
 		$crud = new CRUDSkeleton();
 		$crud->title('Your Referrals', 'Track friends you\'ve invited and rewards earned')
 			->content('referral', 'Referral', 'Referrals')
-			->initMeta('custom', 'referral')
+//			->initMeta('custom', 'referral')
 			->setFields([
 				'referee_name' => [
 					'label' => 'Name',

--
Gitblit v1.10.0