You are here

function theme_fancybox_imagefield in fancyBox 7.2

Returns HTML for a fancyBox image field.

Parameters

$variables array:

1 theme call to theme_fancybox_imagefield()
theme_fancybox_image_formatter in ./fancybox.theme.inc
Formats and displays a fancyBox image field.

File

./fancybox.theme.inc, line 134
Provides the fancyBox jQuery plugin, a tool that offers a nice and elegant way to add zooming functionality for images, html content and multi-media on your webpages, and an extensive settings page for configuring fancyBox settings and how fancyBox…

Code

function theme_fancybox_imagefield($variables) {
  $image = $variables['image'];
  $path = $variables['path'];
  $caption = $variables['caption'];
  $group = $variables['group'];
  return l(theme(empty($image['style_name']) ? 'image' : 'image_style', $image), $path, array(
    'html' => TRUE,
    'attributes' => array(
      'title' => $caption,
      'class' => 'fancybox',
      'data-fancybox-group' => $group,
    ),
  ));
}