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.
---
templates/dashboard/sections/favourites.php | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/templates/dashboard/sections/favourites.php b/templates/dashboard/sections/favourites.php
index ec3e363..78f756a 100644
--- a/templates/dashboard/sections/favourites.php
+++ b/templates/dashboard/sections/favourites.php
@@ -3,7 +3,7 @@
exit; // Exit if accessed directly
}
if (!current_user_can('can_favourite')) {
- wp_redirect(get_home_url(2, '/dash'));
+ wp_redirect(get_home_url(null, '/dash'));
exit;
}
@@ -35,7 +35,7 @@
<div class="controls">
<div class="type-filters">
<button type="button" class="type-filter active" data-type="all">
- <?= jvbIcon('all'); ?>
+ <?= jvbIcon('infinity'); ?>
<span>Everything</span>
<span class="count">(<?= array_sum($counts); ?>)</span>
</button>
@@ -62,10 +62,10 @@
<div class="view-controls">
<button type="button" class="view-toggle" data-view="grid" aria-pressed="true">
- <?= jvbIcon('grid'); ?>
+ <?= jvbIcon('squares-four'); ?>
</button>
<button type="button" class="view-toggle" data-view="list" aria-pressed="false">
- <?= jvbIcon('list'); ?>
+ <?= jvbIcon('rows'); ?>
</button>
</div>
</div>
@@ -89,7 +89,7 @@
</select>
<button type="button" class="apply-bulk">Apply</button>
<button type="button" class="cancel-bulk">
- <?= jvbIcon('close', ['title'=>'Cancel']); ?>
+ <?= jvbIcon('x', ['title'=>'Cancel']); ?>
</button>
</div>
</div>
@@ -99,7 +99,7 @@
<div class="tab-content" data-tab="lists" role="tabpanel" aria-hidden="true">
<div class="lists-header">
<button type="button" class="create-list-btn" onclick="window.userFavouritesManager.showCreateListModal()">
- <?= jvbIcon('add', ['title'=>'Create List']); ?>
+ <?= jvbIcon('plus-square', ['title'=>'Create List']); ?>
<span>Create List</span>
</button>
</div>
@@ -122,11 +122,11 @@
<span>Share</span>
</button>
<button type="button" class="duplicate-list" title="Duplicate List">
- <?= jvbIcon('copy')?>
+ <?= jvbIcon('copy-simple')?>
<span>Duplicate</span>
</button>
<button type="button" class="delete-list" title="Delete List">
- <?= jvbIcon('delete')?>
+ <?= jvbIcon('trash')?>
<span>Delete</span>
</button>
</div>
@@ -148,7 +148,7 @@
</select>
<button type="button" class="apply-bulk">Apply</button>
<button type="button" class="cancel-bulk">
- <?= jvbIcon('close', ['title'=>'Cancel']); ?>
+ <?= jvbIcon('x', ['title'=>'Cancel']); ?>
</button>
</div>
</div>
@@ -223,7 +223,7 @@
<div class="input-with-button">
<input type="email" id="share-email" name="share_email" placeholder="Enter email address">
<button type="button" class="add-email">
- <?= jvbIcon('add', ['title'=>'Add share access'])?>
+ <?= jvbIcon('plus-square', ['title'=>'Add share access'])?>
</button>
</div>
</div>
--
Gitblit v1.10.0