rel="lightbox"attribute to any link tag to activate the lightbox. For example:
Optional: Use the
<a href="images/image-1.jpg" rel="lightbox" title="my caption">image #1</a>
titleattribute if you want to show a caption.
No limits to the number of image sets per page or how many images are allowed in each set. Go nuts!
<a href="images/image-1.jpg" rel="lightbox[roadtrip]">image #1</a> <a href="images/image-2.jpg" rel="lightbox[roadtrip]">image #2</a> <a href="images/image-3.jpg" rel="lightbox[roadtrip]">image #3</a>
jqlb_apply_lightbox($your_content, "any ID");It returns a string with all image links lightboxed, grouped by "any id"
wp_localize_script(), used to configure this plugin and many others.
Takes the WordPress admin bar into consideration.
Resizing code manages both height and width and never destroy aspect ratio.
Scaling routines now maximize images fully while taking captions into account.
Added support for browser resizing and orientation changes - allowing images to remain optimally scaled and centered.
WP Lightbox 2 rely on
rel="lightbox" instead of
class="lightbox", since rel is what all the previous *box-scripts used.
Replaced explicit IMG-urls with divs styled through the CSS. (see:
Can grab titles and captions from the WordPress Media Gallery-output ([gallery], "insert attachments" etc).
Grabs image title if the link lacks one
Honors empty titles.
Uses WordPress API to localize script (with safe fallbacks).