Download the PHP package schnti/photoswipe without Composer
On this page you can find all versions of the php package schnti/photoswipe. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download schnti/photoswipe
More information about schnti/photoswipe
Files in schnti/photoswipe
Package photoswipe
Short Description A plugin for Kirby 3 CMS to intecrate photoswipe
License MIT
Homepage https://github.com/schnti/kirby3-photoswipe
Informations about the package photoswipe
PhotoSwipe plugin
A plugin for Kirby 3 CMS that adds photoswipe v5.
As of PhotoSwipe version v5, the integration of PhotoSwipe has become much easier. The Kirby plugin is only needed if the PhotoSwipe tag is required. Otherwise it is recommended to integrate PhotoSwipe without this plugin: https://photoswipe.com/v5/docs/getting-started/
Commercial Usage
This plugin is free but if you use it in a commercial project please consider
Installation
Download
Download the files and place them inside site/plugins/photoswipe
.
Git Submodule
You can add the plugin as a Git submodule.
$ cd your/project/root
$ git submodule add https://github.com/schnti/kirby3-photoswipe.git site/plugins/photoswipe
$ git submodule update --init --recursive
$ git commit -am "Add Kirby PhotoSwipe plugin"
Run these commands to update the plugin:
$ cd your/project/root
$ git submodule foreach git checkout master
$ git submodule foreach git pull
$ git commit -am "Update submodules"
$ git submodule update --init --recursive
Composer
Install PhotoSwipe
JS
CSS/SCSS
Add static gallery
or add dynamic gallery with kirby markup (and Bootstrap 5 Grid)
or use the photoswipe kirbytag
Tag Attributes
Small preview thumb
- width: Integer (thumbnail resize width, default: 500)
- height: Integer (thumbnail resize height, default: null)
- quality: Integer (jpeg quality from 0 to 100, default: 80)
- crop: Boolean (enable cropping the file according to the given width and height parameters, default: false)
Large lightbox image
- lightboxwidth: Integer (image resize width, default: 1000)
- lightboxheight: Integer (image resize height, default: null)
- lightboxquality: Integer (jpeg quality from 0 to 100, default: 90)
Options
You can change the default gallery css selector width in /site/config/config.php
: