*/ 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_placeholder extends syntax_plugin_mikioplugin_core { public $tag = 'placeholder'; public $hasEndTag = false; public $options = array( 'width' => array('type' => 'size', 'default' => ''), 'height' => array('type' => 'size', 'default' => ''), 'text' => array('type' => 'text', 'default' => ''), 'color' => array('type' => 'text', 'default' => 'var(--mikiop-border-color)'), 'text-color' => array('type' => 'text', 'default' => 'currentColor'), ); public function render_lexer_special(Doku_Renderer $renderer, $data) { $styles = $this->buildStyle(array('width' => $data['width'], 'height' => $data['height']), TRUE); $renderer->doc .= '
'; $renderer->doc .= ''; $renderer->doc .= ''; $renderer->doc .= '' . $data['text'] . ''; $renderer->doc .= ''; $renderer->doc .= '
'; } } ?>