Responsive Grid Galleries!
" … released under the MIT license. Have at it."
#### How do I use this?
This component adds a button to the composer.
So all you have to do is:
1- Upload a bunch of images using the default Discourse upload button then highlight the code:
2- Click the gallery button.
You will get a static preview of the the selected images in the preview pane:
This component does not have any color / background styles in it. It will inherit the current theme’s styles.
Here’s the theme component running on a different theme:
This theme component also maintains the default Discourse lighbox behavior, this means that clicking any of the images will open them in the native lightbox viewer.
You better believe it!
This is possible by making both slick and tiles components of a theme.
You can then make “my theme” in the example above the default theme or make it user-selectable and it would include both Slick and Tiles.
A big thank you to everyone that helped along the way:
@Dax - Composer button
@cpradio - Button translations
@vinothkannans - Topic page url regex
@sam - adding
data-theme-* to whitelisted attributes
Bug reports / Suggestions / PRs welcome.
|New to Discourse Themes?||Beginner’s guide to using Discourse Themes|
Install this theme component