justintadlock / cleaner-gallery

Official repository for the Cleaner Gallery WordPress plugin.
GNU General Public License v2.0
23 stars 11 forks source link

Support for galleria.io #6

Open schilke opened 10 years ago

schilke commented 10 years ago

While Galleria already plays good with WP galleries (there are also a few plugins like MarcTV Galleria, Fullscreen Galleria or Galleria for ex.) there's one major thing I can't get to work: Galleria supports 3 image sizes (thumbnail, image, full) and to make it run out of the box for a third size you only need to add a data-attr to the image like so

<a href="/img/medium.jpg"><img src="/img/thumb.jpg" data-big="/img/full.jpg" data-title="My title" data-description="My description"></a>

(Source: add a separate larger image for fullscreen using the data-big attribute) While I'm still having no success to get it working I know it shouldn't be too hard and I thought it would be worth to put a feature request as Galleria is a robust, popular and partly unique script and most probably worth to include.

Oh and yes: I'd be really thankful for any hint how to add the data-attr to the img tag the WordPress way -.-