From 56dabe84560927f59d64eb37a797ac1ae0a46b1b Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Tue, 12 May 2026 18:58:21 +0000
Subject: [PATCH] =added state schema.org class
---
inc/blocks/FormBlock.php | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/inc/blocks/FormBlock.php b/inc/blocks/FormBlock.php
index bfe7840..768ed18 100644
--- a/inc/blocks/FormBlock.php
+++ b/inc/blocks/FormBlock.php
@@ -3,7 +3,7 @@
use JVBase\managers\Cache;
use JVBase\meta\Form;
-use JVBase\utility\Features;
+use JVBase\base\Site;
if (!defined('ABSPATH')) {
exit; // Exit if accessed directly
@@ -34,6 +34,7 @@
public function __construct()
{
$this->cache = Cache::for('forms', WEEK_IN_SECONDS);
+
// Initialize forms from filter
$this->forms = $this->registerForms();
$this->form_contact = apply_filters('jvb_form_contact', '');
@@ -58,7 +59,7 @@
}
// Enqueue Turnstile if needed
- if (Features::forSite()->hasIntegration('cloudflare')) {
+ if (Site::hasIntegration('cloudflare')) {
$cloudflare = JVB()->connect('cloudflare');
if ($cloudflare->isSetUp()) {
$cloudflare->enqueueTurnstileScripts();
@@ -401,7 +402,7 @@
*/
protected function renderTurnstile(): void
{
- if (!Features::hasIntegration('cloudflare')) {
+ if (!Site::hasIntegration('cloudflare')) {
return;
}
--
Gitblit v1.10.0