From 772462eeca3002a1d52508aeba485aab2b4742ad Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Tue, 03 Mar 2026 19:06:19 +0000
Subject: [PATCH] =MAJOR OVERHAUL. Likely should have made a new branch ages ago. Key changes: Registrar.php is the base for custom post types, taxonomies, and user roles. Replaces JVB_CONTENT, JVB_TAXONOMY, and JVB_USER constants, eliminates most of Features.php (except for JVB_SITE, JVB_MEMBERSHIP), and has built in sanitizing and validation via sub-classes. Also started a major overhaul of the Schema output. Created a shit ton of property traits and classes to help sanitize and ensure proper data for different schema types. Still a bunch to do, but better to be starting committing changes here on this other branch.
---
inc/helpers/media.php | 47 ++++++++++++-----------------------------------
1 files changed, 12 insertions(+), 35 deletions(-)
diff --git a/inc/helpers/media.php b/inc/helpers/media.php
index 99bda69..80c33c7 100644
--- a/inc/helpers/media.php
+++ b/inc/helpers/media.php
@@ -8,18 +8,22 @@
{
?>
<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>
+ <div class="controls row">
+ <button type="button" class="cancel" aria-label="Close Gallery"> <?= jvbIcon('x') ?></button>
+ <button class="nav prev row" aria-label="Previous image">
+ <?= jvbIcon('caret-left') ?>
+ </button>
- <button class="nav next row" aria-label="Next image">
- <?= jvbIcon('next') ?>
- </button>
-
+ <button class="nav next row" aria-label="Next image">
+ <?= jvbIcon('caret-right') ?>
+ </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>
<div class="item-info"></div>
@@ -33,30 +37,3 @@
<?php
}
-function jvbRenderImageForm(int $attachmentId) {
- if (!$attachmentId) return '';
-
- $url = wp_get_attachment_image_url($attachmentId, 'medium');
- $title = get_the_title($attachmentId);
- $alt = get_post_meta($attachmentId, '_wp_attachment_image_alt', true);
- $caption = wp_get_attachment_caption($attachmentId);
-
- ob_start();
- ?>
- <div class="upload-item existing" data-attachment-id="<?= $attachmentId ?>">
- <div class="preview">
- <img src="<?= esc_url($url) ?>" alt="<?= esc_attr($alt) ?>">
- <div class="overlay">
- <div class="actions">
- <button type="button" class="remove" title="Remove">
- <span class="screen-reader-text">Remove image</span>
- ×
- </button>
- </div>
- </div>
- </div>
- <?= jvbImageMeta() ?>
- </div>
- <?php
- return ob_get_clean();
-}
--
Gitblit v1.10.0