function views_bootstrap_gallery_plugin_style_bootstrap_gallery::options_form in Bootstrap - Photo Gallery 7.3
Render the given style.
Overrides views_plugin_style_grid::options_form
File
- ./
views_bootstrap_gallery_plugin_style_bootstrap_gallery.inc, line 29 - Contains the Bootstrap Gallery style plugin.
Class
- views_bootstrap_gallery_plugin_style_bootstrap_gallery
- Style plugin to render each item in an ordered or unordered list.
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
// Flatten options to deal with the various hierarchy changes.
$options = bootstrap_gallery_get_options($this->options);
$form['bootstrap_gallery'] = array(
'#type' => 'fieldset',
'#title' => t('Bootstrap Gallery'),
'#description' => t('Display options for bootstrap gallery.'),
'#collapsible' => TRUE,
'#weight' => -10,
);
$form['bootstrap_gallery']['image_field'] = array(
'#type' => 'select',
'#title' => t('Image Field'),
'#default_value' => $options['image_field'],
'#options' => $this->display->handler
->get_field_labels(),
'#description' => t('Field that contains image or thumbnail to be used with Bootstrap Gallery.'),
'#required' => TRUE,
);
$form['bootstrap_gallery']['image_style'] = array(
'#type' => 'select',
'#title' => t('Image Style'),
'#default_value' => $options['image_style'],
'#options' => bootstrap_gallery_image_styles(),
'#description' => t('Image Style preset to be used for rendering the full image.'),
'#required' => TRUE,
);
$form['bootstrap_gallery']['image_title'] = array(
'#type' => 'select',
'#title' => t('Image Title'),
'#default_value' => $options['image_title'],
'#options' => array(
'default' => 'HTML title attribute',
) + $this->display->handler
->get_field_labels(),
'#description' => t('Source of headline text to be displayed as a title for the image'),
'#required' => TRUE,
);
$form['bootstrap_gallery']['controls'] = array(
'#type' => 'checkbox',
'#title' => t('Display controls'),
'#default_value' => $options['controls'],
'#options' => array(
TRUE,
FALSE,
),
'#description' => t('Display Bootstrap Carousel Controls.'),
);
$form['bootstrap_gallery']['borderless'] = array(
'#type' => 'checkbox',
'#title' => t('Borderless overlay'),
'#default_value' => $options['borderless'],
'#options' => array(
TRUE,
FALSE,
),
'#description' => t('Disable Bootstrap Modal. Display a full page gallery.'),
);
}