Personal tools

Gallery3:Modules:shadowbox

From Gallery Codex

Contents

Description

Allows integration of ShadowBox 3 within Gallery 3.

Once activated, it inserts the needed JavaScript into your page for ShadowBox support.

"Shadowbox is an online media viewer application that supports all of the web's most popular media publishing formats. Shadowbox is written entirely in JavaScript and CSS and is highly customizable. Using Shadowbox, website authors can showcase a wide assortment of media in all major browsers without navigating users away from the linking page."

Installation / Configuration

Activate the module: Login -> Admin -> Modules. Check the box next to the module.

Description

Necessary javascript references would be added to the page. If module is used by itself outside of GreyDragon theme, the following code would need to be added to activate it.

$ (document). ready( function() {

 try {
   Shadowbox.setup("a.g-fullsize-link", {player: 'img'});
 } catch (e) {
 }

}

Changelist

1.4 - Small adjustments
1.3 - Fixed issue with relative path to the JS/CSS
1.2 - Fixed issue with Ajax player allowing proper jQuery event handling
1.1 - Initial release

advertisements