* * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) * @author James Collins */ 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_carouselitem extends syntax_plugin_mikioplugin_core { public $tag = 'carousel-item'; public $noEndTag = true; public $options = array('active', 'image', 'title', 'text', 'placeholder-text', 'placeholder-text-colour', 'placeholder-colour', 'delay'); public function render_lexer_special(Doku_Renderer $renderer, $data) { $classes = $this->buildClassString($data, array('active'), ''); $delay = ''; if(array_key_exists('delay', $data) && $data['delay'] != '') { $delay = ' data-interval="' . intval($data['delay'] * 1000) . '" '; } $renderer->doc .= ''; } } ?>