public function JuiceboxGalleryDrupalInterface::styleImageSrcData in Juicebox HTML5 Responsive Image Galleries 7.2
Utility to extract image source data in an array structure that can be used when adding a new image to the gallery.
Parameters
array $image_item: An associative array of file field item data for the main image.
string $image_style: The Drupal image style to apply to the main image.
array $thumb_item: An associative array of file field item data for the thumbnail image.
string $thumb_style: The Drupal image style to apply to the thumbnail image.
Return value
array An associative array of image source URLs that's ready to be added to a Juicebox gallery, including:
- image_url: URL to the full image to display.
- image_url_small: URL to the full image to display in small screen mode. Only included if $image_style = juicebox_multisize.
- image_url_large: URL to the full image to display in large screen mode. Only included if $image_style = juicebox_multisize.
- thumb_url: URL to the thumbnail to display for the image.
- link_url: The Juicebox "link URL" value for the image.
- link_target: The browser target value to use when following a link URL.
- juicebox_compatible: Boolean indicating if the raw source file for the main image is directly compatible with the Juicebox library.
1 method overrides JuiceboxGalleryDrupalInterface::styleImageSrcData()
- JuiceboxGalleryDrupal::styleImageSrcData in includes/
JuiceboxGalleryDrupal.inc - Utility to extract image source data in an array structure that can be used when adding a new image to the gallery.
File
- includes/
JuiceboxGalleryDrupalInterface.inc, line 93 - Interface definition for a Juicebox gallery that includes Drupal functionality.
Class
- JuiceboxGalleryDrupalInterface
- Interface definition for a Juicebox gallery that includes Drupal functionality.
Code
public function styleImageSrcData($image_item, $image_style, $thumb_item, $thumb_style);