You are here

protected function views_timelinejs_plugin_style_timelinejs::prepareScriptPathOption in Views TimelineJS integration 7.3

Sets the timeline script_path option to the library's location.

1 call to views_timelinejs_plugin_style_timelinejs::prepareScriptPathOption()
views_timelinejs_plugin_style_timelinejs::prepare_timeline_options in ./views_timelinejs_plugin_style_timelinejs.inc
Processes timeline options before theming.

File

./views_timelinejs_plugin_style_timelinejs.inc, line 753

Class

views_timelinejs_plugin_style_timelinejs
Style plugin to render items as TimelineJS3 slides.

Code

protected function prepareScriptPathOption() {
  global $base_url;
  $script_path = $base_url . '/sites/all/libraries/TimelineJS3/compiled/js';
  $this->options['timeline_config']['script_path'] = $script_path;
}