You are here

public function JuiceboxGalleryDecorator::getJavascriptVars in Juicebox HTML5 Responsive Image Galleries 7.2

Get the variables needed to instantiate a new JS Juicebox. These values can be used as direct constructor inputs for a new juicebox object.

Parameters

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

Return value

array An associative array of properties that can be used as direct constructor inputs for a new JS Juicebox object.

Overrides JuiceboxGalleryInterface::getJavascriptVars

1 call to JuiceboxGalleryDecorator::getJavascriptVars()
JuiceboxGalleryDrupal::buildEmbed in includes/JuiceboxGalleryDrupal.inc
Build a render array of the embed code for a Juicebox gallery after images and options have been added.

File

includes/JuiceboxGalleryDecorator.inc, line 129
Base decorator class for a Juicebox Gallery.

Class

JuiceboxGalleryDecorator
Base decorator class for a Juicebox Gallery.

Code

public function getJavascriptVars($xml_url) {
  return $this->gallery
    ->getJavascriptVars($xml_url);
}