From 46d681c6b825d21b3f698d793c4e630c687d90ad Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Thu, 21 May 2026 21:41:53 +0000
Subject: [PATCH] =Major CustomBlocks.php overhaul, expanding block support and customization from the editor. theme.json should now be updated on new themes to set brand colours, etc. Also note: major change to .col vs .row alignment: simplifying it to .top .bottom vs the confusion of the differences for .col/.row .start and .a-start
---
inc/utility/setup.php | 23 +++++++++++++++++++----
1 files changed, 19 insertions(+), 4 deletions(-)
diff --git a/inc/utility/setup.php b/inc/utility/setup.php
index ffc5413..0ff336b 100644
--- a/inc/utility/setup.php
+++ b/inc/utility/setup.php
@@ -1,6 +1,21 @@
<?php
-
-require(JVB_DIR.'/inc/utility/Checker.php');
-require(JVB_DIR.'/inc/utility/Features.php');
require(JVB_DIR.'/inc/utility/helpers.php');
-require(JVB_DIR.'/inc/utility/Validator.php');
+require(JVB_DIR.'/inc/utility/Image.php');
+
+
+function jvb_filter_content(string $content):string
+{
+ $filters = [
+ 'wptexturize',
+ 'convert_chars',
+ 'wpautop',
+ 'shortcode_unautop',
+ 'prepend_attachment',
+ 'do_shortcode'
+ ];
+
+ foreach ($filters as $filter) {
+ $content = apply_filters($filter, $content);
+ }
+ return $content;
+}
--
Gitblit v1.10.0