*/ 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' => 'choice', 'data' => array('true', 'false', 'circle'), 'default' => 'true' ), 'controls' => array('type' => 'boolean', 'default' => 'true'), 'start' => array('type' => 'boolean', 'default' => 'false'), 'cover' => array('type' => 'boolean', 'default' => 'false'), 'control-color' => array('type' => 'color', 'default' => '#fff'), 'control-outline-color' => array('type' => 'color', 'default' => ''), 'control-outline-width' => array('type' => 'multisize', 'default' => ''), 'dynamic' => array('type' => 'text', 'default' => ''), 'dynamic-prefix' => array('type' => 'text', 'default' => ''), ); 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 .= '