From f19e779946c84a34377952865ada74f402b0be47 Mon Sep 17 00:00:00 2001 From: Jeremy Rangel Date: Tue, 17 Dec 2024 01:37:55 -0800 Subject: [PATCH] Minor changes --- blocks/lcp-gallery/lcp-gallery.php | 31 ++++++--- blocks/lcp-gallery/src/block.json | 2 +- blocks/lcp-gallery/src/edit.js | 101 ++++++++++++++++++++++------- blocks/lcp-gallery/src/style.scss | 5 +- blocks/lcp-gallery/src/view.js | 18 +++-- 5 files changed, 118 insertions(+), 39 deletions(-) diff --git a/blocks/lcp-gallery/lcp-gallery.php b/blocks/lcp-gallery/lcp-gallery.php index fddd3c7..5c480ce 100644 --- a/blocks/lcp-gallery/lcp-gallery.php +++ b/blocks/lcp-gallery/lcp-gallery.php @@ -207,7 +207,7 @@ function build_gallery_items_html($gallery_items_data, $attributes) { // Create the HTML structure for each item, including data-responsive $html .= ' - 'JSON encoding failed', 'error_details' => json_last_error_msg()]); } @@ -324,6 +333,7 @@ function build_gallery_settings_json($attributes,$unique_class) { } + // Build the gallery styles based on $attributes and a unique class for rendering multiple galleries on the same page function build_gallery_styles($attributes,$unique_class) { $styles = "