PhotoSwipe.
Part of the standard distribution. Needs the BBCode plugin to be activated. * Author: FlatPress * Author URI: https://www.flatpress.org */ /** * -------- * About * -------- * * This plugin displays single images and whole image galleries with the JavaScript library * PhotoSwipe (photoswipe.com). Since it uses FlatPress default functionality for building * the image HTML, you may use the documented parameters of the [img] tag such as "alt", * "title", "height", "width" or "float" (see FlatPress BBCode documentation for details). * * * -------- * Usage * -------- * * For a single image: [img="images/image.jpg"] * Floating image with given width: [img="images/image.jpg" width="200" float="right"] * * For an image gallery: [gallery="images/GalleryName"] * Gallery width given image height: [gallery="images/GalleryName" height="100"] * * * -------- * HTML+CSS * -------- * * The HTML code of the images is generated by the FlatPress standard function * do_bbcode_img() (see fp-plugins/bbcode/plugin.bbcode.php). Therefore, standard image * attributes (such as "width", "height", etc.) can be used. Floating images will get a * corresponding CSS class (e.g. "floatright"). * The plugin will wrap that HTML in a
element with the same CSS class as the * image (e.g. "floatright"). The
also contains a
displaying the * title of the image. * The
element itself is surrounded by a
. * * Galleries are displayed as a series of images as described above, encapsulated by a *