Changeset 3170209
- Timestamp:
- 10/16/2024 03:14:20 PM (18 months ago)
- Location:
- gallery-5cript
- Files:
-
- 9 edited
- 8 copied
-
tags/1.0.6 (copied) (copied from gallery-5cript/trunk)
-
tags/1.0.6/front/js/front.js (copied) (copied from gallery-5cript/trunk/front/js/front.js) (2 diffs)
-
tags/1.0.6/front/templates/dark.php (copied) (copied from gallery-5cript/trunk/front/templates/dark.php) (3 diffs)
-
tags/1.0.6/front/templates/lightbox.php (copied) (copied from gallery-5cript/trunk/front/templates/lightbox.php) (3 diffs)
-
tags/1.0.6/front/templates/mansory-light.php (copied) (copied from gallery-5cript/trunk/front/templates/mansory-light.php) (3 diffs)
-
tags/1.0.6/front/ts/front.ts (copied) (copied from gallery-5cript/trunk/front/ts/front.ts) (1 diff)
-
tags/1.0.6/gallery_5cript.php (copied) (copied from gallery-5cript/trunk/gallery_5cript.php) (1 diff)
-
tags/1.0.6/output.css (modified) (4 diffs)
-
tags/1.0.6/readme.txt (copied) (copied from gallery-5cript/trunk/readme.txt) (1 diff)
-
trunk/front/js/front.js (modified) (2 diffs)
-
trunk/front/templates/dark.php (modified) (3 diffs)
-
trunk/front/templates/lightbox.php (modified) (3 diffs)
-
trunk/front/templates/mansory-light.php (modified) (3 diffs)
-
trunk/front/ts/front.ts (modified) (1 diff)
-
trunk/gallery_5cript.php (modified) (1 diff)
-
trunk/output.css (modified) (4 diffs)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
gallery-5cript/tags/1.0.6/front/js/front.js
r3169998 r3170209 43 43 galleryId: Number(pic.getAttribute('data-gallery-id')) 44 44 }; 45 console.log(pic.getAttribute('data-alt'));46 45 pictureArray.push(imageItem); 47 46 tempPics.push(imageItem); … … 120 119 const createImage = () => { 121 120 const image = document.createElement('img'); 122 image.classList.add('g5-w-full');123 121 image.classList.add('g5-max-h-[90vh]'); 124 122 image.classList.add('g5-max-w-[80vw]'); 123 image.classList.add('g5-w-auto'); 124 image.classList.add('g5-object-contain'); 125 125 image.autofocus = true; 126 126 return image; -
gallery-5cript/tags/1.0.6/front/templates/dark.php
r3170005 r3170209 69 69 70 70 <section class="g5-gallery" id="g5-lightbox-modal-<?php echo esc_html( $gallery_id ) ?>"> 71 <dialog class="g5-p-0 g5- bg-gray-900">71 <dialog class="g5-p-0 g5-pt-6 g5-h-full g5-bg-gray-900"> 72 72 <div class="g5-w-18 g5-h-18 g5-bg-white g5-fixed g5-rounded-full g5-top-10 g5-right-10 g5-cursor-pointer g5-flex g5-justify-center g5-items-center"> 73 73 <div class="g5-close-dialog g5-w-12 g5-h-12 g5-rounded-full g5-relative g5-flex g5-justify-center g5-items-center"> … … 78 78 79 79 80 <div class="g5-grid g5-justify-center ">80 <div class="g5-grid g5-justify-center g5-h-full"> 81 81 <div class="g5-modal g5-flex g5-flex-row g5-flex-nowrap g5-items-center g5-min-w-[60px] g5-min-h-[60px]"> 82 82 … … 85 85 </div> 86 86 87 <div class="g5-image-injection g5- py-6 g5-px-6">87 <div class="g5-image-injection g5-flex"> 88 88 <div class="g5-loader"></div> 89 89 </div> -
gallery-5cript/tags/1.0.6/front/templates/lightbox.php
r3170005 r3170209 70 70 71 71 <section class="g5-gallery" id="g5-lightbox-modal-<?php echo esc_html( $gallery_id ) ?>"> 72 <dialog class="g5-p-0 ">72 <dialog class="g5-p-0 g5-pt-6 g5-h-full"> 73 73 <div class="g5-w-18 g5-h-18 g5-bg-white g5-fixed g5-rounded-full g5-top-10 g5-right-10 g5-cursor-pointer g5-flex g5-justify-center g5-items-center"> 74 74 <div class="g5-close-dialog g5-w-12 g5-h-12 g5-rounded-full g5-relative g5-flex g5-justify-center g5-items-center"> … … 78 78 </div> 79 79 80 <div class="g5-grid g5-justify-center ">80 <div class="g5-grid g5-justify-center g5-h-full"> 81 81 <div class="g5-modal g5-flex g5-flex-row g5-flex-nowrap g5-items-center g5-min-w-[60px] g5-min-h-[60px]"> 82 82 … … 85 85 </div> 86 86 87 <div class="g5-image-injection g5- py-6 g5-px-6">87 <div class="g5-image-injection g5-flex"> 88 88 <div class="g5-loader"></div> 89 89 </div> -
gallery-5cript/tags/1.0.6/front/templates/mansory-light.php
r3170005 r3170209 70 70 71 71 <section class="g5-gallery" id="g5-lightbox-modal-<?php echo esc_html( $gallery_id ) ?>"> 72 <dialog class="g5-p-0 ">72 <dialog class="g5-p-0 g5-pt-6 g5-h-full"> 73 73 <div class="g5-w-18 g5-h-18 g5-bg-white g5-fixed g5-rounded-full g5-top-10 g5-right-10 g5-cursor-pointer g5-flex g5-justify-center g5-items-center"> 74 74 <div class="g5-close-dialog g5-w-12 g5-h-12 g5-rounded-full g5-relative g5-flex g5-justify-center g5-items-center"> … … 79 79 80 80 81 <div class="g5-grid g5-justify-center ">81 <div class="g5-grid g5-justify-center g5-h-full"> 82 82 <div class="g5-modal g5-flex g5-flex-row g5-flex-nowrap g5-items-center g5-min-w-[60px] g5-min-h-[60px]"> 83 83 … … 86 86 </div> 87 87 88 <div class="g5-image-injection g5- py-6 g5-px-6">88 <div class="g5-image-injection g5-flex"> 89 89 <div class="g5-loader"></div> 90 90 </div> -
gallery-5cript/tags/1.0.6/front/ts/front.ts
r3169998 r3170209 172 172 const createImage = ():HTMLImageElement => { 173 173 const image = document.createElement('img'); 174 image.classList.add('g5-w-full');175 174 image.classList.add('g5-max-h-[90vh]'); 176 175 image.classList.add('g5-max-w-[80vw]'); 176 image.classList.add('g5-w-auto'); 177 image.classList.add('g5-object-contain'); 177 178 image.autofocus = true; 178 179 return image; -
gallery-5cript/tags/1.0.6/gallery_5cript.php
r3170112 r3170209 5 5 * Plugin URI: https://gallery.5cript.com/ 6 6 * Description: Create a frontend gallery utilizing the fully cross-browser supported <dialog> HTML element, which offers enhanced accessibility and SEO benefits. Additionally, it incorporates the <picture> HTML element to support responsive images, ensuring optimal image sizes based on your website's configuration. This approach minimizes network redundancies by adapting to the device's viewport. The gallery is built using Tailwind CSS and TypeScript, with a simple shortcode for easy implementation. 7 * Version: 1.0. 57 * Version: 1.0.6 8 8 * Requires at least: 6.5.2 9 9 * Requires PHP: 8.0 -
gallery-5cript/tags/1.0.6/output.css
r3166806 r3170209 114 114 } 115 115 116 .g5-h-\[90\%\]{ 117 height: 90%; 118 } 119 116 120 .g5-max-h-\[120px\]{ 117 121 max-height: 120px; … … 148 152 .g5-w-full{ 149 153 width: 100%; 154 } 155 156 .g5-w-auto{ 157 width: auto; 150 158 } 151 159 … … 292 300 } 293 301 302 .g5-object-contain{ 303 -o-object-fit: contain; 304 object-fit: contain; 305 } 306 294 307 .g5-object-cover{ 295 308 -o-object-fit: cover; … … 340 353 .g5-pt-8{ 341 354 padding-top: 2rem; 355 } 356 357 .g5-pt-6{ 358 padding-top: 1.5rem; 342 359 } 343 360 -
gallery-5cript/tags/1.0.6/readme.txt
r3170112 r3170209 5 5 Requires at least: 6.0 6 6 Tested up to: 6.6 7 Stable tag: 1.0. 57 Stable tag: 1.0.6 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
gallery-5cript/trunk/front/js/front.js
r3169998 r3170209 43 43 galleryId: Number(pic.getAttribute('data-gallery-id')) 44 44 }; 45 console.log(pic.getAttribute('data-alt'));46 45 pictureArray.push(imageItem); 47 46 tempPics.push(imageItem); … … 120 119 const createImage = () => { 121 120 const image = document.createElement('img'); 122 image.classList.add('g5-w-full');123 121 image.classList.add('g5-max-h-[90vh]'); 124 122 image.classList.add('g5-max-w-[80vw]'); 123 image.classList.add('g5-w-auto'); 124 image.classList.add('g5-object-contain'); 125 125 image.autofocus = true; 126 126 return image; -
gallery-5cript/trunk/front/templates/dark.php
r3170005 r3170209 69 69 70 70 <section class="g5-gallery" id="g5-lightbox-modal-<?php echo esc_html( $gallery_id ) ?>"> 71 <dialog class="g5-p-0 g5- bg-gray-900">71 <dialog class="g5-p-0 g5-pt-6 g5-h-full g5-bg-gray-900"> 72 72 <div class="g5-w-18 g5-h-18 g5-bg-white g5-fixed g5-rounded-full g5-top-10 g5-right-10 g5-cursor-pointer g5-flex g5-justify-center g5-items-center"> 73 73 <div class="g5-close-dialog g5-w-12 g5-h-12 g5-rounded-full g5-relative g5-flex g5-justify-center g5-items-center"> … … 78 78 79 79 80 <div class="g5-grid g5-justify-center ">80 <div class="g5-grid g5-justify-center g5-h-full"> 81 81 <div class="g5-modal g5-flex g5-flex-row g5-flex-nowrap g5-items-center g5-min-w-[60px] g5-min-h-[60px]"> 82 82 … … 85 85 </div> 86 86 87 <div class="g5-image-injection g5- py-6 g5-px-6">87 <div class="g5-image-injection g5-flex"> 88 88 <div class="g5-loader"></div> 89 89 </div> -
gallery-5cript/trunk/front/templates/lightbox.php
r3170005 r3170209 70 70 71 71 <section class="g5-gallery" id="g5-lightbox-modal-<?php echo esc_html( $gallery_id ) ?>"> 72 <dialog class="g5-p-0 ">72 <dialog class="g5-p-0 g5-pt-6 g5-h-full"> 73 73 <div class="g5-w-18 g5-h-18 g5-bg-white g5-fixed g5-rounded-full g5-top-10 g5-right-10 g5-cursor-pointer g5-flex g5-justify-center g5-items-center"> 74 74 <div class="g5-close-dialog g5-w-12 g5-h-12 g5-rounded-full g5-relative g5-flex g5-justify-center g5-items-center"> … … 78 78 </div> 79 79 80 <div class="g5-grid g5-justify-center ">80 <div class="g5-grid g5-justify-center g5-h-full"> 81 81 <div class="g5-modal g5-flex g5-flex-row g5-flex-nowrap g5-items-center g5-min-w-[60px] g5-min-h-[60px]"> 82 82 … … 85 85 </div> 86 86 87 <div class="g5-image-injection g5- py-6 g5-px-6">87 <div class="g5-image-injection g5-flex"> 88 88 <div class="g5-loader"></div> 89 89 </div> -
gallery-5cript/trunk/front/templates/mansory-light.php
r3170005 r3170209 70 70 71 71 <section class="g5-gallery" id="g5-lightbox-modal-<?php echo esc_html( $gallery_id ) ?>"> 72 <dialog class="g5-p-0 ">72 <dialog class="g5-p-0 g5-pt-6 g5-h-full"> 73 73 <div class="g5-w-18 g5-h-18 g5-bg-white g5-fixed g5-rounded-full g5-top-10 g5-right-10 g5-cursor-pointer g5-flex g5-justify-center g5-items-center"> 74 74 <div class="g5-close-dialog g5-w-12 g5-h-12 g5-rounded-full g5-relative g5-flex g5-justify-center g5-items-center"> … … 79 79 80 80 81 <div class="g5-grid g5-justify-center ">81 <div class="g5-grid g5-justify-center g5-h-full"> 82 82 <div class="g5-modal g5-flex g5-flex-row g5-flex-nowrap g5-items-center g5-min-w-[60px] g5-min-h-[60px]"> 83 83 … … 86 86 </div> 87 87 88 <div class="g5-image-injection g5- py-6 g5-px-6">88 <div class="g5-image-injection g5-flex"> 89 89 <div class="g5-loader"></div> 90 90 </div> -
gallery-5cript/trunk/front/ts/front.ts
r3169998 r3170209 172 172 const createImage = ():HTMLImageElement => { 173 173 const image = document.createElement('img'); 174 image.classList.add('g5-w-full');175 174 image.classList.add('g5-max-h-[90vh]'); 176 175 image.classList.add('g5-max-w-[80vw]'); 176 image.classList.add('g5-w-auto'); 177 image.classList.add('g5-object-contain'); 177 178 image.autofocus = true; 178 179 return image; -
gallery-5cript/trunk/gallery_5cript.php
r3170112 r3170209 5 5 * Plugin URI: https://gallery.5cript.com/ 6 6 * Description: Create a frontend gallery utilizing the fully cross-browser supported <dialog> HTML element, which offers enhanced accessibility and SEO benefits. Additionally, it incorporates the <picture> HTML element to support responsive images, ensuring optimal image sizes based on your website's configuration. This approach minimizes network redundancies by adapting to the device's viewport. The gallery is built using Tailwind CSS and TypeScript, with a simple shortcode for easy implementation. 7 * Version: 1.0. 57 * Version: 1.0.6 8 8 * Requires at least: 6.5.2 9 9 * Requires PHP: 8.0 -
gallery-5cript/trunk/output.css
r3166806 r3170209 114 114 } 115 115 116 .g5-h-\[90\%\]{ 117 height: 90%; 118 } 119 116 120 .g5-max-h-\[120px\]{ 117 121 max-height: 120px; … … 148 152 .g5-w-full{ 149 153 width: 100%; 154 } 155 156 .g5-w-auto{ 157 width: auto; 150 158 } 151 159 … … 292 300 } 293 301 302 .g5-object-contain{ 303 -o-object-fit: contain; 304 object-fit: contain; 305 } 306 294 307 .g5-object-cover{ 295 308 -o-object-fit: cover; … … 340 353 .g5-pt-8{ 341 354 padding-top: 2rem; 355 } 356 357 .g5-pt-6{ 358 padding-top: 1.5rem; 342 359 } 343 360 -
gallery-5cript/trunk/readme.txt
r3170112 r3170209 5 5 Requires at least: 6.0 6 6 Tested up to: 6.6 7 Stable tag: 1.0. 57 Stable tag: 1.0.6 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset
for help on using the changeset viewer.