*/ 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_step extends syntax_plugin_mikioplugin_core { public $tag = 'step'; public $hasEndTag = true; public $options = array( 'title' => array('type' => 'text', 'default' => ''), 'complete' => array('type' => 'boolean', 'default' => 'false'), 'url' => array('type' => 'url', 'default' => ''), 'icon' => array('type' => 'text', 'default' => ''), ); public function __construct() { $this->addCommonOptions('type'); } public function render_lexer_enter(Doku_Renderer $renderer, $data) { $classes = $this->buildClass($data, array('complete')); $renderer->doc .= '
  • '; if($data['url']) $renderer->doc .= ''; if($data['icon'] != '') { $renderer->doc .= '
    '; $this->syntaxRender($renderer, 'icon', '', array_flip(explode(' ', $data['icon'])), MIKIO_LEXER_SPECIAL); $renderer->doc .= '
    '; } $renderer->doc .= '
    '; if($data['title'] != '') $renderer->doc .= '
    ' . $data['title'] . '
    '; } public function render_lexer_exit(Doku_Renderer $renderer, $data) { if($data['url']) $renderer->doc .= '
    '; $renderer->doc .= '
    '; $renderer->doc .= '
  • '; } } ?>