protected function views_timelinejs_plugin_style_timelinejs::prepare_timeline_options in Views TimelineJS integration 7.3
Processes timeline options before theming.
1 call to views_timelinejs_plugin_style_timelinejs::prepare_timeline_options()
- views_timelinejs_plugin_style_timelinejs::render in ./
views_timelinejs_plugin_style_timelinejs.inc - Render the display in this style.
File
- ./
views_timelinejs_plugin_style_timelinejs.inc, line 710
Class
- views_timelinejs_plugin_style_timelinejs
- Style plugin to render items as TimelineJS3 slides.
Code
protected function prepare_timeline_options() {
// Set the script_path option for locally-hosted libraries.
if (variable_get('views_timelinejs_library', 'cdn') == 'local') {
$this
->prepareScriptPathOption();
}
// Set the language option to the site's default if it is empty.
if (empty($this->options['timeline_config']['language'])) {
$this
->prepare_language_option();
}
// If the custom start_at_current option is set, then set the timeline's
// start_at_slide option to the start_slide_index and override the
// start_at_end option.
if ($this->options['additional_config']['start_at_current']) {
$this->options['timeline_config']['start_at_slide'] = $this->start_slide_index;
$this->options['timeline_config']['start_at_end'] = FALSE;
}
}