Gallery3:Modules:shadowbox - Gallery Codex
Personal tools


From Gallery Codex


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."

Comments? Post them here

Installation / Configuration

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

Please note, module does not replace default functionality of the Wind theme. The following steps are required:

  • in gallery3/themes/wind/views/page.html.php comment out line <?= $theme->script("gallery.show_full_size.js") ?>
  • in gallery3/themes/wind/views/photo.html.php comment out lines $(".g-fullsize-link").click(function() { $.gallery_show_full_size(<?= html::js_string($theme->item()->file_url()) ?>, full_dims[0], full_dims[1]); return false; });
  • in shadowbox module configuration, specify .g-fullsize-link as a target


When module is activated you would need to visit admin area and verify settings After that simply save it to generate required init JS script


  • 1.9 - Added support for overlay manipulation
  • 1.8 - Added translation logic for help info
  • 1.7 - Module info adjusted to match new format in G3 3.0.2+, Added admin area
  • 1.6 - Adjusted to comply with G3 v 3.0.1. Changed code structure to allow bundling of the CSS/JS code
  • 1.5 - ShadowBox updated to latest version
  • 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


Shadowbox is licensed under a special license. Non-commercial use is free (more information).