You are here

function juicebox_style_plugin::option_definition in Juicebox HTML5 Responsive Image Galleries 7

Define default plugin options.

Overrides views_plugin_style::option_definition

File

plugins/juicebox_style_plugin.inc, line 20
Contains the Juicebox views style plugin.

Class

juicebox_style_plugin
Style plugin to render each item in a views list.

Code

function option_definition() {
  $options = parent::option_definition();
  $options = array(
    'image_field' => array(
      'default' => '',
    ),
    'image_field_style' => array(
      'default' => '',
    ),
    'thumb_field' => array(
      'default' => '',
    ),
    'thumb_field_style' => array(
      'default' => 'thumbnail',
    ),
    'title_field' => array(
      'default' => '',
    ),
    'caption_field' => array(
      'default' => '',
    ),
    'show_title' => array(
      'default' => 0,
    ),
    'jlib_galleryWidth' => array(
      'default' => '100%',
    ),
    'jlib_galleryHeight' => array(
      'default' => '100%',
    ),
    'jlib_backgroundColor' => array(
      'default' => '#222222',
    ),
    'jlib_textColor' => array(
      'default' => 'rgba(255,255,255,1)',
    ),
    'jlib_thumbFrameColor' => array(
      'default' => 'rgba(255,255,255,.5)',
    ),
    'jlib_showOpenButton' => array(
      'default' => 1,
    ),
    'jlib_showExpandButton' => array(
      'default' => 1,
    ),
    'jlib_showThumbsButton' => array(
      'default' => 1,
    ),
    'jlib_useThumbDots' => array(
      'default' => 0,
    ),
    'jlib_useFullscreenExpand' => array(
      'default' => 0,
    ),
    'manual_config' => array(
      'default' => '',
    ),
    'custom_parent_classes' => array(
      'default' => '',
    ),
    'apply_markup_filter' => array(
      'default' => 1,
    ),
    'linkurl_source' => array(
      'default' => '',
    ),
    'linkurl_target' => array(
      'default' => '_blank',
    ),
  );
  return $options;
}