function bxslider_field_formatter_info in BxSlider 7
Implements hook_field_formatter_info().
File
- ./
bxslider.module, line 74 - Fields integration with BxSlider.
Code
function bxslider_field_formatter_info() {
return array(
'bxslider' => array(
'label' => t('BxSlider'),
'field types' => array(
'image',
'media',
),
'settings' => array(
'image_style' => 'large',
'general' => array(
'mode' => 'horizontal',
'speed' => 500,
'slideMargin' => 0,
'startSlide' => 0,
'randomStart' => FALSE,
'infiniteLoop' => TRUE,
'hideControlOnEnd' => TRUE,
'easing' => '',
'captions' => FALSE,
'ticker' => FALSE,
'tickerHover' => FALSE,
'adaptiveHeight' => FALSE,
'adaptiveHeightSpeed' => 500,
'video' => FALSE,
'responsive' => TRUE,
'useCSS' => TRUE,
'preloadImages' => 'visible',
'touchEnabled' => TRUE,
'swipeThreshold' => 50,
'oneToOneTouch' => TRUE,
'preventDefaultSwipeX' => TRUE,
'preventDefaultSwipeY' => FALSE,
),
'pager' => array(
'pager' => TRUE,
'pagerType' => 'full',
'pagerShortSeparator' => ' / ',
'pagerSelector' => '',
'pagerCustom_type' => 'none',
'pagerCustom' => 'null',
'pagerCustom_image_style' => 'thumbnail',
),
'controls' => array(
'controls' => TRUE,
'nextText' => 'Next',
'prevText' => 'Prev',
'nextSelector' => '',
'prevSelector' => '',
'autoControls' => FALSE,
'startText' => 'Start',
'stopText' => 'Stop',
'autoControlsCombine' => FALSE,
'autoControlsSelector' => '',
),
'auto' => array(
'auto' => FALSE,
'pause' => 4000,
'autoStart' => TRUE,
'autoDirection' => 'next',
'autoHover' => FALSE,
'autoDelay' => 0,
),
'carousel' => array(
'minSlides' => 1,
'maxSlides' => 1,
'moveSlides' => 0,
'slideWidth' => 0,
),
'colorbox' => array(
'enable' => FALSE,
'image_style' => 'large',
'slideshow' => FALSE,
'slideshow_speed' => 2000,
'transition' => 'elastic',
'transition_speed' => 350,
),
),
),
'bxslider_ths' => array(
'label' => t('BxSlider - Thumbnail slider'),
'field types' => array(
'image',
'media',
),
'settings' => array(
'image_style' => 'large',
'general' => array(
'mode' => 'horizontal',
'speed' => 500,
'slideMargin' => 0,
'startSlide' => 0,
'randomStart' => FALSE,
'infiniteLoop' => FALSE,
'hideControlOnEnd' => TRUE,
'easing' => '',
'captions' => FALSE,
'ticker' => FALSE,
'tickerHover' => FALSE,
'adaptiveHeight' => FALSE,
'adaptiveHeightSpeed' => 500,
'video' => FALSE,
'responsive' => TRUE,
'useCSS' => TRUE,
'preloadImages' => 'visible',
'touchEnabled' => TRUE,
'swipeThreshold' => 50,
'oneToOneTouch' => TRUE,
'preventDefaultSwipeX' => TRUE,
'preventDefaultSwipeY' => FALSE,
),
'pager' => array(
'pager' => FALSE,
),
'controls' => array(
'controls' => TRUE,
'nextText' => 'Next',
'prevText' => 'Prev',
'nextSelector' => '',
'prevSelector' => '',
'autoControls' => FALSE,
'startText' => 'Start',
'stopText' => 'Stop',
'autoControlsCombine' => FALSE,
'autoControlsSelector' => '',
),
'auto' => array(
'auto' => FALSE,
'pause' => 4000,
'autoStart' => TRUE,
'autoDirection' => 'next',
'autoHover' => FALSE,
'autoDelay' => 0,
),
'carousel' => array(
'minSlides' => 1,
'maxSlides' => 1,
'moveSlides' => 0,
'slideWidth' => 0,
),
'thumbnail_slider' => array(
'thumbnail_style' => 'thumbnail',
'general' => array(
'mode' => 'horizontal',
'speed' => 500,
'slideMargin' => 0,
'startSlide' => 0,
'randomStart' => FALSE,
'infiniteLoop' => TRUE,
'hideControlOnEnd' => FALSE,
'easing' => '',
'captions' => FALSE,
'ticker' => FALSE,
'tickerHover' => FALSE,
'adaptiveHeight' => FALSE,
'adaptiveHeightSpeed' => 500,
'video' => FALSE,
'responsive' => TRUE,
'useCSS' => TRUE,
'preloadImages' => 'visible',
'touchEnabled' => TRUE,
'swipeThreshold' => 50,
'oneToOneTouch' => TRUE,
'preventDefaultSwipeX' => TRUE,
'preventDefaultSwipeY' => FALSE,
),
'pager' => array(
'pager' => FALSE,
),
'controls' => array(
'controls' => TRUE,
'nextText' => 'Next',
'prevText' => 'Prev',
'nextSelector' => '',
'prevSelector' => '',
'autoControls' => FALSE,
'startText' => 'Start',
'stopText' => 'Stop',
'autoControlsCombine' => FALSE,
'autoControlsSelector' => '',
),
'auto' => array(
'auto' => FALSE,
'pause' => 4000,
'autoStart' => TRUE,
'autoDirection' => 'next',
'autoHover' => FALSE,
'autoDelay' => 0,
),
'carousel' => array(
'minSlides' => 4,
'maxSlides' => 4,
'moveSlides' => 1,
'slideWidth' => 0,
),
),
'colorbox' => array(
'enable' => FALSE,
'image_style' => 'large',
'slideshow' => FALSE,
'slideshow_speed' => 2000,
'transition' => 'elastic',
'transition_speed' => 350,
),
),
),
);
}