You are here

public function simple_timeline_style_plugin::render in A Simple Timeline 7

Renders the data provided to this plugin.

Return value

string The rendered html.

Overrides views_plugin_style::render

File

./simple_timeline_style_plugin.inc, line 38
Contains the simple timeline style plugin. Created by JetBrains PhpStorm. User: alan

Class

simple_timeline_style_plugin
Style plugin to render each item on a simple timeline.

Code

public function render() {
  drupal_add_css(drupal_get_path('module', 'simple_timeline') . '/simple_timeline.css', 'file');

  // Set needed values for basic timeline proper functioning.
  $this->options['wrapper_class'] .= ' simple-timeline';
  return parent::render();
}