paruch/kirby-gallery (3.0.0)
Published 2025-04-01 16:36:38 +02:00 by paruch
Installation
{
"repositories": [{
"type": "composer",
"url": " "
}
]
}composer require paruch/kirby-gallery:3.0.0About this package
Foto Gallery with lightbox effect
Kirby Gallery
Beschreibung
Stellt eine Foto-Gallery dar, welche über einen KirbyTag integriert werden kann.
Verwendung
- Snippets importieren
// im Header
snippet('paruch.gallery.imports-css')
// am Ende vom Body
snippet('paruch.gallery.imports-js')
- mögliche KirbyTags
(gallery: all) # Includes all images of the page
(gallery: 1.png 2.png 3.png) # Includes only selected images
(gallery: all page: projects/a) # Includes all images of the page with the given uri
(gallery: all limit: 2) # Only shows thumbs of the first two images
(gallery: all order: random) # Shuffles all images
(gallery: all order: reverse) # Displays all images in reverse order
(gallery: all cols: 2 4) # Sets cols to ['min' => 2, 'max' => 4]
(gallery: all cols: 3) # Sets cols to ['min' => 3, 'max' => 3]
(gallery: all mobilecols: 1 2) # Sets mobilecols to ['min' => 1, 'max' => 2]
(gallery: all stretch: last) # Stretch trailing items instead of first
(gallery: all stretch: none) # Disable stretching
(gallery: all class: my-class id: my-id) # Applied a class & id to the gallery-wrapper
Versionshistorie
3.0.0
- Snippets Namen haben sich angepasst
2.0.1 / 2.0.2
- Typos korrigieren
- Buildprozess anpassen
2.0.0
- Initial Installation
Dependencies
Dependencies
| ID | Version |
|---|---|
| getkirby/composer-installer | ^1.1 |