Linux 软件免费装

Plugin Name

开发者 Webby Scots
更新时间 2013年10月3日 19:35
PHP版本: 2.5 及以上
WordPress版本: 3.6
版权: GPLv2 or later
版权网址: 版权信息

标签

gallery javascript prettyphoto

下载

详情介绍:

PrettyPhoto WPGallery enhances the Wordpress [gallery] shortcode. When activated any gallery shortcode invoked with the attribute link=’file’ will show only the first image in the size specified in the shortcode, with hidden links to the remaining images. When clicked the image opens the gallery inside a prettyPhoto modal. The modal images are all set to ‘full’ so the modal expands to full size. Apart from that the gallery shortcode works as normal. At present the plugin is very simple, as it was written for a client. Over the coming months I will tidy it up and start adding new features probably starting with other prettyPhoto themes and such like. I have decided not to have a settings page, instead all options will be specified using attributes in the shortcode. Let me know if you think that a settings page will be better -- you can contact me over at Webby Scots.com or simply use the forums here if it is easier. Note: As of 1.0.1 Setting columns in the gallery shortcodes will make the galleries float side by side as the gallery items do in the normal shortcode - see changelog.

安装:

  1. Extract the zip and add the entire plugin directory to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Then simply use the gallery shortcode as normal being sure to specify the link='file' attribute like so:[gallery link=’file’]. You can use any other parameters as normal.
  4. Setting columns in the gallery shortcodes will make the galleries float side by side as the gallery items do in the normal shortcode (as of 1.0.1)

屏幕截图:

  • Shows three seperate gallery shortcodes in a row, each containing multiple images to show in modal gallery
  • The first gallery clicked to reveal the prettyPhoto gallery
  • The second gallery clicked to reveal the prettyPhoto gallery
  • The third gallery clicked to reveal the prettyPhoto gallery

常见问题:

Can you display a text link anchor to open the modal instead?

Not yet unless you can modify the code (contact me and I will detail exactly how it is a simple change), but once (if, here's hoping) the plugin gains some traction I will add my own attributes (or a settings page if you guys call out for it).

Can you have more than one image on show as anchors

Again, not yet but I am already working on the code that will make the columns parameter work for this

更新日志:

1.0.0 First release of plugin 1.0.1 Changes style - gallery container is now floated instead of gallery-item, and the width is also set on the container element, this allows the gallery anchor image to float in columns as the individual items do in the normal gallery. Set the columns in each shortcode to set the correct width for the floating galleries.