*/ if (!defined('DOKU_INC')) die(); if (!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/'); require_once(dirname(__FILE__).'/core.php'); class syntax_plugin_mikioplugin_carousel extends syntax_plugin_mikioplugin_core { public $tag = 'carousel'; public $hasEndTag = true; public $options = array( 'transition' => array('type' => 'choice', 'data' => array('slide', 'fade'), 'default' => ''), 'indicators' => array('type' => 'boolean', 'default' => 'true'), 'controls' => array('type' => 'boolean', 'default' => 'true'), 'start' => array('type' => 'boolean', 'default' => 'false'), ); public function __construct() { $this->addCommonOptions('height'); } public function render_lexer_enter(Doku_Renderer $renderer, $data) { $classes = $this->buildClass($data, array('transition')); $styles = $this->buildStyle(array('height' => $data['height']), TRUE); $renderer->doc .= '
'; } } ?>