From 56a9a1ccf764ff7a6af8f8a2292cb07443cb4aa7 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Thu, 28 May 2026 18:19:57 +0000
Subject: [PATCH] =New Gitbit setpu

---
 inc/helpers/media.php |   42 ++++++++++++++++++++++++++++--------------
 1 files changed, 28 insertions(+), 14 deletions(-)

diff --git a/inc/helpers/media.php b/inc/helpers/media.php
index 4346f65..6edb4f2 100644
--- a/inc/helpers/media.php
+++ b/inc/helpers/media.php
@@ -4,24 +4,29 @@
 	exit;
 }
 
-function jvbRenderGallery()
+function jvbRenderGallery(bool $output = true):string
 {
-    ?>
-    <dialog class="gallery" aria-modal="true" aria-label="Image Gallery">
-		<div class="wrap">
-			<button type="button" class="cancel" aria-label="Close Gallery"> <?= jvbIcon('close') ?></button>
-			<button class="nav prev row" aria-label="Previous image">
-				<?= jvbIcon('prev') ?>
-			</button>
+	$gallery = sprintf(
+		'<dialog class="gallery" aria-modal="true" aria-label="Image Gallery">
 
-			<button class="nav next row" aria-label="Next image">
-				<?= jvbIcon('next') ?>
-			</button>
+		<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">%s</button>
+				<button class="nav prev" title="Previous image" aria-label="Previous image">
+					%s
+				</button>
 
+				<button class="nav next" title="Next Image" aria-label="Next image">
+					%s
+				</button>
+			</div>
 			<div class="content row">
+				<img src="" alt="" class="image-left">
 				<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>
@@ -29,6 +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