class nivo_slider_style_plugin in Nivo Slider 6
Implementation of views_plugin_style().
Hierarchy
- class \nivo_slider_style_plugin extends \views_plugin_style
Expanded class hierarchy of nivo_slider_style_plugin
1 string reference to 'nivo_slider_style_plugin'
- nivo_slider_views_plugins in ./
nivo_slider.views.inc - Implementation of hook_views_plugins
File
- ./
nivo_slider_style_plugin.inc, line 5
View source
class nivo_slider_style_plugin extends views_plugin_style {
/**
* Set default options
*/
function options(&$options) {
$options['effect'] = 'random';
$options['slices'] = 15;
$options['animSpeed'] = 5;
$options['pauseTime'] = 3;
$options['directionNav'] = true;
$options['directionNavHide'] = true;
$options['controlNav'] = true;
$options['pauseOnHover'] = true;
}
function options_form(&$form, &$form_state) {
$form['effect'] = array(
'#type' => 'select',
'#title' => t('Effect'),
'#options' => array(
'sliceDown' => 'sliceDown',
'sliceDownLeft' => 'sliceDownLeft',
'sliceUp' => 'sliceUp',
'sliceUpLeft' => 'sliceUpLeft',
'sliceUpDown' => 'sliceUpDown',
'sliceUpDownLeft' => 'sliceUpDownLeft',
'fold' => 'fold',
'fade' => 'fade',
'random' => 'random',
),
'#default_value' => $this->options['effect'],
'#description' => t('Effect'),
);
$form['slices'] = array(
'#type' => 'textfield',
'#title' => t('How many slices of image'),
'#size' => 10,
'#maxlength' => 60,
'#default_value' => $this->options['slices'],
'#description' => t('How many slices of image.'),
);
$form['animSpeed'] = array(
'#type' => 'textfield',
'#title' => t('Speed of the animation'),
'#size' => 10,
'#maxlength' => 60,
'#default_value' => $this->options['animSpeed'],
'#description' => t('Animation speed in seconds.'),
);
$form['pauseTime'] = array(
'#type' => 'textfield',
'#title' => t('Pause time'),
'#size' => 10,
'#maxlength' => 60,
'#default_value' => $this->options['pauseTime'],
'#description' => t('Pause time in seconds.'),
);
$form['directionNav'] = array(
'#type' => 'select',
'#title' => t('Enable direction navigation?'),
'#options' => array(
'true' => 'true',
'false' => 'false',
),
'#default_value' => $this->options['directionNav'],
);
$form['directionNavHide'] = array(
'#type' => 'select',
'#title' => t('Hide direction navigation?'),
'#options' => array(
'true' => 'true',
'false' => 'false',
),
'#default_value' => $this->options['directionNavHide'],
);
$form['controlNav'] = array(
'#type' => 'select',
'#title' => t('Enable control navigation?'),
'#options' => array(
'true' => 'true',
'false' => 'false',
),
'#default_value' => $this->options['controlNav'],
);
$form['pauseOnHover'] = array(
'#type' => 'select',
'#title' => t('Pause on hover?'),
'#options' => array(
'true' => 'true',
'false' => 'false',
),
'#default_value' => $this->options['pauseOnHover'],
);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
nivo_slider_style_plugin:: |
function | Set default options | ||
nivo_slider_style_plugin:: |
function |