doc:plugins:photoswipe
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| doc:plugins:photoswipe [2024/12/22 02:07] – [Download] fraenkiman | doc:plugins:photoswipe [2025/05/29 13:53] (current) – added popup parameter description arvid | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== PhotoSwipe ====== | ====== PhotoSwipe ====== | ||
| - | This FlatPress plugin displays single images and whole image galleries with the JavaScript library [[http:// | + | This FlatPress plugin displays single images and whole image galleries with the JavaScript library [[http:// |
| - | Since the plugin uses FlatPress default functionality for building the image HTML, you may use the documented parameters of the [img] tag such as " | ||
| Author: [[https:// | Author: [[https:// | ||
| ===== Usage ===== | ===== Usage ===== | ||
| - | For a single | + | 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", |
| - | < | + | |
| - | Floating image with given width: | + | |
| - | < | + | |
| - | For an image gallery: | + | === Image galleries === |
| - | < | + | To display |
| + | < | ||
| Gallery width given image height: | Gallery width given image height: | ||
| - | < | + | < |
| + | |||
| + | === 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 " | ||
| + | < | ||
| + | |||
| + | You'll need to use // | ||
| + | < | ||
| - | === 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 ===== | ===== HTML+CSS ===== | ||
| The HTML code of the images is generated by the BBCode standard function // | The HTML code of the images is generated by the BBCode standard function // | ||
| Line 26: | Line 30: | ||
| Galleries are displayed as a series of images as described above, encapsulated by a <div class=" | Galleries are displayed as a series of images as described above, encapsulated by a <div class=" | ||
| - | ===== Captions | + | ===== Image captions in galleries |
| - | Captions of the gallery images will be read from a text file " | + | The plugin " |
| - | For having the title attribute in the gallery images (and therfore, also see it as description below the images in the gallery), just create a file " | + | |
| - | < | + | |
| - | 1.jpg = Description of the first image | + | |
| - | 2.jpg = This is the second image. | + | |
| - | someother.jpg = OMG, another image! | + | |
| - | </ | + | |
| - | + | ||
| - | For now, you have to create the texte.conf files for each gallery manually via FTP. | + | |
| - | + | ||
| - | From FlatPress 1.3 on, the plugin " | + | |
| ==== How to remove the captions ==== | ==== How to remove the captions ==== | ||
| - | If you don't want to display captions at all, this is the easiest way to get rid of them: Just add the following to the CSS of your theme! | + | If you don't want to display |
| < | < | ||
| Line 46: | Line 40: | ||
| {{ : | {{ : | ||
| - | {{ : | + | {{ : |
| ===== Changelog ===== | ===== Changelog ===== | ||
| + | == 2025-05-07: Version 2.0.4 == | ||
| + | * It is ensured that the overlay structure is always in the DOM. [[https:// | ||
| + | * An image with an link can be created if the “Popup” parameter contains false. [[https:// | ||
| + | * After closing the overlay, the page remains accessible for screen readers. [[https:// | ||
| + | == 2025-01-12: Version 2.0.2 == | ||
| + | * External images are displayed correctly. [[https:// | ||
| == 2024-12-22: Version 2.0.1 == | == 2024-12-22: Version 2.0.1 == | ||
| * Fixes the problem that the overlay bottons were displayed in the RSS and Atom feed [[https:// | * Fixes the problem that the overlay bottons were displayed in the RSS and Atom feed [[https:// | ||
doc/plugins/photoswipe.1734829661.txt.gz · Last modified: by fraenkiman
