WP jQuery Lightbox WordPress 插件


This plugin lets you keep the awesome Lightbox 2-functionality, but sheds the bulk of the Prototype Framework and Scriptaculous Effects Library.

Warren Krewenki ported Lightbox to jQuery and this plugin is mostly a wrapper to his work: providing localization support, an admin panel for configuration, (optional) auto-boxing of your image links and support for WordPress galleries, including media library titles and captions.

This version is also adjusted for mobile devices;

  • Swipe gestures for flicking between images on touch devices
  • Improved scaling maximizes use of screen space
  • Live adjustment to the browser window and orientation of your phone

See the plugin in action here: game.speldesign.uu.se

You can browse images with your keyboard: Arrows, P(revious)/N(ext) and X/C/ESC for close.

//Ulf Benjaminsson (2021-01-26)

  • Added setting to control whether jQuery is loaded in the header or footer. (2021-01-26)

  • Migrated lightbox to modern jQuery (Thanks: Joseph Rézeau aka papijo!)
  • Improved support of Gutenberg editor’s image captions (Thanks: Joseph Rézeau aka papijo!)
  • Tested up to WordPress 5.6 and PHP 7.4.12 (2019-03-24)

  • Tested for WordPress 5.x and PHP 7.x, no functional changes.

1.4.8 (2015-12-31)

  • Fixed translations not being loaded properly
  • Fixed support for WordPress 4.4

1.4.7 (2015-09-21)

  • Support for WordPress’ new translation system.
  • Updated translation for Portugese (Thanks: Pedro Mendonça)
  • Added images and CSS for Portugese (Thanks: Pedro Mendonça)

1.4.6 (2015-03-20)

  • “Download link” now correctly open a download dialogue instead of displaying the file
  • Title, caption and all control elements can now be turned on / off individually
  • Added support for custom style sheets (just copy original to your theme’s style folder, and hack away)
  • Restructured the HTML slightly, making styling easier
  • Added specific CSS selectors for all elements
  • Fixed animation speed setting being ignored
  • Dropped quirks support for Internet Explorer 8
  • Removed help-text setting

1.4.5 (2013-06-09)

  • Fit to screen edge on low rez displays (<500px)
  • Added global setting to hide title & caption
  • Reduced the amount of code running for each image shown
  • Updated German translation (thanks Niko23)
  • Fix: swipe direction
  • Fix: slideshow now waits for images to display before starting timer.
  • Fix: support for latest jQuery
  • Fix: WordPress encoding wrong quote mark in captions, causing duplicate texts to display.

1.4.1 (2013-02-03)

  • Added swipe gestures on touch devices
  • Added slideshow
  • Added support for multiple sets in one post (use: group with the gallery-shortcode)
  • Added support for arbitrary Download links via the data-download-attribute
  • Added support to pick text from the image ALT-attribute (if title is not available)
  • Added translations: Norwegian Bokmål (thanks Ole Martin Kristiansen!)
  • Fix regexp to deal with urls like www.gif.org. (Thanks Yannick Berker!)
  • Fix changed common IDs to avoid collisions. (you’ll have to update your CSS now!) (Hat tip; Pollmann Frederic)
  • Fix better support of Infinite Scroll and similar
  • Fix toggling visible state on unrelated object, embed and select nodes. mwolfe02
  • Fix leaky CSS on admin page

Older changelogs moved here.

Additional Info

Copyright (C) 2010-2021 Ulf Benjaminsson (hello at my full name dot com).

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA



2024-04-24 08:18:25
[email protected]