From 75a097a018a0090f5902758353c578fce4aa2a25 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Sat, 23 May 2026 18:43:42 +0000
Subject: [PATCH] =CustomBlocks.php overhaul relatively complete. Also refactored the gallery in gallery.min.js and the jvbRenderGallery.

---
 inc/blocks/FeedBlock.php |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/inc/blocks/FeedBlock.php b/inc/blocks/FeedBlock.php
index 0a14374..c6b1f0b 100644
--- a/inc/blocks/FeedBlock.php
+++ b/inc/blocks/FeedBlock.php
@@ -3,7 +3,7 @@
 
 use JVBase\managers\Cache;
 use JVBase\registrar\Registrar;
-use JVBase\utility\Features;
+use JVBase\base\Site;
 use JVBase\forms\TaxonomySelector;
 use WP_Block;
 
@@ -193,8 +193,8 @@
 			<?php if ($hasMany) {
 				//If we have multiple content, only show the content first
 				?>
-				<details class="col a-start">
-				<summary class="row btw">
+				<details class="col left">
+				<summary class="row x-btw">
 					<span class="label">SHOWING: </span>
 					<?php
 					$labels = [];
@@ -235,7 +235,7 @@
 			<?php } ?>
 
 
-					<?php if (Features::forSite()->has('favourites') && is_user_logged_in()) : ?>
+					<?php if (Site::has('favourites') && is_user_logged_in()) : ?>
 						<input type="checkbox" id="favourites" class="btn" name="favourites" value="on"
 							   data-filter="favourites">
 						<label for="favourites" title="Show Favourites" class="row">
@@ -249,7 +249,7 @@
 				if (!empty ($this->config['taxonomies'])) {
 				?>
 					<div class="filters">
-						<div class="filter-group row start">
+						<div class="filter-group row left">
 							<span class="label">FILTER BY:</span>
 
 							<?php
@@ -288,8 +288,8 @@
 						</div>
 					</div>
 				<?php } ?>
-					<div class="row btw nowrap">
-						<div class="order-by filter-group row start w-full">
+					<div class="row x-btw nowrap">
+						<div class="order-by filter-group row left w-full">
 							<span class="label">ORDER BY:</span>
 							<?php
 							//TODO: Get content types that can be sorted alphabetically
@@ -340,7 +340,7 @@
 
 						</div>
 
-						<div class="order-direction filter-group row start w-full" data-for-order="date,modified,title<?= $custom === '' ? '' : ','.$custom?>">
+						<div class="order-direction filter-group row left w-full" data-for-order="date,modified,title<?= $custom === '' ? '' : ','.$custom?>">
 							<span class="label">ORDER:</span>
 							<input type="radio" id="order-desc" class="btn" name="order" value="desc" data-filter="order" checked>
 							<label for="order-desc" title="Sort Descending (A-Z, 1-10)" class="row">
@@ -416,7 +416,7 @@
 	protected function getFavouritesButton(string $content):string
 	{
 		$registrar = Registrar::getInstance($content);
-		if (!$registrar || !Features::forSite()->has('favourites') || !$registrar->hasFeature('favouritable')) {
+		if (!$registrar || !Site::has('favourites') || !$registrar->hasFeature('favouritable')) {
 			return '';
 		}
 		return '<button class="favourite" type="button" title="Add to favourites" data-action="favourite">
@@ -427,7 +427,7 @@
 	protected function getUpvotesButton(string $content):string
 	{
 		$registrar = Registrar::getInstance($content);
-		if (!Features::forSite()->has('karma') || !$registrar || !$registrar->hasFeature('karma')){
+		if (!Site::has('karma') || !$registrar || !$registrar->hasFeature('karma')){
 			return '';
 		}
 		return '<div class="karma row">

--
Gitblit v1.10.0