Changeset 2342362
- Timestamp:
- 07/17/2020 03:01:34 PM (6 years ago)
- Location:
- modulobox-lite/trunk
- Files:
-
- 6 edited
-
admin/fields/color.php (modified) (1 diff)
-
includes/normalize-settings.class.php (modified) (1 diff)
-
modulobox.php (modified) (2 diffs)
-
public/modules/wp-gallery.min.php (modified) (1 diff)
-
public/modules/wp-gallery.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
modulobox-lite/trunk/admin/fields/color.php
r1909128 r2342362 42 42 wp_enqueue_script( 'wp-color-picker' ); 43 43 wp_enqueue_style( 'wp-color-picker' ); 44 wp_localize_script( 'wp-color-picker', 'wpColorPickerL10n', array( 45 'clear' => __( 'Clear', 'modulobox' ), 46 'defaultString' => __( 'Default', 'modulobox' ), 47 'pick' => __( 'Select Color', 'modulobox' ), 48 'current' => __( 'Current Color', 'modulobox' ) 49 ) ); 44 50 45 51 } -
modulobox-lite/trunk/includes/normalize-settings.class.php
r1986112 r2342362 47 47 */ 48 48 private $modules = array( 49 'wp-image' => 'a > img[class*="wp-image-"] ',49 'wp-image' => 'a > img[class*="wp-image-"]:not([data-id])', // :not([data-id]) prevent issue with Gutenberg gallery block. 50 50 'wp-gallery' => '.gallery-icon > a, .blocks-gallery-item a', 51 51 ); -
modulobox-lite/trunk/modulobox.php
r1986112 r2342362 11 11 * Plugin URI: https://www.theme-one.com/modulobox/ 12 12 * Description: A modular, versatile & highly customizable lightbox plugin to display your media in a fully responsive popup. 13 * Version: 1. 5.013 * Version: 1.6.0 14 14 * Author: Themeone 15 15 * Author URI: https://www.theme-one.com/ … … 78 78 private function define_constants() { 79 79 80 define( 'MOBX_VERSION', '1. 5.0' );80 define( 'MOBX_VERSION', '1.6.0' ); 81 81 define( 'MOBX_NAME', 'modulobox' ); 82 82 define( 'MOBX_SLUG', 'mobx' ); -
modulobox-lite/trunk/public/modules/wp-gallery.min.php
r1986112 r2342362 12 12 13 13 return <<<'SCRIPT' 14 var mobx_wp_gallery=function(){for(var t=document.querySelectorAll('.gallery[id*="gallery-"], .wp-block-gallery'),e=0,l=t.length;e<l;e++){t[e].removeAttribute("data-carousel-extra");for(var a=t[e].querySelectorAll(".gallery-icon > a, .blocks-gallery-item a"),r=0,i=a.length;r<i;r++){var n=a[r],o=n.firstElementChild,b=(o.title||o.alt)&&mobx_options.autoCaption,m=n.parentElement.nextElementSibling,c=n.nextElementSibling;m=m&& m.className.indexOf("wp-caption-text")>-1?m.innerHTML:"",c&&"FIGCAPTION"===c.tagName&&(m=c.innerHTML||m),o.setAttribute("data-rel","wp-gallery-"+(e+1)),o.setAttribute("data-title",b?o.title||o.alt:m||""),o.setAttribute("data-desc",b?m:""),o.setAttribute("data-thumb",o.src),mobx.addAttr(n,{title:b?o.title||o.alt:m||"",desc:b?m:"",thumb:o.src})}}};mobx_wp_gallery();14 var mobx_wp_gallery=function(){for(var t=document.querySelectorAll('.gallery[id*="gallery-"], .wp-block-gallery'),e=0,l=t.length;e<l;e++){t[e].removeAttribute("data-carousel-extra");for(var a=t[e].querySelectorAll(".gallery-icon > a, .blocks-gallery-item a"),r=0,i=a.length;r<i;r++){var n=a[r],o=n.firstElementChild,b=(o.title||o.alt)&&mobx_options.autoCaption,m=n.parentElement.nextElementSibling,c=n.nextElementSibling;m=m&&-1<m.className.indexOf("wp-caption-text")?m.innerHTML:"",c&&"FIGCAPTION"===c.tagName&&(m=c.innerHTML||m),o.setAttribute("data-rel","wp-gallery-"+(e+1)),o.setAttribute("data-title",b?o.title||o.alt:m||""),o.setAttribute("data-desc",b?m:""),o.setAttribute("data-thumb",o.src),mobx.addAttr(n,{rel:"wp-gallery-"+(e+1),title:b?o.title||o.alt:m||"",desc:b?m:"",thumb:o.src})}}};mobx_wp_gallery(); 15 15 SCRIPT; -
modulobox-lite/trunk/public/modules/wp-gallery.php
r1986112 r2342362 46 46 47 47 mobx.addAttr( wp_link, { 48 //rel : 'wp-gallery-' + ( g + 1),48 rel : 'wp-gallery-' + ( g + 1), 49 49 title : isAuto ? wp_image.title || wp_image.alt : caption || '', 50 50 desc : isAuto ? caption : '', -
modulobox-lite/trunk/readme.txt
r1986112 r2342362 4 4 Tags: lightbox, WordPress lightbox, popup, grid, gallery, images, media, video, youtube, vimeo, photo, javascript, responsive, multimedia, photography 5 5 Requires at least: 4.5.0 6 Tested up to: 5. 07 Stable tag: 1. 5.06 Tested up to: 5.5 7 Stable tag: 1.6.0 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 137 137 == Changelog == 138 138 139 = 1.6.0 = 140 141 * 17th December 2018 142 * Added compatibility with WordPress 5.5. 143 139 144 = 1.5.0 = 140 145
Note: See TracChangeset
for help on using the changeset viewer.