public function JuiceboxGalleryInterface::renderJavascript in Juicebox HTML5 Responsive Image Galleries 8.2
Same name and namespace in other branches
- 8.3 src/JuiceboxGalleryInterface.php \Drupal\juicebox\JuiceboxGalleryInterface::renderJavascript()
Get javascript code for Juicebox gallery once images and options are added.
Parameters
string $xml_url: The URL to the Juicebox XML for this gallery.
bool $add_script_tags: Whether-or-not to add <script> tags to wrap the output.
bool $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.
1 method overrides JuiceboxGalleryInterface::renderJavascript()
- JuiceboxGallery::renderJavascript in src/
JuiceboxGallery.php - Get javascript code for Juicebox gallery once images and options are added.
File
- src/
JuiceboxGalleryInterface.php, line 222
Class
- JuiceboxGalleryInterface
- Interface definition for a Juicebox gallery.
Namespace
Drupal\juiceboxCode
public function renderJavascript($xml_url, $add_script_tags = FALSE, $jquery_defer = FALSE);