You are here

public function JuiceboxGalleryInterface::renderJavascript in Juicebox HTML5 Responsive Image Galleries 7.2

Get the javascript code for a Juicebox gallery once images and options have been added.

Parameters

string $xml_url: The URL to the Juicebox XML for this gallery.

boolean $add_script_tags: Whether-or-not to add <script> tags to wrap the output.

boolean $jquery_defer: Whether-or-not to defer the execution of the javascript until after the DOM is ready using jQuery(document).ready. This can be useful if the code will be included inline before the main Juicebox library. Requires that the jQuery library is already included.

Return value

string Javascript code describing a gallery.

2 methods override JuiceboxGalleryInterface::renderJavascript()
JuiceboxGallery::renderJavascript in includes/JuiceboxGallery.inc
Get the javascript code for a Juicebox gallery once images and options have been added.
JuiceboxGalleryDecorator::renderJavascript in includes/JuiceboxGalleryDecorator.inc
Get the javascript code for a Juicebox gallery once images and options have been added.

File

includes/JuiceboxGalleryInterface.inc, line 221
Interface definition for a Juicebox gallery.

Class

JuiceboxGalleryInterface
Interface definition for a Juicebox gallery.

Code

public function renderJavascript($xml_url, $add_script_tags = FALSE, $jquery_defer = FALSE);