该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

ImageLightbox.js

描述

Responsive and touch-friendly lightbox for WordPress.

Has no options. It will run on posts/pages/attachments. It will NOT run on categories, archives, front page etc.

Thanks to:

安装

  1. Upload wp-imagelightbox to /wp-content/plugins
  2. Activate plugin from admin interface

常见问题

Where are the options?

There aren’t any at the moment!

How to change the imagelightbox type?

At the moment there is no way to change the type unless you edit the code of the plugin. Inside wp-imagelightbox.php you can edit the option parameters to whatever you desire. Please keep in mind they will be overwritten on update.

评价

2016 年 9 月 3 日
As a realtor, my sites depend on images. Big images with few distractions surrounding them. This gives me EXACTLY what I want. I’m new to WP so this is so easy to use. Many thanks!
2016 年 9 月 3 日
Brakuje chociażby kilku podstawowych opcji, jednakże działa najszybciej, najlepiej, i zawsze dostosowuje się do sytuacji.
阅读所有5条评价

贡献者及开发者

「ImageLightbox.js」是开源软件。 以下人员对此插件做出了贡献。

贡献者

帮助将「ImageLightbox.js」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

r13

  • One more bump

r12

  • Fixed a typo in the activation code

r11

  • Fixed an issue where swiping left/right and closing the image by touching outside the image didn’t work while logged in (#wpadminbar had a higher z-index)
  • Disabled “history” by default, so we don’t break users back buttons in certain cases, needs more investigation

r10

  • Added !important to our zoom button so it doesn’t get overriden by theme styles (hopefully)

r9

  • Added a very rudimentary “open in a new tab” button to let the browser handle large images (ie: screenshots)
  • Fixed the shape of navigation buttons on mobile (now they are round)
  • Also moved the navigation buttons on the bottom on mobile.

r8

  • Fixed an issue with the init script being present on archive pages
  • Remove the $type from the data-imagelightbox attribute, as we don’t use that anymore

r7

  • Refactored the init script
  • Updated ImageLightbox.js, swapped to https://github.com/rejas/imagelightbox
  • Cleaned a lot of code

r6

  • Forgot to add the new .js name to the repo (can we have git, please, wordpress.org?)

r5

  • Fixed version number loading

r4

  • Added a “view original image” button which opens the current image in a new tab
  • Defaulting to mode=f which corresponds to Osvaldas’ “combination” mode
  • Stuff that I forgot?

r3

  • Fixed dependency on jQuery

r2

  • Tweaked the CSS a bit. Overlay is now dark, nav is “tigther”. Looks better on mobiles phones, too (imho).

r1

  • Initial release