====== PhotoSwipe ====== This FlatPress plugin displays single images and whole image galleries with the JavaScript library [[http://photoswipe.com/|PhotoSwipe]] which provides a very appealing fullscreen display of the images. And on mobile devices such as tablets or smartphone you can browse through the images by swipe gestures. Since the plugin 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 [[doc:plugins:bbcode|FlatPress BBCode documentation]] for details). Author: [[https://www.arvidzimmermann.de|Arvid Zimmermann]] ===== Usage ===== For a single image: [photoswipeimage="images/image.jpg"] Floating image with given width: [photoswipeimage="images/image.jpg" width="200" float="right"] For an image gallery: [photoswipegallery="images/NameOfTheGallery"] Gallery width given image height: [photoswipegallery="images/NameOfTheGallery" height="100"] === Multiple Usage === If the plugin is called a number of times on a page, all images referenced, whether as single images or as part of a gallery, will be displayed in a single gallery. ===== HTML+CSS ===== The HTML code of the images is generated by the BBCode 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