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

FancyBox Gallery

描述

FancyBox Gallery integrates the FancyBox jQuery plugin into the WordPress
gallery functionality. Simply use the gallery shortcode to display
thumbnails in your posts with the option to link directly to the images (not
the attachment template), and the plugin handles the rest. You get nice
popups for the larger sized images, scaled to fit in the browser window,
with a nice overlay effect.

Features:

  • Automatically scales large images to fit in window
  • Adds a nice drop shadow under the zoomed item
  • Groups related items and adds navigation through them (uses preloading)

FancyBox jQuery features, not yet implemented in the WordPress plugin:

  • Can display images, inline and iframed content
  • Customizable through settings and CSS

ToDo

  • Add a settings screen. Allow control of FancyBox display options.
  • Let user set their own CSS selector, instead of assuming the standard
    WordPress shortcode.

Credits

The FancyBox jQuery plugin is by Janis Skarnelis, and can be found here:

http://fancy.klade.lv/

安装

Copy the fancybox-gallery folder and its contents to your wp-content/plugins
directory, then activate the plugin.

Visit the settings page to configure options.

By default, FancyBox Gallery is configured to work with image galleries
generated by the WordPress [gallery link="file"] shortcode.

常见问题

Does it work with other media, like videos?

The FancyBox jQuery can work with other embedded media types. I have not
tested the WordPress plugin with anything other than images, though.

There is a problem with my browser.

For example, I have heard reports that the Opera browser wants to center the
image on the whole document, not just in the visible viewport. Browser
issues most likely will have to be dealt with in the underlying FancyBox
jQuery plugin. For these types of problems, please visit:

http://fancy.klade.lv/

评价

2016年9月3日
It does its job - so its ok. I'm using 1.9.1 - had errors. Add this: jQuery.browser = {}; (function () { jQuery.browser.msie = false; jQuery.browser.version = 0; if (navigator.userAgent.match(/MSIE ([0-9]+)\./)) { jQuery.browser.msie = true; jQuery.browser.version = RegExp.$1; } })(); to \plugins\fancybox-gallery\fancybox\jquery.fancybox-1.2.1.js and it will work.
阅读所有3条评价

贡献者及开发者

“FancyBox Gallery” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

将“FancyBox Gallery”翻译成您的语言。

对开发感兴趣吗?

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

更新日志

0.3.2 2010-01-10

  • Tested up to WordPress 3.0-alpha

0.3.1 2009-06-11

  • Fixed path to easing plugin.

0.3 2009-06-11

  • Upgraded to fancybox 1.2.1
  • Due to new version of fancybox, which requires jQuery version 1.3.2,
    the plugin now requires WordPress 2.8 (or at least the newer jQuery)
  • Now supports next/previous image navigation within gallery images of
    a post.

0.2 2009-01-26

  • Override table styles for image captions so that it works better with
    more themes.

0.1 2009-01-25

  • Initial release. No options, yet. Only works if you use the gallery
    shortcode like so: [gallery link="file"]