Version 1.0
If you are using the Kirby CLI, you can install this plugin by running the following commands in your shell:
$ cd path/to/kirby
$ kirby plugin:install lauriiii/grid-gallery
- Clone or download this repository.
- Unzip the archive if needed and rename the folder to grid-gallery.
Make sure that the plugin folder structure looks like this:
site/plugins/grid-gallery/
echo css('assets/plugins/grid-gallery/css/grid-gallery.css');
(gallery: image1.jpg image2.jpg image3.jpg)
Default: Nr. of images (up to 8 after which it defaults to 4)
(gallery: image1.jpg image2.jpg image3.jpg columns: 4)
Default: 1
(gallery: image1.jpg image2.jpg image3.jpg columns: 4 mobilecolumns: 2)
(gallery: image1.jpg image2.jpg image3.jpg columns: 4 class: test)
Wraps the images with a link to the file
Default: false
(gallery: image1.jpg image2.jpg image3.jpg columns: 4 links: true)
You can use the following settings on your config file to change the defaults.
c::set('gridgallery.default.class', 'default');
c::set('gridgallery.default.links', true);
c::set('gridgallery.default.mobilecolumns', '2');
http://www.opensource.org/licenses/mit-license.php
Lauri Liimatta http://lauriliimatta.com