====== PhotoSwipe ====== This FlatPress plugin displays single images and whole image galleries with the JavaScript library [[http://photoswipe.com/|PhotoSwipe]] by [[https://dimsemenov.com/|Dmytro Semenov]] 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. Author: [[https://www.arvidzimmermann.de|Arvid Zimmermann]] ===== Usage ===== 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). The PhotoSwipe plugin then takes care of the stylish swipeable fullscreen display of the images on clicking them. === Image galleries === To display an image gallery: [gallery="images/NameOfTheGallery"] Gallery width given image height: [gallery="images/NameOfTheGallery" height="100"] === Image without PhotoSwipe === You may wish to display some images without the PhotoSwipe functionality (e.g. small icons, or images that work as links). The optional "popup" parameter does the trick: [img="images/image.jpg" popup="false"] This will display this particular image without the PhotoSwipe overlay. You'll need to use //popup="false"// if an image should work as a link: [url="https://example.org"][img="images/image.jpg" popup="false"][/url] ===== 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