function views_galleriffic_style_plugin::options_form in Views Galleriffic 6
File
- ./
views_galleriffic_style_plugin.inc, line 37 - Provide the views gallariffic plugin object with default options and form.
Class
- views_galleriffic_style_plugin
- Implementation of views_plugin_style().
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
unset($form['grouping']);
$history = views_galleriffic_history();
$form['history'] = array(
'#type' => $history['type'],
'#title' => t('History'),
'#description' => $history['description'],
'#default_value' => $this->options['history'],
'#options' => array(
'true' => t('Yes'),
'' => t('No'),
),
);
$form['css'] = array(
'#type' => 'select',
'#title' => t('Use default css'),
'#description' => t('You can use the default css or not. The default can\'t anticipate the image sizes you use so will likely need to be updated for individual needs.'),
'#default_value' => $this->options['css'],
'#options' => array(
'true' => t('Yes'),
'' => t('No'),
),
);
$form['delay'] = array(
'#type' => 'textfield',
'#title' => t('Delay'),
'#default_value' => $this->options['delay'],
'#description' => t('The delay between each slide. In miliseconds.'),
);
$form['transition'] = array(
'#type' => 'textfield',
'#title' => t('Transition Duration'),
'#default_value' => $this->options['transition'],
'#description' => t('If using the default transitions, specifies the duration of the transitions.'),
);
$form['preload'] = array(
'#type' => 'textfield',
'#title' => t('Images to Preload'),
'#default_value' => $this->options['preload'],
'#description' => t('Set to -1 to preload all images.'),
);
$form['numbthumbs'] = array(
'#type' => 'textfield',
'#title' => t('Number of Thumbnails'),
'#default_value' => $this->options['numbthumbs'],
'#description' => t('This is the number of thumbnails that will appear before a pager is used.'),
);
$form['pager_top'] = array(
'#type' => 'select',
'#title' => t('Enable Top Pager'),
'#description' => t('Enable the pager at the top of the gallery. This will only work if the number of slides is higher than the number of thumbs.'),
'#default_value' => $this->options['pager_top'],
'#options' => array(
'true' => t('Yes'),
'' => t('No'),
),
);
$form['pager_bottom'] = array(
'#type' => 'select',
'#title' => t('Enable Bottom Pager'),
'#description' => t('Enable the pager at the bottom of the gallery.'),
'#default_value' => $this->options['pager_bottom'],
'#options' => array(
'true' => t('Yes'),
'' => t('No'),
),
);
$form['renderss'] = array(
'#type' => 'select',
'#title' => t('Show Play and Pause Controls'),
'#description' => t('Specifies whether the slideshow\'s Play and Pause links should be rendered.'),
'#default_value' => $this->options['renderss'],
'#options' => array(
'true' => t('Yes'),
'' => t('No'),
),
);
$form['rendernav'] = array(
'#type' => 'select',
'#title' => t('Show Next and Pause Controls'),
'#description' => t('Specifies whether the slideshow\'s Next and Previous links should be rendered.'),
'#default_value' => $this->options['rendernav'],
'#options' => array(
'true' => t('Yes'),
'' => t('No'),
),
);
$form['playtext'] = array(
'#type' => 'textfield',
'#title' => t('Play Link Text'),
'#default_value' => $this->options['playtext'],
'#description' => t('Text to display for the PLAY link.'),
);
$form['pausetext'] = array(
'#type' => 'textfield',
'#title' => t('Pause Link Text'),
'#default_value' => $this->options['pausetext'],
'#description' => t('Text to display for the PAUSE link.'),
);
$form['prevlink'] = array(
'#type' => 'textfield',
'#title' => t('Previous Link Text'),
'#default_value' => $this->options['prevlink'],
'#description' => t('Text to display for the PREVIOUS link.'),
);
$form['nextlink'] = array(
'#type' => 'textfield',
'#title' => t('Next Link Text'),
'#default_value' => $this->options['nextlink'],
'#description' => t('Text to display for the NEXT link.'),
);
$form['nextpage'] = array(
'#type' => 'textfield',
'#title' => t('Next Page Link Text'),
'#default_value' => $this->options['nextpage'],
'#description' => t('Text to display for the next PAGE link.'),
);
$form['prevpage'] = array(
'#type' => 'textfield',
'#title' => t('Previous Page Link Text'),
'#default_value' => $this->options['prevpage'],
'#description' => t('Text to display for the next PREVIOUS link.'),
);
$form['start'] = array(
'#type' => 'select',
'#title' => t('Auto Start'),
'#description' => t('Specifies whether the slideshow should be playing or paused when the page first loads.'),
'#default_value' => $this->options['start'],
'#options' => array(
'true' => t('Yes'),
'' => t('No'),
),
);
$form['sync'] = array(
'#type' => 'select',
'#title' => t('Sync Transitions'),
'#description' => t('Specifies whether the out and in transitions occur simultaneously or distinctly.'),
'#default_value' => $this->options['sync'],
'#options' => array(
'true' => t('Yes'),
'' => t('No'),
),
);
$form['keyboard'] = array(
'#type' => 'select',
'#title' => t('Keyboard Transitions'),
'#description' => t('Specifies whether you want to be able to scroll through images with your keyboard. CAUTION, may interfere with comments if turned on.'),
'#default_value' => $this->options['keyboard'],
'#options' => array(
'true' => t('Yes'),
'' => t('No'),
),
);
}