scaron / prettyphoto

prettyPhoto is a jQuery based lightbox clone. Not only does it support images, it also add support for videos, flash, YouTube, iFrames. It’s a full blown media lightbox. The setup is easy and quick, plus the script is compatible in every major browser.
http://www.no-margin-for-errors.com/projects/prettyPhoto-jquery-lightbox-clone/
553 stars 280 forks source link

Build a gallery automatically #101

Open ghost opened 12 years ago

ghost commented 12 years ago

Another request : can you build a gallery automatically when you have more than one image in a post?

The steps are :

  1. get the content of the post
  2. count all images (<img src tag for example)
  3. if we have more than one image, add rel="prettyPhoto[galleryid]" attribut for all images inside the post
binhdo commented 12 years ago

Once again, this is clearly related to the WordPress plugin.