StarLite Pretty Photo plugin is based on pretty photo jquery plugin which is jQuery lightbox clone. It supports images, it also supports for videos, flash, YouTube, iframes and Vimeo. In this way, it is a robust lightbox.
This is a system plugin so you can use in your articles, modules, components everywhere!!!
How To Use It?
- Single image. In order to achieve this you need to do:
- Create a link.
- Add the rel attribute “prettyPhoto” to it i.e. (rel=”prettyPhoto”). Provide full size image path to the HREF.
- If you want to show title in the opened lightbox then you need to add ALT attribute to your thumbnail image. Similarly, in order to show description, you need to add title in HREF link attribute. So in this way the complete syntax would be like
<a title="DESCRIPTION_IN_LIGHTBOX" href="FULL_SIZE_IMAGE_PATH" rel="prettyPhoto"><img src="THUMBNAIL_PATH" alt="TITLE_OF_LIGHTBOX" /></a>
- Slideshow image gallery. In order to achieve this you need to do:
- Same syntax as Single image but you need to group rel attribute(rel=prettyphoto). So the complete syntax would be like
<a title="DESCRIPTION_IN_LIGHTBOX" href="FULL_SIZE_IMAGE_PATH" rel="prettyPhoto[GALLERY_NAME]"><img src="THUMBNAIL_PATH" alt="TITLE_OF_LIGHTBOX" /></a>
- Same syntax as Single image but you need to group rel attribute(rel=prettyphoto). So the complete syntax would be like
- Flash. In order to achieve this you need to do:
- Create a link.
- Add the rel attribute “prettyPhoto” to it i.e. (rel=”prettyPhoto”). Provide SWF path to the HREF. Then add the width and height as parameters in your HREF (?width=100&height=100).
- If you want to show title in the opened lightbox then you need to add ALT attribute to your thumbnail image. Similarly, in order to show description, you need to add title in HREF link attribute.
So in this way the complete syntax would be like<a title="DESCRIPTION_IN_LIGHTBOX" href="SWF_PATH?width=WIDTH&height=HEIGHT" rel="prettyPhoto"><img src="THUMBNAIL_PATH" alt="TITLE_OF_LIGHTBOX" /></a>
- Youtube. In order to achieve this you need to do:
- Here you need to change the HREF link so it points to the YouTube video page. So the complete syntax would be like
<a title="DESCRIPTION_IN_LIGHTBOX" href="YOUTUBE_VIDEOURL" rel="prettyPhoto"><img src="THUMBNAIL_PATH" alt="TITLE_OF_LIGHTBOX" /></a>
- Here you need to change the HREF link so it points to the YouTube video page. So the complete syntax would be like
- Vimeo. In order to achieve this you need to do:
- Here you need to change the HREF link so it points to the Vimeo video page. So the complete syntax would be like
<a title="DESCRIPTION_IN_LIGHTBOX" href="VIMEO_VIDEOURL" rel="prettyPhoto"><img src="THUMBNAIL_PATH" alt="TITLE_OF_LIGHTBOX" /></a>
- Here you need to change the HREF link so it points to the Vimeo video page. So the complete syntax would be like
- QuickTime. In order to achieve this you need to do:
- Create a link.
- Add the rel attribute “prettyPhoto” to it i.e. (rel=”prettyPhoto”). Provide .MOV path to the HREF. Then add the width and height as parameters in your HREF (?width=100&height=100).
- If you want to show title in the opened lightbox then you need to add ALT attribute to your thumbnail image. Similarly, in order to show description, you need to add title in HREF link attribute.
So in this way the complete syntax would be like<a title="DESCRIPTION_IN_LIGHTBOX" href="MOV_PATH?width=WIDTH&height=HEIGHT" rel="prettyPhoto"><img src="THUMBNAIL_PATH" alt="TITLE_OF_LIGHTBOX" /></a>
- Iframe(Extenal link). In order to achieve this you need to do:
- Create a link.
- Add the rel attribute “prettyPhoto” to it i.e. (rel=”prettyPhoto”). Provide the external link in the HREF. Then add the iframe, width and height as parameters in your HREF (?iframe=true&width=100&height=100). Please note that the dimensions can be percent based.
- If you want to show title in the opened lightbox then you need to add ALT attribute to your thumbnail image. Similarly, in order to show description, you need to add title in HREF link attribute.
So in this way the complete syntax would be like<a title="DESCRIPTION_IN_LIGHTBOX" href="IFRAME_PATH?iframe=true&width=WIDTH&height=HEIGHT" rel="prettyPhoto"><img src="THUMBNAIL_PATH" alt="TITLE_OF_LIGHTBOX" /></a>
- Inline content. In order to achieve this you need to do:
- Create a link.
- Add the rel attribute “prettyPhoto” to it i.e. (rel=”prettyPhoto”). Provide ID of the inline content you want to open in to the HREF link
- If you want to show title in the opened lightbox then you need to add ALT attribute to your thumbnail image. Similarly, in order to show description, you need to add title in HREF link attribute.
So in this way the complete syntax would be like<a title="DESCRIPTION_IN_LIGHTBOX" href="#INLINE_CONTENT_ID" rel="prettyPhoto"><img src="THUMBNAIL_PATH" alt="TITLE_OF_LIGHTBOX" /></a>
***NOTE: In case your light box doesn’t open in popup and opens in new tab/window, please try altering jQuery settings given at plugin edit screen page***