From 3d25ad7de4fdbb3eba2cde2a62422e6be5d79a0a Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Tue, 25 Aug 2026 22:57:22 +0000
Subject: [PATCH] =It's been a minute. I went through the Routes and associated Managers and ensured they played together well. Reworked the Cache.php, and I think I caught all the references. Moving away from JVBase() root class, to individuall classes that are Instanced. Double checked for the ABSPATH check in every file, and added index.php to every directory that didn't already have it. Also still working on the MenuBlock to work with WooCommerce for now for Northeh
---
inc/helpers/media.php | 27 ++++++++++++++++++---------
1 files changed, 18 insertions(+), 9 deletions(-)
diff --git a/inc/helpers/media.php b/inc/helpers/media.php
index 82c6f3f..6edb4f2 100644
--- a/inc/helpers/media.php
+++ b/inc/helpers/media.php
@@ -4,20 +4,21 @@
exit;
}
-function jvbRenderGallery()
+function jvbRenderGallery(bool $output = true):string
{
- ?>
- <dialog class="gallery" aria-modal="true" aria-label="Image Gallery">
+ $gallery = sprintf(
+ '<dialog class="gallery" aria-modal="true" aria-label="Image Gallery">
<div class="wrap col">
+ <p class="hint">Pinch to Zoom</p>
<div class="controls row">
- <button type="button" class="cancel" title="Close Gallery" aria-label="Close Gallery"> <?= jvbIcon('x') ?></button>
+ <button type="button" class="cancel" title="Close Gallery" aria-label="Close Gallery">%s</button>
<button class="nav prev" title="Previous image" aria-label="Previous image">
- <?= jvbIcon('caret-left') ?>
+ %s
</button>
<button class="nav next" title="Next Image" aria-label="Next image">
- <?= jvbIcon('caret-right') ?>
+ %s
</button>
</div>
<div class="content row">
@@ -25,7 +26,7 @@
<img src="" alt="" class="image">
<img src="" alt="" class="image-right">
<details>
- <summary class="row btw">DETAILS</summary>
+ <summary class="row x-btw">DETAILS</summary>
<div class="item-info"></div>
</details>
</div>
@@ -33,7 +34,15 @@
<div class="favourite"></div>
<div class="counter"><span id="gallery-index">1</span> / <span class="total"></span></div>
</div>
- </dialog>
- <?php
+ </dialog>',
+ jvbIcon('x'),
+ jvbIcon('caret-left'),
+ jvbIcon('caret-right')
+ );
+
+ if ($output) {
+ echo $gallery;
+ }
+ return $gallery;
}
--
Gitblit v1.10.0